/* 汽水音乐 · 全局样式（纯静态，无框架依赖） */

:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-50: #f0fdfa;
  --teal-200: #99f6e4;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --max-width: 1152px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  color: var(--gray-700);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--gray-900); font-weight: 700; line-height: 1.25; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section { padding: 4rem 0; }
.section--tight { padding: 3rem 0; }
.section--gray { background: var(--gray-50); }

.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: 1.875rem; margin-bottom: 0.5rem; }
.section-head p { color: var(--gray-600); font-size: 1.0625rem; margin: 0; }

.text-gradient {
  background: linear-gradient(90deg, var(--emerald-600), #14b8a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s, box-shadow 0.18s, transform 0.18s, color 0.18s;
  font-size: 0.95rem;
}
.btn svg { flex: none; }
.btn-primary { background: var(--emerald-600); color: #fff; }
.btn-primary:hover { background: var(--emerald-700); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--gray-700); border-color: var(--gray-200); }
.btn-ghost:hover { border-color: var(--emerald-200); color: var(--emerald-700); background: var(--emerald-50); }
.btn-hero {
  border-radius: var(--radius-2xl);
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  animation: glow 2.6s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.35); }
  50% { box-shadow: 0 0 28px 4px rgba(5, 150, 105, 0.32); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 700; color: var(--gray-900); }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand span { font-size: 1.125rem; letter-spacing: 0.01em; }

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-desktop a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  font-size: 0.9375rem;
  transition: background-color 0.15s, color 0.15s;
}
.nav-desktop a:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-desktop a[aria-current="page"] { background: var(--emerald-50); color: var(--emerald-600); font-weight: 600; }

.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: var(--radius-lg);
  color: var(--gray-700);
  cursor: pointer;
}
.menu-toggle[aria-expanded="true"] { background: var(--emerald-50); border-color: var(--emerald-200); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-100);
  background: #fff;
  padding: 0.5rem 1rem 1.25rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-lg);
  color: var(--gray-700);
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-50);
}
.mobile-menu a[aria-current="page"] { color: var(--emerald-600); font-weight: 600; background: var(--emerald-50); }
.mobile-menu .btn { width: 100%; margin-top: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
  background: linear-gradient(160deg, #ecfdf5 0%, #f0fdfa 45%, #ffffff 100%);
}
.hero .blob {
  position: absolute;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.3;
  pointer-events: none;
}
.hero .blob--top { top: -6rem; right: -6rem; background: var(--emerald-400); }
.hero .blob--bottom { bottom: -8rem; left: -8rem; background: var(--teal-200); }
.hero-inner { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--emerald-100);
  color: var(--emerald-700);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2.75rem; margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.125rem; color: var(--gray-600); max-width: 32rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.hero-visual {
  border-radius: var(--radius-3xl);
  background: #fff;
  border: 1px solid var(--gray-100);
  box-shadow: 0 24px 48px -24px rgba(17, 24, 39, 0.25);
  padding: 1rem;
}
.hero-visual img { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius-2xl); }

/* ---------- 数据信任条 ---------- */
.stats { background: var(--gray-900); color: #fff; padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center; }
.stat svg { width: 2rem; height: 2rem; color: var(--emerald-400); margin: 0 auto 0.5rem; }
.stat b { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.stat span { color: var(--gray-400); font-size: 0.875rem; }

/* ---------- 卡片 ---------- */
.grid-2, .grid-4 { display: grid; gap: 1.5rem; }
.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-3xl);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--emerald-200); box-shadow: 0 20px 40px -24px rgba(5, 150, 105, 0.35); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--gray-600); margin: 0; font-size: 1rem; }
.icon-box {
  width: 4rem; height: 4rem;
  border-radius: var(--radius-2xl);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
  transition: transform 0.2s;
}
.card:hover .icon-box { transform: scale(1.1); }
.icon-box svg { width: 2rem; height: 2rem; }
.icon-purple { background: linear-gradient(135deg, #a855f7, #ec4899); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.icon-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.icon-emerald { background: linear-gradient(135deg, #10b981, #14b8a6); }

/* ---------- 平台卡 ---------- */
.platform { text-align: center; padding: 1.75rem 1rem; }
.platform svg { width: 3rem; height: 3rem; color: var(--gray-700); margin: 0 auto 1rem; transition: color 0.2s; }
.platform:hover svg { color: var(--emerald-600); }
.platform h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }
.platform .ver { display: block; color: var(--gray-500); font-size: 0.875rem; }
.platform .dl {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--emerald-600);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.card:hover .dl, .platform:focus-within .dl { opacity: 1; }

/* ---------- 文章卡 ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.head-row h2 { font-size: 1.875rem; margin-bottom: 0.35rem; }
.head-row p { color: var(--gray-600); margin: 0; }
.head-row .link-more { display: none; color: var(--emerald-600); font-weight: 600; white-space: nowrap; }

.post-grid { display: grid; gap: 1.5rem; }
.post {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.post:hover { box-shadow: 0 18px 36px -24px rgba(17, 24, 39, 0.35); transform: translateY(-2px); }
.post-cover {
  height: 11rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.post-cover svg { width: 3.5rem; height: 3.5rem; opacity: 0.9; }
.post-cover .cat {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--emerald-500);
  color: #fff;
  font-size: 0.75rem;
  border-radius: var(--radius-lg);
  padding: 0.125rem 0.5rem;
  font-weight: 600;
}
.cover-a { background: linear-gradient(135deg, #059669, #14b8a6); }
.cover-b { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.cover-c { background: linear-gradient(135deg, #f59e0b, #f97316); }
.cover-d { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.cover-e { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.cover-f { background: linear-gradient(135deg, #0f766e, #0284c7); }
.post-body { padding: 1.5rem; }
.post-body h3 { font-size: 1.0625rem; line-height: 1.45; margin-bottom: 0.5rem; transition: color 0.2s; }
.post:hover h3 { color: var(--emerald-600); }
.post-body .excerpt {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-50);
  padding-top: 0.75rem;
}
.post-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }
.post-meta svg { width: 0.875rem; height: 0.875rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 48rem; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.125rem 1.25rem;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
}
.faq-q:hover { background: var(--gray-50); }
.faq-q svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--emerald-600); transition: transform 0.2s; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { padding: 0 1.25rem 1.25rem; color: var(--gray-600); font-size: 0.9375rem; }
.faq-a[hidden] { display: none; }
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer-brand .brand { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--gray-400); font-size: 0.875rem; max-width: 18rem; }
.footer-col h4 { color: #fff; font-size: 0.9375rem; margin-bottom: 0.875rem; }
.footer-col a { display: block; font-size: 0.875rem; padding: 0.25rem 0; color: var(--gray-400); }
.footer-col a:hover { color: var(--emerald-400); }
.copyright {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-800);
  font-size: 0.8125rem;
  color: var(--gray-500);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

/* ---------- 子页面 ---------- */
.page-hero {
  padding: 7rem 0 2.5rem;
  background: linear-gradient(160deg, #ecfdf5, #ffffff);
  border-bottom: 1px solid var(--gray-100);
}
.page-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.page-hero p { color: var(--gray-600); margin: 0; max-width: 44rem; }
.breadcrumb { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--emerald-600); }

.dl-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-2xl); overflow: hidden; font-size: 0.9375rem; }
.dl-table th, .dl-table td { text-align: left; padding: 0.875rem 1rem; border-bottom: 1px solid var(--gray-100); }
.dl-table th { background: var(--gray-50); font-size: 0.8125rem; color: var(--gray-500); font-weight: 600; }
.dl-table tr:last-child td { border-bottom: 0; }
.dl-table a { color: var(--emerald-600); font-weight: 600; }

.article { max-width: 46rem; margin: 0 auto; }
.article h1 { font-size: 1.875rem; }
.article h2 { font-size: 1.375rem; margin-top: 2rem; }
.article h3 { font-size: 1.0625rem; margin-top: 1.25rem; }
.article p, .article li { color: var(--gray-700); font-size: 1.0625rem; }
.article .lead { color: var(--gray-600); font-size: 1.125rem; }
.article-meta { display: flex; gap: 1rem; color: var(--gray-400); font-size: 0.8125rem; margin-bottom: 1.5rem; }
.callout {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  border-radius: var(--radius-2xl);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- 媒体查询（移动优先） ---------- */
@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-head h2, .head-row h2 { font-size: 2.25rem; }
  .hero h1 { font-size: 3.25rem; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .head-row .link-more { display: inline; }
  .page-hero h1 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
  .hero { padding: 9rem 0 6rem; }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero h1 { font-size: 4.25rem; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .stat b { font-size: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
