/* 洛雪音乐仿站样式 | 清新绿色主题 + 玻璃拟态导航 */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f8f6;
  --surface: rgba(0, 0, 0, .025);
  --surface-hover: rgba(0, 0, 0, .05);
  --surface-active: rgba(0, 0, 0, .08);
  --border: rgba(0, 0, 0, .1);
  --border-hover: rgba(0, 0, 0, .18);
  --border-active: rgba(77, 175, 124, .45);
  --text: #1f2d27;
  --text-sec: #54645c;
  --text-muted: #8a988f;
  --accent: #4daf7c;
  --accent-hover: #3d9168;
  --accent-light: rgba(77, 175, 124, .1);
  --purple: #818cf8;
  --blue: #60a5fa;
  --orange: #fb923c;
  --pink: #f472b6;
  --green: #34d399;
  --container: 1140px;
  --header-h: 64px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --t-fast: .15s ease;
  --t-base: .25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1200px 700px at 50% -150px, rgba(77, 175, 124, .1) 0%, transparent 60%),
    radial-gradient(ellipse 900px 500px at 85% 20vh, rgba(129, 140, 248, .06) 0%, transparent 55%),
    radial-gradient(ellipse 900px 500px at 15% 80vh, rgba(77, 175, 124, .05) 0%, transparent 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
code, pre { font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace; font-size: .9em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== 头部导航 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.header-inner {
  max-width: var(--container); height: 100%;
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; flex-shrink: 0; display: block; }
.logo-text { letter-spacing: -.02em; }
.logo-text span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-sec); font-size: .9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: all var(--t-fast); white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--surface-hover); }
.main-nav a.active { color: var(--accent); background: var(--accent-light); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.btn-gh {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-sec); font-size: .85rem; font-weight: 500;
  transition: all var(--t-fast);
}
.btn-gh:hover { border-color: var(--border-hover); color: var(--text); background: var(--surface-hover); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t-base); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 主体 ===== */
main { padding-top: var(--header-h); }
section { padding: 64px 0; }
.section-title { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.section-desc { color: var(--text-sec); font-size: 1rem; margin-bottom: 40px; }
.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; max-width: 600px; }

/* ===== Hero ===== */
.hero { padding: 80px 0 64px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--accent-light);
  border: 1px solid rgba(77, 175, 124, .25);
  border-radius: 100px; font-size: .8rem;
  color: var(--accent); font-weight: 500; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 16px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--text); font-weight: 500; margin-bottom: 12px; }
.hero-desc { font-size: 1rem; color: var(--text-sec); max-width: 580px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .stat-num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.hero-stat .stat-label { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* ===== 界面截图 ===== */
.showcase { padding: 24px 0 0; text-align: center; }
.showcase-img {
  max-width: 960px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 14px;
  box-shadow: 0 24px 60px -24px rgba(31, 45, 39, .18);
}
.showcase-img img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: all var(--t-base); border: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; box-shadow: 0 4px 20px rgba(77, 175, 124, .25);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 28px rgba(77, 175, 124, .35); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-hover); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-sec); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-hover); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ===== 卡片 ===== */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--t-base);
}
.card:hover { background: var(--surface-hover); border-color: var(--border-hover); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 1.4rem; margin-bottom: 18px;
}
.card-icon.teal { background: rgba(77, 175, 124, .12); color: var(--accent); }
.card-icon.purple { background: rgba(129, 140, 248, .12); color: var(--purple); }
.card-icon.blue { background: rgba(96, 165, 250, .12); color: var(--blue); }
.card-icon.orange { background: rgba(251, 146, 60, .12); color: var(--orange); }
.card-icon.pink { background: rgba(244, 114, 182, .12); color: var(--pink); }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-sec); font-size: .92rem; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.platform-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px 20px; }
.platform-card i { font-size: 2.2rem; }
.platform-card .platform-name { font-size: 1rem; font-weight: 600; }
.platform-card .platform-desc { font-size: .82rem; color: var(--text-muted); }

/* ===== 开源横幅 ===== */
.os-banner {
  background: linear-gradient(135deg, rgba(77, 175, 124, .06), rgba(129, 140, 248, .06));
  border: 1px solid rgba(77, 175, 124, .15);
  border-radius: var(--radius-xl); padding: 48px; text-align: center;
}
.os-banner h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.os-banner p { color: var(--text-sec); max-width: 520px; margin: 0 auto 28px; }

/* ===== 面包屑 ===== */
.breadcrumb { padding: 20px 0; font-size: .85rem; }
.breadcrumb ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--text-muted); margin-left: 4px; }
.breadcrumb a { color: var(--text-sec); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--text); }

/* ===== 文章页 ===== */
.page-title { padding: 32px 0 8px; }
.page-title h1 { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.page-title p { color: var(--text-sec); margin-top: 8px; }
.article { max-width: 800px; margin: 0 auto 64px; }
.article-body h2 { font-size: 1.4rem; font-weight: 600; margin: 36px 0 14px; letter-spacing: -.01em; }
.article-body h3 { font-size: 1.15rem; font-weight: 600; margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: var(--text-sec); line-height: 1.8; }
.article-body p strong { color: var(--text); }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; color: var(--text-sec); }
.article-body ul li { margin-bottom: 8px; line-height: 1.7; list-style: disc; }
.article-body ol li { margin-bottom: 8px; line-height: 1.7; list-style: decimal; }
.article-body code { background: var(--surface-active); padding: 2px 7px; border-radius: 5px; font-size: .85em; color: var(--accent); }

/* 提示块 */
.callout {
  padding: 16px 20px; border-radius: var(--radius); margin: 20px 0;
  font-size: .9rem; display: flex; gap: 12px; align-items: flex-start;
}
.callout i { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.callout p { margin-bottom: 0; color: var(--text); line-height: 1.7; }
.callout-info { background: rgba(96, 165, 250, .08); border: 1px solid rgba(96, 165, 250, .2); }
.callout-info i { color: var(--blue); }
.callout-warning { background: rgba(251, 146, 60, .08); border: 1px solid rgba(251, 146, 60, .2); }
.callout-warning i { color: var(--orange); }
.callout-tip { background: rgba(77, 175, 124, .08); border: 1px solid rgba(77, 175, 124, .2); }
.callout-tip i { color: var(--accent); }

/* ===== 文档卡片 ===== */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.doc-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.doc-card .doc-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.doc-card .doc-card-head i { font-size: 1.3rem; }
.doc-card h3 { margin-bottom: 4px; }
.doc-card .doc-card-desc { font-size: .88rem; color: var(--text-sec); margin-bottom: 12px; }
.doc-card .doc-card-link { margin-top: auto; font-size: .85rem; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.doc-card:hover .doc-card-link i { transform: translateX(3px); }
.doc-card .doc-card-link i { transition: transform var(--t-base); }

/* ===== 下载页 ===== */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.download-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.download-card .dl-head { display: flex; align-items: center; gap: 14px; }
.download-card .dl-head i { font-size: 2rem; }
.download-card .dl-head h3 { margin-bottom: 2px; }
.download-card .dl-head .dl-sub { font-size: .82rem; color: var(--text-muted); }
.dl-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(0, 0, 0, .03);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--t-base); color: var(--text);
}
.dl-option:hover { border-color: var(--accent); background: var(--accent-light); color: var(--text); }
.dl-option i { color: var(--accent); font-size: 1.1rem; transition: transform var(--t-base); }
a.dl-option:hover i { transform: translateY(2px); }
.dl-option .dl-opt-info { display: flex; flex-direction: column; gap: 2px; }
.dl-option .dl-opt-name { font-size: .9rem; font-weight: 500; }
.dl-option .dl-opt-desc { font-size: .78rem; color: var(--text-muted); }
.dl-note {
  background: rgba(77, 175, 124, .05); border: 1px solid rgba(77, 175, 124, .18);
  border-radius: var(--radius); padding: 16px 20px;
  font-size: .88rem; color: var(--text-sec); line-height: 1.7;
  max-width: 800px; margin: 32px auto 0;
}
.dl-note strong { color: var(--text); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item[open] { border-color: var(--border-active); }
.faq-item summary {
  padding: 18px 22px; font-size: .98rem; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none; transition: background var(--t-fast);
}
.faq-item summary:hover { background: var(--surface-hover); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-q { flex: 1; }
.faq-item summary .faq-icon {
  font-size: 1.2rem; color: var(--text-muted);
  transition: transform var(--t-base); flex-shrink: 0;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer { padding: 0 22px 20px; color: var(--text-sec); font-size: .92rem; line-height: 1.8; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ol, .faq-answer ul { margin: 0 0 10px 20px; }
.faq-answer ol li { list-style: decimal; margin-bottom: 6px; }
.faq-answer code { background: var(--surface-active); padding: 2px 7px; border-radius: 5px; font-size: .85em; color: var(--accent); }

/* ===== 更新日志 ===== */
.changelog-list { max-width: 760px; margin: 0 auto; }
.changelog-item { padding: 28px 0; border-bottom: 1px solid var(--border); }
.changelog-item:last-child { border-bottom: none; }
.changelog-version { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.changelog-version .ver-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; background: var(--accent-light);
  border: 1px solid rgba(77, 175, 124, .25);
  border-radius: 100px; font-size: .82rem; font-weight: 600; color: var(--accent);
}
.changelog-version .ver-date { font-size: .82rem; color: var(--text-muted); }
.changelog-section { margin-bottom: 12px; }
.changelog-section h4 { font-size: .85rem; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.changelog-section h4 .badge-new { background: rgba(52, 211, 153, .12); color: var(--green); padding: 1px 8px; border-radius: 4px; font-size: .72rem; }
.changelog-section h4 .badge-fix { background: rgba(251, 146, 60, .12); color: var(--orange); padding: 1px 8px; border-radius: 4px; font-size: .72rem; }
.changelog-section h4 .badge-opt { background: rgba(96, 165, 250, .12); color: var(--blue); padding: 1px 8px; border-radius: 4px; font-size: .72rem; }
.changelog-section ul { margin-left: 20px; color: var(--text-sec); font-size: .9rem; }
.changelog-section ul li { list-style: disc; margin-bottom: 4px; line-height: 1.6; }

/* ===== 页脚 ===== */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: .85rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .85rem; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }
.footer-copyright {
  font-size: .78rem; color: var(--text-muted); max-width: 700px;
  line-height: 1.6; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}

/* ===== 二维码 ===== */
.qr-box {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: rgba(0, 0, 0, .03);
  border: 1px solid var(--border); border-radius: var(--radius);
}
#android-qr {
  flex-shrink: 0; line-height: 0;
  background: #fff; padding: 8px; border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
/* 生成 192px、显示 96px，保证清晰；两条规则都写以防库只渲染其中一种 */
#android-qr canvas, #android-qr img {
  width: 96px; height: 96px; display: block; margin: 0; padding: 0;
}
.qr-info { display: flex; flex-direction: column; gap: 2px; }
.qr-info .qr-title { font-size: .88rem; font-weight: 600; color: var(--text); }
.qr-info .qr-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 480px) {
  .qr-box { gap: 12px; padding: 12px; }
  #android-qr { padding: 6px; }
  #android-qr canvas, #android-qr img { width: 80px; height: 80px; }
}

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--surface); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-sec); font-size: 1.1rem;
  transition: all var(--t-base); opacity: 0; visibility: hidden; z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--accent-light); border-color: var(--border-active);
  color: var(--accent); transform: translateY(-3px);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .main-nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px); padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 14px; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 48px 0 40px; }
  section { padding: 48px 0; }
  .section-title { font-size: 1.4rem; }
  .os-banner { padding: 32px 20px; }
  .os-banner h2 { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stats { gap: 32px; }
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .download-card { padding: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
