/* ============================================================
   QueMusic 官网样式 · Aurora / Liquid Glass / MIUIX
   多色系：薄荷绿 · 珊瑚橘 · 天空蓝 · 淡紫点缀
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --font-sans: "Poppins", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --bg: #f6f7f3;
  --fg: #1b1c22;
  --muted: #5b5e6b;
  --faint: #9094a3;
  --glass: rgba(255, 255, 255, .74);
  --glass-2: rgba(255, 255, 255, .55);
  --stroke: rgba(24, 28, 38, .10);
  --stroke-2: rgba(24, 28, 38, .06);
  --hl: rgba(255, 255, 255, .9);
  --hover: rgba(24, 28, 38, .07);      /* 悬浮态底色（明显变灰） */

  /* 多色系 */
  --mint: #0fa883;          /* 主强调：薄荷绿 */
  --mint-soft: rgba(15, 168, 131, .12);
  --coral: #ff7a59;         /* CTA：珊瑚橘 */
  --peach: #ffb347;
  --sky: #3f9ef5;
  --sky-soft: rgba(63, 158, 245, .12);
  --lilac: #a78bfa;
  --amber: #e8a13a;
  --ok: #2fa876;
  --danger: #e05666;

  --grad: linear-gradient(115deg, #17b78e, #3f9ef5 52%, #b48cf5);      /* 极光 */
  --grad-cta: linear-gradient(135deg, #ff8a5b, #ff5d82);               /* 落日珊瑚 */
  --grad-mint: linear-gradient(135deg, #16bd92, #0e9c9a);
  --grad-sky: linear-gradient(135deg, #4fb0f5, #6f8df8);
  --grad-lilac: linear-gradient(135deg, #b48cf5, #e574c5);
  --grad-sun: linear-gradient(135deg, #ffb347, #ff7a59);

  --shadow-1: 0 1px 2px rgba(30, 30, 50, .05), 0 8px 28px -8px rgba(30, 30, 50, .12);
  --shadow-2: 0 2px 6px rgba(30, 30, 50, .06), 0 20px 50px -14px rgba(30, 30, 50, .2);
  --shadow-cta: 0 8px 26px -6px rgba(255, 110, 105, .5);

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --wrap: 1120px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a0c10;
  --fg: #f1f2f6;
  --muted: #a4a8b8;
  --faint: #6e7383;
  --glass: rgba(22, 26, 36, .74);
  --glass-2: rgba(22, 26, 36, .55);
  --stroke: rgba(255, 255, 255, .1);
  --stroke-2: rgba(255, 255, 255, .06);
  --hl: rgba(255, 255, 255, .16);
  --hover: rgba(255, 255, 255, .10);
  --mint: #2ecfa6;
  --mint-soft: rgba(46, 207, 166, .14);
  --sky: #5cb2f8;
  --sky-soft: rgba(92, 178, 248, .14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -10px rgba(0, 0, 0, .55);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .45), 0 26px 60px -16px rgba(0, 0, 0, .65);
  --shadow-cta: 0 8px 30px -6px rgba(255, 110, 105, .4);
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
::selection { background: rgba(23, 183, 142, .25); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap-narrow { width: min(840px, calc(100% - 2.5rem)); margin-inline: auto; }

/* ---------- Aurora 极光背景（静态渐变，零滤镜开销） ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(54vw 48vh at 5% -6%, rgba(23, 183, 142, .30), transparent 62%),
    radial-gradient(48vw 46vh at 103% 38%, rgba(255, 138, 91, .22), transparent 64%),
    radial-gradient(60vw 46vh at 12% 102%, rgba(180, 140, 245, .24), transparent 66%);
}
[data-theme="dark"] .aurora {
  background:
    radial-gradient(54vw 48vh at 5% -6%, rgba(23, 183, 142, .20), transparent 62%),
    radial-gradient(48vw 46vh at 103% 38%, rgba(255, 122, 89, .14), transparent 64%),
    radial-gradient(60vw 46vh at 12% 102%, rgba(180, 140, 245, .16), transparent 66%);
}

/* ---------- 卡片（无滤镜，低配设备友好） ---------- */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1), inset 0 1px 0 var(--hl);
  transition: transform .3s cubic-bezier(.2, .8, .25, 1), box-shadow .3s ease, border-color .3s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0 12% auto 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hl), transparent);
  pointer-events: none;
}
.card:hover { border-color: rgba(23, 183, 142, .3); box-shadow: var(--shadow-2), inset 0 1px 0 var(--hl); }

/* ---------- 通用小组件 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .85em; border-radius: 999px;
  font-size: .8rem; font-weight: 500;
  background: var(--glass-2); border: 1px solid var(--stroke); color: var(--muted);
  white-space: nowrap;
}
.chip--mono { font-family: var(--font-mono); font-size: .74rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px rgba(23, 183, 142, .8);
}

.g {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 按钮（MIUIX 胶囊风格） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.7em; border-radius: 999px;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .8, .25, 1), box-shadow .25s ease, background .25s ease, border-color .25s ease;
  -webkit-user-select: none; user-select: none;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:active { transform: scale(.96); }

.btn-primary {
  background: var(--grad-cta); color: #fff;
  box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(255, 110, 105, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }

.btn-mint {
  background: var(--grad-mint); color: #fff;
  box-shadow: 0 8px 26px -6px rgba(20, 170, 145, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-mint:hover { transform: translateY(-2px); }

.btn-ghost {
  background: var(--glass-2); color: var(--fg);
  border-color: var(--stroke);
  box-shadow: inset 0 1px 0 var(--hl);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(23, 183, 142, .45); background: var(--glass); }

.btn-soft {
  background: var(--mint-soft); color: var(--mint);
  border-color: rgba(23, 183, 142, .25);
}
.btn-soft:hover { transform: translateY(-2px); background: rgba(15, 168, 131, .18); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; flex: none;
  background: var(--glass-2); border: 1px solid var(--stroke); color: var(--fg);
  cursor: pointer; transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { transform: translateY(-1px); border-color: rgba(23, 183, 142, .45); }
.icon-btn:active { transform: scale(.92); }

/* ---------- 顶栏：顶部圆角悬浮条 → 滚动后直角融合 ----------
   外层始终全宽居中（无位移跳变），玻璃样式在内层，
   仅动画 width / border-radius / background，过渡平滑无闪现 */
.nav {
  position: fixed; z-index: 100;
  top: 12px; left: 0; right: 0;
  display: flex; justify-content: center;
  pointer-events: none;
  transition: top .45s cubic-bezier(.3, .9, .3, 1);
}
.nav-inner {
  pointer-events: auto;
  width: calc(100% - 24px);
  display: flex; align-items: center; gap: 1.2rem;
  height: 60px; padding: 0 1.15rem;
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-1), inset 0 1px 0 var(--hl);
  transition:
    width .45s cubic-bezier(.3, .9, .3, 1),
    border-radius .45s cubic-bezier(.3, .9, .3, 1),
    background .45s ease, box-shadow .45s ease, border-color .45s ease;
}
.nav.scrolled { top: 0; }
.nav.scrolled .nav-inner,
.nav--flat .nav-inner {
  width: 100%; border-radius: 0;
  border-left: 0; border-right: 0; border-top: 0;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  box-shadow: 0 1px 0 var(--stroke), 0 10px 30px -18px rgba(10, 10, 40, .25);
}
.nav--flat { top: 0; }
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav.scrolled .nav-inner, .nav--flat .nav-inner { background: var(--glass); }
}

.brand { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.brand-img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; box-shadow: 0 3px 10px -2px rgba(23, 183, 142, .5); }
.brand-txt { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }

.nav-links { display: flex; align-items: center; gap: .25rem; margin-inline: auto; }
.nav-link {
  position: relative; padding: .42em .95em; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--fg); background: var(--hover); }
/* 当前所在页面：文字加粗 + 底部横条指示 */
.nav-link.active { color: var(--fg); font-weight: 700; background: var(--mint-soft); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 8px rgba(23, 183, 142, .6);
}

.nav-actions { display: flex; align-items: center; gap: .55rem; flex: none; }
.btn-nav {
  display: inline-flex; align-items: center; gap: .5em;
  height: 38px; padding: 0 1.1em; border-radius: 999px;
  font-size: .86rem; font-weight: 600;
  background: var(--glass-2); border: 1px solid var(--stroke); color: var(--fg);
  transition: transform .25s ease, border-color .25s ease, color .25s ease;
}
.btn-nav svg { width: 16px; height: 16px; }
.btn-nav:hover { transform: translateY(-1px); border-color: rgba(23, 183, 142, .45); color: var(--mint); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; padding: 0 8px;
  background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 999px; cursor: pointer;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .3s ease, opacity .3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 移动端抽屉 ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 110; opacity: 0; pointer-events: none;
  background: rgba(8, 10, 16, .45);
  transition: opacity .3s ease;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 115; top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw); padding: 5.2rem 1.4rem 1.4rem;
  display: flex; flex-direction: column; gap: .2rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  border-left: 1px solid var(--stroke);
  transform: translateX(105%); transition: transform .38s cubic-bezier(.3, .9, .3, 1);
  overflow-y: auto;
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .drawer { background: var(--bg); } }
.drawer.open { transform: none; }
.drawer > a { padding: .8em 1em; border-radius: 14px; font-size: .98rem; font-weight: 500; color: var(--fg); transition: background .25s ease; }
.drawer > a:hover, .drawer > a.active { background: var(--mint-soft); }
.drawer-foot { margin-top: auto; padding-top: 1.2rem; display: flex; gap: .6rem; align-items: center; }

/* ---------- 返回顶部 / Toast ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 95;
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--stroke); color: var(--fg);
  cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .3s ease;
  box-shadow: var(--shadow-1), inset 0 1px 0 var(--hl);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(23, 183, 142, .5); }

.toast {
  position: fixed; left: 50%; bottom: 2rem; z-index: 130;
  transform: translate(-50%, 16px);
  padding: .7em 1.3em; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: .88rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: var(--shadow-2);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 首页 Hero（极简 · 大标题） ---------- */
.hero { position: relative; padding: 11rem 0 4rem; overflow: clip; }
.hero-inner { position: relative; text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero-title {
  margin-top: 1.4rem;
  font-size: clamp(2.7rem, 7.5vw, 5rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.12;
}
.hero-beta {
  font-size: .34em; font-weight: 800;
  letter-spacing: .02em;
  margin-left: .22em; vertical-align: super;
}
.hero-desc {
  max-width: 560px; margin: 1.4rem auto 0;
  color: var(--muted); font-size: 1.06rem;
}
.hero-desc strong { color: var(--fg); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.2rem; }

/* Hero 双栏：左文案 + 右猫娘立绘 */
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem; align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy .hero-desc { margin-inline: 0; }
.hero-copy .hero-cta { justify-content: flex-start; }

.neko-wrap { position: relative; justify-self: center; }
.neko-card {
  margin: 0; width: min(280px, 100%);
  animation: nekoFloat 6s ease-in-out infinite;
}
.neko-card picture { display: block; }
.neko-card img { width: 100%; height: auto; display: block; }
@keyframes nekoFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(.6deg); } }

.showcase { position: relative; margin-top: 4rem; }
.showcase-glow {
  position: absolute; inset: 8% -6% -8% -6%; z-index: 0;
  background: radial-gradient(60% 70% at 50% 55%, rgba(23, 183, 142, .30), rgba(180, 140, 245, .18) 55%, transparent 78%);
}
.win {
  position: relative; z-index: 1;
  border-radius: 22px; overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2), inset 0 1px 0 var(--hl);
}
.win-bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.1rem; border-bottom: 1px solid var(--stroke-2); }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; }
.win-dots i:nth-child(1) { background: #ff5f57; }
.win-dots i:nth-child(2) { background: #febc2e; }
.win-dots i:nth-child(3) { background: #28c840; }
.win-title { font-size: .82rem; color: var(--faint); }
.win-eq { margin-left: auto; display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.win-eq i { width: 3px; border-radius: 2px; background: var(--mint); opacity: .8; animation: eq 1s ease-in-out infinite; }
.win-eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.win-eq i:nth-child(2) { height: 100%; animation-delay: .18s; }
.win-eq i:nth-child(3) { height: 45%; animation-delay: .36s; }
.win-eq i:nth-child(4) { height: 80%; animation-delay: .54s; }
@keyframes eq { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.win-body { position: relative; }
.win-body img { width: 100%; height: auto; }
.win-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, transparent 28%); }

/* ---------- 通用 Section ---------- */
/* content-visibility: 首屏之外的板块延迟渲染，低配设备滚动更顺滑 */
.section {
  padding: 5.5rem 0; scroll-margin-top: 90px;
  content-visibility: auto; contain-intrinsic-size: auto 780px;
}
.section--tight { padding: 3.2rem 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.sec-title { margin-top: 1rem; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.sec-sub { margin-top: 1rem; color: var(--muted); font-size: 1rem; }

/* ---------- 特性 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feat { padding: 1.6rem; display: flex; flex-direction: column; }
.feat h3 { margin-top: 1.1rem; font-size: 1.12rem; font-weight: 700; }
.feat p { margin-top: .6rem; color: var(--muted); font-size: .92rem; flex: 1; }
.feat-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.feat-tags .chip { font-size: .72rem; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 15px; flex: none;
  color: #fff;
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.icon-badge svg { width: 22px; height: 22px; }
.tone-mint  { background: var(--grad-mint);  box-shadow: 0 8px 22px -8px rgba(20, 170, 145, .55); }
.tone-coral { background: var(--grad-cta);   box-shadow: 0 8px 22px -8px rgba(255, 110, 105, .55); }
.tone-sky   { background: var(--grad-sky);   box-shadow: 0 8px 22px -8px rgba(80, 140, 245, .55); }
.tone-lilac { background: var(--grad-lilac); box-shadow: 0 8px 22px -8px rgba(170, 120, 235, .55); }
.tone-sun   { background: var(--grad-sun);   box-shadow: 0 8px 22px -8px rgba(255, 160, 70, .55); }

.feat-hero-card { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; padding: 0; }
.fhc-media { position: relative; min-height: 260px; }
.fhc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fhc-body { padding: 2.2rem; }
.fhc-body h3 { font-size: 1.35rem; font-weight: 700; }

/* ---------- 截图画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.shot {
  position: relative; padding: 0; border: 1px solid var(--stroke); cursor: zoom-in;
  border-radius: var(--r-lg); overflow: hidden; background: var(--glass);
  box-shadow: var(--shadow-1), inset 0 1px 0 var(--hl);
  transition: transform .35s cubic-bezier(.2, .8, .25, 1), box-shadow .35s ease, border-color .35s ease;
}
.shot:hover { transform: translateY(-4px); border-color: rgba(23, 183, 142, .4); box-shadow: var(--shadow-2), inset 0 1px 0 var(--hl); }
.shot img { width: 100%; height: auto; }
.shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 1.1rem .8rem;
  background: linear-gradient(transparent, rgba(8, 10, 16, .55));
  color: #fff; font-size: .88rem;
}
.shot-cap i {
  display: inline-flex; width: 30px; height: 30px; border-radius: 999px;
  align-items: center; justify-content: center;
}
.shot-cap svg { width: 15px; height: 15px; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 8, 14, .82);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.on { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 82vh; border-radius: 14px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8); }
.lb-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-close svg { width: 18px; height: 18px; }
.lb-cap { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .85); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .9rem; }
.faq { border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem; text-align: left;
  background: none; border: 0; color: var(--fg);
  font-size: .98rem; font-weight: 600; cursor: pointer;
}
.faq-q .ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--mint-soft); color: var(--mint);
  transition: transform .3s ease;
}
.faq-q .ic svg { width: 14px; height: 14px; }
.faq.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.3, .9, .3, 1); }
.faq-a > div { overflow: hidden; }
.faq.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 1.3rem 1.15rem; color: var(--muted); font-size: .93rem; }
.faq-a code, .log-inner code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--mint-soft); color: var(--mint);
  padding: .1em .4em; border-radius: 6px;
}

/* ---------- 社区 CTA ---------- */
.community { position: relative; overflow: hidden; padding: 3.6rem 2.4rem; text-align: center; }
.community h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
.community p { margin-top: .9rem; color: var(--muted); max-width: 520px; margin-inline: auto; }
.community-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .9rem; margin-top: 2rem; }
.community-logo { width: 64px; height: 64px; margin: 0 auto 1.4rem; border-radius: 18px; box-shadow: var(--shadow-1); }
.qq-pill {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .7em 1.3em; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--stroke);
  font-size: .95rem; font-weight: 500;
}
.qq-pill b { font-family: var(--font-mono); }
.qq-pill button {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .8em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--mint-soft); color: var(--mint); font-size: .8rem; font-weight: 600;
  transition: transform .2s ease;
}
.qq-pill button:active { transform: scale(.94); }
.qq-pill button.done { background: rgba(47, 168, 118, .16); color: var(--ok); }

/* ---------- 子页面 Hero ---------- */
.page-hero { position: relative; padding: 9.5rem 0 2.5rem; overflow: clip; }
.page-title { margin-top: 1.2rem; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-desc { margin-top: 1.1rem; max-width: 600px; color: var(--muted); font-size: 1.02rem; }
.breadcrumb { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--faint); }
.breadcrumb a:hover { color: var(--mint); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: var(--muted); }

/* ---------- 下载页：下载方式卡片 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.dl-card { padding: 1.8rem; display: flex; flex-direction: column; }
.dl-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 16px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.dl-icon svg { width: 24px; height: 24px; }
.dl-card h3 { margin-top: 1.15rem; font-size: 1.15rem; font-weight: 700; }
.dl-card .dl-desc { margin-top: .55rem; color: var(--muted); font-size: .92rem; flex: 1; }
.dl-card .btn { margin-top: 1.4rem; width: 100%; }
.dl-badge {
  position: absolute; top: 1.3rem; right: 1.3rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  padding: .28em .8em; border-radius: 999px;
  background: var(--grad-cta); color: #fff;
}

.code-row {
  display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem;
  padding: .65rem 1rem; border-radius: 14px;
  background: var(--glass-2); border: 1px dashed var(--stroke);
  font-size: .88rem;
}
.code-row .pan-big { font-family: var(--font-mono); font-weight: 600; color: var(--mint); letter-spacing: .05em; }
.copy-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: .4em;
  padding: .32em .85em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--mint-soft); color: var(--mint); font-size: .78rem; font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn:active { transform: scale(.94); }
.copy-btn.done { background: rgba(47, 168, 118, .16); color: var(--ok); }

/* ---------- 提示条 ---------- */
.alert {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1.05rem 1.3rem; border-radius: var(--r-md);
  font-size: .92rem; line-height: 1.7;
  border: 1px solid var(--stroke);
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: .2rem; }
.alert a { color: var(--mint); font-weight: 600; }
.alert--warn { background: rgba(232, 161, 58, .1); border-color: rgba(232, 161, 58, .3); }
.alert--warn svg, .alert--warn b { color: var(--amber); }
.alert--info { background: var(--sky-soft); border-color: rgba(63, 158, 245, .28); }
.alert--info svg, .alert--info b { color: var(--sky); }
.alert--ok { background: var(--mint-soft); border-color: rgba(23, 183, 142, .3); }
.alert--ok svg, .alert--ok b { color: var(--mint); }
.alert--danger { background: rgba(224, 86, 102, .08); border-color: rgba(224, 86, 102, .28); }
.alert--danger svg, .alert--danger b { color: var(--danger); }

/* ---------- 更新日志（手风琴时间线） ---------- */
.log-list { display: flex; flex-direction: column; gap: .9rem; }
.log { border-radius: var(--r-md); overflow: hidden; }
.log-head {
  width: 100%; display: flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.3rem; text-align: left;
  background: none; border: 0; color: var(--fg); cursor: pointer;
}
.log-ver { font-family: var(--font-mono); font-weight: 700; font-size: .98rem; }
.log-tag {
  font-size: .7rem; font-weight: 600; padding: .22em .7em; border-radius: 999px;
  background: var(--mint-soft); color: var(--mint); letter-spacing: .04em;
}
.log-tag.latest { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-cta); }
.log-date { margin-left: auto; font-size: .82rem; color: var(--faint); font-family: var(--font-mono); }
.log-arrow {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--glass-2); color: var(--muted);
  transition: transform .3s ease;
}
.log-arrow svg { width: 13px; height: 13px; }
.log.open .log-arrow { transform: rotate(180deg); }
.log-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.3, .9, .3, 1); }
.log-body > div { overflow: hidden; }
.log.open .log-body { grid-template-rows: 1fr; }
.log-inner { padding: .2rem 1.3rem 1.3rem; color: var(--muted); font-size: .92rem; }
.log-inner ul { margin: .5rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.log-inner li::marker { color: var(--mint); }
.log-inner .kind {
  margin-top: .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mint);
}

/* ---------- 表格 ---------- */
.table-wrap { border-radius: var(--r-md); overflow-x: auto; }
.dt { width: 100%; border-collapse: collapse; font-size: .92rem; }
.dt th, .dt td { text-align: left; padding: .85rem 1.2rem; border-bottom: 1px solid var(--stroke-2); }
.dt th { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.dt tr:last-child td { border-bottom: 0; }
.dt tbody tr { transition: background .2s ease; }
.dt tbody tr:hover { background: var(--mint-soft); }

/* ---------- 文档页：左固定选择栏 + 右内容（VitePress 风格） ---------- */
.docs-shell { padding-top: 96px; padding-bottom: 4rem; }
.docs-layout {
  display: grid; grid-template-columns: 230px 1fr; gap: 3rem;
  align-items: start;
}
.docs-side {
  position: sticky; top: 84px;
  max-height: calc(100vh - 108px); overflow-y: auto;
  padding: .4rem .9rem 1.2rem 0;
  border-right: 1px solid var(--stroke-2);
  scrollbar-width: thin;
}
.docs-side h4 {
  margin: 1.5rem .7rem .5rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.docs-side h4:first-child { margin-top: .4rem; }
.docs-side a {
  position: relative;
  display: block; padding: .5em .95em; border-radius: 10px;
  font-size: .9rem; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.docs-side a:hover { color: var(--fg); background: var(--glass-2); }
.docs-side a.on { color: var(--mint); background: var(--mint-soft); font-weight: 600; }
.docs-side a.on::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 3px; border-radius: 3px; background: var(--mint);
}

.doc-toc-mobile { display: none; border-radius: var(--r-md); padding: 0 1.1rem; }
.doc-toc-mobile summary {
  display: flex; align-items: center; gap: .6em; cursor: pointer;
  padding: .9rem 0; font-weight: 600; font-size: .92rem; list-style: none;
}
.doc-toc-mobile summary::-webkit-details-marker { display: none; }
.doc-toc-mobile .toc-body { display: flex; flex-wrap: wrap; gap: .3rem; padding-bottom: .8rem; }
.doc-toc-mobile .toc-body a {
  padding: .4em .9em; border-radius: 999px; color: var(--muted); font-size: .86rem;
  background: var(--glass-2); border: 1px solid var(--stroke);
}
.doc-toc-mobile .toc-body a.on { color: var(--mint); background: var(--mint-soft); border-color: rgba(23, 183, 142, .3); }

/* 文档分页容器 */
.doc-pages { min-width: 0; }
.doc-page { display: none; }
.doc-page.active { display: block; animation: pageIn .4s cubic-bezier(.2, .8, .25, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.doc-h2 { margin-top: .2rem; font-size: 2rem; font-weight: 800; display: flex; align-items: baseline; gap: .7rem; }
.doc-h2 .emoji-tail {
  font-size: 1.25rem; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.doc-lead { margin: .9rem 0 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--stroke-2); color: var(--muted); font-size: 1rem; }
.doc-lead b { color: var(--mint); font-weight: 600; }
.doc-h3 { margin: 2.2rem 0 .8rem; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .55rem; }
.doc-h3::before {
  content: ""; width: 4px; height: 1.05em; border-radius: 4px;
  background: var(--grad); flex: none;
}
.doc-p { margin: .8rem 0; color: var(--muted); font-size: .95rem; }
.doc-p strong, .doc-p b { color: var(--fg); }
.doc-p code, .doc-list code, .doc-card code, .tree code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--mint-soft); color: var(--mint);
  padding: .1em .4em; border-radius: 6px;
}
.doc-list { margin: .8rem 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .45rem; color: var(--muted); font-size: .95rem; }
.doc-list li::marker { color: var(--mint); }
.doc-list--num { list-style: none; padding-left: 0; counter-reset: step; }
.doc-list--num li { counter-increment: step; position: relative; padding-left: 2.3rem; }
.doc-list--num li::before {
  content: counter(step); position: absolute; left: 0; top: .16em;
  width: 1.55rem; height: 1.55rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  font-size: .74rem; font-weight: 700;
}
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.2rem 0; }
.doc-card { padding: 1.25rem 1.4rem; }
.doc-card h4 { display: flex; align-items: center; gap: .55rem; font-size: .98rem; font-weight: 700; }
.doc-card h4 svg { width: 17px; height: 17px; color: var(--mint); }
.doc-card p { margin-top: .5rem; color: var(--muted); font-size: .88rem; }

/* 代码块 */
.code-block { border-radius: var(--r-md); overflow: hidden; margin: 1.2rem 0; }
.code-head {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem 1.1rem; font-size: .8rem; color: var(--faint);
  border-bottom: 1px solid var(--stroke-2);
}
.code-head .lang {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
  padding: .18em .7em; border-radius: 999px;
  background: var(--mint-soft); color: var(--mint); text-transform: uppercase;
}
.code-head .cp {
  margin-left: auto; display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .8em; border-radius: 999px; border: 1px solid var(--stroke);
  background: var(--glass-2); color: var(--muted); font-size: .74rem; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.code-head .cp svg { width: 12px; height: 12px; }
.code-head .cp:hover, .code-head .cp.done { color: var(--mint); border-color: rgba(23, 183, 142, .4); }
.code-block pre {
  margin: 0; padding: 1.1rem 1.3rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.75;
  color: var(--fg);
}

/* 目录树 */
.tree { border-radius: var(--r-md); overflow-x: auto; padding: 1.1rem 1.3rem; }
.tree pre { margin: 0; font-family: var(--font-mono); font-size: .8rem; line-height: 1.8; color: var(--muted); }
.tree .c { color: var(--faint); }

/* 文档分页底部导航 */
.doc-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.doc-pager a {
  display: inline-flex; flex-direction: column; gap: .15rem;
  padding: .95rem 1.4rem; border-radius: var(--r-md);
  max-width: 48%;
  transition: transform .25s ease, border-color .25s ease;
}
.doc-pager a:hover { transform: translateY(-3px); border-color: rgba(23, 183, 142, .4); }
.doc-pager a.next { text-align: right; margin-left: auto; }
.doc-pager .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.doc-pager .ttl { font-weight: 700; font-size: .95rem; color: var(--fg); }

/* ---------- 简化页脚 ---------- */
.footer { margin-top: 4rem; padding: 3.2rem 0 2rem; border-top: 1px solid var(--stroke); }
.foot-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand .brand-img { width: 36px; height: 36px; }
.foot-brand-txt { line-height: 1.4; }
.foot-brand-txt b { display: block; font-size: 1.05rem; font-weight: 700; }
.foot-brand-txt span { font-size: .82rem; color: var(--faint); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.foot-links a {
  font-size: .9rem; color: var(--muted); font-weight: 500;
  transition: color .2s ease;
}
.foot-links a:hover { color: var(--mint); }
.foot-social { display: flex; gap: .55rem; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--glass-2); border: 1px solid var(--stroke); color: var(--muted);
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.foot-social a:hover { color: var(--mint); border-color: rgba(23, 183, 142, .4); transform: translateY(-2px); }
.foot-social svg { width: 16px; height: 16px; }
.notice-mini {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--stroke-2);
  font-size: .78rem; line-height: 1.7; color: var(--faint);
}
.f-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  margin-top: 1.2rem;
  font-size: .82rem; color: var(--faint);
}
.f-bottom nav { display: flex; gap: 1.2rem; }
.f-bottom a:hover { color: var(--mint); }

/* ---------- 入场动画（交错） ---------- */
.reveal {
  opacity: 0; transform: translateY(22px) scale(.985);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.4, .44, 1);
  transition-delay: var(--d, 0ms);
  /* 兜底：即使脚本未触发也保证内容最终可见 */
  animation: revealFallback .4s ease 2.5s forwards;
}
.reveal.in { opacity: 1; transform: none; }
@keyframes revealFallback { to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.8rem; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-desc { margin-inline: auto; }
  .hero-copy .hero-cta { justify-content: center; }
  .neko-card { width: min(240px, 72vw); }
  .nav-links { display: none; }
  .burger { display: flex; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-hero-card { grid-column: span 2; grid-template-columns: 1fr; }
  .fhc-media { min-height: 220px; }
  .docs-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .docs-side { display: none; }
  .doc-toc-mobile { display: block; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hero { padding-top: 8.5rem; }
  .page-hero { padding-top: 8rem; }
  .docs-shell { padding-top: 84px; }
  .doc-h2 { font-size: 1.6rem; }
  .section { padding: 3.8rem 0; }
  .feat-grid, .dl-grid, .gallery, .doc-grid { grid-template-columns: 1fr; }
  .feat-hero-card { grid-column: span 1; }
  .log-date { display: none; }
  .doc-pager { flex-direction: column; }
  .doc-pager a { max-width: 100%; }
  .doc-pager a.next { text-align: left; }
  .community { padding: 2.4rem 1.4rem; }
}

/* ---------- 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
