/* 汽水音乐 - 全局样式 */
:root {
  --primary: #FF2442;
  --primary-dark: #D41E36;
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1e1e1e;
  --text: #e8e8e8;
  --text-secondary: #999;
  --text-muted: #666;
  --border: #2a2a2a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --max-width: 1200px;
  --nav-height: 64px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* ===== 导航栏 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #FF6B81);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px !important;
  transition: background .2s;
}
.nav-cta:hover {
  background: var(--primary-dark);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,36,66,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.hero-text {
  flex: 1;
  text-align: left;
}
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-text h1 span {
  background: linear-gradient(135deg, var(--primary), #FF6B81);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 0 32px 0;
}
.hero-visual {
  flex: 0 0 420px;
}
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(255,36,66,.2);
  border: 1px solid var(--border);
}
.hero-btns {
  display: flex;
  gap: 16px;
  position: relative;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #E8223E);
  color: #fff;
  box-shadow: 0 8px 32px rgba(255,36,66,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,36,66,.45);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: #555;
  background: var(--bg-card);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 32px;
}

/* ===== 通用区块 ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ===== 特色卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .25s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: #3a3a3a;
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 截图展示 ===== */
.screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s;
}
.screenshot-card:hover {
  transform: translateY(-4px);
}
.screenshot-img-real {
  width: 100%;
  overflow: hidden;
}
.screenshot-img-real img {
  width: 100%;
  display: block;
  transition: transform .3s;
}
.screenshot-card:hover .screenshot-img-real img {
  transform: scale(1.03);
}
.screenshot-img {
  width: 100%;
  aspect-ratio: 9/16;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.screenshot-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,36,66,.08) 0%, rgba(255,107,129,.05) 100%);
}
.screen-mock {
  width: 70%;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #FF6B81);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: .9;
  box-shadow: 0 0 60px rgba(255,36,66,.25);
}
.screenshot-info {
  padding: 16px;
}
.screenshot-info h4 {
  font-size: 15px;
  font-weight: 600;
}
.screenshot-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 数据亮点 ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
}
.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), #FF6B81);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 下载区域 ===== */
.download-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dl-card {
  background: var(--bg-card);
  padding: 32px 28px;
  text-align: center;
  transition: background .25s;
}
.dl-card:hover {
  background: var(--bg-card-hover);
}
.dl-card .platform-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.dl-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dl-card .version {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.dl-card .size {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.dl-card .btn {
  padding: 10px 28px;
  font-size: 14px;
}

/* 下载页 dl-block */
.dl-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: border-color .2s;
}
.dl-block:hover {
  border-color: #3a3a3a;
}
.dl-block-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dl-platform-icon {
  font-size: 40px;
  flex-shrink: 0;
}
.dl-block-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.dl-block-header p {
  font-size: 13px;
  color: var(--text-muted);
}
.dl-btns {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-dl {
  padding: 10px 24px !important;
  font-size: 14px !important;
  white-space: nowrap;
}
.qrcode-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

/* ===== 页脚 ===== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer p {
  font-size: 13px;
  color: var(--text-muted);
}
.footer a {
  color: var(--text-secondary);
}
.footer a:hover {
  color: #fff;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .sep { margin: 0 8px; }

/* ===== 功能介绍页 ===== */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0;
}
.feature-detail:nth-child(even) {
  direction: rtl;
}
.feature-detail:nth-child(even) .fd-content {
  direction: ltr;
}
.feature-detail:nth-child(even) .fd-visual {
  direction: ltr;
}
.fd-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.fd-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}
.fd-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  overflow: hidden;
}
.fd-visual:has(img) {
  background: transparent;
  border: none;
  padding: 0;
}

/* ===== 关于页 ===== */
.about-hero {
  text-align: center;
  padding: 60px 24px 40px;
}
.about-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.about-hero p { color: var(--text-secondary); font-size: 16px; max-width: 640px; margin: 0 auto; }
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}
.info-card ul {
  list-style: none;
}
.info-card ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.info-card ul li:last-child { border-bottom: none; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 版本历史 ===== */
.changelog {
  max-width: 700px;
  margin: 0 auto;
}
.cl-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cl-version {
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  min-width: 80px;
}
.cl-content { font-size: 14px; color: var(--text-secondary); }
.cl-content ul { list-style: none; }
.cl-content ul li { padding: 3px 0; }
.cl-content ul li::before { content: '· '; color: var(--primary); }

/* ===== 二维码 & 弹窗 ===== */
.qr-inline {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.qr-inline-wrap {
  position: relative;
  display: inline-block;
  padding: 3px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4facfe, #00f2fe, #4facfe, #00f2fe);
  background-size: 300% 300%;
  animation: qrBorderShine 3s ease-in-out infinite;
  margin-bottom: 12px;
}
.qr-inline-wrap .qr-inline {
  margin: 0;
}

@keyframes qrBorderShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 弹窗 */
.qr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-modal-inner {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  max-width: 360px;
  width: 90%;
  position: relative;
}
.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.qr-modal-close:hover { color: #fff; }
.qr-modal-body {
  text-align: center;
  padding: 48px 32px 36px;
}
.qr-modal-img-wrap {
  position: relative;
  display: inline-block;
  padding: 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4facfe, #00f2fe, #43e97b, #38f9d7, #4facfe);
  background-size: 400% 400%;
  animation: qrBorderShine 3s ease-in-out infinite;
  margin-bottom: 16px;
}
.qr-modal-img {
  display: block;
  border-radius: 9px;
  width: 180px;
  height: 180px;
}
.qr-modal-hint {
  font-size: 14px;
  color: #bbb;
  margin: 0;
}

/* 下载卡片内二维码区域 */
.dl-qr-area {
  margin-bottom: 10px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; gap: 32px; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 32px; }
  .hero-text p { margin: 0 auto 24px; }
  .hero-visual { flex: auto; max-width: 360px; margin: 0 auto; }
  .hero-btns { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .dl-block { flex-direction: column; align-items: flex-start; }
  .dl-btns { width: 100%; }
  .dl-btns .btn { flex: 1; text-align: center; }
  .qr-modal-body { flex-direction: column; gap: 20px; padding: 28px 20px 16px; }
  .qr-modal-left { display: flex; flex-direction: column; align-items: center; }
  .feature-detail { grid-template-columns: 1fr; gap: 24px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .info-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .screenshots { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
}
