/* ==========================================================================
   Peaceful Eco Launcher — 官网首页
   整套视觉直接从启动器源码抄：
   · public/app.css
       :root --ink:#1F2D25 --muted:#7E8C84 --accent:#65B483 --accent-ink:#0F2A1D
             --glass:rgba(255,255,255,.62) --glass2:rgba(255,255,255,.78)
             --line:rgba(255,255,255,.78) --shadow:0 18px 55px rgba(52,72,86,.10)
       body background:#F7FBF8；.wallpaper linear-gradient(145deg,#F3FAF6,#F7FBF8 44%,#E8F1EC)
       .app max-width:1440 padding:22 grid 224px 1fr gap:18
       .sidebar r24 padding:19px 13px gap:22   .main gap:16   .topbar padding:4px 3px
       .hero r26 padding:clamp(22px,4vw,42px) min-height:260 gap:24
       .panel r21 padding:18   .nav r13 padding:11px 12px gap:12   .navtitle 10px/.13em/700
       .brand b 15px/-.03em   .brand small 10px/.12em   .brandmark 40px r14
       .stat r18 padding:16   .quick r15 padding:14px 12px   .iconbtn 39px r13
       .versionchip 11px padding:8px 11px r999
       .btn.primary linear-gradient(135deg,#c9ffda,#91e6ad) / #163123
   · public/glass-controls.bundle.css
       --lg-font-text / --lg-font-mono（字体栈）
       控件：bg rgba(255,255,255,.34) + border rgba(255,255,255,.72)
             + inset 0 1px 0 rgba(255,255,255,.68), 0 3px 12px rgba(45,65,56,.045)
             + backdrop-blur(24px) saturate(180%)；hover 提到 rgba(255,255,255,.58)
   · public/app.css 深色主题
       --dark-bg:#142322 --dark-card:#203432 --glass:rgba(32,52,50,.82) --line:rgba(150,185,172,.20)
   ========================================================================== */

:root {
  /* ---- 字体（= --lg-font-text / --lg-font-mono） ---- */
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* ---- 颜色（启动器浅色主题令牌，原值） ---- */
  --ink: #1f2d25;
  --muted: #7e8c84;
  --accent: #65b483;
  --accent-ink: #0f2a1d;
  --glass: rgba(255, 255, 255, 0.62);
  --glass2: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.78);
  --shadow: 0 18px 55px rgba(52, 72, 86, 0.1);
  --radius: 20px;

  --page: #f7fbf8;
  --wallpaper: linear-gradient(145deg, #f3faf6 0%, #f7fbf8 44%, #e8f1ec 100%);
  /* Hero 与左栏小卡的材质层（public/material-theme.css 的 liquid 主题） */
  --mat-reflection: linear-gradient(125deg, #ffffff30 0%, #ffffff0a 34%, #ffffff00 62%, #e2f2ec0d 100%);
  --mat-hero: linear-gradient(115deg, #d9f3e578, #f5fcf56b 65%, #c7e8d17d);

  /* ---- 控件（液态玻璃那一层的浅色参数） ---- */
  --control-bg: rgba(255, 255, 255, 0.34);
  --control-line: rgba(255, 255, 255, 0.72);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 3px 12px rgba(45, 65, 56, 0.045);
  --control-hover: rgba(255, 255, 255, 0.58);
  --control-hover-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 18px rgba(45, 65, 56, 0.075);
  --control-ink: #52636b;

  /* ---- 当前项 / 强调（html[data-theme=light] .nav.active 的值） ---- */
  --active-bg: rgba(174, 235, 195, 0.38);
  --active-ink: #285b40;

  /* ---- 品牌按钮 ---- */
  --btn-primary: linear-gradient(135deg, #c9ffda, #91e6ad);
  --btn-primary-ink: #163123;
  --btn-primary-shadow: 0 8px 25px rgba(154, 234, 181, 0.17);
  --btn-primary-shadow-hover: 0 12px 30px rgba(154, 234, 181, 0.25);

  --focus: rgba(99, 183, 135, 0.8);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- 深色（public/app.css 里的 --dark-* / html[data-theme="dark"]） ---- */
[data-theme="dark"] {
  --ink: #e8f0ec;
  --muted: #a7b8b1;
  --accent: #36d98a;
  --accent-ink: #072116;
  --glass: rgba(32, 52, 50, 0.82);
  --glass2: rgba(39, 61, 57, 0.9);
  --line: rgba(150, 185, 172, 0.2);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.2);

  --page: #142322;
  --wallpaper: linear-gradient(145deg, #142322 0%, #162927 44%, #0f1b1a 100%);
  --mat-reflection: linear-gradient(125deg, #e4f9eb0f 0%, #e4f9eb03 34%, #e4f9eb00 62%, #9ccdb006 100%);
  --mat-hero: linear-gradient(115deg, #305a43c2, #233e30ad 65%, #294834b8);

  --control-bg: rgba(255, 255, 255, 0.06);
  --control-line: rgba(150, 185, 172, 0.22);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 12px rgba(0, 0, 0, 0.2);
  --control-hover: rgba(255, 255, 255, 0.12);
  --control-hover-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.28);
  --control-ink: #c3d5cc;

  --active-bg: rgba(120, 230, 176, 0.18);
  --active-ink: #78e6b0;

  --btn-primary: linear-gradient(135deg, #c9ffda, #91e6ad);
  --btn-primary-ink: #163123;
  --btn-primary-shadow: 0 8px 25px rgba(154, 234, 181, 0.17);
  --btn-primary-shadow-hover: 0 12px 30px rgba(154, 234, 181, 0.25);

  --focus: rgba(120, 230, 176, 0.8);
}

/* ------------------------------------------------------------------ 基础 */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2 { margin: 0; font-weight: 700; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 手机上标题只允许在逗号后断行，别把「单。」甩到第二行 */
.nb { white-space: nowrap; }

.ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(121, 227, 169, 0.45); color: #062b18; }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.24s var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ------------------------------------------ 启动画面（照 Splash.cs 复刻） */

html.booting { overflow: hidden; }

/* 启动画面还在时，窗口先藏着，等它淡出再一起淡入 */
/* 内容始终可见，交叉过渡交给启动画面的淡出（.boot 自己被移除前会先淡出），
   这样即便过渡被浏览器冻结，也不会出现"整页透明"的空屏。 */
.js .app { opacity: 1; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none; /* 没有 JS 就不放启动画面，别把人锁在加载页 */
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(158deg, #dff4e9 0%, #cdeedf 58%, #bfe8d5 100%);
  transition: opacity 190ms ease-out;
}
.js .boot { display: grid; }
.boot.is-leaving { opacity: 0; }

/* Splash.cs：440 × 300、圆角 18、120° 渐变 #F6FCF8 → #E2F4EA */
.boot-card {
  position: relative;
  width: min(440px, calc(100vw - 44px));
  height: 300px;
  border-radius: 18px;
  background: linear-gradient(120deg, #f6fcf8 0%, #e2f4ea 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 80px -26px rgba(28, 86, 58, 0.4), inset 0 1px 0 #ffffff;
  animation: boot-in 260ms ease-out both;
}

/* 96 × 96，居中，y = 48 */
.boot-logo {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 96px;
  height: 96px;
  margin-left: -48px;
  animation: boot-pop 850ms cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

/* 19px 粗体 / #1F4330 */
.boot-title {
  position: absolute;
  top: 170px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1f4330;
}

/* 14px / #567D65 */
.boot-sub {
  position: absolute;
  top: 202px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
  color: #567d65;
}

/* 220 × 5 轨道 #DAEBE0，66px 填充 #43B574，900ms 往返（两端减速） */
.boot-bar {
  position: absolute;
  top: 251px;
  left: 50%;
  width: 220px;
  height: 5px;
  margin-left: -110px;
  border-radius: 999px;
  background: #daebe0;
  overflow: hidden;
}
.boot-bar i {
  display: block;
  width: 66px;
  height: 100%;
  border-radius: 999px;
  background: #43b574;
  animation: boot-sweep 900ms ease-in-out infinite alternate;
}

@keyframes boot-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes boot-pop {
  0% { transform: scale(0.84); }
  55% { transform: scale(1.02); }
  78% { transform: scale(0.996); }
  100% { transform: scale(1); }
}
@keyframes boot-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(154px); }
}

/* 深色外观下别用亮薄荷闪一下 */
[data-theme="dark"] .boot {
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(53, 196, 124, 0.12), transparent 70%),
    linear-gradient(158deg, #0d1f17 0%, #10261b 58%, #0b1b13 100%);
}
[data-theme="dark"] .boot-card {
  background: linear-gradient(120deg, #16281e 0%, #1d3427 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 80px -26px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .boot-title { color: #e4f6ea; }
[data-theme="dark"] .boot-sub { color: #90ab9b; }
[data-theme="dark"] .boot-bar { background: #1f3a2b; }

/* -------------------------------------------------- 外壳（= .app 的栅格） */

.app {
  max-width: 1440px;
  margin: auto;
  padding: 22px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 18px;
  background: var(--wallpaper);
}

/* 玻璃面板：启动器 .glass */
.glass,
.side,
.panel,
.quick-card,
.hero-badge,
.side-promo {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}

/* ------------------------------------------------- 左栏（= .sidebar） */

.side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 19px 13px;
  border-radius: 24px;
  min-height: calc(100vh - 44px);
  position: sticky;
  top: 22px;
  align-self: start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px;
}

/* 品牌图标：白底圆角 + 图标撑满。
   原来叠了「薄荷渐变底 + 30px 小图标」，图形被挤在 40px 方块里，缩到 40px 就糊成一团绿。
   改成白底、图标直接铺到 27px，边缘干净、对比明确。 */
.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(24, 70, 48, 0.09);
}
.brand-logo .brand-mark-img { width: 28px; height: 28px; display: block; }
[data-theme="dark"] .brand-logo {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.brand-name small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 2px;
}

.badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--active-ink);
  background: var(--active-bg);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* overflow-y:auto 会把 overflow-x 一并算成 auto；而 .side-link:hover 的
     translateX(2px) 会产生 2px 横向溢出，于是底下冒出一条横向滚动条。
     这里锁死 x 轴，只留纵向滚动（窗口矮时才需要）。 */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* = .navtitle 10px / .13em / 700 / padding 0 12px 7px */
.side-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.13em;
  font-weight: 700;
  padding: 0 12px 7px;
  margin: 12px 0 0;
}
.side-label:first-child { margin-top: 0; }

/* = .nav：gap 12 / padding 11px 12px / r13 / icon 20px */
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease),
    transform 0.24s var(--ease), border-color 0.24s var(--ease);
}
.side-link .ico { width: 20px; height: 20px; color: var(--muted); transition: color 0.24s; }
.side-link:hover {
  background: var(--control-hover);
  transform: translateX(2px);
}
.side-link:hover .ico { color: var(--accent); }

/* = html[data-theme=light] .nav.active */
.side-link.is-active {
  background: var(--active-bg);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--active-ink);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.side-link.is-active .ico { color: var(--active-ink); }

.side-promo {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  padding: 16px 14px 15px;
  text-align: center;
  background: var(--mat-reflection), var(--mat-hero);
}
.side-promo-logo { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; }
.side-promo-name { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.side-promo-tag { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ------------------------------------------- 主列（= .main / .topbar） */

.pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 主区：Hero / 快捷卡 / 两块面板 / 页脚，节与节间距 16 */
.canvas {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 3px;
}

.topbar-brand {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  white-space: nowrap;
}
.topbar-brand img { width: 28px; height: 28px; border-radius: 8px; }

.top-nav { display: flex; align-items: center; gap: 4px; min-width: 0; }

/* 顶栏入口沿用控件那一层：白 .34 + 白 .72 描边 + 模糊 */
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--control-ink);
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.top-link .ico { width: 18px; height: 18px; color: var(--muted); }
.top-link:hover {
  background: var(--control-hover);
  border-color: var(--control-line);
  color: var(--ink);
  transform: translateY(-1px);
}
.top-link:hover .ico { color: var(--accent); }
.top-link.is-active {
  background: var(--control-bg);
  border-color: var(--control-line);
  box-shadow: var(--control-shadow);
  color: var(--active-ink);
  font-weight: 600;
}
.top-link.is-active .ico { color: var(--active-ink); }

.top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* = .versionchip：11px / padding 8px 11px / r999 */
.ver-pill {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--active-ink);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

/* = .iconbtn：39 × 39 / r13 */
.icon-btn {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid var(--control-line);
  background: var(--control-bg);
  box-shadow: var(--control-shadow);
  color: var(--control-ink);
  cursor: pointer;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}
.icon-btn:hover { background: var(--control-hover); transform: translateY(-2px); }
.icon-btn .ico { width: 17px; height: 17px; }

.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }


/* ------------------------------------------------------------------ Hero */

/* = .overview-hero：background 用 var(--mat-reflection), var(--mat-hero)
   —— 启动器的 Hero 是薄荷渐变，不是照片 */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(260px, 36vh, 340px);
  flex: 1 1 auto;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: var(--mat-reflection), var(--mat-hero);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* = .hero:after：290px 圆 + #a3f0ba30 */
.hero::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  right: 5%;
  top: -36%;
  z-index: -1;
  background: radial-gradient(circle, rgba(163, 240, 186, 0.19), transparent 70%);
  pointer-events: none;
  animation: sun-breathe 13s ease-in-out infinite;
}

.hero-copy { position: relative; max-width: 650px; }

/* = .eyebrow 10px / .17em / 800 */
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}

/* 尺寸/行高与 .hero h1 同值：clamp(30px,4.4vw,52px) / 1.06。
   字距取 -.03em 而不是它的 -.055em：那条是给拉丁标题调的，
   中文按 -.055em 会挤成一团；启动器给中文标题用的也是 -.03em
   （.detail-description h2{letter-spacing:-.03em}）。 */
.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-sub {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 33em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* 右侧 Logo 玻璃块 */
.hero-badge {
  position: relative;
  width: 204px;
  height: 204px;
  flex: 0 0 auto;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: var(--glass2);
}
  .hero-badge img { width: 168px; height: 168px; animation: badge-float 9s ease-in-out infinite; }
[data-theme="dark"] .hero-badge {
  background: rgba(32, 52, 50, 0.78);
  border-color: rgba(150, 185, 172, 0.22);
}

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

/* = .btn.primary：linear-gradient(135deg,#c9ffda,#91e6ad) / #163123 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 21px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn .ico { width: 18px; height: 18px; }

.btn-primary {
  background: var(--btn-primary);
  color: var(--btn-primary-ink);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover {
  box-shadow: var(--btn-primary-shadow-hover);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }

/* = html[data-theme=light] .btn.secondary：白 .34 / 白 .72 描边 / #52636b */
.btn-ghost {
  background: var(--control-bg);
  border-color: var(--control-line);
  box-shadow: var(--control-shadow);
  color: var(--control-ink);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}
.btn-ghost:hover {
  background: var(--control-hover);
  box-shadow: var(--control-hover-shadow);
  transform: translateY(-2px);
}
.btn-ghost:active { transform: translateY(0) scale(0.99); }

/* ------------------------------------------------------ 快捷卡（= .quick） */

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* = .quick：r15 / padding 14px 12px */
.quick-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 12px;
  border-radius: 15px;
  min-width: 0;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.quick-card:hover {
  transform: translateY(-3px);
  background: var(--control-hover);
  box-shadow: var(--control-hover-shadow);
}

.quick-ico {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--active-bg);
  color: var(--active-ink);
}
.quick-ico .ico { width: 19px; height: 19px; }

.quick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quick-text b { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.quick-text small {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-go {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}
.quick-card:hover .quick-go { transform: translateX(2px); color: var(--accent); }

/* -------------------------------------- 最新动态 / 功能特性（= .panel） */

/* = .overview-grid：2 列 / gap 14 */
.bottom {
  /* 三块并排：最新动态 / 更新日志 / 功能特性，中间那块稍微宽一点 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  flex: 0 0 auto;
}

/* = .panel：r21 / padding 18 */
.panel {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 21px;
  min-width: 0;
}

/* = .panelhead：gap 10 / margin-bottom 15 / h3 14px / small 10px */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.panel-head h2 { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }

.panel-more {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.panel-more .ico { width: 12px; height: 12px; }
.panel-more:hover { color: var(--accent); }

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: flex-start;
}

.news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
}

.news-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}
.news-dot.is-old { background: var(--line); }
[data-theme="dark"] .news-dot.is-old { background: rgba(150, 185, 172, 0.35); }

/* 最新那条呼吸一下：告诉人「这条是新的」 */
.news-dot:not(.is-old) { animation: dot-pulse 2.6s ease-in-out infinite; }
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.news-body { min-width: 0; }
.news-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.news-title:hover { color: var(--accent); }
.news-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-top: 2px;
}

/* = .stat：r18 / padding 16 */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* 三列布局里这块只有 ~340px 宽，四项竖排一行一条才不会把副标挤断 */
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-content: center;
  flex: 1;
}

.feature-grid li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 18px;
  background: var(--control-bg);
  border: 1px solid var(--control-line);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.feature-grid li:hover { background: var(--control-hover); transform: translateY(-2px); }

.feature-ico {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--active-bg);
  color: var(--active-ink);
}
.feature-ico .ico { width: 18px; height: 18px; }

.feature-grid b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.feature-grid small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.feature-grid li > span:last-child { min-width: 0; }

/* ------------------------------------------------------------------ 页脚 */

/* 收尾条：一行左对齐，不再一头一尾各挂一句 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 10px;
  margin-top: auto;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.foot-sign { display: inline-flex; align-items: center; }
.foot-sign img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--page);
}
.foot-sign img + img { margin-left: -7px; }
.foot-sign span { margin-left: 7px; }



/* -------------------------------------------------------------- 入场动效 */

/* 入场用 animation 而不是 transition：错峰靠 animation-delay，
   跑完之后样式回到 .in 的声明值，卡片 hover 的 transform 才不会被动画锁住 */
.js .rv { opacity: 0; }
.js .rv.in {
  opacity: 1;
  transform: none;
  animation: rv-in 0.82s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 105ms);
}

/* 淡入 + 轻微上浮。缓动是 0.16,1,0.3,1（前段快、后段收尾柔和），
   所以停止时不"顿"——之前把 opacity 去掉只剩位移，才显得硬。 */
@keyframes rv-in {
  from { opacity: 0; transform: translateY(14px); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

/* 兜底：万一 main.js 没跑起来（脚本被拦、老浏览器），2.6 秒后强制显示，
   绝不把内容永远锁在 opacity:0。由 <head> 里的内联脚本加上这个类。 */
.js.rv-static .rv,
.js.rv-static .rv.in {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes sun-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1180px) {
  .app { grid-template-columns: 204px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .side { padding: 16px 11px; min-height: calc(100vh - 32px); top: 16px; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-badge { width: 168px; height: 168px; border-radius: 26px; }
  .hero-badge img { width: 138px; height: 138px; }
  .bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bottom .features { grid-column: 1 / -1; }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .feature-grid li { padding: 16px; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .feature-grid li { padding: 12px; }
  .side { display: none; }
  .topbar-brand { display: inline-flex; }
  .bottom { grid-template-columns: minmax(0, 1fr); }
  /* 顶栏挤不下时换行，别让中文标题逐字竖排，也别横向滚 */
    .topbar { flex-wrap: wrap; row-gap: 8px; }
  .top-nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; }
  .top-link { flex: 0 0 auto; }
}

@media (max-width: 720px) {
  /* 启动器的手机布局：左栏变成底部浮动 dock */
  .app { padding: 12px 16px 108px; }

  .side {
    display: block;
    position: fixed;
    z-index: 60;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    top: auto;
    margin: 0;
    padding: 7px 9px;
    border-radius: 28px;
    min-height: 0;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 34px rgba(48, 66, 60, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(34px) saturate(190%);
    backdrop-filter: blur(34px) saturate(190%);
  }
  [data-theme="dark"] .side {
    background: rgba(27, 44, 44, 0.72);
    border-color: rgba(150, 185, 172, 0.22);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .brand,
  .side-label,
  .side-promo,
  .side-link.extra { display: none; }

  .side-nav {
    /* 项目数会变（现在是 3 个），auto-flow 让列数跟着数量走 */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 3px;
    overflow: visible;
  }
  .side-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    padding: 8px 2px;
    border-radius: 19px;
    font-size: 10px;
    white-space: nowrap;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  .side-link .ico { width: 19px; height: 19px; }
  .side-link:hover { transform: none; }
  .side-link.is-active {
    background: rgba(255, 255, 255, 0.52);
    border-color: transparent;
  }

  .top-nav { display: none; }
  .pane { gap: 14px; }

  .hero { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 21px; }
  .hero-badge { display: none; }
  .hero::after { right: -12%; top: -60%; }
  .hero h1 { font-size: clamp(30px, 7.6vw, 40px); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .quick { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------- 降低动效偏好 */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js .rv { opacity: 1 !important; transform: none !important; }
}





/* ============================================================ 使用帮助页 */

/* 页头：和 Hero 同一套材质，只是更矮 */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 26px;
  background: var(--mat-reflection), var(--mat-hero);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.page-head-copy { min-width: 0; }
.page-head h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.page-head-sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46em;
}
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 目录 + 正文 两栏 */
.doc-wrap {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  border-radius: 21px;
}
.toc-title {
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--muted);
  padding: 0 10px 8px;
}
.toc-link {
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 13px;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.toc-link:hover { background: var(--control-hover); color: var(--accent-ink); }

.doc { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.doc-sec { scroll-margin-top: 20px; }
.doc-sec h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
/* 正文限宽到 ~42 个汉字一行，长文才好读 */
.doc-sec p { font-size: 14px; line-height: 1.75; color: var(--ink); max-width: 44em; }
.doc-sec p + p { margin-top: 10px; }
.doc-sec b,
.doc-sec strong { font-weight: 600; }
.doc-sec code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--control-bg);
  overflow-wrap: break-word;
}
.doc-sec a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.doc-sec a:hover { color: var(--accent); }

.doc-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-list li { font-size: 14px; line-height: 1.75; max-width: 44em; }
.doc-list li::marker { color: var(--accent); }

.doc-steps {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-steps li { font-size: 14px; line-height: 1.7; max-width: 44em; }
.doc-steps li::marker { color: var(--accent); font-weight: 600; }

.doc-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px !important; }

.doc-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 15px;
  background: var(--control-bg);
  border: 1px solid var(--control-line);
}
.doc-note-title { font-size: 13px; font-weight: 700; }
.doc-note .doc-note-title { margin-bottom: 6px; }
.doc-note img {
  margin-top: 12px;
  width: 100%;
  max-width: 628px;
  border-radius: 12px;
  border: 1px solid var(--control-line);
}
.doc-byline { margin-top: 14px; font-weight: 600; }
.doc-muted { margin-top: 10px; font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
  .doc-wrap { grid-template-columns: minmax(0, 1fr); }
  .toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }
  .toc-title { display: none; }
  .toc-link {
    background: var(--control-bg);
    border: 1px solid var(--control-line);
    padding: 6px 11px;
    font-size: 12.5px;
  }
}

@media (max-width: 720px) {
  .page-head { align-items: flex-start; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1 1 auto; justify-content: center; }
}






/* --------------------------------------------------------- 联系作者弹窗 */

.contact {
  width: min(380px, calc(100vw - 40px));
  margin: auto;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--glass2);
  color: var(--ink);
  box-shadow: 0 26px 64px -22px rgba(20, 62, 42, 0.5);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}
.contact::backdrop {
  background: rgba(12, 36, 26, 0.32);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.contact[open] { animation: contact-in 0.22s var(--ease) both; }
@keyframes contact-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.contact-title { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }

.contact-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--control-line);
  background: var(--control-bg);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.contact-close:hover { background: var(--control-hover); color: var(--ink); }

.contact-sub { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }

.qq-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qq-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--control-bg);
  border: 1px solid var(--control-line);
}
.qq-num {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.qq-copy {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--control-line);
  background: var(--side);
  color: var(--control-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.qq-copy:hover { background: var(--control-hover); color: var(--ink); }
.qq-copy.is-copied { background: var(--active-bg); color: var(--active-ink); border-color: transparent; }

.contact-note { margin-top: 12px; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* ------------------------------------------------ 更新日志面板（夹在中间那块） */

.changelog-ver {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--active-bg);
  color: var(--active-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.changelog-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.changelog-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}






