/* ==========================================================================
   FX Assistant — 官方站点样式表
   架构：设计令牌 (Design Tokens) → 基础重置 → 布局原语 → 组件 → 页面区块
   依赖：无（纯 CSS，无框架、无预处理器）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色 —— 取自 Logo 蓝 + 强调橙 */
  --c-brand-50:  #eef7fe;
  --c-brand-100: #d6ebfb;
  --c-brand-200: #a9d5f5;
  --c-brand-300: #6fb8ea;
  --c-brand-400: #3498de;
  --c-brand-500: #1b7fd0;
  --c-brand-600: #1466ab;
  --c-brand-700: #0f4f86;
  --c-brand-800: #0d3c66;
  --c-brand-900: #0a2b49;

  --c-accent-400: #ffc247;
  --c-accent-500: #f5a623;
  --c-accent-600: #d98a0c;

  --c-ok-500: #26a65b;
  --c-warn-500: #e8693b;

  /* 中性色 */
  --c-ink:       #10212f;
  --c-body:      #43596b;
  --c-muted:     #7b8fa1;
  --c-line:      #e2eaf1;
  --c-line-soft: #eef3f8;
  --c-surface:   #ffffff;
  --c-surface-2: #f6fafd;
  --c-surface-3: #eaf3fb;

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

  --fs-xs:   0.8125rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.375rem;
  --fs-2xl:  1.75rem;
  --fs-3xl:  2.25rem;
  --fs-4xl:  2.875rem;

  /* 间距 */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3.5rem;
  --sp-9: 5rem;

  /* 圆角 / 阴影 */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(16, 33, 47, 0.06);
  --sh-md: 0 4px 16px rgba(16, 33, 47, 0.08);
  --sh-lg: 0 14px 40px rgba(16, 33, 47, 0.12);
  --sh-brand: 0 10px 28px rgba(27, 127, 208, 0.28);

  /* 布局 */
  --wrap: 1180px;
  --wrap-narrow: 880px;
  --header-h: 68px;

  --t-fast: 140ms ease;
  --t-base: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗色模式：跟随系统 */
@media (prefers-color-scheme: dark) {
  :root {
    --c-ink:       #eaf2f9;
    --c-body:      #b3c4d2;
    --c-muted:     #8698a8;
    --c-line:      #24384a;
    --c-line-soft: #1c2c3b;
    --c-surface:   #101d29;
    --c-surface-2: #0c1823;
    --c-surface-3: #16283a;

    --c-brand-50:  #0f2637;
    --c-brand-100: #14324a;
    --c-brand-200: #1b4a6d;

    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --sh-lg: 0 14px 40px rgba(0, 0, 0, 0.55);
  }
}

/* 手动切换优先于系统偏好 */
html[data-theme="light"] {
  --c-ink: #10212f; --c-body: #43596b; --c-muted: #7b8fa1;
  --c-line: #e2eaf1; --c-line-soft: #eef3f8;
  --c-surface: #ffffff; --c-surface-2: #f6fafd; --c-surface-3: #eaf3fb;
  --c-brand-50: #eef7fe; --c-brand-100: #d6ebfb; --c-brand-200: #a9d5f5;
}
html[data-theme="dark"] {
  --c-ink: #eaf2f9; --c-body: #b3c4d2; --c-muted: #8698a8;
  --c-line: #24384a; --c-line-soft: #1c2c3b;
  --c-surface: #101d29; --c-surface-2: #0c1823; --c-surface-3: #16283a;
  --c-brand-50: #0f2637; --c-brand-100: #14324a; --c-brand-200: #1b4a6d;
  --sh-lg: 0 14px 40px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--c-body);
  background: var(--c-surface);
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-3);
  color: var(--c-ink);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 4vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.375rem, 2.6vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--c-brand-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-brand-500); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }

code, kbd, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
code {
  background: var(--c-surface-3);
  color: var(--c-brand-700);
  padding: 0.15em 0.42em;
  border-radius: var(--r-sm);
}
html[data-theme="dark"] code { color: var(--c-brand-300); }

hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: var(--sp-7) 0;
}

/* 可访问性 */
:focus-visible {
  outline: 3px solid var(--c-brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-brand-600);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. 布局原语
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }
.section--alt { background: var(--c-surface-2); }

/* 品牌强调区块：用于首页跟单专区这类旗舰能力，与常规区块拉开层次 */
.section--brand {
  background:
    radial-gradient(900px 420px at 12% 0%, var(--c-brand-50), transparent 68%),
    radial-gradient(700px 380px at 88% 100%, var(--c-brand-50), transparent 70%),
    linear-gradient(180deg, var(--c-surface), var(--c-surface-2));
  border-block: 1px solid var(--c-line-soft);
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-8);
}
.section__head p { color: var(--c-muted); }

/* 英文副标题 */
.subtitle-en {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brand-500);
  margin-bottom: var(--sp-2);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-brand-600);
  background: var(--c-brand-50);
  border: 1px solid var(--c-brand-100);
  padding: 0.28em 0.9em;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-4);
}
html[data-theme="dark"] .eyebrow { color: var(--c-brand-300); }

.lede { font-size: var(--fs-lg); color: var(--c-body); }

/* 网格 */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(218px, 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   4. 组件 —— 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-base),
              background-color var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--c-brand-500), var(--c-brand-700));
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(27,127,208,0.4); }

.btn--accent {
  background: linear-gradient(135deg, var(--c-accent-400), var(--c-accent-600));
  color: #43300a;
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.34);
}
.btn--accent:hover { color: #43300a; }

.btn--ghost {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-line);
  box-shadow: var(--sh-sm);
}
.btn--ghost:hover { border-color: var(--c-brand-300); color: var(--c-brand-600); }

.btn--outline {
  background: transparent;
  color: var(--c-brand-600);
  border-color: var(--c-brand-300);
}
.btn--outline:hover { background: var(--c-brand-50); }

.btn--sm { font-size: var(--fs-sm); padding: 0.65em 1.15em; }
.btn--lg { font-size: var(--fs-lg); padding: 0.95em 2em; }
.btn--block { display: flex; width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

/* --------------------------------------------------------------------------
   5. 组件 —— 顶部导航
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--c-surface); }
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  color: var(--c-ink);
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--c-brand-600); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--c-muted);
  line-height: 1.2;
  text-transform: uppercase;
}

/* 导航与「用户注册」按钮同处一行：.nav 自身必须是 flex，
   否则块级的 .nav__list 会把后面的按钮挤到第二行。 */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
  min-width: 0;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav__list li { margin: 0; }
.nav__link {
  display: block;
  padding: 0.5em 0.8em;
  border-radius: var(--r-md);
  color: var(--c-body);
  font-weight: 500;
  font-size: var(--fs-sm);
  /* 标签绝不折行：导航项增多时宁可提前收进抽屉，也不要把词拆成两行 */
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: var(--c-surface-3); color: var(--c-ink); }
.nav__link[aria-current="page"] {
  color: var(--c-brand-600);
  background: var(--c-brand-50);
  font-weight: 600;
}
html[data-theme="dark"] .nav__link[aria-current="page"] { color: var(--c-brand-300); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* 语言切换器：静态链接（不依赖 JS），交由 hreflang 与站内对应页互指 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 38px;
  padding: 0 0.85em;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.lang-switch:hover { border-color: var(--c-brand-300); color: var(--c-brand-600); }
.lang-switch svg { width: 16px; height: 16px; }

/* 顶部语言提示条：仅在中文页对英文访客显示，可关闭，不做自动跳转 */
.lang-hint {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--c-brand-700);
  color: #d6ebfb;
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-5);
}
.lang-hint a { color: #fff; text-decoration: underline; font-weight: 600; }
.lang-hint button {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #a9d5f5;
  font-size: var(--fs-lg);
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3em;
}
.lang-hint[hidden] { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-body);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { border-color: var(--c-brand-300); color: var(--c-brand-600); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

/* 移动端导航 */
/* 移动端导航 —— 断点取 1024px：导航项增至 6 个后，
   窄于此时单行放不下，提前收进抽屉比压缩折行更清晰 */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--sh-lg);
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    margin-left: 0;
    /* 抽屉态：列表在上、按钮在下 */
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform var(--t-base), visibility var(--t-base);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--sp-1); }
  .nav__link { padding: 0.8em 1em; font-size: var(--fs-base); }
  .nav .btn { margin-top: var(--sp-3); width: 100%; }
}

/* --------------------------------------------------------------------------
   6. 组件 —— 卡片
   -------------------------------------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--c-brand-200);
}
.card > :last-child { margin-bottom: 0; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-brand-500), var(--c-brand-700));
  color: #fff;
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon--accent {
  background: linear-gradient(135deg, var(--c-accent-400), var(--c-accent-600));
}

.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--c-body); font-size: var(--fs-sm); }

/* 面板块（带编号的功能条目） */
.panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-sm);
}
.panel__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-brand-50);
  border: 1px solid var(--c-brand-100);
  color: var(--c-brand-600);
  font-weight: 700;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}
html[data-theme="dark"] .panel__num { color: var(--c-brand-300); }
.panel h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.panel p { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.panel ul { font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   7. 组件 —— 首页 Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 460px at 88% -8%, var(--c-brand-50), transparent 70%),
    linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  /* 上内边距比常规区块小：顶部已有 sticky 页头占位，
     再给 5rem（--sp-9）会在页头与首屏内容之间留出大片空白。
     底部保持 --sp-8，与下方区块的衔接不受影响。 */
  padding-block: var(--sp-7) var(--sp-8);
  border-bottom: 1px solid var(--c-line-soft);
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,127,208,0.16), transparent 68%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero__title { margin-bottom: var(--sp-4); }
.hero__title-en {
  display: block;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: var(--c-brand-500);
  margin-top: var(--sp-3);
  letter-spacing: 0.01em;
}
.hero__lede { font-size: var(--fs-lg); margin-bottom: var(--sp-5); }

.hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  display: grid;
  gap: var(--sp-4);
}
.hero__points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  margin: 0;
  font-size: var(--fs-sm);
}
.hero__points svg {
  width: 20px; height: 20px;
  color: var(--c-ok-500);
  margin-top: 0.28em;
  flex-shrink: 0;
}
.hero__points strong { color: var(--c-ink); display: block; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-lg);
}
.hero__badge {
  position: absolute;
  left: -14px;
  bottom: 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  min-width: 168px;
}
.hero__badge b {
  display: block;
  font-size: var(--fs-xl);
  color: var(--c-ink);
  line-height: 1.2;
}
.hero__badge b span { color: var(--c-ok-500); }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-7); }
  .hero__badge { position: static; margin-top: var(--sp-4); display: inline-block; }
}

/* --------------------------------------------------------------------------
   8. 组件 —— 页头（内页）
   -------------------------------------------------------------------------- */
.page-head {
  background:
    radial-gradient(760px 320px at 82% 0%, var(--c-brand-50), transparent 72%),
    linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
  border-bottom: 1px solid var(--c-line-soft);
  padding-block: var(--sp-8) var(--sp-7);
}
.page-head h1 { margin-bottom: var(--sp-3); }
.page-head p { max-width: 680px; margin-bottom: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--c-line); }

/* --------------------------------------------------------------------------
   9. 组件 —— 表格
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--sh-sm);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 560px;
}
thead th {
  text-align: left;
  font-weight: 600;
  color: var(--c-ink);
  background: var(--c-surface-2);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}
tbody td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-line-soft);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--c-surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.filename {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-ink);
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   10. 组件 —— 截图画廊 / 灯箱
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: var(--sp-5);
}
.gallery__item {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--c-brand-200);
  color: inherit;
}
.gallery__thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--c-surface-3);
  border-bottom: 1px solid var(--c-line-soft);
}
.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--t-base);
}
.gallery__item:hover .gallery__thumb img { transform: scale(1.03); }
.gallery__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.gallery__body h3 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.gallery__body p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: rgba(6, 15, 24, 0.9);
  backdrop-filter: blur(3px);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img {
  max-width: min(1400px, 96vw);
  max-height: 88vh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__caption {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: var(--fs-sm);
  text-align: center;
  max-width: 90vw;
}

/* --------------------------------------------------------------------------
   11. 组件 —— 价格表
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: var(--sp-5);
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
/* 仅两张套餐时（当前为免费版 + 高级版）居中收敛，避免被 auto-fit 拉得过宽 */
.plans--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 780px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .plans--two { grid-template-columns: 1fr; }
}

.plan--featured {
  border-color: var(--c-brand-400);
  border-width: 2px;
  box-shadow: var(--sh-brand);
}
.plan__tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--c-accent-400), var(--c-accent-600));
  color: #43300a;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.3em 1em;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245,166,35,0.36);
}
.plan__name { font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.plan__desc { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--sp-5); }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
}
.plan__price .amount {
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__price .unit { font-size: var(--fs-sm); color: var(--c-muted); }
.plan__note {
  font-size: var(--fs-xs);
  color: var(--c-accent-600);
  font-weight: 600;
  min-height: 1.6em;
  margin-bottom: var(--sp-5);
}
.plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  flex-grow: 1;
  font-size: var(--fs-sm);
}
.plan__features li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  margin-bottom: var(--sp-3);
}
.plan__features svg {
  width: 17px; height: 17px;
  margin-top: 0.32em;
  color: var(--c-ok-500);
  flex-shrink: 0;
}
.plan__features li.is-off { color: var(--c-muted); }
.plan__features li.is-off svg { color: var(--c-muted); opacity: 0.5; }
.plan .btn { margin-top: auto; }

/* 计费周期切换 */
.cycle {
  display: inline-flex;
  gap: var(--sp-1);
  padding: var(--sp-1);
  background: var(--c-surface-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  margin: 0 auto var(--sp-7);
}
.cycle button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-body);
  padding: 0.55em 1.3em;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.cycle button[aria-selected="true"] {
  background: var(--c-surface);
  color: var(--c-brand-600);
  box-shadow: var(--sh-sm);
}
.cycle-wrap { text-align: center; }

/* --------------------------------------------------------------------------
   12. 组件 —— 时间线（版本历史）
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--sp-6);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-brand-300), var(--c-line));
}
.timeline > li {
  position: relative;
  margin-bottom: var(--sp-6);
}
.timeline > li:last-child { margin-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--sp-6) + 1px);
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 3px solid var(--c-brand-400);
  box-shadow: 0 0 0 4px var(--c-brand-50);
}
.timeline__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-brand-600);
  background: var(--c-brand-50);
  border: 1px solid var(--c-brand-100);
  border-radius: var(--r-pill);
  padding: 0.2em 0.85em;
  margin-bottom: var(--sp-3);
}
html[data-theme="dark"] .timeline__date { color: var(--c-brand-300); }
.timeline__card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
}
.timeline__card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.timeline__card p { font-size: var(--fs-sm); margin: 0; }

/* --------------------------------------------------------------------------
   13. 组件 —— 截图与功能条目
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--sp-7);
  align-items: center;
  padding-block: var(--sp-7);
  border-bottom: 1px solid var(--c-line-soft);
}
.feature:last-child { border-bottom: 0; }
.feature:nth-child(even) .feature__media { order: 2; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feature:nth-child(even) .feature__media { order: 0; }
}
.feature__media img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-md);
}
.feature__kicker {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-accent-600);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.feature h2 { font-size: var(--fs-2xl); }
.feature ul { font-size: var(--fs-sm); }
.feature ul li::marker { color: var(--c-brand-400); }

/* 提示条 */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  background: var(--c-brand-50);
  border: 1px solid var(--c-brand-100);
  border-left: 4px solid var(--c-brand-500);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  font-size: var(--fs-sm);
}
.callout svg { width: 20px; height: 20px; color: var(--c-brand-600); margin-top: 0.2em; }
.callout p { margin: 0; }
.callout strong { color: var(--c-ink); }

/* --------------------------------------------------------------------------
   14. 组件 —— 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-brand-900);
  color: #b9cde0;
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--fs-sm);
}
.site-footer h3 {
  color: #fff;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer a { color: #b9cde0; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}
.site-footer__brand:hover { color: #fff; }
.site-footer__brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-3); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: #8ba7c0;
}
.footer-qr {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  margin-top: var(--sp-4);
}
.footer-qr img {
  width: 76px;
  height: 76px;
  border-radius: var(--r-md);
  background: #fff;
  padding: 4px;
}
.footer-qr span { font-size: var(--fs-xs); line-height: 1.5; color: #8ba7c0; }

/* --------------------------------------------------------------------------
   14b. 组件 —— 教学视频
   采用「门面（facade）」模式：默认只渲染封面与播放按钮，
   点击后才注入 iframe。避免一次加载 9 个播放器拖垮首屏。
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-brand-200); }

/* 门面：16:9 播放区 */
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--c-brand-700), var(--c-brand-900));
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.video-card__frame:disabled { cursor: default; }
.video-card__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

/* 播放按钮 */
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.video-card__play span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform var(--t-base), background var(--t-base);
}
.video-card:hover .video-card__play span { transform: scale(1.08); background: #fff; }
.video-card__play svg { width: 22px; height: 22px; color: var(--c-brand-700); margin-left: 3px; }

/* 待补充状态 */
.video-card--pending .video-card__frame {
  cursor: default;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, var(--c-brand-800), var(--c-brand-900));
}
.video-card--pending:hover { transform: none; }
.video-card--pending .video-card__play span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.video-card--pending .video-card__play svg { color: rgba(255, 255, 255, 0.7); }
.video-card__pending-tag {
  position: absolute;
  left: var(--sp-3);
  top: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #43300a;
  background: rgba(245, 166, 35, 0.92);
  padding: 0.2em 0.7em;
  border-radius: var(--r-pill);
}

/* 播放失败：给出可诊断的提示，而不是留一个黑框 */
.video-card__error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-5);
  text-align: left;
  color: #eaf2f9;
  background: linear-gradient(140deg, #1b2b3a, #101d29);
  overflow-y: auto;
}
.video-card__error strong { color: #ffc247; font-size: var(--fs-sm); }
.video-card__error p { margin: 0; font-size: var(--fs-xs); line-height: 1.6; color: #b3c4d2; }
.video-card__error .mono { color: #6fb8ea; word-break: break-all; }

.video-card__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.video-card__body h2,
.video-card__body h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.video-card__body p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.video-card__meta {
  display: inline-block;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--c-brand-600);
  background: var(--c-brand-50);
  border: 1px solid var(--c-brand-100);
  border-radius: var(--r-pill);
  padding: 0.1em 0.6em;
  margin-bottom: var(--sp-2);
}
html[data-theme="dark"] .video-card__meta { color: var(--c-brand-300); }

/* --------------------------------------------------------------------------
   14c. 组件 —— 教程步骤
   用有序列表承载，语义正确（HowTo 与页面结构一致）
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-5);
}
.steps > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--sp-4);
  margin: 0;
}
.steps > li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand-500), var(--c-brand-700));
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-base);
  box-shadow: var(--sh-brand);
}
.steps > li::after {
  /* 步骤之间的连接线 */
  content: "";
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: calc(-1 * var(--sp-5));
  width: 2px;
  background: var(--c-line);
}
.steps > li:last-child::after { display: none; }
.steps h3 {
  margin: calc(var(--sp-1)) 0 var(--sp-2);
  font-size: var(--fs-lg);
}
.steps p { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.steps ul { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.steps code { font-size: var(--fs-xs); }

/* 教程页的界面参考图 */
.shot-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.shot {
  margin: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.shot img { width: 100%; cursor: zoom-in; display: block; }
.shot figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  border-top: 1px solid var(--c-line-soft);
}

/* 教程页的元信息行 */
.tutorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.tutorial-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 0.3em 0.9em;
}
.tutorial-meta svg { width: 15px; height: 15px; color: var(--c-brand-500); }

/* FAQ 折叠项 */
.faq { display: grid; gap: var(--sp-3); }
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "＋";
  color: var(--c-brand-500);
  font-weight: 700;
  margin-right: var(--sp-2);
}
.faq details[open] summary::before { content: "－"; }
.faq details p { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); }

/* 相关教程卡片 */
.related { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.related a {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  color: inherit;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.related a:hover { transform: translateY(-3px); border-color: var(--c-brand-200); box-shadow: var(--sh-md); color: inherit; }
.related strong { display: block; color: var(--c-ink); margin-bottom: var(--sp-1); }
.related span { font-size: var(--fs-sm); color: var(--c-muted); }

/* 教程中心列表 */
.tutorial-list { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tutorial-list a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--sp-4);
  align-items: start;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  color: inherit;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.tutorial-list a:hover { transform: translateY(-4px); border-color: var(--c-brand-200); box-shadow: var(--sh-md); color: inherit; }
.tutorial-list .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--c-brand-50);
  border: 1px solid var(--c-brand-100);
  color: var(--c-brand-600);
  font-weight: 700;
}
html[data-theme="dark"] .tutorial-list .num { color: var(--c-brand-300); }
.tutorial-list h2 { font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.tutorial-list p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }

/* --------------------------------------------------------------------------
   15. 工具类
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-7 { margin-bottom: var(--sp-7); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.muted { color: var(--c-muted); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

.list-check {
  list-style: none;
  padding: 0;
  font-size: var(--fs-sm);
}
.list-check li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
}
.list-check svg {
  width: 17px; height: 17px;
  margin-top: 0.32em;
  color: var(--c-ok-500);
  flex-shrink: 0;
}

/* 打印 */
@media print {
  .site-header, .site-footer, .btn, .lightbox { display: none !important; }
  body { color: #000; background: #fff; }
  .card, .table-wrap, .plan { box-shadow: none; border-color: #ccc; }
}

/* --------------------------------------------------------------------------
   X. 组件 —— 账户分析工具漂浮提示
   放在左下角：右下角是客服浮窗，避免遮挡。
   仅在中文页由 site.js 注入；关闭后记入 localStorage 不再出现。
   -------------------------------------------------------------------------- */
.promo-float {
  position: fixed;
  left: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 90;
  width: min(300px, calc(100vw - 2 * var(--sp-5)));
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-brand-500);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: var(--sp-4);
  font-size: var(--fs-sm);
  animation: promo-in 0.35s ease-out both;
}
@keyframes promo-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-float { animation: none; }
}
.promo-float__close {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--c-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.promo-float__close:hover { background: var(--c-surface-3); color: var(--c-ink); }
.promo-float__close:focus-visible { outline: 2px solid var(--c-brand-500); outline-offset: 2px; }
.promo-float__title {
  display: block;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: var(--sp-1);
  padding-right: var(--sp-6);
}
.promo-float p {
  margin: 0 0 var(--sp-3);
  color: var(--c-body);
  line-height: 1.55;
}
.promo-float__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-weight: 600;
  color: var(--c-brand-600);
}
.promo-float__cta:hover { text-decoration: underline; }
html[data-theme="dark"] .promo-float__cta { color: var(--c-brand-300); }

/* 手机上收紧宽度，给右下角客服按钮留出空间 */
@media (max-width: 640px) {
  .promo-float {
    left: var(--sp-3);
    bottom: var(--sp-3);
    width: min(272px, calc(100vw - 88px));
    padding: var(--sp-3) var(--sp-4);
  }
}
