/* MlSkin 官网 V2 样式 —— 不依赖 Tailwind 运行时，纯 CSS */

:root {
  --brand: #30b090;
  --brand-strong: #1f8f73;
  --brand-soft: #e6f6f1;
  --accent: #ff6b35;
  --ink: #15201d;
  --ink-2: #3a4945;
  --muted: #66756f;
  --line: #e2ebe8;
  --bg: #ffffff;
  --bg-soft: #f5f9f8;
  --card: #ffffff;
  /* 首屏 / 页头 / 页脚这一组"品牌表面"：浅薄荷底 + 深色文字 */
  --hero-bg: #eaf6f1;
  --hero-ink: #12241f;
  --hero-muted: #5c766d;
  --hero-line: rgba(16, 60, 50, .12);      /* 表面上的描边 */
  --hero-tint: rgba(16, 60, 50, .06);      /* 表面上的淡色块（按钮底、徽章底） */
  --hero-nav: rgba(234, 246, 241, .92);    /* 吸顶导航（半透明） */
  --hero-grid: rgba(16, 60, 50, .05);      /* 首屏网格线 */
  --hero-img-shadow: drop-shadow(0 20px 44px rgba(16, 60, 50, .28));
  --shadow: 0 1px 2px rgba(16, 40, 34, .06), 0 8px 24px rgba(16, 40, 34, .08);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .55);
  --radius: 14px;
  --maxw: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hero-bg: #0f2723;
    --hero-ink: #eaf5f1;
    --hero-muted: #9db3ab;
    --hero-line: rgba(255, 255, 255, .14);
    --hero-tint: rgba(255, 255, 255, .07);
    --hero-nav: rgba(15, 39, 35, .95);
    --hero-grid: rgba(255, 255, 255, .035);
    --hero-img-shadow: drop-shadow(0 24px 48px rgba(0, 0, 0, .55));
    --brand-soft: #143a31;
    --ink: #e7efec;
    --ink-2: #c3d0cc;
    --muted: #93a39e;
    --line: #22302c;
    --bg: #0f1614;
    --bg-soft: #131d1a;
    --card: #17221f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --hero-bg: #0f2723;
  --hero-ink: #eaf5f1;
  --hero-muted: #9db3ab;
  --hero-line: rgba(255, 255, 255, .14);
  --hero-tint: rgba(255, 255, 255, .07);
  --hero-nav: rgba(15, 39, 35, .95);
  --hero-grid: rgba(255, 255, 255, .035);
  --hero-img-shadow: drop-shadow(0 24px 48px rgba(0, 0, 0, .55));
  --brand-soft: #143a31;
  --ink: #e7efec;
  --ink-2: #c3d0cc;
  --muted: #93a39e;
  --line: #22302c;
  --bg: #0f1614;
  --bg-soft: #131d1a;
  --card: #17221f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; }
html[lang="en"] .hero h1 { font-size: clamp(32px, 3.9vw, 48px); font-weight: 700; }
html[lang="en"] .page-hero h1, html[lang="en"] .plan .price { font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
code, .mono { font-family: "Cascadia Code", Consolas, "JetBrains Mono", monospace; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--brand-strong); text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px -6px rgba(48, 176, 144, .7); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--hero-ink); border-color: var(--hero-line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--hero-nav);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hero-line);
  color: var(--hero-ink);
}
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 6px 12px; border-radius: 8px; font-size: 15px; color: var(--hero-muted);
  transition: color .15s, background-color .15s;
}
.nav-links a:hover { color: var(--hero-ink); background: var(--hero-tint); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-right .lang { font-size: 14px; color: var(--hero-muted); padding: 6px 10px; }
.nav-right .lang:hover { color: var(--hero-ink); }
/* 中/EN 语言开关：绿色滑块停在当前语言一侧，点击时先滑过去再跳转 */
.nav-right .lang-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 80px; height: 32px; padding: 3px; border-radius: 999px;
  background: var(--hero-tint); border: 1px solid var(--hero-line);
  font-size: 13px; font-weight: 600; color: var(--hero-muted);
  transition: border-color .2s;
}
.lang-switch::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--brand); box-shadow: 0 2px 8px rgba(48, 176, 144, .45);
  transition: transform .22s ease;
}
html[lang="en"] .lang-switch::before, .lang-switch.flip::before { transform: translateX(100%); }
html[lang="en"] .lang-switch.flip::before { transform: none; }
.lang-switch span { position: relative; z-index: 1; text-align: center; line-height: 24px; transition: color .2s; }
.lang-switch span.on { color: #fff; }
.lang-switch.flip span.on { color: var(--hero-muted); }
.lang-switch.flip span:not(.on) { color: var(--hero-ink); }
.nav-right .lang-switch:hover { border-color: var(--brand); }
.lang-switch:hover span:not(.on) { color: var(--hero-ink); }
.lang-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.nav-right .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.menu-btn {
  display: none; margin-left: auto; width: 40px; height: 40px;
  border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1000px 520px at 78% 30%, rgba(48, 176, 144, .20), transparent 60%),
              radial-gradient(700px 400px at 10% 100%, rgba(54, 207, 201, .14), transparent 60%),
              var(--hero-bg);
  color: var(--hero-ink);
  padding: 72px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--hero-grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--hero-tint); border: 1px solid var(--hero-line);
  font-size: 13px; color: var(--hero-muted);
}
.badge b { background: var(--brand); color: #fff; font-weight: 600; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.badge:hover { border-color: var(--brand); color: var(--hero-ink); }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #1f8f73, #14a89c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 20px; font-size: 18px; color: var(--hero-muted); max-width: 520px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--hero-muted); }
.hero .ticks li { display: flex; align-items: center; gap: 7px; }
.hero .ticks svg { width: 16px; height: 16px; color: var(--brand); }

/* 换肤演示 */
.skin-demo { position: relative; }
.skin-stage { position: relative; filter: var(--hero-img-shadow); }
/* 截图四周已抠成透明，阴影跟随窗口外形而不是矩形图片框 */
.skin-stage img { cursor: zoom-in; width: 100%; height: auto; transition: filter .25s ease; }
.skin-panel {
  position: relative; z-index: 2;
  margin: -46px 18px 0 auto; width: min(340px, 92%);
  padding: 16px 18px 14px; border-radius: 14px;
  background: var(--card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -14px rgba(16, 60, 50, .35);
}
.skin-panel-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.skin-panel-head button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; padding: 2px 6px; border-radius: 6px;
}
.skin-panel-head button:hover { color: var(--ink); background: var(--bg-soft); }
.swatches { display: flex; gap: 8px; margin-bottom: 12px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid var(--line); background: var(--c);
  transition: transform .15s, border-color .15s;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.slider-row { display: grid; grid-template-columns: 44px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); height: 28px; }
html[lang="en"] .slider-row { grid-template-columns: 78px 1fr 40px; }
.slider-row output { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.skin-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--track, var(--line)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--track, var(--line)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(16, 60, 50, .3); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(16, 60, 50, .3); }
input[type=range]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
#hue { --track: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
#sat { --track: linear-gradient(90deg, #888, #2bb3ff); }
#lum { --track: linear-gradient(90deg, #111, #fff); }

/* ---------- 数据条 ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--bg); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 特性 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 18px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .new {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); padding: 0 7px; border-radius: 5px; line-height: 18px;
}

/* ---------- Demo 画廊 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot {
  display: flex; flex-direction: column; align-items: stretch; width: 100%;
  padding: 0; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; text-align: left; font: inherit; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* 缩略图整张等比缩小放进去（不裁切），四周留白，截图带一点投影像一个小窗口 */
.shot .thumb { width: 100%; height: 200px; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; padding: 18px 22px; display: flex; align-items: center; justify-content: center; text-align: center; border-bottom: 1px solid var(--line); }
@supports (aspect-ratio: 16 / 10) { .shot .thumb { height: auto; } }
.shot .thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; align-self: center; margin: 0 auto; border-radius: 4px; box-shadow: 0 4px 14px rgba(16, 40, 34, .14); transition: transform .4s ease; }
.shot:hover .thumb img { transform: scale(1.03); }
.shot .cap { width: 100%; padding: 14px 16px; }
.shot .cap b { display: block; font-size: 15px; }
.shot .cap span { font-size: 13px; color: var(--muted); }
.more { margin-top: 36px; text-align: center; }

/* ---------- 版本支持 ---------- */
.ver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ver {
  border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px 14px;
}
.ver b { display: block; font-size: 15px; }
.ver .flags { display: flex; gap: 5px; margin-top: 6px; }
.flag { font-style: normal; font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 6px; border-radius: 5px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.flag:not(.on) { opacity: .45; text-decoration: line-through; }
.flag.on { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.ver-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.ver-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 更新 ---------- */
.release { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.release-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.release-card h3 { font-size: 15px; font-weight: 700; color: var(--muted); margin: 0 0 12px; }
.release-card h3 + ul { margin-bottom: 22px; }
.release-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.release-card li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.release-card li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.release-card li.fix::before { background: var(--accent); }
.release-card code { font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; }

/* ---------- 价格 ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
}
.plan.hot { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .ribbon {
  position: absolute; top: -12px; left: 24px; padding: 2px 10px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
}
.plan h3 { font-size: 17px; }
.plan .price { margin: 14px 0 4px; font-size: 34px; font-weight: 800; line-height: 1.1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .sub { font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--brand); }
.plan li.no { color: var(--muted); }
.plan li.no svg { color: var(--muted); }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }

/* ---------- 相关产品 ---------- */
.xe {
  display: flex; align-items: center; gap: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px;
}
.xe img { width: 64px; height: auto; flex: none; }
.xe div { flex: 1; }
.xe h3 { font-size: 19px; margin-bottom: 6px; }
.xe p { color: var(--muted); font-size: 15px; }

/* ---------- 页脚 ---------- */
.cta-band {
  background: linear-gradient(120deg, #1f8f73, #30b090 55%, #36cfc9);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); }
.cta-band p { margin-top: 12px; opacity: .9; font-size: 17px; }
.cta-band .cta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-strong); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { border-color: #fff; }

footer { background: var(--hero-bg); color: var(--hero-muted); font-size: 14px; }
footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
footer h4 { margin: 0 0 14px; color: var(--hero-ink); font-size: 14px; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a:hover { color: var(--brand-strong); }
footer .brand { color: var(--hero-ink); margin-bottom: 12px; }
.foot-about { max-width: 340px; line-height: 1.8; }
.foot-about + .foot-about { margin-top: 8px; }
.qr-row { display: flex; gap: 14px; }
.qr-row .qr { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 12px; text-align: center; cursor: zoom-in; }
.qr-row .qr img { transition: transform .15s ease, box-shadow .15s ease; }
.qr-row .qr:hover img { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.qr-row .qr:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 10px; }
.qr-row img { display: block; width: 88px; height: 88px; border-radius: 8px; background: #fff; padding: 4px; margin: 0 auto 6px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hero-line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; }

/* ---------- 图片放大 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; margin: 0; /* figure 自带 40px 外边距，不清掉遮罩盖不满屏幕 */
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 14, 12, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img.actual { box-shadow: none; border-radius: 0; }
.lightbox img.qr { width: min(320px, 80vw); height: auto; padding: 14px; background: #fff; image-rendering: pixelated; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #cfdcd8; font-size: 14px; }

/* ---------- 进场动画 ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- 导航当前页 ---------- */
.nav-links a[aria-current="page"] { color: var(--hero-ink); background: var(--hero-tint); font-weight: 600; }

/* ---------- 子页面头部 ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 380px at 80% 0%, rgba(48, 176, 144, .20), transparent 60%), var(--hero-bg);
  color: var(--hero-ink);
  padding: 64px 0 60px;
}
.page-hero .eyebrow { color: var(--brand-strong); }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-hero p { margin-top: 14px; font-size: 17px; color: var(--hero-muted); max-width: 640px; }

/* ---------- 首页：亮点入口 ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hl {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.hl:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.hl .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 18px; }
.hl .ico svg { width: 24px; height: 24px; }
.hl h3 { font-size: 18px; margin-bottom: 8px; }
.hl p { color: var(--muted); font-size: 15px; flex: 1; }
.hl .go { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-strong); }
.hl .go svg { width: 16px; height: 16px; transition: transform .15s; }
.hl:hover .go svg { transform: translateX(3px); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.head-row .section-head { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-strong); white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; }
.cta-band .price-hint { margin-top: 18px; font-size: 14px; opacity: .85; }
.cta-band .price-hint a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 示例页：筛选 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 500;
}
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip small { margin-left: 4px; opacity: .7; }
.shot[hidden] { display: none; }
.shot .cap .ver-tag { font-style: normal; float: right; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; line-height: 18px; margin-left: 8px; }

/* ---------- 下载页 ---------- */
.dl-card {
  position: relative; z-index: 2; margin-top: -36px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 30px 32px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: start;
}
.dl-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.select {
  position: relative;
}
.select select {
  -webkit-appearance: none; appearance: none; width: 100%; height: 48px;
  padding: 0 44px 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.select select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.dl-meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.dl-files { display: grid; gap: 10px; }
.dl-file {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
}
.dl-file .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.dl-file .ico svg { width: 20px; height: 20px; }
.dl-file div { flex: 1; min-width: 0; }
.dl-file b { display: block; font-size: 15px; }
.dl-file span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-file .btn { height: 38px; padding: 0 14px; font-size: 14px; }
.dl-file.off { opacity: .6; }
.dl-note { font-size: 13px; color: var(--muted); }
.dl-note a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.extra { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s; }
.extra:hover { border-color: var(--brand); }
.extra .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); flex: none; }
.extra .ico svg { width: 20px; height: 20px; }
.extra b { display: block; margin-bottom: 2px; }
.extra span { font-size: 14px; color: var(--muted); }
/* 下载页购买横幅 */
.buy-band {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 26px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid rgba(48, 176, 144, .25);
}
.buy-band > div > b { display: block; font-size: 17px; margin-bottom: 8px; }
.buy-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2); }
.buy-band li { display: flex; align-items: center; gap: 6px; }
.buy-band li svg { width: 15px; height: 15px; color: var(--brand-strong); flex: none; }
.buy-cta { display: flex; align-items: center; gap: 18px; flex: none; }
.buy-price { font-size: 14px; color: var(--muted); white-space: nowrap; }
.buy-price b { font-size: 22px; color: var(--ink); margin: 0 2px; }
details.all {
  margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
details.all summary { cursor: pointer; padding: 16px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.all summary::-webkit-details-marker { display: none; }
details.all summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details.all[open] summary::after { content: "−"; }
.all-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; padding: 4px 22px 22px; }
.all-cols h4 { margin: 10px 0 8px; font-size: 14px; color: var(--muted); }
.all-cols ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 14px; }
.all-cols a { color: var(--brand-strong); }
.all-cols a:hover { text-decoration: underline; }
.callout {
  margin-top: 24px; padding: 16px 20px; border-radius: 12px; font-size: 14px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c3d12;
}
:root[data-theme="dark"] .callout { background: #2a1d12; border-color: #5a3a1c; color: #f5c89a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callout { background: #2a1d12; border-color: #5a3a1c; color: #f5c89a; } }
.callout b { display: block; margin-bottom: 4px; }

/* ---------- 价格页 ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.perk .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px; }
.perk .ico svg { width: 20px; height: 20px; }
.perk b { display: block; margin-bottom: 4px; }
.perk span { font-size: 14px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px 70px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700;
}
.step b { display: block; margin-bottom: 4px; }
.step span { font-size: 14px; color: var(--muted); }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pay-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.pay-card b { display: block; margin-bottom: 12px; }
.pay-card button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; margin: 0 auto; }
.pay-card img { width: 180px; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.pay-card span { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.paypal-box { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.paypal-box iframe { width: 240px; height: 140px; overflow: hidden; border: 0; background: #fff; border-radius: 8px; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; }
.faq details p { padding: 0 20px 16px; color: var(--muted); font-size: 15px; }

/* ---------- 帮助中心 ---------- */
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.help-toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
.help-toc h4 { margin: 0 0 10px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.help-toc a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); border-left: 2px solid transparent; transition: background-color .15s, color .15s; }
.help-toc a:hover { background: var(--bg-soft); color: var(--ink); }
.help-toc a.active { background: var(--brand-soft); color: var(--brand-strong); border-left-color: var(--brand); font-weight: 600; }
.help-body { max-width: 800px; }
.article { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.article h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.article h3 { font-size: 18px; margin: 36px 0 10px; scroll-margin-top: 88px; }
.article p { color: var(--ink-2); margin-top: 12px; }
.article .intro { color: var(--muted); font-size: 16px; }
.article a:not(.btn):not(.res) { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.article code { font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.article > .btn { margin-top: 20px; }
.hsteps { counter-reset: hs; list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 22px; }
.hsteps > li { position: relative; padding-left: 44px; counter-increment: hs; color: var(--ink); line-height: 1.8; }
.hsteps > li::before {
  content: counter(hs); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 700;
}
.article figure { margin: 14px 0 0; }
.hshot { display: flex; max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); transition: transform .2s ease; }
.hshot:hover { transform: translateY(-2px); }
.hshot img { display: block; max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .hshot img { max-height: 46vh; width: auto; }
  .shot .thumb { height: 190px; }
  .shot .thumb img { max-height: 190px; }   /* 不依赖容器高度的兜底 */
}
.article figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.article .callout { margin-top: 20px; }
.callout.tip { background: var(--brand-soft); border-color: rgba(48, 176, 144, .3); color: var(--ink-2); }
.callout.tip b { color: var(--brand-strong); }
.article ul.links { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.res { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s, transform .15s; }
.res:hover { border-color: var(--brand); transform: translateY(-2px); }
.res b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.res span { font-size: 14px; color: var(--muted); }
.res small { margin-top: 6px; font-size: 12px; color: var(--brand-strong); }
.res .tag { font-style: normal; font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 5px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.res .tag.hot { background: #fff1e8; color: #c2410c; border-color: #fed7aa; }
.help-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
}
.help-contact b { display: block; font-size: 18px; margin-bottom: 4px; }
.help-contact span { color: var(--muted); font-size: 15px; }
.help-contact-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 更新日志 ---------- */
.cl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.cl-count { font-weight: 600; color: var(--ink-2); }
.cl-legend { display: flex; gap: 8px; }
.cl-tag {
  flex: none; display: inline-block; min-width: 42px; text-align: center; font-style: normal;
  font-size: 12px; font-weight: 600; line-height: 22px; padding: 0 8px; border-radius: 6px;
}
.cl-tag.add { background: var(--brand-soft); color: var(--brand-strong); }
.cl-tag.other { background: #eef2ff; color: #4f46e5; }
.cl-tag.fix { background: #fff1e8; color: #c2410c; }
:root[data-theme="dark"] .cl-tag.other { background: #1e2140; color: #a5b4fc; }
:root[data-theme="dark"] .cl-tag.fix { background: #2a1d12; color: #fdba74; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cl-tag.other { background: #1e2140; color: #a5b4fc; }
  :root:not([data-theme="light"]) .cl-tag.fix { background: #2a1d12; color: #fdba74; }
}
.cl-ver { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 88px; }
.cl-ver:first-of-type { padding-top: 0; }
.cl-head h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.cl-head time { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.cl-head .link-arrow { margin-top: 14px; font-size: 14px; }
.cl-latest { font-style: normal; font-size: 12px; font-weight: 700; line-height: 20px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: #fff; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.cl-list li .cl-tag { margin-top: 2px; }
.cl-list b { color: var(--ink); font-weight: 600; }
.cl-older { margin-top: 56px; }
.cl-older h2 { display: flex; align-items: baseline; gap: 12px; font-size: 24px; }
.cl-older h2 small { font-size: 15px; font-weight: 500; color: var(--muted); }
.cl-older > p { margin: 8px 0 20px; color: var(--muted); font-size: 14px; }
.cl-old { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 8px; scroll-margin-top: 88px; }
.cl-old summary { display: flex; align-items: center; gap: 16px; padding: 12px 18px; cursor: pointer; list-style: none; }
.cl-old summary::-webkit-details-marker { display: none; }
.cl-old summary::after { content: "+"; margin-left: auto; font-size: 18px; color: var(--muted); }
.cl-old[open] summary::after { content: "−"; }
.cl-old summary b { min-width: 120px; font-size: 15px; }
.cl-old summary time { color: var(--muted); font-size: 14px; min-width: 96px; }
.cl-old summary span { color: var(--muted); font-size: 13px; }
.cl-old summary:hover b { color: var(--brand-strong); }
.cl-old .cl-list { padding: 4px 18px 18px; }
.cl-old .cl-list li { font-size: 14px; }

/* ---------- 控件参考文档 ---------- */
.doc-search { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.doc-search input {
  flex: 1; height: 46px; padding: 0 16px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.doc-search input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.doc-search span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.doc-hint { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.doc-group { margin-bottom: 36px; }
.doc-group[hidden] { display: none; }
.doc-group h2 { font-size: 17px; margin-bottom: 14px; color: var(--ink-2); }
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.doc-card {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  transition: border-color .15s, transform .15s;
}
.doc-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.doc-card[hidden] { display: none; }
.doc-card b { font-size: 15px; word-break: break-all; }
.doc-card span { font-size: 13px; color: var(--muted); }
.doc-card small { font-size: 12px; color: var(--brand-strong); }
.doc-empty { color: var(--muted); }
.doc-hero { padding-bottom: 44px; }
.doc-crumb { font-size: 14px; color: var(--hero-muted); margin-bottom: 14px; }
.doc-crumb a { color: var(--hero-muted); text-decoration: underline; text-underline-offset: 2px; }
.doc-crumb a:hover { color: var(--brand-strong); }
.doc-hero h1 { font-family: "Cascadia Code", Consolas, monospace; font-size: clamp(26px, 3.4vw, 38px); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; font-size: 14px; }
.doc-meta dt { color: var(--hero-muted); }
.doc-meta dd { margin: 0 0 0 8px; color: var(--hero-ink); }
.doc-meta dd code { font-size: 13px; }
.doc-meta a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.doc-body h2 { font-size: 20px; margin: 36px 0 14px; }
.doc-body h2:first-of-type { margin-top: 0; }
.doc-body h2 small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.doc-table th, .doc-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table thead th { background: var(--bg-soft); font-size: 13px; color: var(--muted); font-weight: 600; }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tbody tr:hover { background: var(--bg-soft); }
.doc-table code { font-size: 13px; background: none; border: 0; padding: 0; color: var(--ink); }
.doc-table td:nth-child(2) { color: var(--brand-strong); font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; }
.doc-ro, .doc-note { font-style: normal; font-size: 11px; font-weight: 600; padding: 0 6px; line-height: 18px; border-radius: 5px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.doc-inh { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.doc-inh summary { cursor: pointer; padding: 12px 16px; font-size: 14px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.doc-inh summary::-webkit-details-marker { display: none; }
.doc-inh summary span { color: var(--muted); font-weight: 500; }
.doc-inh summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 18px; }
.doc-inh[open] summary::after { content: "−"; }
.doc-inh .doc-table { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.doc-rel { margin-top: 4px; }
.doc-relver { font-size: 12px; color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* 控件页：用途说明、用法要点、示例代码 */
.doc-sum { margin-top: 14px; font-size: 17px; color: var(--hero-ink); max-width: 760px; line-height: 1.7; }
.doc-usage { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.doc-usage li { position: relative; padding-left: 20px; color: var(--ink-2); line-height: 1.8; }
.doc-usage li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.doc-usage code, .doc-table code, .doc-sum code { font-family: "Cascadia Code", Consolas, monospace; }
.doc-usage code { font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line); padding: 0 5px; border-radius: 5px; }
.doc-code { margin: 0; padding: 16px 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.doc-code code { font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; line-height: 1.6; color: var(--ink-2); white-space: pre; }
.doc-table td:nth-child(4) { color: var(--ink-2); line-height: 1.7; min-width: 260px; }
.doc-table td:nth-child(4) code { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); padding: 0 4px; border-radius: 4px; color: var(--ink-2); }
.doc-todo { font-style: normal; color: var(--muted); font-size: 13px; }

/* 常用函数页 */
.doc-jump { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-soft); transition: border-color .15s, transform .15s; }
.doc-jump:hover { border-color: var(--brand); transform: translateY(-2px); }
.doc-jump b { color: var(--brand-strong); }
.doc-jump span { font-size: 14px; color: var(--muted); }
.func-group { margin-bottom: 40px; }
.func-group[hidden] { display: none; }
.func-group h2 { font-size: 17px; margin-bottom: 16px; color: var(--ink-2); }
.func { padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.func[hidden] { display: none; }
.func h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-family: "Cascadia Code", Consolas, monospace; font-size: 16px; margin-bottom: 10px; }
.func h3 small { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--brand-strong); }
.func-sig { margin: 0 0 6px; padding: 10px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.func-sig code { font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; line-height: 1.6; color: var(--ink-2); white-space: pre; }
.func p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.func p code { font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); padding: 0 5px; border-radius: 4px; }

/* 帮助中心顶部的「控件使用说明」入口 */
.help-hero-card {
  display: flex; gap: 20px; align-items: flex-start; margin-bottom: 40px;
  padding: 24px 26px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid rgba(48, 176, 144, .3);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.help-hero-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.help-hero-card .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.help-hero-card .ico svg { width: 24px; height: 24px; }
.help-hero-card .txt { display: flex; flex-direction: column; gap: 6px; }
.help-hero-card b { font-size: 19px; }
.help-hero-card span { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.help-hero-card em { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--brand-strong); }
.help-hero-card em svg { width: 16px; height: 16px; transition: transform .15s; }
.help-hero-card:hover em svg { transform: translateX(3px); }

/* 浅薄荷区块与白色内容区的交界：用一层渐变过渡，避免硬边 */
.hero, .page-hero { isolation: isolate; }
.hero .wrap, .page-hero .wrap { z-index: 1; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: 120px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.page-hero::after { height: 80px; }
/* 页脚上边缘：白色内容区渐隐进薄荷色 */
footer { position: relative; }
footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
footer .wrap { position: relative; z-index: 1; }

/* 下载页的自定义版本下拉（原生 select 作为无脚本后备，脚本接管后隐藏） */
.dd-host select { display: none; }
.dd-host::after { display: none; }
.dd { position: relative; }
.dd-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-align: left;
  transition: border-color .15s, background-color .15s;
}
.dd-btn:hover { border-color: var(--brand); }
.dd-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dd.open .dd-btn { border-color: var(--brand); background: var(--card); }
.dd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-tags { display: flex; gap: 6px; flex: none; }
.dd-tag {
  font-style: normal; font-size: 11px; font-weight: 600; line-height: 20px; padding: 0 8px;
  border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}
.dd-btn .dd-tag { background: var(--card); }
.dd-tag.on { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.dd-tag.old { background: #fff1e8; color: #c2410c; border-color: #fed7aa; }
:root[data-theme="dark"] .dd-tag.old { background: #2a1d12; color: #fdba74; border-color: #5a3a1c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dd-tag.old { background: #2a1d12; color: #fdba74; border-color: #5a3a1c; } }
.dd-arrow { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .2s ease; }
.dd.open .dd-arrow { transform: rotate(180deg); color: var(--brand-strong); }

.dd-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  max-height: 340px; overflow-y: auto; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px -12px rgba(16, 60, 50, .35);
  scrollbar-width: thin;                 /* Firefox：细滚动条 */
  scrollbar-color: rgba(16, 60, 50, .28) transparent;
}
/* Windows 默认滚动条带方形箭头按钮，会顶掉面板的圆角，这里换成细圆条 */
.dd-panel::-webkit-scrollbar { width: 10px; }
.dd-panel::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.dd-panel::-webkit-scrollbar-track { background: transparent; }
.dd-panel::-webkit-scrollbar-corner { background: transparent; }
.dd-panel::-webkit-scrollbar-thumb {
  background-color: rgba(16, 60, 50, .22);
  border: 3px solid transparent;         /* 透明边，让滚动条不贴着面板圆角 */
  background-clip: padding-box;
  border-radius: 999px;
}
.dd-panel::-webkit-scrollbar-thumb:hover { background-color: rgba(16, 60, 50, .38); }
.dd-group {
  padding: 10px 10px 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase;
}
.dd-opt {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  cursor: pointer; font-size: 15px; outline: none;
}
.dd-opt:hover, .dd-opt:focus { background: var(--bg-soft); }
.dd-opt:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.dd-opt[aria-selected="true"] { color: var(--brand-strong); font-weight: 600; }
.dd-check { width: 16px; height: 16px; flex: none; color: var(--brand); visibility: hidden; }
.dd-opt[aria-selected="true"] .dd-check { visibility: visible; }
/* 暗色下滚动条要用浅色，否则看不见 */
:root[data-theme="dark"] .dd-panel { scrollbar-color: rgba(255, 255, 255, .26) transparent; }
:root[data-theme="dark"] .dd-panel::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .2); }
:root[data-theme="dark"] .dd-panel::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .34); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dd-panel { scrollbar-color: rgba(255, 255, 255, .26) transparent; }
  :root:not([data-theme="light"]) .dd-panel::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .2); }
  :root:not([data-theme="light"]) .dd-panel::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .34); }
}
@media (max-width: 640px) { .dd-panel { max-height: 60vh; } .dd-btn { font-size: 15px; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero .wrap, .release { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 72px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .features, .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav.open .wrap { flex-wrap: wrap; height: auto; min-height: 64px; gap: 0; }
  .nav.open .brand { height: 64px; }
  .nav.open .menu-btn { order: 1; align-self: center; }
  .nav.open .nav-links { order: 2; }
  .nav.open .nav-right { order: 3; }
  .nav.open .nav-links, .nav.open .nav-right { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; gap: 2px; }
  .nav.open .nav-links a { padding: 10px 12px; }
  .nav.open .nav-right { padding: 8px 0 16px; border-top: 1px solid var(--hero-line); }
  .nav.open .nav-right .btn { justify-content: center; height: 44px; }
  .nav.open .nav-right .lang-switch { align-self: flex-start; margin: 4px 12px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .features, .gallery, .plans, .foot-grid { grid-template-columns: 1fr; }
  .skin-panel { margin: 14px 0 0; width: 100%; }
  .xe { flex-direction: column; align-items: flex-start; padding: 24px; }
  .hero .cta .btn { flex: 1; justify-content: center; }
}

/* ---------- 子页面响应式 ---------- */
@media (max-width: 1024px) {
  .dl-card { grid-template-columns: 1fr; gap: 24px; }
  .help-layout { grid-template-columns: 1fr; gap: 28px; }
  .cl-ver { grid-template-columns: 1fr; gap: 14px; }
  .doc-grid { grid-template-columns: repeat(3, 1fr); }
  .help-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .help-toc h4 { display: none; }
  .help-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
  .help-toc a.active { border-color: var(--brand); }
  .help-hero-card { flex-direction: column; gap: 14px; padding: 20px; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .extras, .steps, .pay { grid-template-columns: 1fr; }
  .pay { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .highlights, .perks, .pay { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .dl-card { padding: 22px 18px; }
  .dl-file { flex-wrap: wrap; }
  .dl-file .btn { width: 100%; justify-content: center; }
  .buy-band, .buy-cta { flex-direction: column; align-items: stretch; }
  .buy-cta .btn { justify-content: center; }
  .all-cols, .all-cols ul { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-table { font-size: 13px; }
  .doc-table th, .doc-table td { padding: 8px 10px; }
  .cl-old summary { flex-wrap: wrap; gap: 4px 12px; }
  .cl-old summary b, .cl-old summary time { min-width: 0; }
  .hsteps > li { padding-left: 38px; }
  .article code { white-space: normal; }
  .page-hero { padding: 44px 0 52px; }
}
