/* 基本样式设置 */
@import url('https://fonts.font.im/css?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #ff69b4;
  --secondary-color: #ffb6c1;
  --accent-color: #ff1493;
  --text-color: #333;
  --light-text: #fff;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', 'Noto Serif SC', sans-serif;
  background-color: #fce4ec;
  color: var(--text-color);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 玻璃拟态风格 */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow: 0 8px 32px var(--shadow-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部区域 */
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.site-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.site-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* 下载按钮区域 */
.download-section {
  padding: 80px 0;
  text-align: center;
  background-color: #fff5f8;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.download-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 280px;
  padding: 25px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 20px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
}

.download-button:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 105, 180, 0.5);
}

.button-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.button-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.button-subtext {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 功能介绍区域 */
.features-section {
  padding: 80px 0;
  background-color: #fce4ec;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  border-radius: 3px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  text-align: center;
  height: 100%;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--accent-color);
}

.feature-description {
  font-size: 1rem;
  line-height: 1.6;
}

/* 使用指南区域 */
.guide-section {
  padding: 80px 0;
  background-color: #fff5f8;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px;
}

.step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.step-description {
  font-size: 1rem;
  line-height: 1.6;
}

.step-image {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin-top: 15px;
}

/* 视觉特效区域 */
.effects-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #f48fb1 100%);
  position: relative;
  overflow: hidden;
  min-height: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.effects-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

/* 魔法阵背景装饰 */
.magic-circle-container {
  position: absolute;
  top: 10%;
  right: 10%;
  z-index: 1;
  opacity: 0.3;
}

.magic-circle {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: hue-rotate(320deg) brightness(1.2);
}

.rotating {
  animation: rotate360 20s linear infinite;
}

@keyframes rotate360 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 星空特效背景 */
.starry-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

.starry-effect {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: hue-rotate(300deg) brightness(0.8);
}

/* 特效演示卡片 */
.effects-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.effect-demo-card {
  padding: 25px;
  text-align: center;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.effect-demo-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 105, 180, 0.4);
  border-color: var(--primary-color);
}

.effect-icon {
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

.effect-title {
  font-size: 1.3rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.effect-description {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.effect-preview {
  width: 100%;
  max-width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.effect-preview:hover {
  transform: scale(1.1);
  border-color: var(--primary-color);
}

/* 交互提示区域 */
.interaction-tips {
  padding: 25px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  border: 2px solid rgba(255, 182, 193, 0.5);
}

.tips-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 25px;
  font-size: 0.9rem;
  color: #555;
  transition: all 0.3s ease;
}

.tip-item:hover {
  background: rgba(255, 182, 193, 0.8);
  transform: scale(1.05);
  color: #333;
}

.tip-item i {
  font-size: 1.1rem;
}

/* 技术特色展示 */
.tech-showcase {
  padding: 25px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  border: 2px solid rgba(255, 105, 180, 0.4);
}

.showcase-title {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.tech-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.tech-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  min-width: 120px;
  transition: all 0.3s ease;
}

.tech-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
}

.tech-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tech-desc {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  line-height: 1.3;
}

/* 装饰性浮动元素 */
.floating-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.floating-star, .floating-heart {
  position: absolute;
  font-size: 1.5rem;
  animation: floatAndGlow 4s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
}

.floating-heart {
  animation: floatAndPulse 3s ease-in-out infinite;
}

@keyframes floatAndGlow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 105, 180, 0.6));
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
    filter: brightness(1.3) drop-shadow(0 0 15px rgba(255, 105, 180, 0.9));
  }
}

@keyframes floatAndPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-15px) scale(1.2);
    filter: brightness(1.4);
  }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .effects-section {
    min-height: 600px;
    padding: 60px 0;
  }
  
  .effects-demo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-features {
    flex-direction: column;
    align-items: center;
  }
  
  .magic-circle {
    width: 120px;
    height: 120px;
  }
  
  .floating-star, .floating-heart {
    font-size: 1.2rem;
  }
}

/* 兼容性区域 */
.compatibility-section {
  padding: 80px 0;
  background-color: #fff5f8;
}

.compatibility-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.compatibility-table th,
.compatibility-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--secondary-color);
}

.compatibility-table th {
  background-color: var(--secondary-color);
  color: white;
}

.compatibility-table tr:nth-child(even) {
  background-color: rgba(255, 182, 193, 0.1);
}

/* 页脚区域 */
footer {
  background-color: #f8bbd0;
  color: #333;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-text {
  margin-bottom: 20px;
  line-height: 1.6;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 20px;
}

/* 音乐播放器 */
.music-player {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
  border: 2px solid var(--primary-color);
  width: 300px;
  transform: translateX(-320px);
  transition: transform 0.3s ease;
}

.music-player:hover,
.music-player.active {
  transform: translateX(0);
}

.music-player-tab {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 80px;
  border-radius: 0 10px 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
}

.music-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--secondary-color);
  padding-bottom: 10px;
}

.music-player-title {
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
  font-size: 1.1rem;
}

.music-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.music-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.music-button {
  background: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.music-button:hover {
  transform: scale(1.1);
  background: var(--accent-color);
}

.play-pause {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
}

.volume-control {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 5px;
}

.volume-slider {
  flex-grow: 1;
  margin-left: 10px;
  accent-color: var(--primary-color);
}

.song-info {
  text-align: center;
  margin: 10px 0;
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scrolling-text {
  animation: scrollText 10s linear infinite;
  padding-left: 100%;
  display: inline-block;
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.progress-container {
  width: 100%;
  height: 5px;
  background: #e0e0e0;
  border-radius: 5px;
  margin-top: 5px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  border-radius: 5px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-handle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
}

/* 动画效果 */
@keyframes glow {
  from {
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
  }
  to {
    text-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--accent-color), 0 0 40px var(--accent-color);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* 雪花效果 */
.snowflake {
  position: absolute;
  color: white;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px #000;
  user-select: none;
  z-index: 1000;
  pointer-events: none;
}

/* 移动端提示 */
.mobile-notice {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 105, 180, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.mobile-notice-content {
  max-width: 500px;
}

.mobile-notice h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.mobile-notice p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.mobile-url {
  padding: 15px;
  background-color: white;
  border-radius: 10px;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
  word-break: break-all;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .site-title {
    font-size: 2.5rem;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .mobile-notice {
    display: flex;
  }
}

/* IE 兼容性调整 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .glass {
    background: rgba(255, 182, 193, 0.9);
  }
  
  .download-button {
    background: var(--primary-color);
  }
}

/* 动画角色 */
.anime-character {
  position: absolute;
  bottom: 0;
  right: 5%;
  height: 400px;
  z-index: 2;
}

/* 粒子效果容器 */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}