/* ==========================================================================
   Easy-RNA-seq · 转录组 Windows 自动化运行程序 · 官方网站
   视觉识别沿用软件本体：米色纸面 + 深绿 + 砖红 + 等宽标签
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  color-scheme: light;

  --bg:        #f6f0de;
  --bg-alt:    #efe7d0;
  --surface:   #fffcf3;
  --surface-2: #fbf6e8;
  --ink:       #17251f;
  --ink-soft:  #3b4c44;
  --muted:     #6d7c74;
  --line:      #cfc2a0;
  --line-soft: #e3d9bd;

  --green:     #245744;
  --green-2:   #2f6b54;
  --green-ink: #1b4636;
  --green-bg:  #dde9e0;

  --terra:     #c24a33;
  --terra-bg:  #f4ddd5;

  --cyan:      #1a9dc4;
  --cyan-2:    #1585a8;
  --cyan-ink:  #0e5f79;
  --cyan-bg:   #d8eef6;

  --shadow-sm: 0 1px 0 var(--line-soft), 0 2px 6px rgba(23, 37, 31, .06);
  --shadow-md: 0 2px 0 var(--line-soft), 0 10px 30px rgba(23, 37, 31, .10);
  --shadow-lg: 0 24px 60px rgba(23, 37, 31, .18);

  --radius:    4px;
  --radius-lg: 8px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "Cascadia Mono", "JetBrains Mono", Consolas, "SFMono-Regular",
               ui-monospace, "Courier New", monospace;

  --wrap: 1180px;
  --nav-h: 62px;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #0d1d18;
  --bg-alt:    #102420;
  --surface:   #142c25;
  --surface-2: #11302a;
  --ink:       #e6f0e9;
  --ink-soft:  #c2d5ca;
  --muted:     #90a89c;
  --line:      #2b4a3e;
  --line-soft: #224036;

  --green:     #5fbb95;
  --green-2:   #79cbaa;
  --green-ink: #a8e3c8;
  --green-bg:  #12332a;

  --terra:     #f0876c;
  --terra-bg:  #3a2019;

  --cyan:      #4cc6e8;
  --cyan-2:    #6fd4f1;
  --cyan-ink:  #9fe4f8;
  --cyan-bg:   #0e3140;

  --shadow-sm: 0 1px 0 rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-md: 0 2px 0 rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(36, 87, 68, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 87, 68, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
}
html[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(120, 200, 168, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 168, .06) 1px, transparent 1px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-decoration: none; }
a:hover { color: var(--terra); }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--cyan); color: #06202b; }

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.skip-link {
  position: absolute; left: 12px; top: 0; z-index: 999;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: none; }

/* ---------- 3. 通用排版件 ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: .78em;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--terra); flex: none;
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 68px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

.lead { font-size: 18px; color: var(--ink-soft); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--line);
  border-radius: 3px; background: var(--surface-2); color: var(--ink-soft);
}
.tag--green { background: var(--green-bg); border-color: transparent; color: var(--green-ink); }
.tag--terra { background: var(--terra-bg); border-color: transparent; color: var(--terra); }
.tag--cyan  { background: var(--cyan-bg);  border-color: transparent; color: var(--cyan-ink); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 700; line-height: 1;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green); color: #fdfaf1; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-2); color: #fff; box-shadow: var(--shadow-md); }

.btn--cta { background: var(--cyan); color: #04222d; box-shadow: var(--shadow-sm); }
.btn--cta:hover { background: var(--cyan-2); color: #04222d; box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--green); color: var(--green-2); }

.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line); }

/* 浏览器/窗口框（用于截图） */
.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.frame__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
}
.frame__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.frame__dot:nth-child(1) { background: #d98a76; }
.frame__dot:nth-child(2) { background: #d9bf76; }
.frame__dot:nth-child(3) { background: #8fbf9e; }
.frame__title {
  margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .1em; color: var(--muted); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame img { width: 100%; display: block; }
.frame__cap {
  padding: 10px 14px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted); background: var(--surface-2);
}

/* ---------- 4. 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner { display: flex; align-items: center; gap: 18px; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.brand__sub {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--terra);
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface); color: var(--green-2); }
.nav a.is-active { color: var(--green-2); background: var(--green-bg); }

.topbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--green); color: var(--green-2); }
.icon-btn .icon-moon { display: none; }
html[data-theme="dark"] .icon-btn .icon-sun { display: none; }
html[data-theme="dark"] .icon-btn .icon-moon { display: block; }

.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav { display: none; }
  .topbar__actions .btn--navlabel { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .brand__sub { display: none; }
}

/* 移动端抽屉 */
.drawer {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 12px 20px 20px;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}
.drawer.is-open { display: grid; }
.drawer a {
  padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--surface-2);
  font-weight: 600; color: var(--ink-soft);
}
.drawer a:hover { border-color: var(--green); color: var(--green-2); }

/* ---------- 5. 首屏 ---------- */
.hero { padding: 76px 0 84px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center;
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero { padding: 52px 0 64px; }
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 3px; padding: 7px 13px 7px 7px; margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.hero__badge b {
  background: var(--terra); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 2px;
}
.hero__badge span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}

.hero h1 { font-size: clamp(32px, 5.4vw, 57px); letter-spacing: -.025em; margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--cyan) 45%, transparent) 62%);
  padding-inline: 2px;
}
.hero h1 .row { display: block; }
.hero__sub { font-size: 17.5px; color: var(--ink-soft); max-width: 33em; margin-bottom: 30px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero__meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden;
  max-width: 560px;
}
.hero__meta div { background: var(--surface); padding: 14px 16px; }
.hero__meta dt {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.hero__meta dd { margin: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
@media (max-width: 620px) {
  .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hero__visual { position: relative; }
.hero__float {
  position: absolute; z-index: 3;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 13px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green-2);
  display: flex; align-items: center; gap: 7px;
}
.hero__float--tl { top: -14px; left: -14px; }
.hero__float--br { bottom: 28px; right: -14px; color: var(--terra); }
.hero__float .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green-2);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green-2) 70%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green-2) 70%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (max-width: 520px) { .hero__float { display: none; } }

/* 步骤跑马灯 */
.ticker {
  border-block: 1px solid var(--line-soft);
  background: var(--green);
  overflow: hidden; padding: 13px 0;
}
html[data-theme="dark"] .ticker { background: var(--surface); }
.ticker__track {
  display: flex; gap: 0; width: max-content;
  animation: slide 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 26px; color: #eaf3ec;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
html[data-theme="dark"] .ticker__item { color: var(--muted); }
.ticker__item i { font-style: normal; color: var(--cyan); font-weight: 700; }
.ticker__item::after { content: "◆"; color: rgba(255,255,255,.28); margin-left: 26px; font-size: 8px; }
html[data-theme="dark"] .ticker__item::after { color: var(--line); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 6. 特性网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.feature { display: flex; flex-direction: column; gap: 13px; }
.feature__icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--green-bg); color: var(--green-ink);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
}
.feature h3 { font-size: 17px; }
.feature p { margin: 0; font-size: 14.8px; color: var(--muted); line-height: 1.7; }
.feature__code {
  margin-top: auto; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--terra);
}

/* ---------- 7. 十步流程 ---------- */
.pipeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
@media (max-width: 780px) { .pipeline { grid-template-columns: minmax(0, 1fr); } }

.step {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--surface);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.step:hover { border-color: var(--green); transform: translateX(4px); }
.step__no {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  color: var(--green-2); flex: none; width: 26px;
}
.step__body { min-width: 0; }
.step__name { font-weight: 700; font-size: 15.5px; }
.step__tool {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.step--opt { border-style: dashed; }
.step--cap { border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: var(--cyan-bg); }
.step--cap .step__no { color: var(--cyan-ink); }
.step--cap .step__tool { color: var(--cyan-ink); }

.pipeline__legend {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px;
  font-size: 13px; color: var(--muted);
}
.pipeline__legend span { display: inline-flex; align-items: center; gap: 8px; }
.pipeline__legend i { width: 22px; height: 12px; border-radius: 2px; flex: none; display: inline-block; }
.pipeline__legend .l1 { background: var(--surface); border: 1px solid var(--line-soft); }
.pipeline__legend .l2 { background: var(--surface); border: 1px dashed var(--line); }
.pipeline__legend .l3 { background: var(--cyan-bg); border: 1px solid var(--cyan); }

/* ---------- 8. 步骤指引 ---------- */
.guide { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 48px; align-items: start; }
@media (max-width: 1000px) { .guide { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.guide__list { list-style: none; counter-reset: g; display: flex; flex-direction: column; gap: 2px; }
.guide__list li {
  counter-increment: g;
  display: grid; grid-template-columns: 34px 1fr; gap: 14px;
  padding: 15px 0; border-bottom: 1px dashed var(--line-soft);
}
.guide__list li::before {
  content: counter(g);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-bg); color: var(--green-ink);
  border: 1px solid color-mix(in srgb, var(--green) 25%, transparent);
}
.guide__list b { color: var(--ink); }
.guide__list li > span > b:first-child { display: block; font-size: 15.5px; margin-bottom: 2px; }
.guide__list span { font-size: 14.4px; color: var(--muted); }
.guide__list code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 3px; color: var(--terra);
}

/* 双端 / 单端 切换 */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 22px; }
.tab {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 20px; border-radius: 3px;
  font-size: 14px; font-weight: 700; color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--green); color: #fdfaf1; }
.panel[hidden] { display: none; }

/* ---------- 9. 结果 ---------- */
.results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
@media (max-width: 940px) { .results { grid-template-columns: minmax(0, 1fr); } }

.tree {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.9;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px 22px;
  overflow-x: auto; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.tree b { color: var(--green-2); }
.tree em { font-style: normal; color: var(--terra); }
.tree i { font-style: normal; color: var(--muted); }

.filelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
@media (max-width: 520px) { .filelist { grid-template-columns: minmax(0, 1fr); } }
.filelist div {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); background: var(--surface);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
}
.filelist div span { color: var(--muted); font-family: var(--font-sans); font-size: 12.5px; font-weight: 400; margin-left: auto; }
.filelist svg { color: var(--green-2); flex: none; }

/* ---------- 10. 环境要求 ---------- */
.req { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .req { grid-template-columns: minmax(0, 1fr); } }
.req__item { border-left: 3px solid var(--terra); padding: 4px 0 4px 18px; }
.req__item h4 { font-size: 16px; margin-bottom: 6px; }
.req__item p { margin: 0; font-size: 14.4px; color: var(--muted); }
.req__item code {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--terra);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 3px;
}

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--terra); background: var(--terra-bg);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-top: 32px;
}
.callout svg { flex: none; color: var(--terra); margin-top: 3px; }
.callout p { margin: 0; font-size: 14.8px; color: var(--ink-soft); }
.callout b { color: var(--terra); }
.callout code {
  font-family: var(--font-mono); font-size: 12.6px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 3px;
}
.callout--info { border-color: var(--cyan); background: var(--cyan-bg); }
.callout--info svg { color: var(--cyan-ink); }
.callout--info b { color: var(--cyan-ink); }

/* ---------- 11. 正版服务与联系 ---------- */
.promise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 46px; align-items: start; }
@media (max-width: 980px) { .promise { grid-template-columns: minmax(0, 1fr); } }

.promise__list { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.promise__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.2px; color: var(--ink-soft); }
.promise__list svg { flex: none; color: var(--green-2); margin-top: 4px; }
.promise__list b { color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.person {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.person:hover { border-color: var(--line); box-shadow: var(--shadow-md); }
.person__head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.person__avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fdfaf1;
  font-weight: 700; font-size: 16px;
}
.person__name { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.person__role { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.person dl { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.person dl > div { display: flex; align-items: baseline; gap: 10px; font-size: 14.2px; }
.person dt {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  flex: none; width: 52px;
}
.person dd { margin: 0; font-family: var(--font-mono); font-size: 13.4px; word-break: break-all; color: var(--ink); }

.copybar {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.copybar p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 240px; }

.qgroup {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px; padding: 16px 20px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--green); color: #eaf3ec;
}
html[data-theme="dark"] .qgroup { background: var(--surface); color: var(--ink); }
.qgroup__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.qgroup__no { font-family: var(--font-mono); font-size: 22px; font-weight: 700; letter-spacing: .06em; color: #fff; }
html[data-theme="dark"] .qgroup__no { color: var(--cyan); }
.qgroup .btn { margin-left: auto; }
@media (max-width: 560px) { .qgroup { flex-wrap: wrap; } .qgroup .btn { margin-left: 0; } }

/* ---------- 12. 视频教程 ---------- */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 780px) { .videos { grid-template-columns: minmax(0, 1fr); } }

.video {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft); background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.video:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.video__thumb {
  width: 52px; height: 52px; flex: none; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--terra-bg); color: var(--terra);
  border: 1px solid color-mix(in srgb, var(--terra) 25%, transparent);
}
.video h3 { font-size: 15.8px; margin-bottom: 4px; color: var(--ink); }
.video:hover h3 { color: var(--terra); }
.video p { margin: 0 0 8px; font-size: 13.6px; color: var(--muted); }
.video__bv {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; color: var(--cyan-ink);
}

/* ---------- 13. FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 880px; margin-inline: auto; }
.qa {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
  transition: border-color .18s ease;
}
.qa[open] { border-color: var(--line); }
.qa summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 14px;
  padding: 17px 20px; font-weight: 700; font-size: 15.6px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; margin-left: auto;
  font-family: var(--font-mono); font-size: 19px; font-weight: 400;
  color: var(--green-2); line-height: 1; transition: transform .2s ease;
}
.qa[open] summary::after { content: "–"; }
.qa summary:hover { background: var(--surface-2); }
.qa__body { padding: 0 20px 20px; font-size: 14.8px; color: var(--muted); }
.qa__body p:last-child { margin-bottom: 0; }
.qa__body code {
  font-family: var(--font-mono); font-size: 12.6px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 3px; color: var(--terra);
  word-break: break-all;
}

/* ---------- 14. 结尾 CTA ---------- */
.endcta {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--green); color: #eaf3ec;
  padding: 52px; text-align: center;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
html[data-theme="dark"] .endcta { background: var(--surface); color: var(--ink); }
.endcta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0);
  background-size: 22px 22px; opacity: .5;
}
.endcta > * { position: relative; }
.endcta h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; color: #fff; }
html[data-theme="dark"] .endcta h2 { color: var(--ink); }
.endcta p { color: rgba(234, 243, 236, .82); max-width: 44em; margin: 0 auto 28px; }
html[data-theme="dark"] .endcta p { color: var(--muted); }
.endcta .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 15. 页脚 ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line-soft); padding: 56px 0 30px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

.footer h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer a { font-size: 14.4px; color: var(--ink-soft); }
.footer a:hover { color: var(--terra); }
.footer p { font-size: 14px; color: var(--muted); }
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer__note {
  border-top: 1px solid var(--line-soft); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center;
  font-size: 13px; color: var(--muted);
}
.footer__note span:last-child { margin-left: auto; }
@media (max-width: 560px) { .footer__note span:last-child { margin-left: 0; } }

/* ---------- 16. 动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 17. 返回顶部 ---------- */
.totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: var(--radius);
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, color .2s ease, border-color .2s ease;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { color: var(--green-2); border-color: var(--green); }

/* ---------- 18. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 200;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 19. 文档页（教程） ---------- */
.doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 52px; align-items: start; }
@media (max-width: 940px) { .doc { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.toc { position: sticky; top: calc(var(--nav-h) + 22px); }
@media (max-width: 940px) { .toc { position: static; } }
.toc__title {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.toc ol { list-style: none; counter-reset: t; }
.toc a {
  display: block; padding: 8px 14px; font-size: 14.2px; font-weight: 600;
  color: var(--muted); border-left: 2px solid var(--line);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.toc a:hover { color: var(--green-2); border-color: var(--green); background: var(--surface); }
.toc a.is-active { color: var(--green-2); border-color: var(--green); background: var(--green-bg); }

.post { max-width: 820px; }
.post h2 {
  font-size: clamp(22px, 3vw, 29px); margin: 0 0 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft); scroll-margin-top: calc(var(--nav-h) + 20px);
}
.post h2 .num {
  font-family: var(--font-mono); font-size: .58em; font-weight: 700;
  letter-spacing: .1em; color: var(--terra); margin-right: 14px; vertical-align: .18em;
}
.post section + section { margin-top: 64px; }
.post h3 { font-size: 18.5px; margin: 32px 0 12px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.post h4 { font-size: 16px; margin: 24px 0 10px; color: var(--green-2); }
.post p { color: var(--ink-soft); font-size: 15.6px; }
.post ul, .post ol { padding-left: 22px; margin: 0 0 18px; }
.post li { color: var(--ink-soft); font-size: 15.4px; margin-bottom: 8px; }
.post li::marker { color: var(--terra); font-weight: 700; }
.post strong, .post b { color: var(--ink); }
.post code {
  font-family: var(--font-mono); font-size: 12.8px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 1px 6px; border-radius: 3px; color: var(--terra);
  word-break: break-all;
}
.post hr { border: 0; border-top: 1px dashed var(--line-soft); margin: 34px 0; }

.note {
  display: flex; gap: 14px; align-items: flex-start;
  border-left: 3px solid var(--cyan); background: var(--cyan-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 20px 0;
}
.note svg { flex: none; color: var(--cyan-ink); margin-top: 3px; }
.note p { margin: 0; font-size: 14.8px; color: var(--ink-soft); }
.note p + p { margin-top: 8px; }
.note--warn { border-color: var(--terra); background: var(--terra-bg); }
.note--warn svg { color: var(--terra); }
.note--ok { border-color: var(--green); background: var(--green-bg); }
.note--ok svg { color: var(--green-2); }

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

.doclinks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0;
}
@media (max-width: 700px) { .doclinks { grid-template-columns: minmax(0, 1fr); } }
.doclinks a {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface); font-weight: 600; font-size: 14.6px; color: var(--ink-soft);
  transition: border-color .16s ease, transform .16s ease, color .16s ease;
}
.doclinks a:hover { border-color: var(--green); color: var(--green-2); transform: translateY(-2px); }
.doclinks a span.bv {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan-ink); letter-spacing: .06em;
}

/* ---------- 20. 打印 ---------- */
@media print {
  .topbar, .totop, .drawer, .ticker, .endcta, .hero__cta { display: none !important; }
  body { background: #fff; }
  .section { padding: 24px 0; }
  .reveal { opacity: 1; transform: none; }
}
