/* ==========================================================================
   Flip 官网 · styles.css
   设计语言完全派生自 桌面端 main.py 与 assets/icons（方向 C · 墨色主导）：
   大面积留白 · 扁平 · 无描边堆叠 · 一个青绿强调色 · 发丝线代替阴影
   ========================================================================== */

/* ---------- 1. 设计令牌（与 main.py 的配色常量一一对应） ---------- */
:root {
  /* 品牌色 —— 直接取自 main.py L147-161 */
  --ink:          #14161A;   /* INK   主结构 / 实心主按钮 */
  --ink-hover:    #2C3037;   /* INK_HOVER */
  --accent:       #0EA5A0;   /* ACCENT 唯一强调色 */
  --accent-hover: #0C8F8B;   /* ACCENT_HOVER */
  --accent-soft:  #E6F5F4;   /* ACCENT_SOFT 强调浅底 */
  --ring:         #D8EDEB;   /* 空态圆环 */
  --mark-tint:    rgba(14, 165, 160, .26);  /* 标题强调色块 */
  --grid-line:    rgba(20, 22, 26, .055);   /* 首屏网格背景 */

  /* 灰阶 —— BG / SURFACE / HAIRLINE / SUBTLE / FAINT */
  --bg:           #FFFFFF;
  --surface:      #F5F6F7;
  --surface-hover:#EDEFF1;
  --hairline:     #EDEEF0;
  --subtle:       #6E747D;
  --faint:        #9CA2AA;

  /* 语义色 */
  --gold:         #C9922B;   /* GOLD  会员 */
  --danger:       #D9534F;   /* DANGER 失败 */

  /* 派生：图标与主按钮在深浅主题下的对偶 */
  --icon-ink:     #14161A;
  --icon-white:   #FFFFFF;
  --btn-bg:       #14161A;
  --btn-fg:       #FFFFFF;
  --btn-bg-hover: #2C3037;

  /* 尺寸 */
  --wrap:  1160px;
  --r-lg:  20px;
  --r:     16px;
  --r-md:  12px;
  --r-sm:  10px;
  --r-pill:999px;

  --header-h: 68px;

  /* 排版 */
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei",
          "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 深色模式：底色换到近黑，文本转亮，主按钮翻转为亮底墨字 */
[data-theme="dark"] {
  --bg:           #0E1013;
  --surface:      #171B1F;
  --surface-hover:#1E2328;
  --hairline:     #242A30;
  --text-keep:    #F2F4F6;
  --subtle:       #9BA4AE;
  --faint:        #6B757F;

  --accent-soft:  #10302F;
  --ring:         #1E3B3A;
  --mark-tint:    rgba(14, 165, 160, .40);
  --grid-line:    rgba(255, 255, 255, .045);

  --icon-ink:     #E8EBEE;
  --icon-white:   #14161A;
  --btn-bg:       #F2F4F6;
  --btn-fg:       #0E1013;
  --btn-bg-hover: #FFFFFF;
}

/* 文本主色（浅色主题下就是 --ink） */
:root      { --text: #14161A; }
[data-theme="dark"] { --text: #F2F4F6; }

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--mono); font-size: .92em; }

::selection { background: var(--accent); color: #fff; }

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

/* ---------- 3. 布局 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--surface { background: var(--surface); }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.section-title { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.section-desc  { color: var(--subtle); font-size: 16px; }
.section-desc strong { color: var(--text); font-weight: 600; }

/* 强调下划线：呼应界面里"青绿只做点缀"的纪律
   用渐变背景而非伪元素，避免 z-index 负值被页面底色盖住 */
.mark {
  white-space: nowrap;
  background-image: linear-gradient(var(--mark-tint), var(--mark-tint));
  background-size: 100% .34em;
  background-position: 0 84%;
  background-repeat: no-repeat;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn svg { flex: none; }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost { color: var(--text); border: 1px solid var(--hairline); }
.btn--ghost:hover { background: var(--surface); border-color: var(--faint); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }

.btn--lg { height: 50px; padding: 0 28px; font-size: 15px; }

/* ---------- 5. 顶栏 ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--hairline); }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: 8px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand__sub {
  font-size: 11px; color: var(--faint);
  padding-left: 11px; margin-left: 2px;
  border-left: 1px solid var(--hairline);
  line-height: 1.2;
}

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

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--subtle);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.icon-btn:hover { background: var(--surface); color: var(--text); }

/* ---------- 5.5 图标基类（沿用图标集语言：墨色结构 + 青绿高亮，圆头描边） ---------- */
.ic {
  fill: none;
  stroke: var(--icon-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ic--accent { stroke: var(--accent); }
.ic-f { fill: var(--icon-ink); stroke: none; }
.ic-f--accent { fill: var(--accent); stroke: none; }
.ic--thin { stroke-width: 1.8; }

/* 主题切换按钮图标：浅色显示月亮，深色显示太阳 */
.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

/* ---------- 6. 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; top: -230px; right: -150px;
  width: 580px; height: 580px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 60% 40%,
              rgba(14,165,160,.16), rgba(14,165,160,0) 64%);
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(circle at 60% 40%,
              rgba(14,165,160,.24), rgba(14,165,160,0) 64%);
}

/* 墨色底板在深色环境下补一圈极淡内描边，保证轮廓可辨 */
[data-theme="dark"] .brand__mark rect:first-child,
[data-theme="dark"] .footer__mark rect:first-child {
  stroke: rgba(255, 255, 255, .15);
  stroke-width: 12;
}

.hero h1 {
  font-size: clamp(34px, 5.1vw, 54px);
  letter-spacing: -.035em; margin-bottom: 22px;
}

/* ---------- 7. 软件 UI 还原（窗口 mockup） ---------- */
.shot {
  display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(20,22,26,.04), 0 24px 56px -20px rgba(20,22,26,.22);
  font-size: 12px;
}
[data-theme="dark"] .shot { box-shadow: 0 26px 60px -22px rgba(0,0,0,.75); }

/* 标题栏 48px */
.shot__titlebar {
  height: 48px; display: flex; align-items: center; gap: 10px;
  padding: 0 16px 0 18px; border-bottom: 1px solid var(--hairline);
}
.shot__brand { font-size: 14px; font-weight: 700; color: var(--text); }
.shot__brand-sub { font-size: 10.5px; color: var(--faint); }
.shot__user {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--subtle);
}
.shot__avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); display: grid; place-items: center;
  color: var(--faint);
}
.shot__avatar--on { background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 11px; }

/* 工具条 64px */
.shot__toolbar {
  height: 60px; display: flex; align-items: center; gap: 2px;
  padding: 0 18px; border-bottom: 1px solid var(--hairline);
}
.shot__tool {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px; border-radius: 8px;
  font-size: 12px; color: var(--text);
}
.shot__tool--weak { color: var(--faint); }
.shot__toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.shot__tool--stop { color: var(--faint); }
.shot__tool--start {
  height: 32px; padding: 0 16px; border-radius: 8px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600;
}
.shot__tool--start-off { background: var(--surface); color: var(--faint); font-weight: 600; }

/* 主体：左内容 + 右设置 */
.shot__body { flex: 1; display: flex; padding: 16px 18px 20px; gap: 22px; min-height: 268px; }
.shot__main { flex: 1; min-width: 0; }
.shot__side {
  width: 200px; flex: none; padding-left: 22px;
  border-left: 1px solid var(--hairline);
}

/* 拖放区 */
.shot__drop {
  height: 100%; min-height: 232px; border-radius: 14px;
  background: var(--surface); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; text-align: center;
  padding: 18px;
}
.shot__drop-title { font-size: 14px; font-weight: 600; color: var(--text); }
.shot__drop-hint { font-size: 10.5px; color: var(--faint); line-height: 1.6; }

/* 文件列表态 */
.shot__list { height: 100%; min-height: 232px; border-radius: 14px; background: var(--surface); padding: 14px 16px; }
.shot__row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px solid var(--hairline);
  font-size: 12px;
}
.shot__row:last-child { border-bottom: 0; }
.shot__row-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot__row-status { margin-left: auto; font-size: 11px; color: var(--faint); white-space: nowrap; }
.shot__row-status--done { color: var(--accent); }
.shot__row-status--fail { color: var(--danger); }
.shot__row-status--run  { color: var(--subtle); }

/* 输出设置 */
.shot__field { font-size: 11.5px; color: var(--subtle); margin-bottom: 6px; }
.shot__field + .shot__control { margin-bottom: 16px; }
.shot__control {
  height: 38px; border-radius: 10px; background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; font-size: 12.5px; color: var(--text);
}
.shot__hint { font-size: 10px; color: var(--faint); margin: -12px 0 16px; }
.shot__control--input { gap: 8px; }
.shot__control--input span { color: var(--faint); }
.shot__divider { height: 1px; background: var(--hairline); margin: 16px 0; }

/* 页脚 40px */
.shot__footer {
  height: 40px; display: flex; align-items: center; gap: 18px;
  padding: 0 18px; border-top: 1px solid var(--hairline);
  font-size: 11px; color: var(--faint);
}
.shot__footer-links { display: flex; gap: 18px; }
.shot__footer-ver { margin-left: auto; }

.shot--compact .shot__body { min-height: 210px; }
.shot--compact .shot__side { width: 160px; padding-left: 16px; }
.shot--compact .shot__drop,
.shot--compact .shot__list { min-height: 176px; }

/* ---------- 8. 胶囊标签 ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--subtle);
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.chip--out { background: var(--accent-soft); color: var(--accent); }

/* ---------- 9. 特性卡 ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 26px 24px; background: var(--bg);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card__icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--accent-soft); display: grid; place-items: center;
  margin-bottom: 18px;
}
.card__title { font-size: 16px; font-weight: 700; margin-bottom: 9px; }
.card__text { font-size: 14px; color: var(--subtle); line-height: 1.75; }
.card__text code {
  background: var(--surface); padding: 2px 6px; border-radius: 5px;
  color: var(--text); font-size: 12.5px;
}

/* 特性行（图文左右） */
.feature-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px; align-items: center;
}
.feature-row + .feature-row { margin-top: 84px; }
.feature-row--flip .feature-row__media { order: -1; }
.feature-row__title { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
.feature-row__text { color: var(--subtle); font-size: 15.5px; margin-bottom: 20px; }

.check-list { display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14.5px; color: var(--subtle);
}
.check-list svg { flex: none; margin-top: 4px; color: var(--accent); }
.check-list strong { color: var(--text); font-weight: 600; }

/* ---------- 10. 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--hairline); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent);
}
.step__title { font-size: 17px; font-weight: 700; margin: 8px 0 8px; }
.step__text { font-size: 14px; color: var(--subtle); }
.step:hover { border-top-color: var(--accent); }

/* ---------- 11. 表格 ---------- */
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  text-align: left; padding: 14px 20px; background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--subtle); letter-spacing: .02em;
  border-bottom: 1px solid var(--hairline); white-space: nowrap;
}
tbody td { padding: 15px 20px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface); }
td strong { font-weight: 600; }
.td-mono { font-family: var(--mono); font-size: 13px; }

/* ---------- 13. 下载 ---------- */
.dl-card {
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 32px; background: var(--bg);
  display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  gap: 24px; align-items: center;
}
.dl-card__icon { width: 64px; height: 64px; border-radius: var(--r-md); }
.dl-card__title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.dl-card__meta { font-size: 13px; color: var(--subtle); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dl-card__meta span { display: inline-flex; align-items: center; gap: 6px; }

.dl-note {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--r-md); background: var(--surface);
  padding: 16px 18px; font-size: 13.5px; color: var(--subtle);
}
.dl-note svg { flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 20px 4px; text-align: left; font-size: 15.5px; font-weight: 600;
  transition: color .16s var(--ease);
}
.faq__q:hover { color: var(--accent); }
.faq__q svg { margin-left: auto; flex: none; color: var(--faint); transition: transform .22s var(--ease); }
.faq__item.is-open .faq__q { color: var(--accent); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); color: var(--accent); }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .26s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { font-size: 14.5px; color: var(--subtle); padding: 0 4px 22px; max-width: 780px; }
.faq__a code { background: var(--surface); padding: 2px 6px; border-radius: 5px; color: var(--text); }

/* ---------- 15. 客服卡 ---------- */
.support-card {
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 28px; display: flex; gap: 26px; align-items: center;
  background: var(--bg); flex-wrap: wrap;
}
.support-card__qr {
  width: 156px; height: 156px; flex: none; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: #fff;
}
.support-card__body { flex: 1; min-width: 220px; }
.support-card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.support-card__text { font-size: 14px; color: var(--subtle); margin-bottom: 16px; }

.group-row {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: var(--r-sm); padding: 9px 14px;
}
.group-row__label { font-size: 12px; color: var(--faint); }
.group-row__value { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.copy-btn {
  font-size: 12px; font-weight: 600; color: var(--accent);
  padding: 4px 10px; border-radius: 7px; background: var(--bg);
  transition: background .16s var(--ease);
}
.copy-btn:hover { background: var(--accent-soft); }

/* ---------- 16. CTA 区 ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); background: var(--ink);
  color: #fff; padding: 60px 56px; text-align: center;
}
.cta__bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 26px; opacity: .1; }
.cta__bars i { display: block; width: 26px; border-radius: 13px; background: #fff; }
.cta__inner { position: relative; }
.cta h2 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.66); font-size: 15.5px; margin-bottom: 30px; }
.cta .btn--primary { background: #fff; color: var(--ink); }
.cta .btn--primary:hover { background: rgba(255,255,255,.9); }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 17. 页脚 ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 56px 0 34px; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); gap: 40px; margin-bottom: 44px; }
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer__desc { font-size: 13.5px; color: var(--subtle); max-width: 300px; }
.footer__col-title { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { font-size: 13.5px; color: var(--subtle); transition: color .16s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  padding-top: 26px; border-top: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--faint);
}
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }

/* ---------- 18. 动效 ---------- */
/* 仅在 JS 可用时才隐藏待显现元素，避免禁用脚本/截图/打印时内容空白 */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
/* 首屏直出：瞬时显示，不参与过渡（JS 在一帧后移除本类，不影响自身 hover 过渡） */
.js .reveal.is-instant { transition: none !important; }

/* 品牌签名：五根音量柱（与 app-icon 同构） */
.wave { display: flex; align-items: center; gap: 4px; height: 22px; }
.wave i { display: block; width: 5px; border-radius: 3px; background: var(--accent); }
.wave i:nth-child(1) { height: 40%; }
.wave i:nth-child(2) { height: 72%; }
.wave i:nth-child(3) { height: 100%; background: var(--text); }
.wave i:nth-child(4) { height: 66%; }
.wave i:nth-child(5) { height: 44%; }

.wave--anim i { animation: bar 1.35s var(--ease) infinite alternate; }
.wave--anim i:nth-child(1) { animation-delay: 0s;    }
.wave--anim i:nth-child(2) { animation-delay: .12s;  }
.wave--anim i:nth-child(3) { animation-delay: .26s;  }
.wave--anim i:nth-child(4) { animation-delay: .18s;  }
.wave--anim i:nth-child(5) { animation-delay: .06s;  }
@keyframes bar { from { transform: scaleY(.62); } to { transform: scaleY(1.28); } }

/* ---------- 19. 杂项 ---------- */
.hr { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.kbd {
  font-family: var(--mono); font-size: 12px; padding: 2px 7px;
  border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface);
}
.subtle { color: var(--subtle); }
.faint  { color: var(--faint); }
.mono   { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 20. 首屏（双色标题 + 胶囊下载 + 浮动标签） ---------- */
.hero2 { position: relative; overflow: hidden; padding: 68px 0 84px; }

/* 淡网格背景，四周淡出 */
.hero2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 76% 62% at 52% 34%, #000 24%, transparent 76%);
          mask-image: radial-gradient(ellipse 76% 62% at 52% 34%, #000 24%, transparent 76%);
}

/* 右上柔光 */
.hero2::after {
  content: ""; position: absolute; top: -300px; right: -140px; z-index: 0;
  width: 760px; height: 760px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(14,165,160,.15), rgba(14,165,160,0) 64%);
}
[data-theme="dark"] .hero2::after {
  background: radial-gradient(circle, rgba(14,165,160,.22), rgba(14,165,160,0) 64%);
}

.hero2__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center;
}

.hero2__title {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.16; letter-spacing: -.035em; margin-bottom: 20px;
}
/* 强调词：与图标、链接同一支青绿，只上色不改字重 */
.hl { color: var(--accent); }


/* 胶囊主按钮：文字 + 独立图标圆片 */
.btn-pill {
  display: inline-flex; align-items: center; gap: 18px;
  height: 56px; padding: 0 8px 0 30px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 16px; font-weight: 700;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn-pill:hover { background: var(--btn-bg-hover); }
.btn-pill:active { transform: scale(.985); }
.btn-pill__icon {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.btn-pill__icon svg { stroke: #fff; stroke-width: 2.6; }
.btn-pill:hover .btn-pill__icon { background: var(--accent-hover); }

.hero2__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero2__sys { font-size: 13.5px; color: var(--faint); }
.hero2__sys b { color: var(--text); font-weight: 700; }

/* ---------- 产品截图组合（独立组件，可整块搬到任意位置） ----------
   标记：
     <div class="product-shot">
       <div class="shot"> …软件界面… </div>
       <span class="float-chip float-chip--a"><i></i>标签文案</span>
     </div>
   标签位置变体：--a 顶部居中 / --b 左中 / --c 右下 / --d 左下
*/
.product-shot { position: relative; }
.product-shot .shot {
  box-shadow: 0 2px 4px rgba(20,22,26,.04), 0 34px 72px -28px rgba(20,22,26,.32);
}
[data-theme="dark"] .product-shot .shot { box-shadow: 0 34px 72px -28px rgba(0,0,0,.82); }

/* 浮动标签 */
.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 15px; border-radius: var(--r-pill);
  background: var(--bg); border: 1px solid var(--hairline);
  box-shadow: 0 12px 30px -16px rgba(20,22,26,.5);
  font-size: 12.5px; font-weight: 600; color: var(--text);
  white-space: nowrap;
}
[data-theme="dark"] .float-chip { box-shadow: none; }
.float-chip i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
.float-chip--a { top: -18px; left: 50%; transform: translateX(-50%); }
.float-chip--b { top: 45%; left: -28px; }
.float-chip--c { bottom: 7%; right: -30px; }
.float-chip--d { bottom: 26%; left: -26px; }

/* 非 Windows / 手机访问时的提示（默认隐藏） */
.dl-notice {
  display: none; align-items: flex-start; gap: 10px;
  margin-top: 16px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--surface);
  font-size: 12.5px; color: var(--subtle); line-height: 1.65;
}
.dl-notice.is-on { display: flex; }
.dl-notice svg { flex: none; margin-top: 3px; color: var(--faint); }

/* ---------- 20. 产品分区（左说明 + 右内容） ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px; align-items: start;
}
.split--flip .split__body { order: -1; }
.split__head { position: sticky; top: calc(var(--header-h) + 28px); }
.split__title { font-size: clamp(23px, 2.7vw, 31px); margin: 12px 0 16px; }
/* 左说明栏只有一两行时：标题放大 + 整块与右侧内容垂直居中，避免大片空白 */
.split--lg .split__title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; margin: 14px 0 0; }
.split--lg .eyebrow { font-size: 13.5px; margin-bottom: 18px; }
.split--center { align-items: center; }
.split--center .split__head { position: static; }
.split__text { font-size: 15.5px; color: var(--subtle); line-height: 1.8; }
.split__text + .split__text { margin-top: 12px; }

/* 码率选择（软件里四档码率的静态示意） */
.rate-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rate {
  padding: 9px 16px; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: var(--bg);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
}
.rate--on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* 横排图标卡：图标在左，标题在右（不带次级说明） */
.card--row { display: flex; gap: 16px; align-items: center; padding: 18px 22px; }
.card--row .card__icon { margin-bottom: 0; width: 38px; height: 38px; }
.card--row .card__title { font-size: 15.5px; margin-bottom: 0; }


@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .split--flip .split__body { order: 0; }
  .split__head { position: static; }
}

/* ---------- 21. 右侧悬浮下载 / 客服 ---------- */
.dock {
  position: fixed; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 70; display: none; flex-direction: column; gap: 8px;
}
.dock.is-on { display: flex; }
.dock__btn {
  width: 56px; padding: 10px 4px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--hairline);
  box-shadow: 0 10px 26px -14px rgba(20,22,26,.4);
  display: grid; place-items: center; gap: 5px;
  font-size: 11px; color: var(--subtle); line-height: 1.2;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.dock__btn:hover { border-color: var(--accent); color: var(--accent); }
.dock__btn--primary {
  background: var(--btn-bg); color: var(--btn-fg); border-color: transparent;
  box-shadow: 0 12px 28px -14px rgba(20,22,26,.55);
}
.dock__btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
[data-theme="dark"] .dock__btn { box-shadow: none; }

@media (max-width: 1360px) {
  .dock { display: none !important; }
}

/* ---------- 22. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero2__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero2__grid .product-shot { margin-top: 6px; }
  .float-chip--b { left: 0; }
  .float-chip--c { right: 0; }
  .shot--compact .shot__body { min-height: 236px; }
  .shot--compact .shot__side { width: 190px; padding-left: 20px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 4px; }
  .step { padding-top: 22px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row--flip .feature-row__media { order: 0; }
  .feature-row + .feature-row { margin-top: 56px; }
  .dl-card { grid-template-columns: auto minmax(0,1fr); }
  .dl-card .btn { grid-column: 1 / -1; width: 100%; }
  .cta { padding: 48px 26px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 60px; }

  /* 界面还原图在窄屏下收窄：隐藏次要按钮，避免工具条挤爆 */
  .shot { font-size: 11px; }
  .shot__titlebar { padding: 0 12px 0 14px; height: 44px; }
  .shot__toolbar { padding: 0 12px; height: 52px; }
  .shot__tool { padding: 0 7px; white-space: nowrap; }
  .shot__tool--stop, .shot__tool--weak { display: none; }
  .shot__body { padding: 12px 13px 16px; gap: 0; min-height: 0; }
  .shot__drop, .shot__list { min-height: 190px; }
  .shot__row-status { display: none; }
  .shot__side { display: none; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .support-card { padding: 22px; }
  .support-card__qr { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; margin: 0 auto; }
  table { font-size: 13px; }
  thead th, tbody td { padding: 12px 14px; }
  .cta { padding: 44px 22px; }
  .cta__bars { gap: 16px; }

  /* 下载中枢在窄屏收窄 */
  .hero2 { padding: 44px 0 60px; }
  .hero2__title { font-size: clamp(30px, 9vw, 38px); }
  .btn-pill { height: 52px; padding-left: 24px; gap: 14px; font-size: 15px; }
  .btn-pill__icon { width: 36px; height: 36px; }
  .float-chip { height: 30px; padding: 0 11px; font-size: 11.5px; }
  .float-chip--a { top: -13px; }
  .float-chip--c { bottom: auto; top: 74%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .wave--anim i { animation: none; }
  * { transition-duration: .01ms !important; }
}

@media print {
  .header, .cta__actions, .footer__links { display: none !important; }
}
