/*
 * 汽水音乐资料站 · 站点皮肤
 * 深色音乐主题，配色与首屏结构对照 参考/qishui/ 官网快照与旧站 music-theme.css。
 * 与 qishui-theme.css 一起加载：主题变量与卡片/按钮在 theme，版式在本文件。
 */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: var(--music-bg-dark, #0a0a0f);
  color: #fff;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--music-gradient-primary, #667eea);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow { max-width: 860px; }

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
}

.site-header__logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.site-header__logo img { height: 24px; width: auto; }

.site-header__nav { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.5rem; }

.site-header__nav a {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.site-header__nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-header__nav a[aria-current='page'] { color: #fff; background: rgba(102, 126, 234, 0.18); }

.site-header__right { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; flex-shrink: 0; }

.site-header__lang { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }
.site-header__lang a { color: rgba(255, 255, 255, 0.55); }
.site-header__lang a:hover { color: #fff; }
.site-header__lang .is-active { color: #fff; font-weight: 600; }

.site-header__cta {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  background: var(--music-gradient-primary, linear-gradient(135deg, #667eea, #764ba2));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.32);
}
.site-header__cta:hover { transform: translateY(-1px); }

@media (max-width: 900px) {
  .site-header__inner { height: 56px; padding: 0 1rem; overflow-x: auto; }
  .site-header__nav a { padding: 0.4rem 0.55rem; font-size: 0.82rem; }
  .site-header__lang { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--music-bg-darker, #05050a);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.site-footer h2 {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.55); }
.site-footer a:hover { color: #fff; }

.site-footer__brand img { height: 26px; margin-bottom: 0.9rem; }
.site-footer__brand p { line-height: 1.75; color: rgba(255, 255, 255, 0.45); }

.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.8;
}

@media (max-width: 860px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero（对照官网快照结构） ---------- */

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3rem 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/background.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 10, 0.82) 0%, rgba(5, 5, 10, 0.45) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero__copy { width: 420px; flex-shrink: 0; }
.hero__logo { width: 260px; margin-bottom: 1rem; }
.hero__title { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; line-height: 1.25; margin-bottom: 0.85rem; }
.hero__lead { color: rgba(255, 255, 255, 0.72); line-height: 1.8; margin-bottom: 1.5rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero__preview { flex: 1; position: relative; display: flex; justify-content: flex-end; }
.hero__preview-mac { width: 100%; border-radius: 12px; }
.hero__preview-phone { position: absolute; width: 21%; right: 0; bottom: -12px; }

@media (max-width: 900px) {
  .hero__inner { flex-direction: column; }
  .hero__copy { width: 100%; }
  .hero__preview { width: 100%; }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--music-gradient-primary, linear-gradient(135deg, #667eea, #764ba2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(102, 126, 234, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(102, 126, 234, 0.5); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--block { width: 100%; }

/* ---------- Section ---------- */

.section { padding: 4.5rem 0; }
.section--dark { background: var(--music-bg-darker, #05050a); }

.section__head { max-width: 680px; margin: 0 auto 2.75rem; text-align: center; }
.section__head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; margin-bottom: 0.75rem; }
.section__head p { color: rgba(255, 255, 255, 0.6); line-height: 1.8; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3rem 0; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--music-bg-card, #121218);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.6rem;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(102, 126, 234, 0.45); transform: translateY(-4px); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.55rem; color: #fff; }
.card p { color: rgba(255, 255, 255, 0.6); line-height: 1.75; font-size: 0.9rem; }
.card__icon { width: 40px; height: 40px; margin-bottom: 1rem; opacity: 0.9; }

/* ---------- 下载平台卡 ---------- */

.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 2rem 0; }
@media (max-width: 700px) { .platform-grid { grid-template-columns: 1fr; } }

.platform {
  background: var(--music-bg-card, #121218);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.platform__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.platform__head img { width: 32px; height: 32px; }
.platform__head h3 { font-size: 1.15rem; }
.platform__spec { list-style: none; margin-bottom: 1.25rem; }
.platform__spec li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}
.platform__spec li span:last-child { color: #fff; text-align: right; }
.platform__note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); margin-bottom: 1.1rem; line-height: 1.7; }
.platform .btn { margin-top: auto; }

/* ---------- 文章版式 ---------- */

.page-head { padding: 2.5rem 0 1rem; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 780; line-height: 1.3; margin-bottom: 0.75rem; }
.page-head p { color: rgba(255, 255, 255, 0.62); line-height: 1.85; max-width: 760px; }
.page-head .meta { font-size: 0.82rem; color: rgba(255, 255, 255, 0.42); margin-top: 0.6rem; }

.breadcrumb { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); padding: 1.25rem 0 0; }
.breadcrumb a { color: rgba(255, 255, 255, 0.55); }
.breadcrumb a:hover { color: #fff; }

.prose { max-width: 760px; padding-bottom: 2rem; color: rgba(255, 255, 255, 0.72); line-height: 1.9; }
.prose h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.prose h3 { font-size: 1.08rem; margin: 1.6rem 0 0.6rem; color: var(--music-primary-light, #8b9ef7); }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0.75rem 0 1.25rem 1.35rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4rem 0; }
.prose a { color: var(--music-primary-light, #8b9ef7); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; }
.prose code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
}
.prose blockquote.geo-answer {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: rgba(102, 126, 234, 0.12);
  border-left: 3px solid var(--music-primary, #667eea);
  border-radius: 0 10px 10px 0;
  color: #fff;
}
.prose blockquote.geo-answer p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 0.7rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.1); text-align: left; }
th { background: rgba(255, 255, 255, 0.05); color: #fff; font-weight: 650; }
td { color: rgba(255, 255, 255, 0.68); }

.notice {
  background: rgba(245, 87, 108, 0.1);
  border: 1px solid rgba(245, 87, 108, 0.3);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-size: 0.9rem;
}
.notice--info { background: rgba(102, 126, 234, 0.1); border-color: rgba(102, 126, 234, 0.32); }
.notice h3 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }

/* ---------- FAQ ---------- */

.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--music-bg-card, #121218);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq details[open] { border-color: rgba(102, 126, 234, 0.5); }
.faq summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: rgba(255, 255, 255, 0.4); }
.faq details[open] summary::after { content: '−'; }
.faq p { padding: 0 1.25rem 1.15rem; color: rgba(255, 255, 255, 0.62); line-height: 1.8; margin: 0; }

/* ---------- 列表页 ---------- */

.post-list { display: grid; gap: 1rem; padding-bottom: 1rem; list-style: none; }
.post-list li {
  background: var(--music-bg-card, #121218);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}
.post-list li:hover { border-color: rgba(102, 126, 234, 0.45); transform: translateY(-3px); }
.post-list h2, .post-list h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.post-list a { color: #fff; }
.post-list p { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; line-height: 1.75; }
.post-list .meta { font-size: 0.78rem; color: rgba(255, 255, 255, 0.38); margin-top: 0.6rem; }

/* ---------- 文末模块 ---------- */

.related {
  max-width: 760px;
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--music-primary, #667eea);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.related a { color: var(--music-primary-light, #8b9ef7); font-weight: 600; }

.cta-box {
  max-width: 760px;
  margin: 2.5rem 0;
  padding: 2rem;
  text-align: center;
  background: var(--music-bg-card, #121218);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.cta-box h2 { font-size: 1.2rem; margin-bottom: 0.6rem; border: 0; padding: 0; }
.cta-box p { color: rgba(255, 255, 255, 0.6); margin-bottom: 1.25rem; }

.author-box {
  max-width: 760px;
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
