/* ==========================================================================
   detail-polish（2026-11-11，预览，未上线）— 基线 20261111-hero-entrance-6b7dcdd4
   参照 tutorluke.com 实测值（Playwright getComputedStyle，1440 / 390@2x，见 detail-polish/TOKENS.md）
   只改字体、字阶、字距、行高、版心、区块间距、卡片内距/圆角/阴影、按钮尺寸；不改文案、结构、颜色语义、动效。
   加载顺序：main.css → (hero-orbit.css) → v3.css → v7.css → polish.css
   ========================================================================== */

/* ---------- 1. 字体：拉丁 Outfit（tutorluke 同款，几何无衬线）+ 中文 Noto Sans SC（沿用已有子集） ---------- */
/* Outfit 可变字体，拉丁子集 29KB（替代原 Inter 400+600 共 30KB）。
   weight 描述符写 300 800：页面里写 900 的地方会被钳到 800，与 tutorluke 标题 font-extrabold(800) 一致。 */
@font-face {
  font-family: "CXC Outfit";
  font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../fonts/Outfit-VF-latin.woff2") format("woff2-variations"), url("../fonts/Outfit-VF-latin.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013, U+20AC, U+2122, U+2190-2193, U+2212, U+2248, U+2264-2265;
}
/* 换字前兜底：Arial/Arimo 按 Outfit 度量校正（size-adjust 由字宽实测 97.4%），减少 swap 跳动 */
@font-face {
  font-family: "CXC Outfit Fallback";
  src: local("Arial"), local("Arimo"), local("Liberation Sans"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 97.4%; ascent-override: 102.7%; descent-override: 26.7%; line-gap-override: 0%;
  unicode-range: U+0020-007E, U+00A0-00B6, U+00B8-00FF;
}
:root {
  --font: "CXC Outfit", "CXC Sans SC", "CXC Outfit Fallback", "CXC SC Fallback", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* ---------- 2. 字阶 token（tutorluke：h1 67.2/41.6，h2 48/30，h3 20，导语 18/16，正文 16/14，眉标 12） ---------- */
  --fs-display: clamp(40px, 4.667vw, 67px);
  --fs-h2: clamp(30px, 3.334vw, 48px);
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-num-xl: clamp(48px, 5vw, 72px);
  --fs-num: clamp(28px, 3vw, 38px);   /* 次要数字：不放大（环形图 97.10% 放大会压到圆环） */
  --pl-track-tight: -0.02em;   /* tutorluke tracking-tight = -0.025em；中文略放宽 */

  /* ---------- 3. 卡片：tutorluke 圆角 21.6px、1px 细线、无投影 ---------- */
  --v3-r: 22px;
  --v3-r-lg: 28px;
  --v3-card-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --pl-card-pad: 32px;
  --pl-card-pad-m: 24px;
  --v7-line: #E4E4E7;          /* tutorluke 浅色 --border */
}
body, button, input, select, textarea { font-family: var(--font); }
.v3-prose .cxc-aim__steps > li::before { font-family: "CXC Outfit", "CXC Outfit Fallback", system-ui, sans-serif; }
body { font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---------- 4. 标题：800 字重 + 收紧字距 + 更紧的行高 ---------- */
.v3-display { font-weight: 800; line-height: 1.1; letter-spacing: var(--pl-track-tight); }
.v3-h2 { font-weight: 800; line-height: 1.18; letter-spacing: var(--pl-track-tight); margin-bottom: 16px; }
.v3-h3, h3 { letter-spacing: -0.01em; }
.v3-h3 { line-height: 1.4; }
.cxc-hero__title { font-weight: 800; letter-spacing: var(--pl-track-tight); line-height: 1.18; }  /* 文章标题较长、常 2–3 行，比首页大标题多留行距 */
.cxc-article h2, .cxc-prose h2 { font-weight: 800; letter-spacing: -0.015em; }

@media (max-width: 760px) { :root { --fs-lead: 16px; } }
/* 导语：18px / 1.7（tutorluke 18px / 1.625，中文多给一点行距）；移动端 16px */
.v3-lead, .v3-sub { font-size: var(--fs-lead); line-height: 1.7; }
.v3-lead { max-width: 37em; }
/* 眉标：tutorluke 12px 700 tracking 0.2em；中文用 13px、0.14em 保证可读 */
.v3-kicker, .cxc-kicker { letter-spacing: 0.14em; font-weight: 700; }

/* 大数字：tutorluke 统计数字 800 + tracking-tight，等宽数字 */
.v3-bigcard__num, .v3-math__item strong, .v3-result__big, .v3-time__big, .cxc-now__num { letter-spacing: var(--pl-track-tight); font-variant-numeric: tabular-nums; }

/* ---------- 5. 版心与区块节奏：max-w-7xl 1280（内容 1216）+ 32/24/16 边距；区块 112 / 80 ---------- */
.cxc-container { max-width: 1280px; }
.cxc-container--narrow { max-width: 840px; }
@media (min-width: 640px) and (max-width: 1023px) { .cxc-container { padding: 0 24px; } }
@media (max-width: 639px) { .cxc-container { padding: 0 16px; } }

.v3-sec { padding: 112px 0; }
.v3-sheet > .v3-sec:first-child { padding-top: 80px; }
.v3-block { padding: 72px 0; }
.v3-block + .v3-block { padding-top: 32px; }
.v3-platform { padding-top: 80px; padding-bottom: 80px; }
.cxc-section { padding: 96px 0; }
@media (max-width: 760px) {
  .v3-sec { padding: 80px 0; }
  .v3-sheet > .v3-sec:first-child { padding-top: 64px; }
  .v3-block { padding: 56px 0; }
  .v3-platform { padding-top: 64px; padding-bottom: 64px; }
  .cxc-section { padding: 64px 0; }
}

/* 卡片圆角统一 22px（tutorluke rounded-2xl = 21.6px；原来 20 / 22 / 24 混用） */
.v3-icons4 li, .v3-math__item, .v3-pair__item, .v3-asks li, .v3-stats4 > div, .v3-qa3 > div, .v3-tri > div,
.v3-card, .v3-entry, .v3-pillar4 > div, .v3-feats li, .v3-week, .v3-bigcard, .v3-table-wrap, .v3-result, .v3-plan { border-radius: var(--v3-r); }

/* ---------- 6. 卡片内距：tutorluke p-8（32px），移动端 24px ---------- */
.v3-card { padding: var(--pl-card-pad); }
.v3-bigcard { padding: 28px 32px; }
.v3-pair__item { padding: 28px 32px; }
.v3-result { padding: 28px 32px; }
.v3-plan { padding: var(--pl-card-pad); }
@media (max-width: 760px) {
  .v3-card, .v3-plan { padding: var(--pl-card-pad-m); }
  .v3-bigcard, .v3-pair__item, .v3-result { padding: 24px; }
}

/* ---------- 7. 按钮：600 字重、16px、略矮（tutorluke 36px 太小，保留 ≥44px 触控高度） ---------- */
.v3-btn { font-weight: 600; letter-spacing: 0; }
.v3-btn--md { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.v3-btn--lg { min-height: 48px; padding: 11px 28px; font-size: 16px; }
.v3-btn--xl { min-height: 52px; padding: 12px 32px; font-size: 16px; }
.cxc-btn { font-weight: 600; letter-spacing: 0; }
.cxc-btn--lg { min-height: 48px; padding: 11px 28px; font-size: 16px; }
.cxc-btn--xl { min-height: 52px; padding: 12px 32px; font-size: 17px; }
.cxc-chip { font-weight: 600; }

/* ---------- 8. 导航与页脚：tutorluke 导航 14px 500，页脚标题 14px 700 + 链接 14px ---------- */
@media (min-width: 1081px) { .cxc-nav__list a { font-size: 14px; font-weight: 500; letter-spacing: 0; } }
.cxc-footer__h { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- 9. 断行细节：段落避免末行孤字（只影响换行位置，不改文字） ---------- */
.v3-lead, .v3-sub, .v3-note, .cxc-article p { text-wrap: pretty; }

/* ---------- 10. 761–879px：笔记本底座左右各伸出 40px 会超出视口（基线 768 宽即溢出 8px），收到 14px，与 ≤760 一致 ---------- */
@media (min-width: 761px) and (max-width: 879px) { .v3-laptop__base { margin: 0 -14px; } }

/* ==========================================================================
   steps-motion（2026-11-11，预览，未上线）：编号步骤卡入场细节，配合 assets/js/steps-motion.js
   卡片本身仍由 reveal.js 入场（tutorluke StaggerItem：30px / 500ms / easeOut / 每张 +120ms / -80px 触发）。
   这里只加：编号晚 150ms 弹出（tutorluke .fb-badge：scale 0→1，0.4s，back.out(2)）；
   首页 #ask 一条连接线从上往下画（tutorluke「ご利用方法」进度线 scaleY）。只动 opacity / transform。
   隐藏态只在 html.js-reveal 且 JS 加上 .sm-arm 后生效；无 JS / reduced-motion / 打印一律静态显示。
   ========================================================================== */
/* 连接线：静态时也在（只露出卡片之间 12px 的缝），JS 不在时就是一条完整的线 */
.v3-asks { position: relative; }
.v3-asks > li { position: relative; z-index: 1; }
.v3-asks::before {
  content: ""; position: absolute; z-index: 0; left: 51px; top: 40px; bottom: 40px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #FFD39A 0%, #F9A04A 50%, #FFD39A 100%);
  transform-origin: 50% 0; pointer-events: none;
}
@media (max-width: 760px) { .v3-asks::before { left: 37px; top: 30px; bottom: 30px; } }

/* 编号：隐藏态 */
html.js-reveal .v3-asks.sm-arm > li:not(.sm-go) > b,
html.js-reveal .v3-rules.sm-arm > li:not(.sm-go) > .v3-rules__n,
html.js-reveal .cxc-steps-inline.sm-arm > li:not(.sm-go) > span,
html.js-reveal .cxc-numlist.sm-arm > li:not(.sm-go)::before { opacity: 0; transform: scale(0.5); }
/* 编号：弹出（opacity easeOut；transform 带一点回弹，近似 GSAP back.out(2)） */
html.js-reveal .v3-asks.sm-arm > li.sm-go > b,
html.js-reveal .v3-rules.sm-arm > li.sm-go > .v3-rules__n,
html.js-reveal .cxc-steps-inline.sm-arm > li.sm-go > span,
html.js-reveal .cxc-numlist.sm-arm > li.sm-go::before {
  transition: opacity 400ms cubic-bezier(0, 0, 0.58, 1) var(--sm-d, 150ms), transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1) var(--sm-d, 150ms);
}
/* 连接线：随卡片从第一张画到最后一张 */
html.js-reveal .v3-asks.sm-arm.sm-line:not(.sm-in)::before { transform: scaleY(0); }
html.js-reveal .v3-asks.sm-arm.sm-line.sm-in::before { transform: scaleY(1); transition: transform var(--sm-lt, 860ms) cubic-bezier(0, 0, 0.58, 1) var(--sm-ld, 0ms); }

/* <1024：轻量版（与 reveal.js 的移动端节奏一致）：编号只从 0.8 放大、300ms、无回弹；连接线不画、静态显示 */
@media (max-width: 1023px) {
  html.js-reveal .v3-asks.sm-arm > li:not(.sm-go) > b,
  html.js-reveal .v3-rules.sm-arm > li:not(.sm-go) > .v3-rules__n,
  html.js-reveal .cxc-steps-inline.sm-arm > li:not(.sm-go) > span,
  html.js-reveal .cxc-numlist.sm-arm > li:not(.sm-go)::before { transform: scale(0.8); }
  html.js-reveal .v3-asks.sm-arm > li.sm-go > b,
  html.js-reveal .v3-rules.sm-arm > li.sm-go > .v3-rules__n,
  html.js-reveal .cxc-steps-inline.sm-arm > li.sm-go > span,
  html.js-reveal .cxc-numlist.sm-arm > li.sm-go::before {
    transition: opacity 300ms cubic-bezier(0, 0, 0.58, 1) var(--sm-d, 150ms), transform 300ms cubic-bezier(0, 0, 0.58, 1) var(--sm-d, 150ms);
  }
  html.js-reveal .v3-asks.sm-arm.sm-line:not(.sm-in)::before,
  html.js-reveal .v3-asks.sm-arm.sm-line.sm-in::before { transform: none; transition: none; }
}
/* 立即显示（锚点 / bfcache / 兜底）、减少动态、打印：一律最终状态 */
html.js-reveal .sm-now > li > b, html.js-reveal .sm-now > li > span, html.js-reveal .sm-now > li::before, html.js-reveal .sm-now::before { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .sm-arm > li > b, html.js-reveal .sm-arm > li > span, html.js-reveal .sm-arm > li::before, html.js-reveal .sm-arm::before { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print {
  html.js-reveal .sm-arm > li > b, html.js-reveal .sm-arm > li > span, html.js-reveal .sm-arm > li::before, html.js-reveal .sm-arm::before { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* 真实简介较长：面板在照片内滚动，不撑破卡片 */
[data-cxc-peek] .cxc-peek__panel { max-height: 78%; overflow: auto; -webkit-overflow-scrolling: touch; }
[data-cxc-peek] .cxc-peek__intro { white-space: pre-line; font-weight: 500; color: #fff; }

/* 点击「英文介绍」后的播放层（视频不预载） */
#cxc-video-dlg { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8, 16, 28, 0.62); }
#cxc-video-dlg[hidden] { display: none !important; }
.cxc-video-dlg__box { width: min(720px, 100%); background: #0B1B30; color: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.cxc-video-dlg__box video { width: 100%; max-height: 70vh; background: #000; border-radius: 8px; }
.cxc-video-dlg__t { margin: 0 40px 10px 0; font-weight: 700; }
.cxc-video-dlg__x { float: right; border: 0; background: transparent; color: #fff; font: inherit; cursor: pointer; }
button.cxc-tcard__intro { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
