/* ============================================================
   组班云 · 在线培训 SaaS — 共享样式
   基调：清亮浅色 / 品牌紫克制使用 / 柔和阴影 / 商业化
   ============================================================ */

:root {
  --ink: #1F1B2E;
  --body: #4A4560;
  --muted: rgba(31, 27, 46, 0.62);
  --faint: rgba(31, 27, 46, 0.42);
  --violet: #5B2C87;
  --violet-2: #7C4DFF;
  --violet-3: #9B6FDC;
  --navy: #1A236E;
  --gold: #FFB300;
  --sky: #3FA9F5;
  --bg: #FFFFFF;
  --bg-soft: #F7F6FA;
  --bg-mist: #F2F4FB;
  --line: rgba(91, 44, 135, 0.12);
  --line-2: #E8E6F0;
  --grad: linear-gradient(135deg, #5B2C87 0%, #9B6FDC 100%);
  --shadow-s: 0 4px 14px rgba(23, 16, 60, 0.06);
  --shadow-m: 0 10px 30px rgba(23, 16, 60, 0.08);
  --shadow-l: 0 24px 60px rgba(23, 16, 60, 0.12);
  --radius: 16px;
  --radius-s: 12px;
  --maxw: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-en: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用 section ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--mist { background: var(--bg-mist); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--violet); background: rgba(91, 44, 135, 0.07);
  border: 1px solid rgba(91, 44, 135, 0.16);
  border-radius: 100px; padding: 5px 16px; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--ink); font-weight: 700; line-height: 1.35;
  letter-spacing: 0.01em; margin-bottom: 14px;
}
.h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sub { font-size: 16.5px; color: var(--muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 100px; padding: 13px 28px;
  font-size: 15.5px; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 26px rgba(91, 44, 135, 0.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(91, 44, 135, 0.4); }
.btn--ghost { border-color: rgba(91, 44, 135, 0.28); color: var(--violet); background: #fff; }
.btn--ghost:hover { transform: translateY(-2px); background: rgba(91, 44, 135, 0.05); }
.btn--white { background: #fff; color: var(--violet); box-shadow: var(--shadow-m); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.btn--lg { padding: 16px 34px; font-size: 16.5px; }

.btn .arrow {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.btn--ghost .arrow, .btn--white .arrow { background: rgba(91, 44, 135, 0.08); }
.btn:hover .arrow { transform: translateX(3px); }
.btn .arrow svg { width: 13px; height: 13px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(91, 44, 135, 0.08);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: var(--shadow-s); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: 0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(91, 44, 135, 0.35);
}
.logo-mark svg { width: 19px; height: 19px; color: #fff; }
.logo small { font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0.14em; display: block; line-height: 1.1; margin-top: 2px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--body); }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.25s ease; }
.nav-links a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); transition: left 0.25s ease, right 0.25s ease; }
.nav-links a:hover { color: var(--violet); }
.nav-links a:hover::after { left: 0; right: 0; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 15px; font-weight: 600; color: var(--violet); padding: 8px 6px; transition: opacity 0.25s ease; }
.nav-login:hover { opacity: 0.75; }
.nav-cta { padding: 10px 22px; font-size: 14.5px; }
.nav-burger { display: none; margin-left: auto; width: 40px; height: 40px; border: none; background: none; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 158px 0 110px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(124, 77, 255, 0.10), transparent 60%),
    radial-gradient(760px 420px at -8% 22%, rgba(63, 169, 245, 0.10), transparent 60%),
    linear-gradient(180deg, #FBFAFE 0%, #F4F2FA 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(91, 44, 135, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 44, 135, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(720px 520px at 70% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(720px 520px at 70% 18%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: rgba(26, 35, 110, 0.06); border: 1px solid rgba(26, 35, 110, 0.14);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 22px;
}
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.18); }
.hero h1 {
  font-size: clamp(32px, 4.6vw, 50px); line-height: 1.28; font-weight: 800;
  color: var(--ink); letter-spacing: 0.01em; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-p { font-size: 17.5px; color: var(--body); max-width: 520px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chips li {
  font-size: 13.5px; font-weight: 600; color: var(--violet);
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 16px; box-shadow: var(--shadow-s);
  display: inline-flex; align-items: center; gap: 7px;
}
.hero-chips svg { width: 14px; height: 14px; color: var(--violet-3); }

/* Hero 视觉：主图 + 悬浮卡 */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-l); border: 6px solid #fff;
  aspect-ratio: 4 / 3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.hero-photo:hover img { transform: scale(1.05); }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(91, 44, 135, 0.28) 0%, transparent 46%);
}
.float-card {
  position: absolute; z-index: 2; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(91, 44, 135, 0.10); border-radius: 14px;
  box-shadow: var(--shadow-m); padding: 13px 16px;
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  animation: floaty 5.5s ease-in-out infinite;
}
.float-card small { display: block; font-size: 11.5px; font-weight: 500; color: var(--faint); line-height: 1.4; }
.float-card .fc-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.float-card .fc-ico svg { width: 18px; height: 18px; color: #fff; }
.fc-live { top: -22px; left: -30px; }
.fc-live .fc-ico { background: linear-gradient(135deg, #E0447C, #FF7A9E); }
.fc-pay { bottom: 64px; right: -26px; animation-delay: 1.4s; }
.fc-pay .fc-ico { background: linear-gradient(135deg, #12A47C, #3CC99F); }
.fc-report { bottom: -20px; left: 34px; animation-delay: 2.6s; }
.fc-report .fc-ico { background: var(--grad); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 核心能力（Bento） ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.f-card {
  position: relative; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-s); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.f-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: rgba(91, 44, 135, 0.25); }
.f-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s ease;
}
.f-card:hover::before { opacity: 1; }
.f-ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  background: rgba(91, 44, 135, 0.07); border: 1px solid rgba(91, 44, 135, 0.12);
  display: inline-flex; align-items: center; justify-content: center; color: var(--violet);
}
.f-ico svg { width: 22px; height: 22px; }
.f-card h3 { font-size: 17.5px; color: var(--ink); font-weight: 700; margin-bottom: 9px; }
.f-card p { font-size: 14.5px; color: var(--muted); line-height: 1.72; }
.f-card .f-tag {
  position: absolute; top: 22px; right: 22px;
  font-size: 11.5px; font-weight: 700; color: var(--violet-2);
  background: rgba(124, 77, 255, 0.08); border-radius: 100px; padding: 3px 11px;
  letter-spacing: 0.04em;
}
.f-a { grid-column: span 3; }
.f-b { grid-column: span 3; }
.f-c { grid-column: span 2; }
.f-d { grid-column: span 2; }
.f-e { grid-column: span 2; }
.f-card--photo { padding: 0; display: flex; flex-direction: column; }
.f-card--photo .ph { position: relative; flex: 1; min-height: 190px; overflow: hidden; }
.f-card--photo .ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 0.5s ease; }
.f-card--photo:hover .ph img { transform: scale(1.05); }
.f-card--photo .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(31, 27, 46, 0.42) 100%); }
.f-card--photo .ph b {
  position: absolute; left: 20px; bottom: 14px; z-index: 1; color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 0.02em;
}
.f-card--photo .txt { padding: 20px 24px 24px; }

/* ---------- 培训流程 ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.flow-step {
  position: relative; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 26px 20px 24px; text-align: left;
  box-shadow: var(--shadow-s); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.flow-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-en); font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--violet-2); background: rgba(124, 77, 255, 0.09);
  border-radius: 8px; padding: 3px 9px; display: inline-block; margin-bottom: 14px;
}
.flow-step h4 { font-size: 16px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.flow-step .link {
  position: absolute; top: 34px; right: -14px; width: 14px; height: 2px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--violet-3) 0 5px, transparent 5px 9px);
}
.flow-step:last-child .link { display: none; }

/* ---------- 角色场景 ---------- */
.scene { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.scene:last-child { margin-bottom: 0; }
.scene--rev .scene-media { order: 2; }
.scene-media { position: relative; }
.scene-media .frame {
  border-radius: 20px; overflow: hidden; border: 6px solid #fff;
  box-shadow: var(--shadow-l); aspect-ratio: 16 / 11; position: relative;
}
.scene-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.scene-media:hover .frame img { transform: scale(1.04); }
.scene-media .deco {
  position: absolute; width: 70%; height: 70%; z-index: -1; border-radius: 20px;
  background: var(--grad); opacity: 0.09;
}
.scene--rev .scene-media .deco { right: -26px; bottom: -26px; }
.scene:not(.scene--rev) .scene-media .deco { left: -26px; bottom: -26px; }
.scene-body .kicker { margin-bottom: 14px; }
.scene-body h3 { font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.scene-body > p { font-size: 15.5px; color: var(--muted); margin-bottom: 24px; }
.scene-list { display: grid; gap: 13px; }
.scene-list li { display: flex; gap: 12px; font-size: 15px; color: var(--body); }
.scene-list .tick {
  flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: rgba(91, 44, 135, 0.08); border: 1px solid rgba(91, 44, 135, 0.16);
  display: inline-flex; align-items: center; justify-content: center;
}
.scene-list .tick svg { width: 11px; height: 11px; color: var(--violet); }
.scene-list b { color: var(--ink); font-weight: 700; }

/* ---------- 平台保障 ---------- */
.guard-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center; }
.guard-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.g-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  padding: 22px 22px 20px; box-shadow: var(--shadow-s);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.g-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.g-card .f-ico { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px; }
.g-card .f-ico svg { width: 19px; height: 19px; }
.g-card h4 { font-size: 15.5px; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
.g-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.guard-photo { border-radius: 20px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-l); aspect-ratio: 4/3; position: relative; }
.guard-photo img { width: 100%; height: 100%; object-fit: cover; }
.guard-photo .cap {
  position: absolute; left: 18px; bottom: 18px; right: 18px; color: #fff;
  font-size: 13px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* 数字带（真实产品参数，非虚构宣传） */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.stat {
  text-align: center; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius-s); padding: 26px 12px 22px; box-shadow: var(--shadow-s);
}
.stat b { font-family: var(--font-en); font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- CTA 带 ---------- */
.cta-band { position: relative; border-radius: 24px; overflow: hidden; padding: 72px 48px; text-align: center; background: var(--grad); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(520px 260px at 12% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(520px 260px at 92% 100%, rgba(255, 179, 0, 0.18), transparent 60%);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(600px 300px at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(600px 300px at 50% 50%, #000, transparent 75%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 16px; margin-bottom: 32px; }
.cta-band .btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer { background: #1A1A1A; color: rgba(255, 255, 255, 0.62); padding: 64px 0 0; margin-top: 96px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .logo { color: #fff; }
.footer .logo small { color: rgba(255,255,255,.38); }
.footer-about { margin-top: 16px; line-height: 1.8; max-width: 320px; }
.footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { transition: color 0.25s ease, opacity 0.25s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* ---------- 登录/注册弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal-mask { position: absolute; inset: 0; background: rgba(26, 20, 46, 0.46); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-box {
  position: relative; width: 100%; max-width: 420px; background: #fff;
  border-radius: 20px; box-shadow: var(--shadow-l); padding: 36px 36px 30px;
  animation: pop 0.32s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: none;
  border-radius: 50%; background: var(--bg-soft); color: var(--muted); font-size: 17px; line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.modal-close:hover { background: rgba(91, 44, 135, 0.1); color: var(--violet); }
.modal-box .logo { justify-content: center; width: 100%; margin-bottom: 8px; }
.modal-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.modal-sub { text-align: center; font-size: 13.5px; color: var(--faint); margin-bottom: 22px; }
.tabs { display: flex; background: var(--bg-soft); border-radius: 100px; padding: 4px; margin-bottom: 22px; }
.tabs button {
  flex: 1; border: none; background: none; border-radius: 100px; padding: 9px 0;
  font-size: 14.5px; font-weight: 600; color: var(--muted); transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.tabs button.is-active { background: #fff; color: var(--violet); box-shadow: var(--shadow-s); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff; outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field select:focus { border-color: var(--violet-3); box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.12); }
.form-row { display: flex; gap: 10px; }
.form-row .field { flex: 1; }
.form-extra { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.form-extra label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.form-extra a { color: var(--violet); font-weight: 600; }
.modal .btn { width: 100%; }
.modal-foot { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 16px; }
.modal-pane { display: none; }
.modal-pane.is-active { display: block; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px);
  background: rgba(31, 27, 46, 0.92); color: #fff; font-size: 14px;
  border-radius: 100px; padding: 12px 26px; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow-l); max-width: 86vw; text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 文档页 ---------- */
.doc-hero {
  padding: 150px 0 64px; position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 85% -12%, rgba(124, 77, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #FBFAFE, #F4F2FA);
}
.doc-hero .crumbs { font-size: 13.5px; color: var(--faint); margin-bottom: 18px; }
.doc-hero .crumbs a { color: var(--violet); font-weight: 600; }
.doc-hero h1 { font-size: clamp(28px, 3.8vw, 40px); color: var(--ink); font-weight: 800; margin-bottom: 14px; }
.doc-hero p { max-width: 680px; color: var(--muted); font-size: 16px; }
.doc-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.doc-meta span {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: rgba(26, 35, 110, 0.06); border: 1px solid rgba(26, 35, 110, 0.13);
  border-radius: 100px; padding: 5px 14px;
}
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding: 56px 0 96px; }
.doc-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 6px; }
.doc-toc h6 { font-size: 12px; letter-spacing: 0.12em; color: var(--faint); font-weight: 700; margin-bottom: 12px; }
.doc-toc a {
  display: block; font-size: 13.5px; color: var(--muted); padding: 7px 12px;
  border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.doc-toc a:hover { color: var(--violet); background: rgba(91, 44, 135, 0.05); }
.doc-toc a.is-active { color: var(--violet); border-left-color: var(--violet); background: rgba(91, 44, 135, 0.06); font-weight: 600; }
.doc-toc .lv2 { padding-left: 26px; font-size: 12.8px; }

.doc-main { min-width: 0; }
.doc-sec { margin-bottom: 56px; scroll-margin-top: 92px; }
.doc-sec > h2 {
  font-size: 23px; color: var(--ink); font-weight: 800; margin-bottom: 8px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-2);
}
.doc-sec > h2 .no { color: var(--violet-2); font-family: var(--font-en); margin-right: 8px; }
.doc-sec .lead { font-size: 15px; color: var(--muted); margin: 14px 0 18px; }
.doc-sec h3 { font-size: 17.5px; color: var(--ink); font-weight: 700; margin: 26px 0 10px; }
.doc-sec p { font-size: 15px; margin-bottom: 12px; }
.doc-sec ul.bullets { margin: 10px 0 16px; display: grid; gap: 8px; }
.doc-sec ul.bullets li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--body); }
.doc-sec ul.bullets li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); opacity: 0.75; }

.fr-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-s); padding: 26px 28px; margin-bottom: 20px;
  scroll-margin-top: 92px;
}
.fr-card .fr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.fr-card .fr-id { font-family: var(--font-en); font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em; color: #fff; background: var(--grad); border-radius: 7px; padding: 3px 10px; }
.fr-card .fr-head h3 { margin: 0; font-size: 18px; }
.fr-card .pri { font-size: 12px; font-weight: 700; border-radius: 100px; padding: 3px 12px; }
.pri-p0 { color: #B42318; background: rgba(180, 35, 24, 0.08); }
.pri-p1 { color: #B54708; background: rgba(255, 179, 0, 0.14); }
.pri-p2 { color: var(--navy); background: rgba(26, 35, 110, 0.07); }
.fr-card p { font-size: 14.5px; color: var(--body); margin-bottom: 10px; }

.doc-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 13.8px; }
.doc-table th {
  text-align: left; font-weight: 700; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line-2); padding: 10px 14px; white-space: nowrap;
}
.doc-table td { border: 1px solid var(--line-2); padding: 10px 14px; color: var(--body); vertical-align: top; line-height: 1.66; }
.doc-table td:first-child { white-space: nowrap; }
.doc-table tr:hover td { background: rgba(91, 44, 135, 0.025); }
.doc-table code, .fr-card code {
  font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px;
  background: rgba(91, 44, 135, 0.07); color: var(--violet); border-radius: 5px; padding: 1px 7px;
}
.callout {
  border-left: 3px solid var(--violet-2); background: rgba(124, 77, 255, 0.055);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 16px 20px; margin: 16px 0 20px;
  font-size: 14px; color: var(--body);
}
.callout b { color: var(--ink); }
.doc-backtop {
  position: fixed; right: 28px; bottom: 28px; z-index: 90; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-m); color: var(--violet); font-size: 17px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.doc-backtop.is-show { opacity: 1; pointer-events: auto; }
.doc-backtop:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-p { max-width: none; }
  .fc-live { left: 8px; }
  .fc-pay { right: 8px; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .f-a, .f-b { grid-column: span 2; }
  .f-c, .f-d, .f-e { grid-column: span 2; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step .link { display: none; }
  .guard-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 14px 24px 22px; border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow-m);
  }
  .nav.is-open .nav-links a { padding: 11px 4px; border-bottom: 1px solid rgba(91,44,135,.05); }
  .nav.is-open .nav-actions { display: flex; position: absolute; top: calc(68px + 268px); left: 24px; right: 24px; }
  .nav-burger { display: block; }
  .nav.is-open .nav-burger { display: block; }
  .section { padding: 72px 0; }
  .scene { grid-template-columns: 1fr; gap: 40px; margin-bottom: 72px; }
  .scene--rev .scene-media { order: 0; }
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { position: relative; top: 0; max-height: none; margin-bottom: 36px; display: none; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .f-a, .f-b, .f-c, .f-d, .f-e { grid-column: span 1; }
  .flow { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .guard-list { grid-template-columns: 1fr; }
  .hero { padding: 132px 0 84px; }
  .float-card { padding: 10px 12px; font-size: 12px; }
  .fc-report { left: 8px; }
  .cta-band { padding: 56px 26px; }
  .modal-box { padding: 30px 22px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
