/* ── 自托管字体（由 Google Fonts 抽取 latin 子集，部署在 CF 边缘；彻底去掉第三方字体域，避免中国大陆被墙导致首屏卡顿）── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(../fonts/sora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- 色彩核心 ---- */
  --yof-ink:        #0B0F1A;   /* 墨黑底 */
  --yof-ink-2:      #121829;   /* 次级墨底 */
  --yof-ink-3:      #1B2138;   /* 卡片墨底 */

  --yof-bg:         #F7F8FB;   /* 浅灰背景 */
  --yof-bg-soft:    #EEF1F7;   /* 次级背景 */
  --yof-card:       #FFFFFF;   /* 卡片 */

  --yof-border:     #E4E8F0;   /* 描边 */
  --yof-border-2:   #D3D9E6;

  --yof-text:       #0F172A;   /* 主文字 */
  --yof-text-2:     #5B6478;   /* 次要文字 */
  --yof-text-3:     #6B7280;   /* 弱化文字（≥4.5:1 on --yof-bg） */

  --yof-primary:    #4F46E5;   /* 主品牌 indigo */
  --yof-primary-600:#4338CA;
  --yof-primary-700:#3730A3;
  --yof-primary-soft:#EEF0FF;  /* 主色 soft 底 */
  --yof-cyan:       #06B6D4;

  /* ---- 产品色标（2026-11-11 校准）----
     取值依据 = 各产品 logo 底色，事实源 logos/README.md §色彩系统。
     此前这里给 YofCRM 配绿、给 MockAI 配琥珀、给 AItoWP 配紫，与定稿 logo 不同色族，
     于是「图标是蓝的、色条是绿的」互相打架。四个后缀分工固定，不可混用：
       · 无后缀 = 品牌原生色 → 只做装饰（顶部色条 / 圆点 / 悬停描边 / 箭头），不承担文字对比度
       · -ink   = 同色相加深一档 → 浅底上的小字号文字（tag / CTA / 链接），保证 ≥4.5:1
       · -spark = 该产品的「金点」色（YofCRM 橙 / YofMail 琥珀 / C-Slim 绿），只做小面积高亮
       · -soft  = 约 8% 浅底
     ⚠️ 不要再用 --p-* 当「成功/警告」语义色（那类用法改用下方 --c-*-soft）。 */
  --p-yofcrm:        #0F172A;   /* 藏青 · 成交点 #F97316 */
  --p-yofcrm-ink:    #0F172A;
  --p-yofcrm-soft:   #EDF0F5;
  --p-yofcrm-spark:  #F97316;
  --p-yofmail:       #14213D;   /* 墨蓝 · 封缄点 #E8A33D */
  --p-yofmail-ink:   #14213D;
  --p-yofmail-soft:  #EAEEF6;
  --p-yofmail-spark: #E8A33D;
  --p-aitowp:        #6366F1;   /* 靛 · AI 火花 #A5B4FC */
  --p-aitowp-ink:    #4338CA;
  --p-aitowp-soft:   #EDEEFE;
  --p-aitowp-spark:  #6366F1;   /* 圆点/色条用；#A5B4FC 只属 logo 内的火花细节，7px 点在白底太虚 */
  --p-mockai:        #0070F3;   /* 亮蓝 */
  --p-mockai-ink:    #0058C4;
  --p-mockai-soft:   #E6F1FE;
  --p-mockai-spark:  #0070F3;
  --p-yofsite:       #B34426;   /* 陶土 · 纸墨编辑（2026-11-20 定稿，teal 作废） */
  --p-yofsite-ink:   #8F3419;   /* 深一档：#8F3419 on #F7E9E2 对比度 6.62，≥ 4.5:1 */
  --p-yofsite-soft:  #F7E9E2;
  --p-yofsite-spark: #C98A2E;   /* 自站琥珀，作金点 */
  /* 注意：YofSite 的 --p-* 取陶土（品牌识别色），而非 tile 底色墨 #171A18——
     墨色近黑不适合做界面装饰色；其余五款的 --p-* 仍等于 tile 底色。见 logos/README.md §1。 */
  --p-cslim:         #0B6FD4;   /* 蓝 · 释放箭头 #34D399 */
  --p-cslim-ink:     #0A5CB0;
  --p-cslim-soft:    #E6F0FB;
  --p-cslim-spark:   #34D399;

  /* ---- 语义状态 ---- */
  --c-success:      #10B981;
  --c-warning:      #F59E0B;
  --c-danger:       #EF4444;
  --c-info:         #3B82F6;
  /* 状态 soft 底：此前借用 --p-yofcrm-soft / --p-mockai-soft，语义错位且随产品色漂移 */
  --c-success-soft: #E7F8F1;
  --c-danger-soft:  #FEECEC;
  --c-warning-soft: #FEF4E6;

  /* ---- 圆角 ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* ---- 阴影 ---- */
  --sh-sm:  0 1px 2px rgba(15,23,42,.05);
  --sh-md:  0 6px 18px rgba(15,23,42,.07);
  --sh-lg:  0 18px 48px rgba(15,23,42,.10);
  --sh-glow: 0 12px 40px rgba(79,70,229,.22);

  /* ---- 字体 ---- */
  --font-sans: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  /* ---- 间距阶梯 ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
}

/* ---- 暗色主题 ---- */
[data-theme="dark"] {
  --yof-bg:        #0B0F1A;
  --yof-bg-soft:   #121829;
  --yof-card:      #141A2C;
  --yof-border:    #232B42;
  --yof-border-2:  #2E3856;
  --yof-text:      #E8ECF5;
  --yof-text-2:    #9AA4BC;
  --yof-text-3:    #7C8AA6;
  --yof-primary-soft: #1C2050;
  --sh-md:  0 6px 18px rgba(0,0,0,.4);
  --sh-lg:  0 18px 48px rgba(0,0,0,.5);
}

/* ============================================================
   基础重置
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--yof-bg);
  color: var(--yof-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input { font-family: inherit; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding-block: var(--s-9); }
.muted { color: var(--yof-text-2); }
.tiny { font-size: 13px; }

/* ============================================================
   背景纹理 / 光晕
   ============================================================ */
.bg-grain {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(79,70,229,.10), transparent 60%),
    radial-gradient(45% 40% at 5% 5%, rgba(6,182,212,.08), transparent 60%);
  pointer-events: none;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--yof-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--yof-border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
[data-theme="dark"] .bg-grid { opacity: .25; }

/* ============================================================
   导航
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--yof-bg) 78%, transparent);
  border-bottom: 1px solid var(--yof-border);
}
.nav-inner { display: flex; align-items: center; gap: var(--s-6); height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
/* 品牌标：assets/img/logo.svg（官方 logo；规范见 logos/README.md，母品牌源文件即本站此文件）。
   原来是 34px 渐变方块 + 字母「M」占位（linear-gradient + 10px 圆角 + 发光阴影），
   与官方图形（铜钱 Y 型拓扑）不是同一个东西 —— 2026-11-10 统一换成 logo 文件本身，
   尺寸与基线保持 34px 不变。 */
.brand .mark {
  width: 34px; height: 34px;
  display: block; flex: none;
}
.nav-links { display: flex; gap: var(--s-5); margin-left: auto; }
.nav-links a { color: var(--yof-text-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--yof-text); }
.nav-actions { display: flex; gap: var(--s-3); align-items: center; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--yof-text); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: var(--r-full);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--yof-primary); color: #fff; box-shadow: var(--sh-glow); }
.btn-primary:hover { background: var(--yof-primary-600); }
.btn-ghost { background: transparent; color: var(--yof-text); border-color: var(--yof-border-2); }
.btn-ghost:hover { background: var(--yof-bg-soft); }
.btn-soft { background: var(--yof-primary-soft); color: var(--yof-primary-600); }
.btn-block { width: 100%; padding-block: 13px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-block: var(--s-9) var(--s-8); overflow: hidden; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--yof-primary-soft); color: var(--yof-primary-600);
  font-size: 13px; font-weight: 600; margin-bottom: var(--s-5);
}
/* P1-2（2026-12-04）：max-width 用 em 不用 ch —— ch 按拉丁 0 字宽算，
   CJK 实际只容约 9 个汉字，会把「真正」拆到两行。实测 balance 也会拆「应该」，
   所以中文改为 .grad 整块断行（在逗号后换行、词组不拆）；英文词间有空格自然换行。 */
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); max-width: 14em; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--yof-primary), var(--yof-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang^="zh"] .hero h1 .grad { display: block; width: fit-content; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--yof-text-2); max-width: 56ch; margin-top: var(--s-5); }
.hero-cta { display: flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; }
.hero-orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-1 { width: 420px; height: 420px; background: var(--yof-primary); top: -120px; right: -80px; opacity: .18; }
.orb-2 { width: 360px; height: 360px; background: var(--yof-cyan); bottom: -120px; left: -100px; opacity: .14; }

/* hero 双栏布局（左文案 / 右控制台预览） */
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--s-8); align-items: center; }
.hero-visual { position: relative; }
.hero-console {
  background: var(--yof-card); border: 1px solid var(--yof-border);
  border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; position: relative; z-index: 2;
}
.hc-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--yof-border); background: var(--yof-bg-soft); }
.hc-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yof-border-2); }
.hc-bar .dot:nth-child(1) { background: #FF5F57; }
.hc-bar .dot:nth-child(2) { background: #FEBC2E; }
.hc-bar .dot:nth-child(3) { background: #28C840; }
.hc-url { margin-left: 10px; font-size: 12px; color: var(--yof-text-3); font-family: ui-monospace, monospace; }
.hc-head { display: flex; align-items: center; gap: 12px; padding: var(--s-5); border-bottom: 1px solid var(--yof-border); }
.hc-avatar { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--yof-primary), var(--yof-cyan)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; box-shadow: var(--sh-glow); }
.hc-name { font-weight: 700; font-size: 15px; }
.hc-sub { font-size: 12.5px; color: var(--yof-text-3); }
.hc-list { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: 10px; }
.hc-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--yof-border); background: var(--yof-bg); transition: border-color .2s, transform .2s; }
.hc-item:hover { border-color: var(--accent, var(--yof-primary)); transform: translateX(2px); }
.hc-item .pic { width: 38px; height: 38px; display: grid; place-items: center; }
.hc-item .pic img { width: 100%; height: 100%; display: block; }
.hc-item .pic svg { width: 20px; height: 20px; color: var(--accent); }
.hc-item .nm { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; }
.hc-item .tg { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-ink, var(--accent)); margin-left: 8px; }
.hc-item .st { margin-left: auto; }
/* 控制台演示的状态徽章取本行产品色（UI-M4）：此前 .badge.info 一律靛蓝，
   YofMail 的暖金、YofSite 的陶土都被染成蓝色，与各自品牌色不符。 */
.hc-item .badge { background: var(--accent-soft); color: var(--accent-ink, var(--accent)); }
.hc-foot { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--yof-border); font-size: 12.5px; color: var(--yof-text-3); display: flex; align-items: center; gap: 9px; }
.hc-foot svg { color: var(--c-success); }

/* hero 浮动卡（增加纵深，呼应「自动续费权益」） */
.hero-float {
  position: absolute; right: -16px; bottom: -24px; z-index: 3;
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  background: var(--yof-card); border: 1px solid var(--yof-border);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  animation: heroFloat 5s ease-in-out infinite;
}
.hero-float .hf-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--c-success-soft); color: #047857; display: grid; place-items: center; }
.hero-float .hf-t { font-weight: 700; font-size: 13.5px; }
.hero-float .hf-s { font-size: 11.5px; color: var(--yof-text-3); }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ============================================================
   区块标题
   ============================================================ */
.section-head { max-width: 60ch; margin-bottom: var(--s-7); }
.section-head .kicker { color: var(--yof-primary-600); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: var(--s-3); }
.section-head p { color: var(--yof-text-2); margin-top: var(--s-3); font-size: 17px; }

/* ============================================================
   产品网格
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.product-card {
  position: relative; padding: var(--s-6); border-radius: var(--r-lg);
  background: var(--yof-card); border: 1px solid var(--yof-border);
  box-shadow: var(--sh-sm); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--yof-border-2); }
.product-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent, var(--yof-primary)), var(--accent-spark, var(--accent, var(--yof-primary))));
}
/* 产品卡图标 = 产品真身 logo（app tile 自带圆角与品牌底色）
   ⇒ 这里只当图片槽，不再叠底纹/圆角/描边，否则就是「标上再套壳」——与侧栏那次同一个病 */
.pc-icon { width: 52px; height: 52px; margin-bottom: var(--s-4); }
.pc-icon img { width: 100%; height: 100%; display: block; }
.pc-icon svg { width: 26px; height: 26px; color: var(--accent, var(--yof-primary)); }
.product-card h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); background: var(--accent-soft, var(--yof-primary-soft)); color: var(--accent-ink, var(--accent, var(--yof-primary))); letter-spacing: .03em; }
.product-card p { color: var(--yof-text-2); margin-top: var(--s-3); min-height: 48px; }
.pc-meta { display: flex; gap: var(--s-4); margin-top: var(--s-4); font-size: 13px; color: var(--yof-text-3); }
.pc-meta b { color: var(--yof-text); font-weight: 600; }
.pc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-4); color: var(--accent-ink, var(--accent, var(--yof-primary))); font-weight: 600; font-size: 14px; }
.pc-link svg { width: 16px; height: 16px; transition: transform .2s; }
.product-card:hover .pc-link svg { transform: translateX(3px); }
.pc-points { list-style: none; margin-top: var(--s-4); display: flex; flex-direction: column; gap: 9px; }
.pc-points li { position: relative; padding-left: 22px; font-size: 14px; color: var(--yof-text-2); line-height: 1.55; }
.pc-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-spark, var(--accent, var(--yof-primary))); }
.pc-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-5); color: var(--accent-ink, var(--accent, var(--yof-primary))); font-weight: 700; font-size: 14.5px; }
.pc-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.product-card:hover .pc-cta svg { transform: translateX(3px); }
.product-card.is-coming { opacity: .82; }
.product-card.is-coming .pc-icon { background: var(--yof-bg-soft); border-radius: 14px; color: var(--yof-text-3); }

/* ============================================================
   特性 / 旁路门户说明
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.feature {
  padding: var(--s-5); border-radius: var(--r-md);
  background: var(--yof-card); border: 1px solid var(--yof-border); transition: box-shadow .25s, transform .25s;
}
.feature:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--yof-primary-soft); color: var(--yof-primary); display: grid; place-items: center; margin-bottom: var(--s-4); }
.feature h4 { font-size: 17px; }
.feature p { color: var(--yof-text-2); margin-top: var(--s-2); font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; }
.panel {
  background: linear-gradient(160deg, var(--yof-ink), var(--yof-ink-2));
  color: #E8ECF5; border-radius: var(--r-xl); padding: var(--s-7);
  position: relative; overflow: hidden; box-shadow: var(--sh-lg);
}
.panel h3 { color: #fff; font-size: 24px; }
.panel p { color: #9AA4BC; margin-top: var(--s-3); }
.node-flow { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s-5); }
.flow-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.flow-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yof-cyan); box-shadow: 0 0 0 4px rgba(6,182,212,.2); }
.flow-row .arrow { margin-left: auto; color: #6B7491; font-size: 12px; }
.flow-row.spoke .dot { background: var(--yof-primary); box-shadow: 0 0 0 4px rgba(79,70,229,.25); }
.flow-note { margin-top: var(--s-5); padding: 14px 16px; border-radius: var(--r-md); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); color: #7FE9C4; font-size: 14px; }

/* ============================================================
   CTA / 页脚
   ============================================================ */
.cta-band {
  text-align: center; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--yof-primary), var(--yof-primary-600));
  color: #fff; padding: var(--s-9) var(--s-6); position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: var(--s-3); }
.cta-band .hero-cta { justify-content: center; margin-top: var(--s-6); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }

footer { border-top: 1px solid var(--yof-border); padding-block: var(--s-7) var(--s-6); margin-top: var(--s-8); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-6); }
.foot-col h5 { font-size: 14px; margin-bottom: var(--s-3); font-family: var(--font-sans); color: var(--yof-text); }
.foot-col a { display: block; color: var(--yof-text-2); font-size: 14px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--yof-primary); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--yof-border); color: var(--yof-text-3); font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   表单 / 登录页
   ============================================================ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-aside {
  position: relative; overflow: hidden; padding: var(--s-8);
  background: linear-gradient(150deg, var(--yof-ink), var(--yof-ink-2));
  color: #E8ECF5; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside .aorb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; }
.auth-aside .aorb.a { width: 360px; height: 360px; background: var(--yof-primary); top: -100px; right: -80px; }
.auth-aside .aorb.b { width: 300px; height: 300px; background: var(--yof-cyan); bottom: -80px; left: -60px; opacity: .3; }
.auth-main { display: grid; place-items: center; padding: var(--s-6); }
.auth-card { width: min(400px, 90vw); }
.auth-card h1 { font-size: 28px; }
.auth-card .sub { color: var(--yof-text-2); margin-top: var(--s-2); }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--yof-bg-soft); border-radius: var(--r-full); margin: var(--s-5) 0; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: var(--r-full); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--yof-text-2); transition: all .2s; border: 0; background: none; }
.tab.active { background: var(--yof-card); color: var(--yof-text); box-shadow: var(--sh-sm); }

.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--yof-text); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--yof-border-2); background: var(--yof-card); color: var(--yof-text);
  font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--yof-primary); box-shadow: 0 0 0 4px var(--yof-primary-soft); }
.field-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--yof-text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--yof-primary); }
.link-soft { color: var(--yof-primary-600); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--yof-text-3); font-size: 13px; margin: var(--s-4) 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--yof-border); flex: 1; }
.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; margin-bottom: var(--s-4); display: none; }
.alert.show { display: block; }
.alert.error { background: #FEECEC; color: #B42318; border: 1px solid #F7C5C0; }
.alert.success { background: #E7F8F1; color: #047857; border: 1px solid #A7E8CF; }
[data-theme="dark"] .alert.error { background: #3A1D1B; color: #FCA5A5; border-color: #5B2A27; }
[data-theme="dark"] .alert.success { background: #0E2E23; color: #6EE7B7; border-color: #1F5C46; }

/* ============================================================
   控制台 / 仪表盘
   ============================================================ */
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--yof-ink); color: #C7CEDB; padding: var(--s-5) var(--s-4);
  display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { color: #fff; margin-bottom: var(--s-5); }
.side-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 500; color: #9AA4BC; cursor: pointer; transition: background .2s, color .2s; }
.side-item svg { width: 19px; height: 19px; }
.side-item:hover { background: rgba(255,255,255,.05); color: #E8ECF5; }
.side-item.active { background: var(--yof-primary); color: #fff; box-shadow: var(--sh-glow); }
.side-spacer { flex: 1; }
.side-foot { font-size: 12px; color: #6B7491; padding: 10px 13px; border-top: 1px solid rgba(255,255,255,.08); }

.dash-main { padding: var(--s-6) var(--s-7); overflow-x: hidden; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-6); flex-wrap: wrap; gap: 12px; }
.dash-top h1 { font-size: 26px; }
.dash-top .crumb { color: var(--yof-text-3); font-size: 13px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
.stat { background: var(--yof-card); border: 1px solid var(--yof-border); border-radius: var(--r-md); padding: var(--s-5); }
.stat .k { color: var(--yof-text-3); font-size: 13px; }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin-top: 6px; }
.stat .v small { font-size: 14px; color: var(--yof-text-3); font-weight: 500; }

.card-block { background: var(--yof-card); border: 1px solid var(--yof-border); border-radius: var(--r-lg); padding: var(--s-6); margin-bottom: var(--s-5); box-shadow: var(--sh-sm); }
.card-block h3 { font-size: 18px; margin-bottom: var(--s-4); display: flex; align-items: center; justify-content: space-between; }

/* 授权卡 */
.license-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }

/* 授权管理：紧凑列表 —— 一屏扫完全部产品，工程细节收进展开区。
   产品是长期售卖的，数量只会增加，卡片网格会让「找某一个」越来越难。 */
.ov-lic-list { display: flex; flex-direction: column; gap: 8px; }
.ov-lic-chip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--yof-border); border-radius: var(--r-md); background: var(--yof-bg); cursor: pointer; font-size: 13.5px; }
.ov-lic-chip:hover { border-color: var(--yof-primary-600); background: var(--yof-bg-soft); }
.ov-lic-chip .pic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.ov-lic-chip .pic svg { width: 18px; height: 18px; }
.ov-lic-chip .ov-lic-name { font-weight: 600; min-width: 110px; }
.ov-lic-chip .ov-lic-until { color: var(--yof-text-3); }
.ov-lic-chip .ov-lic-more { margin-left: auto; color: var(--yof-primary-600); white-space: nowrap; }
@media (max-width: 700px) { .ov-lic-chip { flex-wrap: wrap; } .ov-lic-chip .ov-lic-more { margin-left: 0; width: 100%; } }
.license-list { display: flex; flex-direction: column; gap: 8px; }
.license-row { border: 1px solid var(--yof-border); border-radius: var(--r-md); background: var(--yof-bg); overflow: hidden; }
.license-row .lr-main {
  display: grid; grid-template-columns: minmax(170px, 1.4fr) 100px minmax(120px, 1fr) 92px auto;
  align-items: center; gap: 12px; padding: 12px 16px;
}
.license-row .lr-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.license-row .lr-name .pic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.license-row .lr-name .pic svg { width: 18px; height: 18px; }
.license-row .lr-name h4 { font-size: 14.5px; margin: 0; white-space: nowrap; }
.license-row .lr-cell { font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.license-row .lr-cell .k { display: block; font-size: 11px; color: var(--yof-text-3); margin-bottom: 2px; font-weight: 400; }
.license-row .lr-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.license-row .lr-toggle { background: none; border: 0; color: var(--yof-primary-600); cursor: pointer; font-size: 12.5px; padding: 5px 6px; white-space: nowrap; }
.license-row .lr-detail { display: none; padding: 8px 16px 14px; border-top: 1px dashed var(--yof-border); background: var(--yof-bg-soft); }
.license-row.is-open .lr-detail { display: block; }
/* 授权详情的分组标题：行内展开 / 右侧信息栏 / 产品详情「授权」页共用同一份渲染。
   分四组（归属 → 期限 → 绑定 → 来源）是为了让人按「这是谁的、到期没、绑在哪、谁给的」
   的顺序扫完，而不是一长串同权重字段。 */
.ld-group { margin: 0 0 14px; }
.ld-group:last-child { margin-bottom: 0; }
.ld-title {
  font-size: 11.5px; font-weight: 600; color: var(--yof-text-3);
  letter-spacing: .04em; margin: 0 0 6px; padding-bottom: 5px;
  border-bottom: 1px solid var(--yof-border);
}
/* 授权详情「一次看全」的密度：四组铺两列，值紧跟标签。
   旧版 .lrow 用 space-between 单列铺满 1036px ⇒ 标签与值之间空 658~932px、
   整块 832px 高，客户得上下扫很久（2026-11-15 真浏览器实测）。 */
.ld-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px; align-items: start; margin-bottom: 8px;
}
.ld-grid .ld-group { margin: 0; }
.ld-grid .ld-title { margin: 0 0 3px; padding-bottom: 3px; font-size: 11px; }
.ld-grid .lrow,
.license-row .lr-detail > .lrow {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px;
  align-items: baseline; justify-content: normal;
  padding: 2px 0; font-size: 12.5px; line-height: 1.45;
}
.ld-grid .lrow .lv,
.license-row .lr-detail > .lrow .lv { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .ld-grid { grid-template-columns: 1fr; } }
/* 详情块整体收紧：升级条与「了解产品」行也别再按旧的宽松节奏撑高。 */
.license-row .lr-detail { padding: 6px 16px 10px; }
.license-row .lr-detail .upgrade-bar { margin-top: 8px; }
.license-row .lr-detail .lrow { font-size: 12.5px; }
.license-row .lr-detail .mono { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 400; word-break: break-all; }
@media (max-width: 900px) {
  .license-row .lr-main { grid-template-columns: 1fr 1fr; }
  .license-row .lr-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.license {
  border: 1px solid var(--yof-border); border-radius: var(--r-md); padding: var(--s-5);
  background: var(--yof-bg); position: relative; overflow: hidden;
}
.license .lh { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-4); }
.license .lh .pic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.license .lh .pic svg { width: 22px; height: 22px; }
.license .lh h4 { font-size: 16px; }
.license .lh .code { font-size: 12px; color: var(--yof-text-3); font-family: ui-monospace, monospace; }
.lrow { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--yof-border); }
.lrow:last-of-type { border-bottom: 0; }
.lrow .lk { color: var(--yof-text-2); }
.lrow .lv { font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.active { background: var(--c-success-soft); color: #047857; }
.badge.warn { background: var(--c-warning-soft); color: #B45309; }
.badge.danger { background: var(--c-danger-soft); color: #B42318; }
.badge.info { background: var(--yof-primary-soft); color: var(--yof-primary-600); }

.upgrade-bar { margin-top: var(--s-4); padding: 12px 14px; border-radius: var(--r-md); font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.upgrade-bar.ok { background: var(--c-success-soft); color: #047857; }
.upgrade-bar.blocked { background: var(--c-warning-soft); color: #B45309; }
.upgrade-bar .btn { margin-left: auto; }

/* 绑定激活码表单 */
.bind-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.bind-form .field { margin: 0; }
/* 安装表单有 3 个不同性质的子元素（输入框 / 整行说明 / 提交按钮），
   沿用 1fr auto 会把「先用 IP 访问」那段说明塞进 auto 列，把域名输入框挤到 113px
   （占位符都被截断）。这类表单一律单列，按钮不拉满整行。 */
#installForm { grid-template-columns: 1fr; }
#installForm > button { justify-self: start; }
.bind-hint { font-size: 13px; color: var(--yof-text-2); margin-top: 10px; }
.empty-state { padding: 36px 20px; text-align: center; color: var(--yof-text-3); font-size: 14.5px; background: var(--yof-bg-soft); border: 1px dashed var(--yof-border); border-radius: var(--r-md); }
/* 订单页底部的开票引导：把大片空白变成一条有用的下一步，而不是让表格孤零零挂在上面 */
.order-help {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding: 14px 18px; font-size: 13.5px; line-height: 1.6;
  background: var(--yof-bg-soft); border: 1px solid var(--yof-border); border-radius: var(--r-md);
}
.order-help > div { flex: 1 1 320px; }
.kbd { font-family: ui-monospace, monospace; background: var(--yof-bg-soft); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; border: 1px solid var(--yof-border); color: var(--yof-text); }

/* 发码表单（管理员授权发放） */
.field select { width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--yof-border-2); background: var(--yof-card); color: var(--yof-text); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field select:focus { outline: none; border-color: var(--yof-primary); box-shadow: 0 0 0 4px var(--yof-primary-soft); }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-4); }
.form-row .field { flex: 1; min-width: 150px; margin-bottom: 0; }
/* 表单宽度不再由单个 form 自己决定：统一口径见 dashboard.css 的 --console-w。
   曾经 .issue-form 自带 max-width:780px，卡片却是 1088px ⇒ 右侧空 283px，
   看起来整页「偏左」；这类散装宽度是页面之间对不齐的根因。 */
/* 长说明一律独占整行，不塞进 .form-row 的窄列：252px 里一行能说完的话被折成两三行。 */
.form-note {
  width: 100%; flex-basis: 100%; margin: -2px 0 var(--s-4);
  font-size: 12.5px; line-height: 1.6; color: var(--yof-text-2);
}
.install-reuse { margin-top: 9px; }
/* 代理商工作台：规则说明默认只显示一行摘要，全文按需展开。
   服务码页原来 271 字铺 4 行小字，第一次进来像一堵免责声明墙。 */
.note-fold {
  margin: 0 0 var(--s-4); padding: 10px 14px;
  background: var(--yof-bg-soft); border: 1px solid var(--yof-border); border-radius: var(--r-md);
}
.note-fold > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--yof-text-2); list-style: none;
}
.note-fold > summary::-webkit-details-marker { display: none; }
.note-fold > summary::before { content: '▸ '; color: var(--yof-text-3); }
.note-fold[open] > summary::before { content: '▾ '; }
.note-fold > p { margin: 10px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--yof-text-2); }
/* inline-form 的 auto-fit 会把按钮 field 挤到第二行独占一格 ⇒ 统一移到表单下方。 */
.form-submit { margin-top: var(--s-4); justify-self: start; }
/* 经销商管理统一页：管理员以只读方式预览经销工作台时的角色提示。 */
.dealer-preview-note {
  margin-bottom: var(--s-4); padding: 10px 14px; font-size: 13px; line-height: 1.65;
  color: var(--yof-text-2); background: var(--yof-bg-soft);
  border: 1px solid var(--yof-border); border-left: 3px solid var(--yof-primary); border-radius: var(--r-md);
}
.dealer-preview-off { opacity: .5; }
/* 一页多张表时的小标题，避免两张表挤在一起分不清哪张是哪项。 */
.subhead {
  margin: var(--s-4) 0 var(--s-2); font-size: 13px; font-weight: 600; color: var(--yof-text-2);
}
.policy-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.policy-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
  font-size: 12.5px; color: var(--yof-primary); text-decoration: none;
  border: 1px solid var(--yof-border); border-radius: var(--r-md); background: var(--yof-bg-soft);
}
.policy-link:hover { border-color: var(--yof-primary); }
.clause-item { margin-top: 12px; }
.clause-item h4 { margin: 0 0 4px; font-size: 13px; color: var(--yof-text-1); }
.clause-item p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--yof-text-2); }
.offline-box { border: 1px dashed var(--yof-border-2); border-radius: var(--r-md); padding: var(--s-4); background: var(--yof-bg-soft); margin-top: var(--s-2); }

/* 订单表 */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--yof-text-3); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--yof-border); }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--yof-border); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--yof-bg); }

/* 滚动揭示动画（2026-12-04 修 P1-3）：默认**可见**，只在 <html class="js"> 下做入场。
   此前 .reveal 默认 opacity:0 且只靠 IntersectionObserver 加 .in —— 禁 JS / 打印 /
   main.js 加载失败时 hero 之外整页空白。head 内联脚本给 html 加 js 类（见各页）；
   未加 js 类的页面自然回落为「直接可见、无动画」，宁可少动效也不许白屏。 */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* 键盘焦点（UI-H2）：此前全站只有 hover 态、表单字段有 :focus，
   链接/按钮的键盘焦点只能靠浏览器默认轮廓。品牌色 2px 轮廓统一兜底
   （.field input 等已有专属 :focus 样式的控件不受影响）。 */
:focus-visible { outline: 2px solid var(--yof-primary); outline-offset: 2px; }

/* 减动效偏好（UI-H2）：关闭入场位移动画，内容直接可见（也避免 JS 未及
   添加 .in 时内容停留在 opacity:0）。 */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 980px) {
  .product-grid, .feature-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  .split, .license-grid, .foot-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: var(--s-7); max-width: 480px; }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-main { min-width: 0; padding: var(--s-5) var(--s-4); }
  .dash { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .side-spacer, .side-foot { display: none; }
  .dash-main { padding: var(--s-5); }
}
@media (max-width: 640px) {
  html, body { overflow-x: clip; }
  .nav-inner { gap: 8px; }
  .brand { font-size: 17px; gap: 6px; white-space: nowrap; }
  .brand .mark { width: 26px; height: 26px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; padding: 6px; }
  .nav-actions { gap: 5px; margin-left: auto; }
  .nav-actions .btn-sm { padding: 6px 9px; font-size: 12px; white-space: nowrap; }
  .product-grid, .feature-grid, .stat-row, .license-grid, .bind-form { grid-template-columns: 1fr; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--yof-bg); padding: var(--s-4); border-bottom: 1px solid var(--yof-border); gap: var(--s-3); z-index: 60; }
  .hero-float { right: 0; bottom: -18px; padding: 11px 13px; }
  .hero-float .hf-s { display: none; }
  .table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 440px) {
  .auth-card { width: 100%; max-width: 400px; }
  .nav-actions #themeBtn { display: none; }
  .nav-actions .lang-switch { padding: 3px 7px; font-size: 11.5px; }
}

/* ============================================================
   设计系统增量（设计优化方案 §4.2：图表令牌 / 页签 / 时间线 / 中性徽标）
   ============================================================ */
:root {
  /* 营收图表语义色（仅数据可视化用，避免与产品色标混淆） */
  --chart-revenue:   #4F46E5;
  --chart-plan-1:    #4F46E5;
  --chart-plan-2:    #06B6D4;
  --chart-plan-3:    #8B5CF6;
  --chart-plan-4:    #F59E0B;
  --chart-positive:  #10B981;
  --chart-negative:  #EF4444;
  --chart-grid:      #E4E8F0;
  --chart-track:     #EEF1F7;

  /* 中性状态徽标（沿用语义色） */
  --c-neutral:       #64748B;
  --badge-neutral-bg:#EEF1F7; --badge-neutral-fg:#64748B;

  /* 间距 / 字号阶梯增量 */
  --s-10: 128px;
  --text-3xl: 40px;
}
[data-theme="dark"] {
  --chart-grid:      #232B42;
  --chart-track:     #1B2138;
  --badge-neutral-bg:#1C2238;
  --badge-neutral-fg:#9AA4BC;
}

/* 中性徽标 */
.badge.neutral { background: var(--badge-neutral-bg); color: var(--badge-neutral-fg); }

/* 页签 / 分段控件（卡片内二级切换，借鉴 YofCRM 分类主 Tab） */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--yof-bg-soft); border-radius: var(--r-full); margin-bottom: var(--s-4); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 15px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 600; color: var(--yof-text-2); cursor: pointer; transition: all .2s; }
.seg button:hover { color: var(--yof-text); }
.seg button.active { background: var(--yof-card); color: var(--yof-text); box-shadow: var(--sh-sm); }

/* 图表容器 */
.chart { width: 100%; background: var(--yof-bg-soft); border: 1px solid var(--yof-border); border-radius: var(--r-md); padding: var(--s-4); overflow: hidden; }
.chart svg { width: 100%; height: auto; display: block; }

/* 横向条形（按套餐 / 按产品构成） */
.hbar { display: flex; align-items: center; gap: 12px; margin: 9px 0; }
.hbar .lab { width: 150px; flex-shrink: 0; font-size: 13.5px; color: var(--yof-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { flex: 1; height: 14px; background: var(--chart-track); border-radius: var(--r-full); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--yof-primary), var(--yof-cyan)); transition: width .5s ease; }
.hbar .val { width: 100px; flex-shrink: 0; text-align: right; font-size: 13.5px; font-weight: 600; }

/* 迷你统计（经销商业绩 / 营收环比） */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.mini { background: var(--yof-bg-soft); border: 1px solid var(--yof-border); border-radius: var(--r-md); padding: var(--s-5); }
.mini .k { font-size: 12.5px; color: var(--yof-text-3); }
.mini .v { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-top: 4px; }
.mini .v small { font-size: 13px; color: var(--yof-text-3); font-weight: 500; }
.kpi-up { color: var(--chart-positive); }
.kpi-down { color: var(--chart-negative); }

/* 行内表单（添加客户 / 创建优惠码 / 发码） */
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; margin-top: var(--s-4); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-xs { padding: 6px 12px; font-size: 12.5px; border-radius: var(--r-sm); }
.hint-ok { color: var(--chart-positive); font-size: 13px; margin-top: 10px; }
.hint-err { color: var(--c-danger); font-size: 13px; margin-top: 10px; }

/* 时间线（审计 / 激活日志） */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 14px; padding: 12px 0; border-left: 2px solid var(--yof-border); padding-left: 16px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--yof-primary); }
.tl-time { font-size: 12px; color: var(--yof-text-3); min-width: 132px; flex-shrink: 0; font-family: ui-monospace, monospace; }
.tl-body { font-size: 14px; color: var(--yof-text); }
.tl-actor { font-weight: 600; color: var(--yof-text); }
.tl-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: var(--r-full); background: var(--yof-primary-soft); color: var(--yof-primary-600); margin-right: 6px; }

/* 营收卡片双栏 */
.rev-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); }
@media (max-width: 980px) { .rev-grid { grid-template-columns: 1fr; } .mini-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   客户 · 产品授权详情（P1：授权 / 安装 / 续费 / 发票）
   ============================================================ */
.pd-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--s-5); align-items: start; }
@media (max-width: 980px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-info-head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-4); }
.pd-info-head .pic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.pd-info-head .pic svg { width: 24px; height: 24px; }
.pd-info-head h4 { font-size: 18px; }
.pd-info-head .sub { font-size: 12.5px; color: var(--yof-text-3); }

/* 步骤引导（安装） */
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.steps li { position: relative; padding-left: 38px; font-size: 14.5px; color: var(--yof-text); line-height: 1.65; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--yof-primary-soft); color: var(--yof-primary-600); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.steps li b { font-weight: 700; }

/* 代码块 / 复制 */
.code-blk { position: relative; background: var(--yof-ink); color: #E8ECF5; border-radius: var(--r-md); padding: 14px 16px; font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; margin: 10px 0; white-space: pre; }
.code-blk .cp { position: absolute; right: 10px; top: 10px; }
.pd-mono { font-family: ui-monospace, monospace; font-size: 13px; background: var(--yof-bg-soft); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--yof-border); }
[data-theme="dark"] .code-blk { background: #05070D; border: 1px solid var(--yof-border); }
/* ============================================================
   法务页 / 联系页（privacy / terms / contact）
   ============================================================ */
.center { text-align: center; }
.legal-page { max-width: 820px; margin-inline: auto; }
.legal-body { font-size: 16px; line-height: 1.75; color: var(--yof-text); }
.legal-body h2 { font-size: 22px; margin-top: var(--s-7); margin-bottom: var(--s-3); letter-spacing: -.01em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: var(--s-4); color: var(--yof-text); }
.legal-body ul { margin: 0 0 var(--s-4) var(--s-5); }
.legal-body li { margin-bottom: var(--s-2); }
.legal-body a { color: var(--yof-primary-600); font-weight: 600; text-underline-offset: 2px; text-decoration: underline; text-decoration-color: var(--yof-border-2); }
.legal-body b { font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.contact-card { background: var(--yof-card); border: 1px solid var(--yof-border); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-md); }
.contact-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--yof-primary-soft); color: var(--yof-primary-600); margin-bottom: var(--s-4); }
.contact-card h3 { font-size: 17px; margin-bottom: var(--s-2); }
.contact-card p { font-size: 14.5px; color: var(--yof-text-2); line-height: 1.7; }
