/* ============================================================
   提词匠官网样式
   ① 全站共享：导航 + 页脚（.tcj- 前缀，全局生效，不与 style.css 撞名）
   ② 首页：方案 D「真机演示流」，作用域 .home-d
   ③ 二级页：功能介绍 / 帮助中心 / 关于我们 / 文章页，作用域 .doc-b
   来源：docs/preview/首页方案D-真机演示流.html（v7）
   ⚠️ 变量一律定义在作用域容器上，禁止写进 :root
      —— style.css 已占用 --bg/--text/--line/--shadow/--radius 等同名变量，
         写进 :root 会串改全站配色。
   ============================================================ */

html {
  scroll-behavior: smooth;
  /* 与 style.css 同款：稳住切页时滚动条占位，避免导航左右弹。双写是因为两份 CSS 都有 html 规则，只改一边会被覆盖观感不一致。 */
  scrollbar-gutter: stable;
}

/* ============ 通用动画（.doc-b 段引用，勿删） ============ */
@keyframes tcjPulse { 0%, 100% { transform: scaleY(.5); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes tcjRecBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes tcjCharIn { from { opacity: 0; transform: translateY(16px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tcjTypeIn { to { max-width: 100%; } }
@keyframes tcjCaret { 0%, 100% { border-color: var(--red); } 50% { border-color: transparent; } }

/* ============================================================
   ① 全站共享导航 + 页脚
   ============================================================ */
/* 导航/页脚在 .home-d 之外，需自带一份变量（只在这几棵子树内生效） */
.tcj-nav,
.tcj-footer,
.tcj-nav-backdrop,
.tcj-nav-toggle-input {
    --blue: #3B82F6;
    --blue-deep: #2563EB;
    --indigo: #6366F1;
    --amber: #F59E0B;
    --orange: #F97316;
    --green: #10B981;
    --bg: #F8FAFC;
    --bg-soft: #EEF2F7;
    --card: #FFFFFF;
    --text: #1A1A1A;
    --muted: #64748B;
    --navy: #0B1220;
    --line: #E5E7EB;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --max: 1120px;
}

/* 导航/页脚自持行高，禁止继承页面容器 —— 它们嵌在 .home-d(1.65) / .doc-b(1.8) / 无壳页(body 1.58) 里，
   继承谁就跟着变：CTA 按钮只有 padding 没写行高，1.65→按钮 48.75px、1.8→51px，
   导航整体在首页与内容页差 2.25px，切页时 sticky 导航连同下方整页一起跳动。改这里前先看懂这段。 */
.tcj-nav,
.tcj-footer {
    line-height: 1.65;
}

.tcj-btn-nav {

    padding: 10px 18px;
    font-size: 14px;
}
/* 必须写成 .tcj-btn.tcj-btn-xxx 双类：首页有 .home-d a { color: inherit }（特异性 0,0,1,1），
   单类 .tcj-btn-primary（0,0,1,0）压不过它，按钮会继承导航的深色字，蓝底黑字看着像失效 */
.tcj-btn.tcj-btn-secondary {

    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.tcj-btn.tcj-btn-primary {

    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.tcj-btn:hover {
 transform: translateY(-1px);
}
.tcj-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.tcj-nav {

    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}
.tcj-nav-inner {

    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.tcj-brand {

    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.tcj-brand img {

    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.tcj-brand span {

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.tcj-nav-links {

    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 8px;
    flex: 1;
}
.tcj-nav-links a {

    font-size: 14px;
    color: var(--muted);
    transition: color .2s;
}
.tcj-nav-links a:hover,
.tcj-nav-links a.active {
 color: var(--text); font-weight: 600;
}
.tcj-nav-toggle-input {

    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.tcj-nav-toggle {
 display: none;
}
.tcj-sr-only {

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

    background: #0F172A;
    color: #CBD5E1;
    padding: 56px 0 28px;
}
.tcj-footer-grid {

    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}
.tcj-footer-brand {

    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.tcj-footer-brand img {

    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.tcj-footer-brand span {

    color: #F8FAFC;
    font-weight: 700;
    font-size: 17px;
}
.tcj-footer p {

    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
    color: #94A3B8;
}
.tcj-footer h3 {

    color: #F8FAFC;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}
.tcj-footer ul li {
 margin-bottom: 10px;
}
.tcj-footer ul a {

    font-size: 14px;
    color: #94A3B8;
}
.tcj-footer ul a:hover {
 color: #E2E8F0;
}
.tcj-footer-copy {

    border-top: 1px solid #1E293B;
    padding-top: 20px;
    font-size: 13px;
    color: #64748B;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.tcj-nav-backdrop {
 display: none;
}
@media (min-width: 961px) {
.tcj-nav-toggle-input {
 display: none;
}
}
@media (max-width: 960px) {
.tcj-nav-inner {

      gap: 12px;
      flex-wrap: wrap;
}
.tcj-nav-toggle {

      display: flex;
      margin-left: auto;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--card);
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
}
.tcj-nav-toggle i {

      display: block;
      width: 16px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform .2s, opacity .2s;
}
.tcj-nav-links {

      display: none;
      width: 100%;
      flex: none;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      margin: 0;
      padding: 10px;
      background: var(--card);
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: var(--shadow-sm);
      order: 5;
}
.tcj-nav-toggle-input:checked ~ .tcj-nav .tcj-nav-links {

      display: flex;
}
.tcj-nav-toggle-input:checked ~ .tcj-nav-backdrop {

      display: block;
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.35);
      z-index: 49;
}
.tcj-nav-toggle-input:checked ~ .tcj-nav .tcj-nav-toggle i:nth-of-type(1) {

      transform: translateY(7px) rotate(45deg);
}
.tcj-nav-toggle-input:checked ~ .tcj-nav .tcj-nav-toggle i:nth-of-type(2) {

      opacity: 0;
}
.tcj-nav-toggle-input:checked ~ .tcj-nav .tcj-nav-toggle i:nth-of-type(3) {

      transform: translateY(-7px) rotate(-45deg);
}
.tcj-nav-links a {

      padding: 12px 14px;
      border-radius: 12px;
}
.tcj-nav-links a:hover,
.tcj-nav-links a.active {

      background: var(--bg-soft);
}
.tcj-footer-grid {

      grid-template-columns: 1fr;
      display: grid;
}
}

/* 页脚容器不复用 .wrap —— 各作用域的 .wrap 宽度不同（首页 1120 / 二级页 940），
   复用会让页脚宽度随页面变，和导航对不齐 */
.tcj-footer-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================================
   ② 首页方案 D（作用域 .home-d）
   ============================================================ */
.home-d {

    --blue: #3B82F6;
    --blue-deep: #2563EB;
    --indigo: #6366F1;
    --amber: #F59E0B;
    --orange: #F97316;
    --green: #10B981;
    --bg: #F8FAFC;
    --bg-soft: #EEF2F7;
    --card: #FFFFFF;
    --text: #1A1A1A;
    --muted: #64748B;
    --navy: #0B1220;
    --line: #E5E7EB;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --max: 1120px;
}
.home-d { margin: 0; padding: 0; box-sizing: border-box; }
/* reset 必须用 :where() 把权重压成 0 —— 直接写 .home-d *:not(...) 会得到 (0,4,0)，
   反而盖过 .home-d .wrap 的 margin:0 auto，导致全站容器不居中（踩过）。
   同时排除 tcj- 导航/页脚元素与公共悬浮按钮：它们的样式在别处定义，
   与 reset 同权重且写在前面，会被 reset 清掉内边距。 */
.home-d :where(*:not([class*="tcj-"]):not(.float-actions):not(.fab-btn):not(.fab-tip)) {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.home-d {

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
.home-d a {
 color: inherit; text-decoration: none;
}
.home-d img {
 display: block; max-width: 100%;
}
.home-d ul {
 list-style: none;
}
.home-d button {
 font: inherit; border: none; cursor: pointer; background: none;
}
.home-d .d-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.home-d .d-btn:hover {
 transform: translateY(-1px);
}
.home-d .d-btn-primary {

    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.home-d .d-btn-secondary {

    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.home-d .d-btn-nav {

    padding: 10px 18px;
    font-size: 14px;
}
.home-d .channel-hint {

    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}
.home-d .wrap {

    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}
.home-d .d-section {

    padding: 76px 0;
}
.home-d .eyebrow {

    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-deep);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.home-d .eyebrow::before {

    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
}
.home-d .d-section h2 {

    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 14px;
}
.home-d .d-section-lead {

    font-size: 17px;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.7;
}
.home-d .alt-row {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.home-d .alt-row.reverse .copy {
 order: 2;
}
.home-d .alt-row.reverse .visual {
 order: 1;
}
.home-d .phone {

    position: relative;
    width: min(272px, 70vw);
    margin: 0 auto;
}
.home-d .phone-screen {

    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: 26px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
      0 24px 48px -12px rgba(15, 23, 42, 0.22),
      0 4px 12px rgba(15, 23, 42, 0.06);
}
.home-d .phone-screen img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-d .phone-stage {

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}
.home-d .transcript-card {

    width: min(300px, 86vw);
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow:
      0 4px 6px rgba(15, 23, 42, 0.04),
      0 24px 48px rgba(15, 23, 42, 0.12);
    padding: 22px 22px 20px;
}
.home-d .transcript-head {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}
.home-d .transcript-head .fname {

    color: var(--text);
    font-weight: 600;
}
.home-d .transcript-head .status {

    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
}
.home-d .transcript-body {

    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 20px;
}
.home-d .transcript-body p + p {
 margin-top: 10px;
}
.home-d .transcript-copy {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-deep);
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
}
.home-d .d-hero {

    position: relative;
    padding: 72px 0 88px;
    /* 背景图铺最上层，下面两层 CSS 渐变是兜底：图挂了首屏仍有层次，不会秃成一块纯色。
       图是 2400x1200 的纯渐变，WebP 只有 8.8KB，不参与布局，CLS 为 0 */
    background-color: var(--bg);
    background-image:
      url("../img/hero-bg-pearl.webp"),
      radial-gradient(900px 420px at 85% 10%, rgba(59, 130, 246, 0.14), transparent 60%),
      linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    background-size: cover, auto, auto;
    background-position: center right, 0 0, 0 0;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
/* 首屏与下一屏的交界柔化，避免背景图边缘出现一条硬切口 */
.home-d .d-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 56px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, var(--bg) 100%);
}
/* 内容压在渐隐层之上。只给直接子元素（.wrap）加，不影响内部任何定位 */
.home-d .d-hero > * {
    position: relative;
    z-index: 1;
}
.home-d .d-hero-grid {

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.home-d .d-hero h1 {

    margin-bottom: 20px;
}
.home-d .d-hero h1 .h1-seo {

    display: block;
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 600;
    color: var(--blue-deep);
    letter-spacing: .05em;
    margin-bottom: 10px;
}
.home-d .d-hero h1 .h1-hook {

    display: block;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.home-d .d-hero-lead {

    font-size: 17px;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 28px;
}
.home-d .d-hero-cta {

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}
.home-d .stats {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.home-d .stat {

    /* 背景换成彩色渐变图后，原来的半透明白卡会和背景糊在一起，
       加一层磨砂把卡片从背景上"浮"起来；不支持 backdrop-filter 时靠 0.78 的白底兜住可读性 */
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px 18px;
}
.home-d .stat strong {

    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.home-d .stat span {

    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}
.home-d .scenes {

    background: var(--bg);
}
.home-d .scene-grid {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}
.home-d .scene-card {

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.home-d .scene-icon {

    width: 44px;
    height: 44px;
    border-radius: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #60A5FA, #2563EB);
    color: #fff;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, .42), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.home-d .scene-icon svg {

    width: 22px;
    height: 22px;
    display: block;
    stroke-width: 1.9;
}
/* 隔一个换靛蓝，避免四块同色排一行 */
.home-d .scene-card:nth-child(2n) .scene-icon {
	background: linear-gradient(150deg, #818CF8, #4F46E5);
	box-shadow: 0 4px 10px -2px rgba(79, 70, 229, .42), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.home-d .scene-card h3 {

    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}
.home-d .scene-card p {

    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}
.home-d .band-soft {
 background: var(--bg-soft);
}
.home-d .step-list {

    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
}
.home-d .step-item {

    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
}
.home-d .step-num {

    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}
.home-d .step-item h3 {

    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.home-d .step-item p {

    font-size: 14px;
    color: var(--muted);
}
.home-d .phone-screen.tp-ui {

    background: var(--navy);
    display: flex;
    flex-direction: column;
}
.home-d .tp-bar {

    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #94A3B8;
    font-size: 12px;
    border-bottom: 1px solid #1E293B;
}
.home-d .tp-bar .pill {

    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
}
.home-d .tp-body {

    position: relative;
    flex: 1;
    padding: 56px 22px 72px;
    color: var(--bg-soft);
    overflow: hidden;
}
.home-d .tp-line {

    position: absolute;
    left: 0;
    right: 0;
    top: 46%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.55);
}
.home-d .tp-text {

    font-size: 20px;
    font-weight: 600;
    line-height: 1.85;
    letter-spacing: 0.02em;
}
/* 提词行的明暗由 .tp-view 的固定遮罩决定（第 ④ 段 A1），不要再加按时序逐行变色的动画：
   行高会随折行和屏幕宽度变，时序对齐必然错位。原 .dim/.focus/.next 已随模板移除 */
.home-d .tp-controls {

    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    display: flex;
    gap: 8px;
}
.home-d .tp-controls span {

    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #94A3B8;
    background: #111827;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 8px 4px;
}
.home-d .free-tag {

    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
}
.home-d .free-tag i {

    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}
.home-d .tools-head {

    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 36px;
}
.home-d .tool-grid {

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.home-d .tool-card {

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 22px 20px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: start;
}
.home-d a.tool-card-cta {

    background: #EFF6FF;
    border: 1px dashed #93C5FD;
    border-radius: 16px;
    padding: 22px 22px 20px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    transition: box-shadow .2s, border-color .2s, transform .15s;
}
.home-d a.tool-card-cta:hover {

    box-shadow: var(--shadow-sm);
    border-color: var(--blue);
    transform: translateY(-2px);
}
.home-d a.tool-card-cta h3 {

    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--blue-deep);
}
.home-d a.tool-card-cta p {

    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}
/* 图标底片：饱和渐变 + 白色线性图标（概念 A）。
   顶部内高光模拟受光面，外阴影同色系压暗，让色块从白卡片上浮起来。 */
.home-d .tool-icon {

    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(150deg, #60A5FA, #2563EB);
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, .42), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.home-d .tool-icon svg {

    width: 24px;
    height: 24px;
    display: block;
    stroke-width: 1.9;
}
.home-d .tool-icon.blue {
	background: linear-gradient(150deg, #60A5FA, #2563EB);
	box-shadow: 0 4px 10px -2px rgba(37, 99, 235, .42), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.home-d .tool-icon.indigo {
	background: linear-gradient(150deg, #818CF8, #4F46E5);
	box-shadow: 0 4px 10px -2px rgba(79, 70, 229, .42), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.home-d .tool-icon.amber {
	background: linear-gradient(150deg, #FBBF24, #D97706);
	box-shadow: 0 4px 10px -2px rgba(217, 119, 6, .42), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.home-d .tool-icon.green {
	background: linear-gradient(150deg, #34D399, #059669);
	box-shadow: 0 4px 10px -2px rgba(5, 150, 105, .42), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.home-d .tool-icon.soft {
	background: linear-gradient(150deg, #94A3B8, #475569);
	box-shadow: 0 4px 10px -2px rgba(71, 85, 105, .38), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.home-d .tool-card h3 {

    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.home-d .tool-card p {

    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}
.home-d .tool-price {

    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    background: var(--bg-soft);
    padding: 6px 10px;
    border-radius: 999px;
}
.home-d .tool-price.hot {

    background: rgba(249, 115, 22, 0.12);
    color: var(--orange);
}
.home-d .tool-price.free {

    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
}
.home-d .honest {

    background: var(--bg);
}
.home-d .honest-panel {

    margin-top: 36px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 36px 40px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.home-d .honest-list {

    display: grid;
    gap: 22px;
    margin-top: 8px;
}
.home-d .honest-item {

    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    align-items: start;
}
.home-d .honest-mark {

    width: 28px;
    height: 28px;
    border-radius: 12px;
    background: var(--bg-soft);
    position: relative;
    margin-top: 2px;
}
.home-d .honest-mark::before,
.home-d .honest-mark::after {

    content: "";
    position: absolute;
    background: var(--muted);
    left: 50%;
    top: 50%;
}
.home-d .honest-mark::before {

    width: 12px;
    height: 2px;
    transform: translate(-50%, -50%);
}
.home-d .honest-mark::after {

    width: 2px;
    height: 12px;
    transform: translate(-50%, -50%);
    opacity: 0;
}
.home-d .honest-item p {

    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}
.home-d .faq {

    background: var(--bg-soft);
}
.home-d .d-faq-list {

    margin-top: 36px;
    display: grid;
    gap: 12px;
}
.home-d details.d-faq-item {

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 4px 20px;
}
.home-d details.d-faq-item summary {

    list-style: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    padding: 18px 28px 18px 0;
    position: relative;
}
.home-d details.d-faq-item summary::-webkit-details-marker {
 display: none;
}
.home-d details.d-faq-item summary::after {

    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.home-d details.d-faq-item[open] summary::after {

    transform: translateY(-30%) rotate(225deg);
}
.home-d details.d-faq-item p {

    padding: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}
.home-d .channel {

    background: var(--bg);
}
.home-d .channel-box {

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #EFF6FF 0%, #EEF2FF 55%, #F8FAFC 100%);
    border: 1px solid #DBEAFE;
    border-radius: 24px;
    padding: 48px;
}
/* 三入口占位：左右垂直居中，卡片等高、信息精简（徽章已表态，不再堆灰按钮） */
.home-d .channel-box-get {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 32px;
    padding: 40px;
}
.home-d .channel-box-get .d-section-lead {
    margin-bottom: 0;
}
.home-d .channel-box-get .channel-steps {
    margin: 18px 0 0;
}
.home-d .get-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.home-d .get-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 14px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    min-height: 0;
}
.home-d .get-badge {
    font-size: 11px;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: .02em;
}
/* 正式小程序码到位前：虚线框占位，禁止放伪造二维码图 */
.home-d .get-qr-slot {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    border: 1.5px dashed #93c5fd;
    background: repeating-linear-gradient(45deg, #eff6ff 0 8px, #f8fafc 8px 16px);
    display: grid;
    place-items: center;
    position: relative;
}
.home-d .get-qr-slot::after {
    content: "QR";
    font-size: 16px;
    font-weight: 800;
    color: #93c5fd;
    letter-spacing: .08em;
}
.home-d .get-qr-img {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}
.home-d .get-store-icon {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
}
.home-d .get-store-icon.is-ios {
    background: #111827;
}
.home-d .get-store-icon.is-android {
    background: linear-gradient(135deg, #34d399, #059669);
}
.home-d .get-store-icon i,
.home-d .get-store-icon svg {
    width: 32px;
    height: 32px;
}
.home-d .get-card strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}
.home-d .get-card > p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}
/* 正式上架后可挂在卡片底部的可点按钮 */
.home-d .get-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    border: 0;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep));
    color: #fff;
    text-decoration: none;
}
.home-d .channel-steps {

    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}
.home-d .channel-steps span {

    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.home-d .channel-steps .arrow {

    border: none;
    background: transparent;
    color: var(--blue);
    padding: 8px 2px;
}
.home-d .official-card {

    background: var(--card);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.home-d .official-card img {

    width: 72px;
    height: 72px;
    border-radius: 16px;
    margin: 0 auto 14px;
}
.home-d .channel-cta {

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.home-d .channel-cta .link-muted {

    font-size: 14px;
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.home-d .channel-cta .link-muted:hover {
 color: var(--text);
}
.home-d .official-card strong {

    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}
.home-d .official-card p {

    font-size: 13px;
    color: var(--muted);
}
@media (max-width: 960px) {
.home-d .d-btn-nav {
 margin-left: 0;
}
.home-d .d-hero {
 padding: 40px 0 56px;
 /* 窄屏首屏是竖长条，用 cover 会把 2:1 的图放大到只剩中间一条白，珠光全裁没了。
    改成按宽度放大 1.8 倍贴右上角，让彩色那侧留在可视区，下方自然过渡到底色 */
 background-size: 180% auto, auto, auto;
 background-position: right top, 0 0, 0 0;
}
.home-d .d-hero-grid,
.home-d .alt-row,
.home-d .alt-row.reverse,
.home-d .channel-box,
.home-d .channel-box-get,
.home-d .tools-head {

      grid-template-columns: 1fr;
      display: grid;
}
.home-d .alt-row.reverse .copy,
.home-d .alt-row.reverse .visual {
 order: unset;
}
.home-d .scene-grid {
 grid-template-columns: 1fr 1fr;
}
.home-d .tool-grid {
 grid-template-columns: 1fr;
}
.home-d .phone-stage {
 min-height: 460px; margin-top: 12px;
}
.home-d .d-section {
 padding: 72px 0;
}
.home-d .honest-panel,
.home-d .channel-box {
 padding: 28px 22px;
}
.home-d .stats {
 grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 560px) {
.home-d .scene-grid {
 grid-template-columns: 1fr;
}
.home-d .get-grid {
 grid-template-columns: 1fr;
}
.home-d .stats {
 grid-template-columns: 1fr;
}
.home-d .d-hero-cta .d-btn {
 width: 100%;
}
.home-d .tool-card {

      grid-template-columns: 44px 1fr;
}
.home-d .tool-price {

      grid-column: 2;
      justify-self: start;
      margin-top: 2px;
}
}

/* ============ 最新教程（内链区，预览稿无此块，随正式模板补） ============ */
.home-d .post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.home-d .post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: box-shadow .18s, transform .18s;
}
.home-d .post-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.home-d .post-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.home-d .post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-d .post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.home-d .post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.home-d .post-meta a { color: var(--blue-deep); font-weight: 600; }
.home-d .post-card h3 { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.home-d .post-card h3 a { color: var(--text); }
.home-d .post-card h3 a:hover { color: var(--blue-deep); }
.home-d .post-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-d .post-more { margin-top: 28px; text-align: center; }
@media (max-width: 960px) { .home-d .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-d .post-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ③ 二级页（作用域 .doc-b）—— 已统一到首页方案 D 的视觉语言
   ------------------------------------------------------------
   2026-07-28 改造。原样式跟的是旧版首页方案 B（--paper 米白稿纸风），
   首页升级到 D 之后这里没跟上，全站分叉成两套设计语言，本次收敛。

   两条约束（决定了改动面极小）：
   1. 变量名全部沿用旧名（--paper/--paper-2/--ink/--ink-2/--blue/--red/--line/--dark）。
      下方「文章系统」段也引用这批变量，改名会让它整段失效；
      只改「值」的话，教程中心与文章详情页的配色自动跟着统一。
   2. 类名全部沿用旧名（.kicker/.fn/.doc-sec/.chan-main…），
      所以 features/help/about 三个模板零改动，改动 100% 在本段 CSS。

   已删除：.doc-b .site-header / .site-footer 共 18 条死代码规则——
   全站导航与页脚早已换成 .tcj-nav / .tcj-footer（见 header.html），
   .site-header 这批老选择器在任何页面都匹配不到元素。
   ============================================================ */

.doc-b {
  /* 旧变量名 → 首页 .home-d 的取值 */
  --paper: #F8FAFC;      /* 原 #f6f3ec 米白 → 首页 --bg 冷白 */
  --paper-2: #EEF2F7;    /* 原 #efe9db → 首页 --bg-soft，用于 hover 底与图片占位 */
  --ink: #1A1A1A;        /* 原 #1e2430 → 首页 --text */
  --ink-2: #64748B;      /* 原 #5b6472 → 首页 --muted */
  --blue: #3B82F6;       /* 原 #2845d6 偏紫深蓝 → 首页 --blue */
  --red: #6366F1;        /* 原 #ff4d2e 橙红 → 首页 --indigo。
                            文章系统只用它画阅读进度条，改靛蓝正好与首页 C1 进度条同色系 */
  --line: #E5E7EB;       /* 原 #e7e1d2 米色线 → 首页 --line 冷灰 */
  --dark: #0B1220;       /* 原 #141822 → 首页 --navy */

  /* 首页同名新增变量，供本段组件使用 */
  --blue-deep: #2563EB;
  --indigo: #6366F1;
  --card: #FFFFFF;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, .08);
  --radius: 16px;
  --max: 1120px;         /* 与 .home-d 同值：容器必须和导航/页脚对齐，否则内容会缩在中间 */

  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;      /* 原 1.8，对齐首页 */
  background-image: none; /* 去掉稿纸横线纹理，首页没有这层 */
}
.doc-b ::selection { background: var(--blue); color: #fff; }
/* 容器宽度与内边距必须和 .tcj-nav-inner / .home-d .wrap 完全一致（1120 + 24），
   否则内容区左右边缘对不上导航和页脚，视觉上像是缩进了一块。
   容器放宽后单行文字会过长，正文段落另行限宽（见 .doc-sec p / ul） */
.doc-b .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 章节眉标：类名仍叫 .kicker，样式改成首页 .eyebrow 的蓝紫渐变圆点 */
.doc-b .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--blue-deep);
  letter-spacing: .06em; text-transform: uppercase;
}
.doc-b .kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
}
/* 官方版徽标：去掉闪烁红点，改成与眉标同族的静态圆点 */
.doc-b .rec {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--blue-deep);
  letter-spacing: .06em; text-transform: uppercase;
}
.doc-b .rec::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  animation: none; box-shadow: none;
}
.doc-b .wb { display: flex; align-items: center; gap: 3px; }
.doc-b .wb i { width: 4px; border-radius: 2px; background: var(--blue); animation: tcjPulse 1.5s ease-in-out infinite; }

/* 面包屑 + 页头 */
.doc-b .docs-crumb { font-size: 13px; color: var(--ink-2); padding-top: 26px; display: flex; align-items: center; gap: 8px; }
.doc-b .docs-crumb a { color: var(--blue-deep); text-decoration: none; }
.doc-b .docs-crumb a:hover { color: var(--blue); }
.doc-b .docs-crumb em { font-style: normal; }
.doc-b .doc-hero { padding: 26px 0 34px; }
.doc-b .doc-hero h1 {
  font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.25; margin: 14px 0; color: var(--ink);
}
.doc-b .doc-hero .b-lead { color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 40em; }
.doc-b .doc-updated { font-size: 12.5px; color: #94A3B8; margin-top: 14px; }

/* 内容区块 */
.doc-b .doc-sec { padding: 40px 0; border-top: 1px solid var(--line); }
.doc-b .doc-sec:first-of-type { border-top: none; }
.doc-b .doc-sec h2 {
  font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.3; margin: 12px 0 14px; color: var(--ink);
}
.doc-b .doc-sec h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; color: var(--ink); }
/* 容器已放宽到 1120 与导航对齐，纯文字若跟着撑满一行会到 60+ 字，读起来费劲；
   段落单独限宽到 42em（约 40 字），卡片/表格仍撑满容器。首页 .d-section-lead 也是同一思路 */
.doc-b .doc-sec p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; max-width: 42em; }
.doc-b .doc-sec ul { padding-left: 20px; margin: 10px 0; max-width: 42em; }
.doc-b .doc-sec li { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; margin-bottom: 6px; }

/* 功能卡列表 */
.doc-b .fn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.doc-b .fn {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.doc-b .fn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #CBD5E1; }
.doc-b .fn .wb { height: 28px; margin-bottom: 12px; }
.doc-b .fn h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.doc-b .fn p { font-size: 14px; margin: 0 0 10px; }
.doc-b .fn .price { font-size: 13px; font-weight: 700; color: var(--blue-deep); }
.doc-b .fn .price.is-free { color: #0F766E; }
/* 免费标：原橙红 → 绿色，语义更直观（正向/不花钱），也在首页色板内 */
.doc-b .tag-free {
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px;
  background: rgba(16, 185, 129, .12); color: #0F766E;
}

/* 参数表 */
.doc-b .spec-table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.doc-b .spec-table th, .doc-b .spec-table td { border-bottom: 1px solid var(--line); padding: 13px 16px; text-align: left; vertical-align: top; }
.doc-b .spec-table thead th { background: var(--paper-2); font-weight: 700; color: var(--ink); font-size: 14px; }
.doc-b .spec-table tbody tr:last-child th, .doc-b .spec-table tbody tr:last-child td { border-bottom: none; }
.doc-b .spec-table tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.doc-b .spec-table td { color: var(--ink-2); }
.doc-b .spec-table .vip-col { color: var(--ink); font-weight: 600; }

/* FAQ 折叠 */
.doc-b .faq-group { margin-bottom: 26px; }
.doc-b .faq-group > h3 { display: flex; align-items: center; gap: 10px; }
.doc-b .doc-faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 17px 22px; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s;
}
.doc-b .doc-faq details:hover { border-color: #CBD5E1; }
/* 展开态：原米黄纸感 → 首页的淡蓝高亮 */
.doc-b .doc-faq details[open] { background: #F8FBFF; border-color: #DBE7FE; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.doc-b .doc-faq summary {
  font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink);
}
.doc-b .doc-faq summary::-webkit-details-marker { display: none; }
.doc-b .doc-faq summary::after {
  content: "+"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(59, 130, 246, .1); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700;
}
.doc-b .doc-faq details[open] summary::after {
  content: "\2212"; background: linear-gradient(135deg, var(--blue), var(--indigo)); color: #fff;
}
.doc-b .doc-faq details p { margin: 12px 0 0; font-size: 14.5px; }

/* 提示框：原米黄纸感 → 首页琥珀色警示 */
.doc-b .note {
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius);
  padding: 22px 26px; margin: 18px 0;
}
.doc-b .note h3 { color: #B45309; margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.doc-b .note p, .doc-b .note li { color: #78350F; }

/* 官方渠道卡：原纯黑底 + 橙红按钮 → 首页的浅蓝渐变卡 + 蓝色渐变按钮 */
.doc-b .chan-main {
  background: linear-gradient(135deg, #EEF4FF 0%, #F8FAFC 100%);
  border: 1px solid #DBE7FE; border-radius: var(--radius);
  color: var(--ink); padding: 30px 28px; position: relative; overflow: hidden; margin: 18px 0;
}
.doc-b .chan-main::after {
  content: ""; position: absolute; inset: auto -30px -46px auto;
  width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .14), transparent 65%);
}
.doc-b .chan-main h3 { color: var(--ink); font-size: 21px; font-weight: 700; margin: 12px 0 10px; position: relative; z-index: 1; }
/* 卡底比页面底更浅（#EEF4FF），--ink-2 压在上面只有 4.31:1 不到 AA，这里单独加深到 #475569（6.86:1） */
.doc-b .chan-main p { color: #475569; position: relative; z-index: 1; margin-bottom: 0; }
.doc-b .chan-main .wx {
  display: inline-flex; margin-top: 18px; position: relative; z-index: 1;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; font-weight: 600; font-size: 15px; padding: 12px 24px;
  border-radius: 12px; box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}

/* CTA 按钮：原 999px 胶囊 → 首页 12px 圆角 + 渐变 */
.doc-b .doc-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.doc-b .doc-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.doc-b .doc-cta a:hover { transform: translateY(-1px); }
.doc-b .doc-cta .p {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
}
.doc-b .doc-cta .o { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

@media (max-width: 860px) {
  .doc-b .fn-list { grid-template-columns: 1fr; }
  .doc-b .spec-table, .doc-b .spec-table tbody, .doc-b .spec-table tr, .doc-b .spec-table th, .doc-b .spec-table td { display: block; width: 100%; }
  .doc-b .spec-table thead { display: none; }
  .doc-b .spec-table tbody tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .doc-b .spec-table th, .doc-b .spec-table td { border-bottom: none; padding: 6px 16px; }
}

/* ============================================================
   文章系统（教程中心列表 / 详情）：在克隆来的 premium-* 结构上覆盖视觉，
   统一到「声波变文字」语言。不改模板结构，只换皮肤。
   ============================================================ */
.doc-b.article-page .page-main { padding-top: 8px; }
/* 与导航/页脚/首页同宽（1120 + 24）。原来是 1180 + 28，比导航还宽 60px，
   表现为文章页内容比导航左右各突出一截，同样属于对不齐 */
.doc-b .premium-tutorial-shell,
.doc-b .page-shell.article-detail { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 教程页首屏与搜索条 */
.doc-b .premium-tutorial-hero { padding: 34px 0 24px; }
.doc-b .premium-tutorial-intro { margin-bottom: 22px; }
.doc-b .premium-tutorial-intro h1 { margin: 0 0 10px; color: var(--ink); font-size: 40px; font-weight: 900; line-height: 1.25; }
.doc-b .premium-tutorial-intro > div > p:last-child { max-width: 680px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.85; }
.doc-b .premium-tutorial-search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.doc-b .premium-tutorial-search label { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; box-shadow: 0 6px 18px rgba(30, 36, 48, .05); }
.doc-b .premium-tutorial-search input { flex: 1; border: none; outline: none; background: none; font-size: 15px; color: var(--ink); }
.doc-b .premium-tutorial-search input::placeholder { color: #9aa3b2; }
.doc-b .premium-tutorial-search button { background: var(--blue); color: #fff; border: none; font-weight: 800; font-size: 15px; padding: 12px 28px; border-radius: 999px; cursor: pointer; box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.doc-b .premium-tutorial-search button:hover { background: #2563EB; }
.doc-b .premium-tutorial-search > a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
/* 分类 tab：PC 与右侧「全部分类」侧栏重复，仅在窄屏保留（窄屏侧栏会掉到列表下方，tab 是首屏唯一分类入口） */
.doc-b .premium-topic-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
@media (min-width: 961px) {
  .doc-b .premium-topic-tabs { display: none; }
}
.doc-b .premium-topic-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; text-decoration: none; transition: background .18s, color .18s; }
.doc-b .premium-topic-tabs a:hover { background: var(--paper-2); color: var(--ink); }
.doc-b .premium-topic-tabs a.is-active { background: rgba(59, 130, 246, .12); color: var(--blue); font-weight: 800; }

/* 两栏布局 */
.doc-b .premium-content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; padding-bottom: 40px; }
.doc-b .premium-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.doc-b .premium-section-head h2 { font-size: 28px; font-weight: 900; color: var(--ink); }
.doc-b .premium-section-head span { font-family: ui-monospace, monospace; font-size: 12px; color: var(--blue); letter-spacing: 2px; }

/* 文章行卡片 */
.doc-b .premium-article-list { display: flex; flex-direction: column; gap: 14px; }
.doc-b .premium-article-row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: transform .2s, box-shadow .2s; }
.doc-b .premium-article-row:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(30, 36, 48, .1); }
.doc-b .premium-article-thumb { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 5 / 3; background: var(--paper-2); }
.doc-b .premium-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-b .premium-article-body h4 { font-size: 18px; font-weight: 800; line-height: 1.5; margin-bottom: 8px; }
.doc-b .premium-article-body h4 a { color: var(--ink); text-decoration: none; }
.doc-b .premium-article-body h4 a:hover { color: var(--blue); }
.doc-b .article-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin-bottom: 8px; }
.doc-b .article-meta a { color: var(--blue); font-weight: 700; text-decoration: none; }
.doc-b .premium-article-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 空状态 */
.doc-b .article-empty { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 60px 30px; text-align: center; margin-bottom: 40px; }
/* 空态卡片现在位于左栏内，顶部要与右侧栏齐平（style.css 给了 margin-top:54px） */
.doc-b .premium-list-panel > .premium-empty { margin-top: 0; }
.doc-b .article-empty h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }

/* ============================================================
   文章详情最终视觉规则
   统一接管 style.css 历史规则，避免桌面与移动端重复 padding、边框叠加。
   ============================================================ */
.doc-b.article-detail-page .page-main {
  background: #f8fafc;
}

.doc-b.article-detail-page .page-shell.article-detail {
  width: min(1092px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 0 0 64px;
}

.doc-b.article-detail-page .article-breadcrumb {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 24px 0 16px;
  font-size: 13px;
  font-weight: 700;
}

.doc-b.article-detail-page .article-breadcrumb a {
  min-height: 0;
}

.doc-b.article-detail-page .article-detail-layout {
  grid-template-columns: minmax(0, 780px) minmax(240px, 280px);
  justify-content: space-between;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.doc-b.article-detail-page .article-main {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  padding: 32px 40px 40px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(31, 42, 62, .06);
}

.doc-b.article-detail-page .article-main .article-detail-head {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.doc-b.article-detail-page .article-main .article-detail-head h1 {
  max-width: 18em;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
}

  .doc-b.article-detail-page .article-detail-meta {
  gap: 0;
  margin: 0 0 24px;
  border-bottom: 1px solid #e5e9f0;
  padding: 0 0 16px;
}

.doc-b.article-detail-page .article-detail-meta a,
.doc-b.article-detail-page .article-detail-meta span {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #717b8e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.doc-b.article-detail-page .article-detail-meta a {
  color: var(--blue);
  font-weight: 700;
}

.doc-b.article-detail-page .article-detail-meta a:not(:last-child)::after,
.doc-b.article-detail-page .article-detail-meta span:not(:last-child)::after {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 3px;
  border-radius: 50%;
  background: #bfc6d1;
  color: transparent;
  content: "";
}

.doc-b.article-detail-page .article-main .article-cover-frame {
  margin: 0 0 24px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.doc-b.article-detail-page .article-main .article-body {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.9;
}

.doc-b.article-detail-page .article-body h2 {
  margin: 32px 0 16px;
  border-bottom-width: 1px;
  padding-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
}

.doc-b.article-detail-page .article-body h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.doc-b.article-detail-page .article-body p {
  margin-bottom: 16px;
}

.doc-b.article-detail-page .article-detail-side {
  position: sticky;
  top: 88px;
  gap: 16px;
}

.doc-b.article-detail-page .article-detail-side .premium-side-block {
  border: 0;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 42, 62, .05);
}

.doc-b.article-detail-page .article-detail-side .premium-side-block:first-child {
  border: 0;
  padding: 20px;
}

.doc-b.article-detail-page .article-detail-side .premium-side-block h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.doc-b.article-detail-page .art2-toc {
  gap: 4px;
}

.doc-b.article-detail-page .art2-toc a {
  min-height: 44px;
  padding: 10px 12px;
  font-size: 13px;
}

.doc-b.article-detail-page .article-related-block .premium-popular-list {
  gap: 0;
}

.doc-b.article-detail-page .article-related-block .premium-popular-list > a {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  min-height: 76px;
  border-bottom: 1px solid #edf0f4;
  padding: 12px 0;
}

.doc-b.article-detail-page .article-related-block .premium-popular-list > a:first-child {
  padding-top: 0;
}

.doc-b.article-detail-page .article-related-block .premium-popular-list > a:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.doc-b.article-detail-page .article-related-block .premium-random-thumb {
  width: 88px;
  height: 60px;
  border-radius: 8px;
}

.doc-b.article-detail-page .article-related-block .premium-random-body {
  min-height: 60px;
}

.doc-b.article-detail-page .article-related-block .premium-random-body strong {
  font-size: 13px;
  line-height: 1.5;
}

.doc-b.article-detail-page .article-related-block .premium-random-body time {
  margin-top: 4px;
  font-size: 11px;
}

@media (max-width: 960px) {
  .doc-b.article-detail-page .article-detail-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .doc-b.article-detail-page .article-detail-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .doc-b.article-detail-page .page-shell.article-detail {
    width: 100%;
    padding: 0 16px 48px;
  }

  .doc-b.article-detail-page .article-breadcrumb {
    padding: 18px 0 14px;
    font-size: 12px;
  }

  .doc-b.article-detail-page .article-detail-layout {
    display: grid;
    gap: 24px;
  }

  .doc-b.article-detail-page .article-main {
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .doc-b.article-detail-page .article-main .article-detail-head {
    padding: 0;
  }

  .doc-b.article-detail-page .article-main .article-detail-head h1 {
    max-width: none;
    margin-bottom: 16px;
    font-size: 26px;
    line-height: 1.36;
  }

  .doc-b.article-detail-page .article-detail-meta {
    flex-wrap: wrap;
    row-gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .doc-b.article-detail-page .article-detail-meta a,
  .doc-b.article-detail-page .article-detail-meta span {
    font-size: 12px;
  }

  .doc-b.article-detail-page .article-main .article-body {
    font-size: 16px;
    line-height: 1.9;
  }

  .doc-b.article-detail-page .article-body h2 {
    margin: 28px 0 12px;
    font-size: 20px;
  }

  .doc-b.article-detail-page .article-body h3 {
    margin: 24px 0 8px;
    font-size: 18px;
  }

  .doc-b.article-detail-page .article-detail-side {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .doc-b.article-detail-page .article-detail-side .premium-side-block,
  .doc-b.article-detail-page .article-detail-side .premium-side-block:first-child {
    padding: 16px;
  }
}
.doc-b .article-empty p { color: var(--ink-2); font-size: 14.5px; }
.doc-b .article-empty a { color: var(--blue); font-weight: 700; }

/* 侧栏 */
.doc-b .premium-side { display: flex; flex-direction: column; gap: 18px; }
.doc-b .premium-side-block { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.doc-b .premium-side-block h2 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.doc-b .premium-topic-list { display: flex; flex-direction: column; gap: 4px; }
.doc-b .premium-topic-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
.doc-b .premium-topic-list a:hover { background: var(--paper-2); color: var(--ink); }
.doc-b .premium-topic-list a.is-active { background: rgba(59, 130, 246, .10); color: var(--blue); font-weight: 700; }
.doc-b .premium-topic-list small { font-family: ui-monospace, monospace; font-size: 11.5px; color: #9aa3b2; }
.doc-b .premium-popular-list { display: flex; flex-direction: column; gap: 12px; }
.doc-b .premium-popular-list > a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; text-decoration: none; align-items: center; }
.doc-b .premium-random-thumb { display: block; border-radius: 9px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-2); }
.doc-b .premium-random-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-b .premium-random-body strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-b .premium-random-body time { font-family: ui-monospace, monospace; font-size: 11px; color: #9aa3b2; }
.doc-b .premium-popular-list > a:hover strong { color: var(--blue); }

/* 分页 */
.doc-b .article-pagination { display: flex; justify-content: center; margin: 30px 0 10px; }
.doc-b .article-pagination ul, .doc-b .article-pagination .pagination { display: flex; gap: 6px; list-style: none; padding: 0; flex-wrap: wrap; }
.doc-b .article-pagination li a, .doc-b .article-pagination li span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; text-decoration: none; }
.doc-b .article-pagination li a:hover { border-color: var(--blue); color: var(--blue); }
.doc-b .article-pagination li.active span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }

/* ---------- 文章详情 ---------- */
.doc-b .article-breadcrumb { font-size: 13px; color: var(--ink-2); padding: 26px 0 4px; }
.doc-b .article-breadcrumb a { color: var(--blue); text-decoration: none; }
.doc-b .article-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 34px; padding-bottom: 40px; align-items: start; }
.doc-b .article-main { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 40px 40px; }
.doc-b .article-detail-head h1 { font-size: 34px; font-weight: 900; line-height: 1.35; color: var(--ink); margin-bottom: 14px; }
.doc-b .article-detail-meta { margin-bottom: 18px; }
.doc-b .article-cover-frame { border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.doc-b .article-cover-frame img { width: 100%; height: auto; display: block; }
/* 正文排版 */
.doc-b .article-body { font-size: 16px; line-height: 2; color: #2b323d; }
.doc-b .article-body h2 { font-size: 23px; font-weight: 900; color: var(--ink); margin: 34px 0 14px; padding: 0 0 9px; border-bottom: 2px solid #dce2f6; scroll-margin-top: 88px; }
.doc-b .article-body h2::before { content: none; }
.doc-b .article-body h3 { font-size: 18.5px; font-weight: 800; color: var(--ink); margin: 26px 0 10px; }
.doc-b .article-body p { margin-bottom: 16px; }
.doc-b .article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 18px auto; display: block; border: 1px solid var(--line); }
.doc-b .article-body ul, .doc-b .article-body ol { padding-left: 22px; margin-bottom: 16px; }
.doc-b .article-body li { margin-bottom: 8px; }
.doc-b .article-body strong { color: var(--ink); }
.doc-b .article-body blockquote { background: #fffdf6; padding: 14px 18px; border-radius: 10px; margin: 18px 0; color: #4a4436; }
.doc-b .article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.doc-b .article-body th, .doc-b .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.doc-b .article-body th { background: #f1eee4; font-weight: 800; }
/* 阅读进度条 */
.doc-b .art2-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--red); z-index: 200; box-shadow: 0 0 10px rgba(99, 102, 241, .55); }
/* 上一篇/下一篇 */
.doc-b .art2-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.doc-b .art2-prevnext.is-single { grid-template-columns: 1fr; }
.doc-b .art2-pn { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; text-decoration: none; transition: border-color .2s, transform .2s; }
.doc-b .art2-pn:hover { border-color: var(--blue); transform: translateY(-2px); }
.doc-b .art2-pn-next { text-align: right; }
.doc-b .art2-pn-lbl { display: block; font-family: ui-monospace, monospace; font-size: 11px; color: var(--blue); letter-spacing: 2px; margin-bottom: 6px; }
.doc-b .art2-pn-title { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.doc-b .art2-pn-empty { opacity: .45; pointer-events: none; }
.doc-b .article-detail-side { position: sticky; top: 86px; }
.doc-b .article-purpose p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.75; }
.doc-b .art2-toc { display: flex; flex-direction: column; gap: 3px; }
.doc-b .art2-toc a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--ink-2); font-size: 13px; line-height: 1.55; text-decoration: none; }
.doc-b .art2-toc a:hover, .doc-b .art2-toc a.is-active { background: rgba(59, 130, 246, .10); color: var(--blue); font-weight: 700; }

@media (max-width: 960px) {
  .doc-b .premium-content-grid, .doc-b .article-detail-layout { grid-template-columns: 1fr; }
  .doc-b .premium-tutorial-intro h1 { font-size: 31px; }
  .doc-b .premium-article-row { grid-template-columns: 1fr; }
  .doc-b .article-main { padding: 24px 20px 30px; }
  .doc-b .article-detail-head h1 { font-size: 26px; }
  .doc-b .art2-prevnext { grid-template-columns: 1fr; }
  .doc-b .art2-pn-next { text-align: left; }
  .doc-b .article-detail-side { position: static; }
}

/* 教程列表页标题层级修正后的样式对齐（h2→h1 / h4→h3） */
.doc-b .premium-article-body h3 { font-size: 18px; font-weight: 800; line-height: 1.5; margin-bottom: 8px; }
.doc-b .premium-article-body h3 a { color: var(--ink); text-decoration: none; }
.doc-b .premium-article-body h3 a:hover { color: var(--blue); }
.doc-b .article-empty h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }

/* ============================================================
   ④ 首页动效层（作用域 .home-d + 全局导航 .tcj-nav）

   四条硬约束，改这一段前先看懂：
   1) 只动 transform / opacity / clip-path，不碰 height、margin、top —— CLS 必须为 0
   2) h1 与手机截图是 LCP 判定元素，一律不做淡入，否则最大内容绘制被推迟
   3) 需要 JS 触发的动效，CSS 默认必须是「终态可见」，只有 html.js-motion 存在时
      才启用初始隐藏。JS 挂了页面只是没动效，绝不能变成空白
   4) 系统开了「减弱动态效果」时全部动效关闭（媒体查询 + html.is-reduced-motion 双保险）
   ============================================================ */

@keyframes tcjFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tcjShine { from { transform: translateX(0) skewX(-18deg); } to { transform: translateX(360%) skewX(-18deg); } }
/* 提词器无缝上滚：轨道内是三组相同稿子，只滚一组的高度（总高的 1/3），
   到终点时第二组正好落在第一组的起始位置，跳回 0 帧画面完全一致，看不出接缝。
   用百分比所以折行、字号、屏幕高度怎么变都自适应 */
@keyframes tcjTpRoll {
    from { transform: translateY(0); }
    to   { transform: translateY(calc(-100% / 3)); }
}
/* 转写稿逐字浮现：字符 span 只改 opacity，文字仍按原样排版换行，布局零位移 */
@keyframes tcjCharIn { from { opacity: 0; } to { opacity: 1; } }
/* 光标接力：每个字亮起时它右侧的光标点亮一格步长，下一个字接上，看着就是光标跟着字走 */
@keyframes tcjCaretStep { 0%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes tcjCaretBlink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes tcjPopIn { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }

/* ── C1 顶部滚动进度条：--scroll-progress 由 ui.js 实时写在 body 上。
   只给首页：文章详情页已有自己的阅读进度条 .art2-progress，两条会撞在一起 ── */
.home-d .tcj-nav::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: 0 50%;
    pointer-events: none;
}

/* ── C4 导航滚动态 ──
   只改背景与阴影，不动内边距：导航是 sticky、在文档流里占位，改高度会把下方整页顶上去，
   那是实打实的布局偏移（CLS），得不偿失 */
.tcj-nav { transition: background .26s ease, box-shadow .26s ease, border-color .26s ease; }
.tcj-nav.is-scrolled {
    background: rgba(248, 250, 252, .98);
    border-bottom-color: rgba(229, 231, 235, .4);
    box-shadow: 0 4px 18px rgba(15, 23, 42, .09);
}

/* ── B1 区块滚动进场：默认可见，仅 js-motion 下先藏后动 ── */
.js-motion .home-d [data-reveal] { opacity: 0; transform: translateY(14px); }
.js-motion .home-d [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity .5s cubic-bezier(.22, .61, .36, 1), transform .5s cubic-bezier(.22, .61, .36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

/* ── B2 首屏入场：h1 与 .visual 不参与（LCP） ── */
.js-motion .home-d .d-hero-lead,
.js-motion .home-d .d-hero-cta,
.js-motion .home-d .stats .stat {
    opacity: 0;
    animation: tcjFadeUp .42s cubic-bezier(.22, .61, .36, 1) forwards;
}
.js-motion .home-d .d-hero-lead      { animation-delay: .05s; }
.js-motion .home-d .d-hero-cta       { animation-delay: .12s; }
.js-motion .home-d .stats .stat:nth-child(1) { animation-delay: .18s; }
.js-motion .home-d .stats .stat:nth-child(2) { animation-delay: .24s; }
.js-motion .home-d .stats .stat:nth-child(3) { animation-delay: .30s; }
.js-motion .home-d .stats .stat:nth-child(4) { animation-delay: .36s; }

/* ── A1 提词器自动滚动 ──
   取景框自带上下渐隐遮罩，中间（焦点线所在的 46% 附近）完全不透明。
   文字滚过中段时最清晰、离开时渐暗，效果由遮罩位置决定，不依赖任何时序对齐。 */
.home-d .tp-view {
    height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .25) 18%, #000 40%, #000 54%, rgba(0, 0, 0, .25) 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .25) 18%, #000 40%, #000 54%, rgba(0, 0, 0, .25) 78%, transparent 100%);
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.home-d .tp-text { animation: tcjTpRoll 21s linear infinite; }
.home-d .tp-row { margin: 0; color: #F8FAFC; }
/* 滚出视口后由 JS 暂停，省掉离屏合成开销 */
.home-d .tp-body.is-paused .tp-text { animation-play-state: paused; }

/* ── A2 转写稿逐字浮现 ──
   ui.js 在触发时把每段文字拆成单字 span，把该字的出场时刻写进 --d。
   span 是 inline，拆完排版与原文一字不差；只动 opacity，所以不产生任何布局位移。
   拆字失败或没走 JS 时，p 直接整段显示，不会缺字。 */
.js-motion .home-d .transcript-body p { opacity: 0; }
.js-motion .home-d .transcript-card.is-typing .transcript-body p { opacity: 1; }
.js-motion .home-d .transcript-card.is-typing .transcript-body p > span {
    position: relative;
    opacity: 0;
    animation: tcjCharIn .16s linear var(--d, 0s) forwards;
}
/* 打字光标贴在每个字的右侧，absolute 不占位、不影响换行；
   出场时刻与本字相同（共用 --d），只亮一格步长，交给下一个字接力 */
.js-motion .home-d .transcript-card.is-typing .transcript-body p > span::after {
    content: "";
    position: absolute;
    left: 100%;
    top: .12em;
    width: 2px;
    height: 1em;
    background: var(--blue);
    opacity: 0;
    animation: tcjCaretStep var(--char-step, .03s) steps(1, end) var(--d, 0s) forwards;
}
/* 全文最后一个字：光标留在末尾闪几下再收，像刚打完在等下一句 */
.js-motion .home-d .transcript-card.is-typing .transcript-body p > span[data-tail]::after {
    animation: tcjCaretBlink .9s steps(1, end) var(--d, 0s) 3;
}
.js-motion .home-d .transcript-head .status { opacity: 0; }
.js-motion .home-d .transcript-card.is-typing .transcript-head .status {
    animation: tcjPopIn .4s cubic-bezier(.34, 1.56, .64, 1) var(--status-delay, 3.6s) forwards;
}

/* ── C2 工具卡 hover ── */
.home-d .tool-card {
    transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease, border-color .22s ease;
}
.home-d .tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .13);
    border-color: rgba(59, 130, 246, .45);
}
.home-d .tool-icon { transition: transform .28s cubic-bezier(.34, 1.4, .64, 1); }
.home-d .tool-card:hover .tool-icon,
.home-d a.tool-card-cta:hover .tool-icon { transform: scale(1.12) rotate(-7deg); }
.home-d .scene-card { transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease; }
.home-d .scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.home-d .scene-icon { transition: transform .28s cubic-bezier(.34, 1.4, .64, 1); }
.home-d .scene-card:hover .scene-icon { transform: scale(1.1); }

/* ── C3 主 CTA 光泽扫过（只给主按钮，次要按钮不加） ── */
.home-d .d-btn-primary { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.home-d .d-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, .38); }
.home-d .d-btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 55%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
    transform: translateX(0) skewX(-18deg);
    pointer-events: none;
}
.home-d .d-btn-primary:hover::after { animation: tcjShine .75s ease; }

/* ── C5 FAQ 平滑展开：目标高度由 JS 写入行内 height，CSS 只负责过渡，收尾后清掉行内值 ── */
.home-d details.d-faq-item .d-faq-body { overflow: hidden; }
.home-d details.d-faq-item.is-animating .d-faq-body { transition: height .3s cubic-bezier(.22, .61, .36, 1); }
.home-d details.d-faq-item summary::after { transition: transform .28s cubic-bezier(.22, .61, .36, 1); }

/* ── 减弱动态效果：全部归位到终态 ── */
@media (prefers-reduced-motion: reduce) {
    .home-d .tcj-nav::after { display: none; }
    /* 停在中段：焦点行正好停在遮罩最亮处，静态观感与原来一致 */
    .home-d .tp-text { animation: none !important; transform: translateY(-32%); }
    .home-d .tool-card,
    .home-d .scene-card,
    .home-d .tool-icon,
    .home-d .scene-icon,
    .home-d .d-btn-primary { transition: none !important; }
    .home-d .tool-card:hover,
    .home-d .scene-card:hover,
    .home-d .d-btn-primary:hover { transform: none !important; }
    .home-d .tool-card:hover .tool-icon,
    .home-d .scene-card:hover .scene-icon,
    .home-d a.tool-card-cta:hover .tool-icon { transform: none !important; }
    .js-motion .home-d [data-reveal],
    .js-motion .home-d .d-hero-lead,
    .js-motion .home-d .d-hero-cta,
    .js-motion .home-d .stats .stat,
    .js-motion .home-d .transcript-body p,
    .js-motion .home-d .transcript-body p > span,
    .js-motion .home-d .transcript-head .status {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        animation: none !important;
        transition: none !important;
    }
    .js-motion .home-d .transcript-body p > span::after { display: none !important; }
    .home-d .d-btn-primary:hover::after { animation: none; }
    .home-d details.d-faq-item.is-animating .d-faq-body { transition: none; }
}
/* html.is-reduced-motion 由 ui.js 写入，作为媒体查询之外的第二道保险 */
.is-reduced-motion .home-d .tcj-nav::after { display: none; }
.is-reduced-motion .home-d .tp-text { animation: none !important; transform: translateY(-32%); }
.is-reduced-motion .home-d .tool-card:hover,
.is-reduced-motion .home-d .scene-card:hover,
.is-reduced-motion .home-d .d-btn-primary:hover { transform: none !important; }
.is-reduced-motion .home-d .d-btn-primary:hover::after { animation: none !important; }
.is-reduced-motion.js-motion .home-d [data-reveal],
.is-reduced-motion.js-motion .home-d .d-hero-lead,
.is-reduced-motion.js-motion .home-d .d-hero-cta,
.is-reduced-motion.js-motion .home-d .stats .stat,
.is-reduced-motion.js-motion .home-d .transcript-body p,
.is-reduced-motion.js-motion .home-d .transcript-body p > span,
.is-reduced-motion.js-motion .home-d .transcript-head .status {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
}
.is-reduced-motion.js-motion .home-d .transcript-body p > span::after { display: none !important; }
