/* 几道官网 · 共享样式（首页 + 子页） */

:root {
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #3049c8;
  --accent-soft: rgba(48, 73, 200, 0.08);
  --dark: #111113;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 54px; display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: 0.04em; flex: none; }
.brand .brand-mark { align-self: center; width: 26px; height: 26px; flex: 0 0 26px; }
/* 中文字标与英文字标锁成一组：任何宽度下都不许把「几道」拆成竖排 */
.brand .brand-text { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand .zh { white-space: nowrap; }
.brand .en { font-size: 11px; letter-spacing: 0.28em; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; color: var(--muted); }
.nav .links a { transition: color 0.2s ease; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--fg); }
.nav .actions { display: flex; gap: 10px; align-items: center; }
.nav .actions .btn { padding: 7px 16px; font-size: 13px; }
@media (max-width: 860px) { .nav .links { display: none; } }
/* 窄屏（手机）：品牌区改为「几道 / JIDAO」上下两行，避免中文被拆成竖排、英文被挤到旁边 */
@media (max-width: 420px) {
  .nav .inner { gap: 14px; padding: 0 18px; }
  .brand .brand-text { flex-direction: column; align-items: flex-start; gap: 1px; }
  .brand .en { font-size: 10px; letter-spacing: 0.22em; }
  .nav .actions { gap: 8px; }
  .nav .actions .btn { padding: 7px 12px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 980px; padding: 13px 26px; font-size: 16px;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-dark { background: var(--fg); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-light { background: #fff; color: var(--fg); }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { border-color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 区块通用 ---------- */
section.block { padding: 112px 24px; }
.sec-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--fg); margin: 0 0 14px; }
.sec-title {
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 14px;
}

/* ---------- 区块1｜Hero 全屏氛围大图 ---------- */
.hero { position: relative; isolation: isolate; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.6) 52%, rgba(0, 0, 0, 0.76) 100%);
}
.hero .inner { max-width: var(--max); margin: 0 auto; padding: 128px 24px; width: 100%; }
.hero h1 {
  font-size: clamp(32px, 5vw, 60px); line-height: 1.12; letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 22px; max-width: 19ch;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.4);
}
.hero .lead {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: rgba(255, 255, 255, 0.9);
  max-width: 40ch; margin: 0 0 34px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
@media (max-width: 820px) { .hero { min-height: 88vh; } .hero .inner { padding: 96px 24px; } }

/* ---------- 左图右文 / 左文右图 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}
.split-copy h2 {
  font-size: clamp(26px, 3vw, 40px); line-height: 1.16; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 20px;
}
.split-copy p { font-size: 17px; line-height: 1.68; color: var(--muted); margin: 0 0 18px; }
.split-copy p.note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split .split-media { order: -1; }
  .split.reverse .split-media { order: -1; }
  .split.reverse .split-copy { order: 0; }
  .split .p-extra { display: none; }
}

/* ---------- 区块6｜通栏图文 ---------- */
.band-wide { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.band-wide .bw-bg { position: absolute; inset: 0; z-index: -2; }
.band-wide .bw-bg img { width: 100%; height: 100%; object-fit: cover; }
.band-wide .bw-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.62) 55%, rgba(0, 0, 0, 0.72) 100%);
}
.band-wide .inner { max-width: var(--max); margin: 0 auto; padding: 120px 24px; }
.band-wide h2 {
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.16; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 22px; max-width: 16ch;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.band-wide p {
  font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.88);
  max-width: 46ch; margin: 0 0 16px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
@media (max-width: 820px) { .band-wide .inner { padding: 88px 24px; } .band-wide .p-extra { display: none; } }

/* ---------- 区块6.5｜不只是给程序员 ---------- */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
@media (max-width: 820px) { .points { grid-template-columns: 1fr; gap: 28px; } }
.point h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 12px; }
.point p { font-size: 17px; line-height: 1.72; color: var(--muted); margin: 0; }
.example { margin: 48px 0 0; background: var(--bg-alt); border-radius: var(--radius-lg); padding: 40px 44px; }
.example blockquote { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.62; letter-spacing: -0.01em; font-weight: 500; color: var(--fg); max-width: 62ch; }
@media (max-width: 820px) { .example { padding: 30px 28px; margin-top: 32px; } }

/* ---------- 区块7｜理念总结 ---------- */
.philosophy { position: relative; background: var(--bg-alt); overflow: hidden; }
.philosophy .ph-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.06; }
.philosophy .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.philosophy .inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; text-align: center; }
.philosophy h2 {
  font-size: clamp(28px, 3.8vw, 46px); line-height: 1.18; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 26px;
}
.philosophy p { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 0 0 18px; }

/* ---------- 区块8｜底部 CTA（深色） ---------- */
.cta-dark { position: relative; isolation: isolate; background: var(--dark); color: #fff; overflow: hidden; text-align: center; }
.cta-dark .cta-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.16; }
.cta-dark .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-dark .cta-scrim { position: absolute; inset: 0; z-index: 0; background: radial-gradient(70% 120% at 50% 0%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75)); }
.cta-dark .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-dark h2 {
  font-size: clamp(28px, 3.8vw, 46px); line-height: 1.18; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 18px;
}
.cta-dark p { font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); margin: 0 0 34px; }
.cta-dark .btn-row { justify-content: center; }

/* ---------- 注册（保留既有功能） ---------- */
.register .reg-inner { max-width: 460px; margin: 0 auto; }
.form {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 34px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}
.form label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin: 16px 0 7px; }
.form label:first-of-type { margin-top: 0; }
.form input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; font-size: 16px; color: var(--fg); background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form input::placeholder { color: #6e6e73; }
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form button {
  width: 100%; margin-top: 24px; border: 0; border-radius: 980px;
  padding: 14px; font-size: 16px; font-weight: 600; font-family: inherit;
  background: var(--fg); color: #fff; cursor: pointer;
  transition: opacity 0.2s ease, transform 0.18s ease;
}
.form button:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.92; }
.form button:disabled { opacity: 0.4; cursor: default; }
.msg { margin-top: 14px; font-size: 14px; min-height: 20px; text-align: center; }
.msg.ok { color: #0a7a3d; }
.msg.err { color: #d70015; }
.form .hint { color: var(--muted); font-size: 13px; margin-top: 16px; text-align: center; }
.form .hint a { color: var(--accent); font-weight: 500; }
.success-ico { width: 44px; height: 44px; color: #0a7a3d; margin: 0 auto 14px; display: block; }

/* ---------- 手机端提示 ---------- */
.mobile-tip {
  display: flex; align-items: center; gap: 18px;
  max-width: 720px; margin: 0 auto; background: var(--bg-alt);
  border-radius: var(--radius-lg); padding: 22px 26px;
}
.mobile-tip .mt-ico { color: var(--fg); width: 30px; height: 30px; flex: none; }
.mobile-tip .mt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mobile-tip .mt-text b { font-size: 16px; font-weight: 600; }
.mobile-tip .mt-text span { font-size: 13px; color: var(--muted); }
.mobile-tip .btn { flex: none; padding: 10px 20px; font-size: 14px; }

/* ---------- 页脚 ---------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--line-soft); }
footer .inner {
  max-width: var(--max); margin: 0 auto; padding: 44px 24px 34px;
  color: var(--muted); font-size: 13px;
}
footer .top { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 7px; }
.foot-brand .brand-mark { width: 18px; height: 18px; flex: 0 0 18px; }
footer .flinks { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
footer a:hover { color: var(--fg); }
footer .slogan { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--fg); font-size: 14px; font-weight: 600; }

/* ---------- 子页 ---------- */
.subpage-head { padding: 96px 24px 24px; }
.subpage-head .sec-eyebrow { color: var(--accent); }
.subpage-head h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 16px; }
.subpage-head .lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 62ch; margin: 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--muted); margin: 0 0 16px; }
.prose .note { font-size: 15px; }
.placeholder-card {
  background: var(--bg-alt); border-radius: var(--radius-lg);
  padding: 44px 40px; text-align: center; max-width: 560px;
}
.placeholder-card h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.placeholder-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }

/* ---------- 案例故事 ---------- */
.stories { display: grid; gap: 24px; max-width: 860px; }
.story { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 42px 44px; }
.story .who { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); margin: 0 0 14px; }
.story blockquote { margin: 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.66; letter-spacing: -0.01em; color: var(--fg); }
@media (max-width: 820px) { .story { padding: 28px 26px; } }

/* ---------- 首页案例预告 ---------- */
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } }
.tease { background: var(--bg-alt); border-radius: var(--radius-md); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.tease .who { font-size: 13px; font-weight: 600; color: var(--accent); margin: 0; }
.tease p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg); }
.teaser-more { margin-top: 34px; }

/* ---------- 入场动效 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.23s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 特色能力页（对齐首页 hero + 新手指引：大图 / 白字 / 分组带 / 卡片） ---------- */
/* 子页 Hero：大图 + 暗色 scrim + 白字（与首页 hero、新手指引同一气质） */
.subpage-hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.subpage-hero .sh-bg { position: absolute; inset: 0; z-index: -2; }
.subpage-hero .sh-bg img { width: 100%; height: 100%; object-fit: cover; }
.subpage-hero .sh-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.56) 52%, rgba(0, 0, 0, 0.8) 100%),
    radial-gradient(120% 90% at 16% 14%, rgba(48, 73, 200, 0.32), transparent 58%);
}
.subpage-hero .inner { max-width: var(--max); margin: 0 auto; padding: 128px 24px 72px; width: 100%; }
.subpage-hero .sec-eyebrow { color: rgba(255, 255, 255, 0.72); }
.subpage-hero h1 {
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.12; letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.4);
}
.subpage-hero .lead {
  font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, 0.88);
  max-width: 58ch; margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
/* 分组跳转：Hero 内锚点胶囊 */
.fgroup-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.fgroup-nav a {
  font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.32); color: #fff;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.fgroup-nav a:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); }

/* 分组区块：交替底色 + 编号大标题 → 分组一眼可辨 */
.fgroup { padding: 88px 24px; }
.fgroup.alt { background: var(--bg-alt); }
.fgroup-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
.fgroup-num {
  font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; color: var(--accent); opacity: 0.9; font-variant-numeric: tabular-nums;
}
.fgroup-title { font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 8px; }
.fgroup-sub { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.fcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fcard {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  padding: 28px; scroll-margin-top: 88px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.fcard:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); border-color: var(--line); }
.fcard h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; margin: 0 0 10px; }
.fcard p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.fcard .where { font-size: 14px; line-height: 1.65; color: var(--fg); opacity: 0.85; margin: 12px 0 0; }
@media (max-width: 820px) {
  .fcards { grid-template-columns: 1fr; }
  .fgroup { padding: 64px 24px; }
  .subpage-hero .inner { padding: 104px 24px 56px; }
  .fgroup-head { gap: 14px; margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .fcard:hover { transform: none; } }

/* ---------- 首页 Hero 两组文案轮换 ---------- */
/* 首屏铺满：Hero 高度 = 视口 − 顶部导航（54px 内容 + 1px 边框），避免最下方露白条 */
.hero { min-height: calc(100vh - 55px); min-height: calc(100dvh - 55px); }
/* 加宽文案列 + 收字号：标题一行、副标题两行，减少碎换行 */
.hero .inner { max-width: 1200px; padding-left: 40px; padding-right: 40px; }
.hero-rotator { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.8s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide h1 {
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.18; letter-spacing: -0.025em;
  font-weight: 700; margin: 0 0 10px; max-width: 20em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.4);
}
/* 英文装饰小字（中文模式下紧跟中文标题下方） */
.hero-slide .hs-en-deco {
  font-size: clamp(13px, 1.4vw, 17px); font-weight: 600; letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72); margin: 0 0 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-slide .lead {
  font-size: clamp(14px, 1.5vw, 18px); line-height: 1.62; color: rgba(255, 255, 255, 0.9);
  max-width: 58em; margin: 0 0 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
/* 切到英文：隐藏装饰小字（此时英文即主标题） */
.hero.lang-en .hs-en-deco { display: none; }
/* 轮换控件：左右箭头 + 圆点指示 */
.hero-controls { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.hero-arrow {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.08);
  color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.7); }
.hero-arrow svg { width: 18px; height: 18px; display: block; }
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.32); cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.hero-dots button:hover { background: rgba(255, 255, 255, 0.6); }
.hero-dots button.is-active { width: 26px; border-radius: 980px; background: #fff; }
/* 中 / EN 切换按钮（Hero 控件行右侧） */
.hero-lang {
  margin-left: auto; height: 40px; min-width: 56px; padding: 0 16px;
  border-radius: 980px; border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; font-family: inherit;
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease;
}
.hero-lang:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.7); }
@media (max-width: 820px) { .hero-slide h1 { max-width: none; } }

/* ---------- 交付物展示区 ---------- */
.deliver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 900px) { .deliver-grid { grid-template-columns: 1fr; gap: 20px; } }
.deliver { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.18s ease, transform 0.18s ease; }
.deliver:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.deliver-media { aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f8; }
.deliver-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deliver h3 { font-size: 19px; letter-spacing: -0.01em; font-weight: 700; margin: 22px 24px 10px; }
.deliver p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 24px 26px; }
.deliver-foot { margin-top: 44px; text-align: center; }
.deliver-line { font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -0.01em; color: var(--fg); margin: 0 0 24px; }

/* ---------- 案例小图 + 引用署名 ---------- */
.tease-media { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #eef1f8; flex: none; }
.tease-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-sig { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* 案例故事：人物图 + 文字 */
.story { display: flex; gap: 32px; align-items: flex-start; }
.story-media { flex: 0 0 170px; width: 170px; border-radius: 14px; overflow: hidden; background: #e9edf4; }
.story-media img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 5; }
.story-body { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .story { flex-direction: column; gap: 20px; }
  .story-media { flex: none; width: 150px; }
}

/* 品牌一句话（理念区块收束） */
.brand-line {
  position: relative; margin: 44px 0 0; font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700; letter-spacing: 0.1em; color: var(--fg);
}
.brand-line::before {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 0 auto 18px;
}

/* ---------- 注册区：hero 式大图背景（换图即可） ---------- */
.register { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.register .reg-bg { position: absolute; inset: 0; z-index: -2; }
.register .reg-bg img { width: 100%; height: 100%; object-fit: cover; }
.register .reg-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(120% 90% at 16% 14%, rgba(48, 73, 200, 0.3), transparent 58%);
}
.register .sec-eyebrow { color: rgba(255, 255, 255, 0.72); }
.register .sec-title { color: #fff; }
.register .lead { color: rgba(255, 255, 255, 0.82); }

/* 区块标题：收字号 + 平衡换行，避免「孤字」断行（如「…设备之 / 中」） */
.split-copy h2 { font-size: clamp(24px, 2.8vw, 34px); text-wrap: balance; }
.philosophy h2, .band-wide h2, .sec-title, .fgroup-title, .cta-dark h2 { text-wrap: balance; }

/* ---------- 教程页（接入模型：四步 + 价格 + FAQ） ---------- */
.guide-intro { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 68ch; margin: 18px 0 0; }
.guide-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-soft); }
.guide-link:hover { border-bottom-color: var(--accent); }
.gstep {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 34px 38px; margin-top: 24px; scroll-margin-top: 88px;
}
.gs-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 14px; }
.gs-num {
  font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.gs-head h3 { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.gs-list { margin: 0; padding-left: 24px; }
.gs-list li { font-size: 16.5px; line-height: 1.8; color: var(--muted); margin: 0 0 8px; }
.gs-list li strong, .gsub strong { color: var(--fg); }
.gsub { font-size: 15px; line-height: 1.75; color: var(--muted); margin: 14px 0 0; }
.gstep code, .gtable code {
  font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em; background: var(--bg-alt); border-radius: 6px; padding: 2px 7px;
}
.gnote, .gwarn { border-radius: var(--radius-md); padding: 18px 22px; font-size: 15.5px; line-height: 1.8; margin-top: 18px; }
.gnote { background: #eef3fb; border-left: 4px solid #7f9fc4; color: #20304a; }
.gwarn { background: #fdf0f0; border-left: 4px solid #c0533f; color: #4d1f1f; }
.gnote b, .gwarn b { color: inherit; font-weight: 700; }
/* 窄屏表格：容器横向滚动（body 是 overflow-x: hidden，直接撑宽会被裁掉） */
.gtable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0 4px; }
.gtable { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; color: var(--muted); }
.gtable th, .gtable td { border: 1px solid var(--line-soft); padding: 12px 14px; text-align: left; line-height: 1.65; vertical-align: top; }
.gtable th { background: var(--bg-alt); color: var(--fg); font-weight: 600; }
.gtable strong { color: var(--fg); }
.gfaq-item { border-bottom: 1px solid var(--line-soft); }
.gfaq-item summary { cursor: pointer; font-size: 17px; font-weight: 600; padding: 18px 0; list-style: none; display: flex; gap: 10px; }
.gfaq-item summary::-webkit-details-marker { display: none; }
.gfaq-item summary::before { content: "Q"; color: var(--accent); font-weight: 800; flex: none; }
.gfaq-item[open] summary { color: var(--accent); }
.gfaq-item p { margin: 0 0 18px 22px; color: var(--muted); font-size: 16px; line-height: 1.8; }
@media (max-width: 820px) {
  .gstep { padding: 26px 22px; border-radius: var(--radius-md); }
  .gtable { font-size: 14.5px; }
  .gtable th, .gtable td { padding: 10px 10px; }
}

/* 首页 Hero 内：接入教程引导行（第一屏即可见，桌面/手机同一处） */
.hero-guide {
  margin: 20px 0 0; font-size: 14.5px; line-height: 1.6;
  color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.hero-guide a {
  color: #fff; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.hero-guide a:hover { color: #fff; opacity: 0.86; }

/* 底部 CTA：接入教程一行（弱化，跟在主按钮后） */
.cta-dark .cta-guide { margin: 18px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.76); }
.cta-dark .cta-guide a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 教程配图（手机端实拍步骤图）：图 + 短说明，窄屏自动换列 */
.gfig-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 24px 0 0; }
.gfig { margin: 0; background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 14px; }
.gfig img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; }
.gfig figcaption { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin-top: 12px; }
.gfig figcaption b { color: var(--accent); font-weight: 700; margin-right: 4px; }
/* 单个图标展示（如桌面图标长什么样）：小尺寸横排，不占整列 */
.gfig-icon { display: flex; align-items: center; gap: 16px; max-width: 460px; }
.gfig-icon img { width: 72px; height: 72px; flex: none; border: 0; background: transparent; }
.gfig-icon figcaption { margin: 0; }

/* 教程子页：返回总览（压在 hero 大图上） */
.sh-back { margin: 0 0 14px; font-size: 14px; }
.sh-back a { color: rgba(255, 255, 255, 0.82); }
.sh-back a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
