    :root {
      --bg-dark: #070f1b;
      --bg-card: rgba(16, 32, 56, 0.72);
      --bg-card-hover: rgba(22, 42, 74, 0.9);
      --border-color: rgba(255, 255, 255, 0.12);
      --border-hover: rgba(56, 189, 248, 0.5);
      --primary: #2563eb;
      --primary-hover: #1d4ed8;
      --accent: #38bdf8;
      --accent-purple: #8b5cf6;
      --text-main: #f1f5f9;
      --text-muted: #94a3b8;
      --text-sub: #64748b;
      --success: #10b981;
      --danger: #ef4444;
      --warning: #f59e0b;
      --code-bg: #050b14;
      --radius: 18px;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 90px;
    }

    body {
      font-family: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background-color: var(--bg-dark);
      background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.22) 0px, transparent 55%),
        radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.16) 0px, transparent 50%),
        radial-gradient(at 50% 30%, rgba(139, 92, 246, 0.1) 0px, transparent 60%);
      background-attachment: fixed;
      color: var(--text-main);
      line-height: 1.75;
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    a {
      color: var(--accent);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    a:hover {
      color: #7dd3fc;
    }

    ::selection {
      background: rgba(56, 189, 248, 0.3);
      color: #fff;
    }

    /* ============ 顶栏 ============ */
    .navbar {
      padding: 0.95rem 2rem;
      border-bottom: 1px solid var(--border-color);
      background: rgba(7, 15, 27, 0.78);
      backdrop-filter: blur(14px);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .nav-inner {
      max-width: 1280px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .brand-link {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text-main);
      min-width: 0;
    }

    .brand-logo {
      height: 36px;
      width: auto;
      object-fit: contain;
      flex-shrink: 0;
    }

    .brand-divider {
      color: var(--border-color);
      font-weight: 300;
    }

    .brand-subtitle {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--accent);
      letter-spacing: 0.3px;
      white-space: nowrap;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .nav-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 0.52rem 1rem;
      border-radius: 10px;
      border: 1px solid rgba(56, 189, 248, 0.32);
      background: rgba(56, 189, 248, 0.08);
      color: #e2e8f0;
      font-family: inherit;
      font-size: 0.86rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.22s ease;
      white-space: nowrap;
    }

    .nav-btn:hover {
      background: rgba(56, 189, 248, 0.16);
      border-color: var(--accent);
      color: #fff;
      transform: translateY(-1px);
    }

    .nav-btn.primary {
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(139, 92, 246, 0.4));
      border-color: rgba(56, 189, 248, 0.45);
    }

    /* ============ 首屏 ============ */
    .hero {
      max-width: 1280px;
      margin: 0 auto;
      padding: 3.5rem 2rem 1.5rem;
      position: relative;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 9999px;
      border: 1px solid rgba(56, 189, 248, 0.3);
      background: rgba(56, 189, 248, 0.08);
      color: #bae6fd;
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.4px;
      margin-bottom: 1.2rem;
    }

    .hero-badge .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--success);
      box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
      animation: pulse 2.4s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.55; transform: scale(0.85); }
    }

    .hero h1 {
      font-size: clamp(2.3rem, 5.2vw, 3.6rem);
      line-height: 1.12;
      letter-spacing: -0.025em;
      font-weight: 800;
      margin-bottom: 1rem;
      color: #fff;
    }

    .hero h1 .grad {
      background: linear-gradient(120deg, #38bdf8 0%, #818cf8 55%, #c084fc 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero .lead {
      max-width: 760px;
      font-size: 1.06rem;
      line-height: 1.85;
      color: var(--text-muted);
      margin-bottom: 1.35rem;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 1.5rem;
    }

    .meta-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.76rem;
      color: var(--text-muted);
      padding: 4px 11px;
      border-radius: 9999px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .meta-chip i {
      color: var(--accent);
      font-size: 0.72rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 2rem;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0.7rem 1.25rem;
      border-radius: 11px;
      font-family: inherit;
      font-size: 0.92rem;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid transparent;
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      white-space: nowrap;
    }

    .btn.primary {
      background: linear-gradient(135deg, #2563eb, #4f46e5);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.12);
      box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    }

    .btn.primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
      color: #fff;
    }

    .btn.ghost {
      background: rgba(255, 255, 255, 0.04);
      border-color: var(--border-color);
      color: #e2e8f0;
    }

    .btn.ghost:hover {
      background: rgba(56, 189, 248, 0.1);
      border-color: rgba(56, 189, 248, 0.45);
      color: #fff;
      transform: translateY(-2px);
    }

    .quick-facts {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border-color);
      border: 1px solid var(--border-color);
      border-radius: 14px;
      overflow: hidden;
    }

    .fact {
      background: rgba(10, 22, 40, 0.92);
      padding: 1rem 1.15rem;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .fact-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(56, 189, 248, 0.1);
      border: 1px solid rgba(56, 189, 248, 0.2);
      color: var(--accent);
      font-size: 0.92rem;
      flex-shrink: 0;
    }

    .fact strong {
      display: block;
      font-size: 0.88rem;
      color: #fff;
      line-height: 1.35;
    }

    .fact span {
      display: block;
      font-size: 0.72rem;
      color: var(--text-sub);
      line-height: 1.35;
      margin-top: 1px;
    }

    /* ============ 布局 ============ */
    .layout {
      max-width: 1280px;
      margin: 0 auto;
      padding: 1.5rem 2rem 4rem;
      display: grid;
      grid-template-columns: 252px minmax(0, 1fr);
      gap: 2.25rem;
      align-items: start;
    }

    .toc {
      position: sticky;
      top: 88px;
      max-height: calc(100vh - 110px);
      overflow-y: auto;
      padding-right: 6px;
      scrollbar-width: thin;
      scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
      min-width: 0;
    }

    .toc-title {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--text-sub);
      padding: 0 12px 10px;
    }

    .toc-list {
      display: flex;
      flex-direction: column;
      gap: 2px;
      list-style: none;
      min-width: 0;
    }

    .toc-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0.5rem 12px;
      border-radius: 9px;
      color: var(--text-muted);
      font-size: 0.86rem;
      font-weight: 500;
      border-left: 2px solid transparent;
      transition: all 0.18s ease;
    }

    .toc-link .num {
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--text-sub);
      font-variant-numeric: tabular-nums;
      width: 18px;
      flex-shrink: 0;
    }

    .toc-link:hover {
      background: rgba(56, 189, 248, 0.07);
      color: #e2e8f0;
    }

    .toc-link.active {
      background: rgba(56, 189, 248, 0.1);
      color: var(--accent);
      border-left-color: var(--accent);
    }

    .toc-link.active .num {
      color: var(--accent);
    }

    .content {
      min-width: 0;
    }

    /* ============ 章节 ============ */
    .doc-section {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 2rem 2.15rem;
      margin-bottom: 1.5rem;
      backdrop-filter: blur(14px);
      scroll-margin-top: 90px;
    }

    .section-head {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 1.1rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .section-num {
      width: 40px;
      height: 40px;
      border-radius: 11px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--accent);
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(56, 189, 248, 0.14));
      border: 1px solid rgba(56, 189, 248, 0.3);
      font-variant-numeric: tabular-nums;
    }

    .section-head h2 {
      font-size: 1.5rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.3;
      letter-spacing: -0.01em;
    }

    .section-head .section-sub {
      font-size: 0.84rem;
      color: var(--text-sub);
      margin-top: 2px;
    }

    h3 {
      font-size: 1.12rem;
      font-weight: 700;
      color: #e2e8f0;
      margin: 1.9rem 0 0.7rem;
      line-height: 1.45;
    }

    h3:first-of-type {
      margin-top: 1.2rem;
    }

    h4 {
      font-size: 0.98rem;
      font-weight: 700;
      color: #e2e8f0;
      margin: 1.2rem 0 0.5rem;
    }

    .doc-section p {
      color: #cbd5e1;
      margin: 0.65rem 0;
      font-size: 0.95rem;
    }

    .doc-section ul,
    .doc-section ol {
      margin: 0.6rem 0 1rem 1.25rem;
      color: #cbd5e1;
      font-size: 0.95rem;
    }

    .doc-section li {
      margin: 0.35rem 0;
      padding-left: 2px;
    }

    .doc-section li::marker {
      color: var(--accent);
    }

    strong {
      color: #fff;
      font-weight: 700;
    }

    em {
      color: #e2e8f0;
    }

    /* 行内代码 */
    code {
      font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
      font-size: 0.86em;
      background: rgba(56, 189, 248, 0.1);
      border: 1px solid rgba(56, 189, 248, 0.18);
      color: #7dd3fc;
      padding: 0.1em 0.38em;
      border-radius: 5px;
      word-break: break-word;
    }

    /* ============ 提示框 ============ */
    .callout {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 0.9rem 1.1rem;
      border-radius: 12px;
      margin: 1rem 0;
      font-size: 0.92rem;
      line-height: 1.7;
      border: 1px solid;
    }

    .callout .ico {
      flex-shrink: 0;
      width: 24px;
      height: 24px;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.78rem;
      margin-top: 1px;
    }

    .callout p {
      margin: 0;
      font-size: 0.92rem;
      color: inherit;
    }

    .callout.info {
      background: rgba(56, 189, 248, 0.07);
      border-color: rgba(56, 189, 248, 0.24);
      color: #bae6fd;
    }

    .callout.info .ico {
      background: rgba(56, 189, 248, 0.16);
      color: var(--accent);
    }

    .callout.success {
      background: rgba(16, 185, 129, 0.08);
      border-color: rgba(16, 185, 129, 0.26);
      color: #a7f3d0;
    }

    .callout.success .ico {
      background: rgba(16, 185, 129, 0.16);
      color: #34d399;
    }

    .callout.warning {
      background: rgba(245, 158, 11, 0.08);
      border-color: rgba(245, 158, 11, 0.28);
      color: #fde68a;
    }

    .callout.warning .ico {
      background: rgba(245, 158, 11, 0.16);
      color: #fbbf24;
    }

    .callout.danger {
      background: rgba(239, 68, 68, 0.08);
      border-color: rgba(239, 68, 68, 0.28);
      color: #fecaca;
    }

    .callout.danger .ico {
      background: rgba(239, 68, 68, 0.16);
      color: #f87171;
    }

    .callout strong {
      color: #fff;
    }

    /* ============ 表格 ============ */
    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      margin: 1rem 0;
      background: rgba(5, 11, 20, 0.35);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 560px;
      font-size: 0.9rem;
    }

    th {
      text-align: left;
      padding: 0.75rem 1rem;
      background: rgba(255, 255, 255, 0.04);
      color: #e2e8f0;
      font-weight: 700;
      font-size: 0.82rem;
      white-space: nowrap;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    td {
      padding: 0.72rem 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      color: #cbd5e1;
      vertical-align: top;
      line-height: 1.6;
    }

    tbody tr:first-child td {
      border-top: none;
    }

    tbody tr:hover td {
      background: rgba(56, 189, 248, 0.035);
    }

    td strong {
      color: #fff;
    }

    .yes { color: #34d399; font-weight: 700; }
    .no { color: #f87171; font-weight: 700; }
    .maybe { color: #fbbf24; font-weight: 700; }

    /* ============ 规则卡片 ============ */
    .rule-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin: 1.15rem 0;
    }

    .rule-card {
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 14px;
      padding: 1.15rem;
      transition: all 0.25s ease;
    }

    .rule-card:hover {
      background: rgba(22, 42, 74, 0.7);
      border-color: rgba(56, 189, 248, 0.35);
      transform: translateY(-2px);
    }

    .rule-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.05rem;
      margin-bottom: 0.8rem;
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(56, 189, 248, 0.16));
      border: 1px solid rgba(56, 189, 248, 0.3);
      color: var(--accent);
    }

    .rule-card h3 {
      margin: 0 0 0.35rem;
      font-size: 1rem;
      color: #fff;
    }

    .rule-card p {
      margin: 0;
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.65;
    }

    /* ============ 架构流程 ============ */
    .pipeline {
      margin: 1.2rem 0 0.5rem;
    }

    .pipeline-step {
      position: relative;
      display: flex;
      gap: 15px;
      padding-bottom: 1.35rem;
    }

    .pipeline-step:last-child {
      padding-bottom: 0;
    }

    .pipeline-step:not(:last-child)::before {
      content: "";
      position: absolute;
      left: 19px;
      top: 42px;
      bottom: -2px;
      width: 2px;
      background: linear-gradient(180deg, rgba(56, 189, 248, 0.5), rgba(139, 92, 246, 0.18));
      border-radius: 2px;
    }

    .pipeline-marker {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(56, 189, 248, 0.16));
      border: 1px solid rgba(56, 189, 248, 0.35);
      color: var(--accent);
      font-size: 0.95rem;
      position: relative;
      z-index: 1;
    }

    .pipeline-body {
      flex: 1;
      min-width: 0;
      background: rgba(255, 255, 255, 0.022);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 12px;
      padding: 0.8rem 1rem;
    }

    .pipeline-body h4 {
      margin: 0 0 0.2rem;
      font-size: 0.95rem;
      color: #fff;
    }

    .pipeline-body p {
      margin: 0;
      font-size: 0.86rem;
      color: var(--text-muted);
      line-height: 1.65;
    }

    .pipeline-tag {
      display: inline-block;
      margin-top: 0.45rem;
      font-size: 0.68rem;
      font-weight: 600;
      color: #7dd3fc;
      background: rgba(56, 189, 248, 0.1);
      border: 1px solid rgba(56, 189, 248, 0.2);
      padding: 2px 8px;
      border-radius: 9999px;
    }

    /* ============ 选项卡片 ============ */
    .option-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin: 1rem 0;
    }

    .option-card {
      position: relative;
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 14px;
      padding: 1.2rem;
    }

    .option-card.recommended {
      border-color: rgba(16, 185, 129, 0.4);
      background: rgba(16, 185, 129, 0.05);
    }

    .option-card .tag {
      display: inline-block;
      font-size: 0.66rem;
      font-weight: 700;
      letter-spacing: 0.4px;
      padding: 2px 8px;
      border-radius: 9999px;
      margin-bottom: 0.55rem;
      color: #bae6fd;
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.22);
    }

    .option-card.recommended .tag {
      color: #a7f3d0;
      background: rgba(16, 185, 129, 0.14);
      border-color: rgba(16, 185, 129, 0.3);
    }

    .option-card h3 {
      margin: 0 0 0.4rem;
      font-size: 0.98rem;
    }

    .option-card p {
      margin: 0;
      font-size: 0.84rem;
      color: var(--text-muted);
      line-height: 1.65;
    }

    /* ============ 时间线 ============ */
    .timeline {
      margin: 1.1rem 0;
      position: relative;
    }

    .timeline-item {
      display: flex;
      gap: 15px;
      padding-bottom: 1.2rem;
      position: relative;
    }

    .timeline-item:last-child {
      padding-bottom: 0;
    }

    .timeline-item:not(:last-child)::before {
      content: "";
      position: absolute;
      left: 14px;
      top: 32px;
      bottom: 0;
      width: 2px;
      background: rgba(56, 189, 248, 0.22);
    }

    .timeline-num {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.76rem;
      font-weight: 800;
      color: #070f1b;
      background: linear-gradient(135deg, #38bdf8, #818cf8);
      position: relative;
      z-index: 1;
    }

    .timeline-body {
      flex: 1;
      min-width: 0;
      padding-top: 1px;
    }

    .timeline-body h4 {
      margin: 0 0 0.15rem;
      font-size: 0.94rem;
      color: #fff;
    }

    .timeline-body p {
      margin: 0;
      font-size: 0.86rem;
      color: var(--text-muted);
      line-height: 1.65;
    }

    /* ============ 代码块 ============ */
    .code-block {
      background: var(--code-bg);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      margin: 1rem 0;
      overflow: hidden;
    }

    .code-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0.55rem 0.9rem;
      background: rgba(255, 255, 255, 0.035);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .code-head .lang {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--text-muted);
      letter-spacing: 0.3px;
    }

    .code-head .lang i {
      color: var(--accent);
      font-size: 0.7rem;
    }

    .copy-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 9px;
      border-radius: 6px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.7rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.18s ease;
    }

    .copy-btn:hover {
      background: rgba(56, 189, 248, 0.14);
      border-color: rgba(56, 189, 248, 0.35);
      color: #e2e8f0;
    }

    .code-block pre {
      padding: 1rem 1.05rem;
      overflow-x: auto;
      font-family: 'JetBrains Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
      font-size: 0.82rem;
      line-height: 1.7;
      color: #cbd5e1;
      tab-size: 2;
    }

    .code-block pre code {
      background: none;
      border: none;
      padding: 0;
      color: inherit;
      font-size: inherit;
      border-radius: 0;
      white-space: pre;
      word-break: normal;
    }

    .code-note {
      font-size: 0.78rem;
      color: var(--text-sub);
      margin: -0.4rem 0 0.9rem;
    }

    /* ============ 清单 ============ */
    .progress-card {
      background: rgba(56, 189, 248, 0.06);
      border: 1px solid rgba(56, 189, 248, 0.22);
      border-radius: 14px;
      padding: 1rem 1.15rem;
      margin: 1rem 0 1.25rem;
    }

    .progress-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 0.6rem;
      flex-wrap: wrap;
    }

    .progress-top .label {
      font-size: 0.86rem;
      font-weight: 700;
      color: #e2e8f0;
    }

    .progress-top .stats {
      font-size: 0.8rem;
      color: var(--text-muted);
      font-variant-numeric: tabular-nums;
    }

    .progress-top .stats strong {
      color: var(--accent);
    }

    .progress-track {
      height: 8px;
      border-radius: 9999px;
      background: rgba(255, 255, 255, 0.08);
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 9999px;
      background: linear-gradient(90deg, #2563eb, #38bdf8, #818cf8);
      transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .check-group {
      margin-bottom: 1.2rem;
    }

    .check-group h4 {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 0.55rem;
      font-size: 0.9rem;
      color: var(--accent);
      letter-spacing: 0.2px;
    }

    .check-group h4 i {
      font-size: 0.8rem;
    }

    .checklist {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .check-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 0.6rem 0.8rem;
      border-radius: 9px;
      border: 1px solid rgba(255, 255, 255, 0.07);
      background: rgba(255, 255, 255, 0.018);
      cursor: pointer;
      transition: all 0.18s ease;
      font-size: 0.87rem;
      color: #cbd5e1;
      line-height: 1.55;
    }

    .check-item:hover {
      background: rgba(56, 189, 248, 0.055);
      border-color: rgba(56, 189, 248, 0.2);
    }

    .check-item input {
      margin-top: 3px;
      width: 15px;
      height: 15px;
      flex-shrink: 0;
      accent-color: #38bdf8;
      cursor: pointer;
    }

    .check-item.done {
      color: var(--text-sub);
      background: rgba(16, 185, 129, 0.045);
      border-color: rgba(16, 185, 129, 0.16);
    }

    .check-item.done span {
      text-decoration: line-through;
      text-decoration-color: rgba(148, 163, 184, 0.45);
    }

    .reset-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0.42rem 0.85rem;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.03);
      color: var(--text-muted);
      font-family: inherit;
      font-size: 0.76rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.18s ease;
      margin-top: 0.4rem;
    }

    .reset-btn:hover {
      border-color: rgba(239, 68, 68, 0.4);
      color: #fca5a5;
      background: rgba(239, 68, 68, 0.08);
    }

    /* ============ FAQ ============ */
    .faq details {
      background: rgba(255, 255, 255, 0.022);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 11px;
      padding: 0.8rem 1rem;
      margin: 0.55rem 0;
      transition: border-color 0.2s ease;
    }

    .faq details[open] {
      border-color: rgba(56, 189, 248, 0.25);
      background: rgba(56, 189, 248, 0.035);
    }

    .faq summary {
      cursor: pointer;
      font-weight: 600;
      font-size: 0.91rem;
      color: #e2e8f0;
      list-style: none;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      line-height: 1.55;
    }

    .faq summary::-webkit-details-marker {
      display: none;
    }

    .faq summary::after {
      content: "+";
      color: var(--accent);
      font-weight: 400;
      font-size: 1.05rem;
      line-height: 1.2;
      flex-shrink: 0;
    }

    .faq details[open] summary::after {
      content: "−";
    }

    .faq details p {
      margin: 0.55rem 0 0.1rem;
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.7;
    }

    /* ============ 文档信息 ============ */
    .doc-info {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;
      background: var(--border-color);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      overflow: hidden;
      margin: 1rem 0;
    }

    .doc-info div {
      background: rgba(10, 22, 40, 0.9);
      padding: 0.7rem 0.95rem;
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .doc-info div strong {
      color: #e2e8f0;
      display: inline-block;
      min-width: 70px;
    }

    /* ============ 页脚与浮层 ============ */
    .page-footer {
      border-top: 1px solid var(--border-color);
      padding: 1.75rem 2rem;
      text-align: center;
      color: var(--text-sub);
      font-size: 0.84rem;
      background: rgba(7, 15, 27, 0.5);
      line-height: 1.8;
    }

    .page-footer a {
      color: var(--text-muted);
    }

    .page-footer a:hover {
      color: var(--accent);
    }

    .back-top {
      position: fixed;
      right: 22px;
      bottom: 22px;
      width: 42px;
      height: 42px;
      border-radius: 12px;
      border: 1px solid rgba(56, 189, 248, 0.35);
      background: rgba(13, 27, 46, 0.92);
      color: var(--accent);
      font-size: 0.9rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: all 0.25s ease;
      backdrop-filter: blur(10px);
      z-index: 90;
    }

    .back-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .back-top:hover {
      background: var(--accent);
      color: #070f1b;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 28px;
      transform: translate(-50%, 14px);
      background: #0d1b2e;
      border: 1px solid rgba(56, 189, 248, 0.4);
      color: #e2e8f0;
      padding: 0.6rem 1.1rem;
      border-radius: 10px;
      font-size: 0.84rem;
      font-weight: 600;
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
      opacity: 0;
      visibility: hidden;
      transition: all 0.22s ease;
      z-index: 200;
      pointer-events: none;
      max-width: calc(100vw - 40px);
      text-align: center;
    }

    .toast.show {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, 0);
    }

    /* ============ 响应式 ============ */
    @media (max-width: 1080px) {
      .layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
      }

      .toc {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        min-width: 0;
      }

      .toc-title {
        display: none;
      }

      .toc-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding: 2px 0 8px;
        scrollbar-width: thin;
        min-width: 0;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
      }

      .toc-link {
        flex-shrink: 0;
        border-left: none;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 9999px;
        padding: 0.42rem 0.8rem;
        background: rgba(255, 255, 255, 0.025);
        font-size: 0.8rem;
        gap: 6px;
      }

      .toc-link.active {
        border-color: rgba(56, 189, 248, 0.4);
      }

      .quick-facts {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 820px) {
      .rule-grid,
      .option-grid {
        grid-template-columns: 1fr;
      }

      .doc-section {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
      }

      .hero {
        padding: 2.5rem 1.25rem 1rem;
      }

      .layout {
        padding: 1rem 1.25rem 3rem;
      }

      .navbar {
        padding: 0.85rem 1.25rem;
      }

      .nav-btn .btn-text {
        display: none;
      }

      .nav-btn {
        padding: 0.5rem 0.65rem;
      }
    }

    @media (max-width: 560px) {
      .brand-subtitle,
      .brand-divider {
        display: none;
      }

      .hero h1 {
        font-size: 2.15rem;
      }

      .hero .lead {
        font-size: 0.96rem;
      }

      .quick-facts {
        grid-template-columns: 1fr;
      }

      .doc-info {
        grid-template-columns: 1fr;
      }

      .section-head {
        gap: 11px;
      }

      .section-num {
        width: 34px;
        height: 34px;
        font-size: 0.74rem;
      }

      .section-head h2 {
        font-size: 1.28rem;
      }

      .hero-actions .btn {
        flex: 1 1 auto;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* ============ 打印 ============ */
    @media print {
      html {
        scroll-behavior: auto;
      }

      body {
        background: #fff !important;
        color: #111 !important;
        font-size: 11pt;
        line-height: 1.55;
      }

      .navbar,
      .toc,
      .hero-badge,
      .hero-actions,
      .back-top,
      .toast,
      .copy-btn,
      .reset-btn {
        display: none !important;
      }

      .hero {
        padding: 0 0 0.8cm;
      }

      .hero h1 {
        color: #111 !important;
        font-size: 24pt;
      }

      .hero h1 .grad {
        -webkit-text-fill-color: #111;
        color: #111;
        background: none;
      }

      .hero .lead,
      .hero-meta,
      .fact span,
      .doc-section p,
      .doc-section li,
      td {
        color: #333 !important;
      }

      .layout {
        display: block;
        padding: 0;
        max-width: none;
      }

      .doc-section {
        background: #fff !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        padding: 0.5cm;
        margin-bottom: 0.5cm;
        break-inside: avoid;
        page-break-inside: avoid;
      }

      .section-head h2,
      h3,
      h4,
      strong,
      .fact strong,
      .rule-card h3,
      .pipeline-body h4,
      .timeline-body h4 {
        color: #111 !important;
      }

      .section-num,
      .rule-icon,
      .pipeline-marker {
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #0369a1 !important;
      }

      .callout {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        color: #222 !important;
      }

      .code-block {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
      }

      .code-block pre,
      .code-block pre code {
        color: #111 !important;
      }

      .table-wrap {
        border: 1px solid #cbd5e1 !important;
        background: #fff !important;
      }

      th {
        background: #f1f5f9 !important;
        color: #111 !important;
      }

      td {
        border-top: 1px solid #ddd !important;
      }

      .page-footer {
        color: #555 !important;
        background: #fff !important;
      }

      a {
        color: #111 !important;
        text-decoration: underline;
      }

      .faq details {
        border: 1px solid #ddd !important;
        background: #fff !important;
      }

      .faq details p {
        color: #333 !important;
      }

      .check-item {
        border: 1px solid #ddd !important;
        background: #fff !important;
        color: #222 !important;
      }

      .progress-card {
        border: 1px solid #ccc !important;
        background: #fff !important;
      }
    }
/* ============================================================
   v2.0 多页导航、板块卡片、更新日志
   ============================================================ */
:root {
  --header-offset: 132px;
}

html {
  scroll-padding-top: var(--header-offset);
}

/* 顶栏 + 板块导航整体吸顶 */
.guide-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 15, 27, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.guide-header .navbar {
  position: static;
  top: auto;
  z-index: auto;
  padding: 0.8rem 2rem 0.5rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.version-badge {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 9999px;
  padding: 2px 8px;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
}

.info-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  border-color: rgba(56, 189, 248, 0.28);
}

.info-btn i {
  font-size: 1rem;
  color: var(--accent);
}

.guide-tabs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 0.55rem;
}

.guide-tabs-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.guide-tabs-inner::-webkit-scrollbar {
  display: none;
}

.guide-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.42rem 0.8rem;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.guide-tab:hover {
  background: rgba(56, 189, 248, 0.07);
  color: #e2e8f0;
}

.guide-tab.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.guide-tab .tab-num {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.guide-tab.active .tab-num {
  color: var(--accent);
}

.tab-mini {
  display: none;
}

/* 侧边目录让出吸顶高度 */
.toc {
  top: var(--header-offset);
  max-height: calc(100vh - var(--header-offset) - 22px);
}

.doc-section {
  scroll-margin-top: var(--header-offset);
}

#email-template {
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

/* 首页阅读顺序标题 */
.board-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 2rem 1rem;
}

.board-head h2 {
  margin: 0.25rem 0 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  color: #fff;
}

.board-head p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 总览页板块导航卡片 */
.board-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(226px, 1fr));
  gap: 12px;
}

.board-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(12px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.board-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  color: #fff;
  transform: translateY(-2px);
}

.board-card.current {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}

.board-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.board-body {
  min-width: 0;
  flex: 1;
}

.board-kicker {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--text-sub);
  text-transform: uppercase;
}

.board-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0.18rem 0 0.15rem;
  line-height: 1.35;
}

.board-card p {
  font-size: 0.77rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.board-arrow {
  color: var(--text-sub);
  font-size: 0.78rem;
  padding-top: 11px;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.board-card:hover .board-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* 页底翻页 */
.page-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0.25rem;
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.pager-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  color: #fff;
}

.pager-link.next {
  text-align: right;
  align-items: flex-end;
}

.pager-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-sub);
}

.pager-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
}

.pager-link.placeholder {
  visibility: hidden;
}

/* 页脚文字按钮 */
.footer-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}

.footer-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* ============ 更新日志弹窗 ============ */
body.modal-open {
  overflow: hidden;
}

.changelog-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.changelog-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.changelog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.changelog-card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.99), rgba(9, 18, 33, 0.99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.changelog-modal.open .changelog-card {
  transform: none;
}

.changelog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.changelog-kicker {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--accent);
  margin-bottom: 2px;
}

.changelog-head h2 {
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.3;
}

.changelog-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.changelog-close:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

.changelog-body {
  padding: 1.1rem 1.4rem 1.4rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.changelog-item {
  position: relative;
  margin-left: 6px;
  padding: 0 0 1.15rem 1.25rem;
  border-left: 1px solid rgba(56, 189, 248, 0.2);
}

.changelog-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.changelog-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-sub);
}

.changelog-item.current::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.changelog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.35rem;
}

.changelog-ver {
  font-size: 0.86rem;
  font-weight: 800;
  color: #fff;
}

.changelog-date {
  font-size: 0.74rem;
  color: var(--text-sub);
}

.changelog-tag {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9999px;
  padding: 1px 7px;
}

.changelog-item ul {
  margin: 0.2rem 0 0 1.05rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.7;
}

.changelog-item li {
  margin: 0.18rem 0;
}

.changelog-item li::marker {
  color: var(--accent);
}

.changelog-foot {
  padding: 0.8rem 1.4rem;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-sub);
  font-size: 0.72rem;
}

/* 键盘焦点 */
.guide-tab:focus-visible,
.info-btn:focus-visible,
.nav-btn:focus-visible,
.board-card:focus-visible,
.pager-link:focus-visible,
.changelog-close:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 响应式补充 */
@media (max-width: 1080px) {
  .toc {
    max-height: none;
  }
}

@media (max-width: 820px) {
  :root {
    --header-offset: 124px;
  }

  .guide-header .navbar {
    padding: 0.72rem 1.1rem 0.38rem;
  }

  .guide-tabs {
    padding: 0 1.1rem 0.42rem;
  }

  .board-head {
    padding: 0.35rem 1.25rem 0.9rem;
  }

  .board-nav {
    padding: 0 1.25rem 0.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .version-badge {
    display: none;
  }

  .guide-tabs-inner {
    gap: 4px;
  }

  .tab-num {
    display: none;
  }

  .tab-full {
    display: none;
  }

  .tab-mini {
    display: inline;
  }

  .guide-tab {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    gap: 4px;
  }

  .board-nav {
    grid-template-columns: 1fr;
  }

  .page-pager {
    grid-template-columns: 1fr;
  }

  .pager-link.next {
    text-align: left;
    align-items: flex-start;
  }

  .pager-link.placeholder {
    display: none;
  }

  .changelog-modal {
    padding: 0.75rem;
  }

  .changelog-card {
    max-height: 88vh;
  }

  .changelog-head,
  .changelog-body {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }
}

@media (max-width: 380px) {
  .guide-tabs-inner {
    gap: 3px;
  }

  .guide-tab {
    padding: 0.38rem 0.45rem;
    font-size: 0.76rem;
    gap: 3px;
  }
}

@media print {
  .guide-header,
  .board-nav,
  .page-pager,
  .changelog-modal,
  .info-btn,
  .version-badge,
  .footer-link {
    display: none !important;
  }

}

/* ============================================================
   v4.1 固定左侧目录导航
   ============================================================ */
:root {
  --side-width: 268px;
  --nav-height: 65px;
  --header-offset: 76px;
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

.menu-btn i {
  font-size: 0.95rem;
}

/* 顶栏内容通栏，Logo 与侧栏左边界对齐 */
.guide-header .navbar {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav-inner {
  max-width: none;
  margin: 0;
}

/* Logo 始终靠左：手机上紧跟菜单按钮，不再居中 */
.guide-header .brand-link {
  margin-right: auto;
}

.guide-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

/* 固定通栏侧栏：不是浮窗 */
.guide-sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  width: var(--side-width);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.25rem;
  border: 0;
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  background: rgba(8, 18, 32, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-origin: top center;
  overflow: hidden;
  z-index: 40;
}

.side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.side-head-text {
  min-width: 0;
}

.side-kicker {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-sub);
  line-height: 1.4;
}

.side-current {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.side-close {
  display: none;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.side-close:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

.side-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 2px;
  margin-right: -2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.72rem 0.6rem;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.side-link:hover {
  background: rgba(56, 189, 248, 0.07);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.side-link.active {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(56, 189, 248, 0.08));
  border-color: rgba(56, 189, 248, 0.3);
}

.side-link.active:hover {
  transform: none;
}

.side-home {
  color: #e2e8f0;
}

.side-icon {
  width: 22px;
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  color: var(--accent);
  font-size: 0.78rem;
}

.side-name {
  flex: 1;
  min-width: 0;
}

.side-range {
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  padding: 1px 7px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.side-link.active .side-range {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.24);
}

.side-chevron {
  font-size: 0.55rem;
  color: var(--text-sub);
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.side-link.active .side-chevron {
  color: var(--accent);
  opacity: 1;
}

.side-group.is-open .side-chevron {
  transform: rotate(90deg);
}

.side-divider {
  margin: 1rem 0.6rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: var(--text-sub);
  text-transform: uppercase;
}

.side-sub {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0.4rem 0 0.55rem 1.15rem;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  animation: subListIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.side-sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.5rem;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.45;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.side-sub-link:hover {
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.06);
}

.side-sub-link.active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.09);
}

.side-sub-link.active:hover {
  transform: none;
}

.side-sub-num {
  width: 16px;
  flex-shrink: 0;
  font-size: 0.61rem;
  font-weight: 700;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

.side-sub-link.active .side-sub-num {
  color: var(--accent);
}

.side-foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.9rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.67rem;
  color: var(--text-sub);
}

.side-foot i {
  color: var(--accent);
  margin-right: 4px;
}

.side-foot strong {
  color: var(--accent);
  font-size: 0.67rem;
}

/* 正文位于固定侧栏右侧 */
.guide-main {
  margin-left: var(--side-width);
  min-width: 0;
}

.guide-main .hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2.5rem 1.5rem;
}

.guide-main .layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 4rem;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.guide-main .board-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 2.5rem 1rem;
}

.guide-main .board-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.guide-main .board-nav .board-card {
  grid-column: span 2;
}

.guide-main .board-nav .board-card:nth-child(4) {
  grid-column: 1 / span 3;
}

.guide-main .board-nav .board-card:nth-child(5) {
  grid-column: 4 / span 3;
}

.page-footer {
  margin-left: var(--side-width);
}

.sidebar-backdrop {
  display: none;
}

/* 进入动画：目录自上而下展开，不做左右滑动 */
@keyframes sidePanelIn {
  from { opacity: 0; transform: translateY(-12px) scaleY(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes sideItemIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes subListIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1081px) {
  .guide-sidebar {
    animation: sidePanelIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .side-nav > * {
    animation: sideItemIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(50ms + var(--i, 0) * 40ms);
  }

  .side-sub-link {
    animation: sideItemIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(220ms + var(--j, 0) * 35ms);
  }
}

.side-link:focus-visible,
.side-sub-link:focus-visible,
.side-close:focus-visible,
.menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 固定侧栏占位后，窄桌面把首屏四枚标签改为两行两列 */
@media (min-width: 1081px) and (max-width: 1220px) {
  .guide-main .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   v4.2 首页五板块一行、锚点偏移修正
   ============================================================ */
/* 只保留 html 的 scroll-padding-top 一层偏移，避免与 scroll-margin 叠加 */
.doc-section {
  scroll-margin-top: 0;
}

#email-template {
  scroll-margin-top: 1rem;
}

@media (min-width: 1280px) {
  .guide-main .board-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .guide-main .board-nav .board-card,
  .guide-main .board-nav .board-card:nth-child(4),
  .guide-main .board-nav .board-card:nth-child(5) {
    grid-column: auto;
  }

  /* 一行五张时改为纵向卡片，给说明文字留出整行宽度 */
  .guide-main .board-nav .board-card {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 1rem;
  }

  .guide-main .board-nav .board-body {
    width: 100%;
  }

  .guide-main .board-nav .board-arrow {
    position: absolute;
    top: 1.1rem;
    right: 0.95rem;
    padding-top: 0;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-offset: 72px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .guide-header .navbar {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .guide-sidebar {
    top: 0;
    bottom: 0;
    width: min(340px, 88vw);
    padding: 1.4rem 1.25rem 1rem;
    border-right: 1px solid rgba(56, 189, 248, 0.22);
    background: #081424;
    box-shadow: 26px 0 70px rgba(0, 0, 0, 0.5);
    transform: translateY(-18px) scaleY(0.96);
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease, visibility 0.34s ease;
    z-index: 220;
  }

  body.sidebar-open .guide-sidebar {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .side-nav > * {
    animation: sideItemIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(110ms + var(--i, 0) * 45ms);
  }

  body.sidebar-open .side-sub-link {
    animation: sideItemIn 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(330ms + var(--j, 0) * 35ms);
  }

  .side-close {
    display: inline-flex;
  }

  .guide-main {
    margin-left: 0;
  }

  .page-footer {
    margin-left: 0;
  }

  .guide-main .hero {
    padding: 2.3rem 1.25rem 1.5rem;
  }

  .guide-main .layout {
    padding: 1.25rem 1.25rem 3rem;
  }

  .guide-main .board-head {
    padding: 0.35rem 1.25rem 0.9rem;
  }

  .guide-main .board-nav {
    padding: 0 1.25rem 0.6rem;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 210;
    background: rgba(2, 6, 14, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 820px) {
  .guide-header .navbar {
    padding: 0.72rem 1.1rem 0.38rem;
  }

  .guide-main .hero {
    padding: 2rem 1.1rem 1rem;
  }

  .guide-main .layout {
    padding: 1.1rem 1.1rem 3rem;
  }

  .guide-main .board-head {
    padding: 0.35rem 1.1rem 0.9rem;
  }

  .guide-main .board-nav {
    padding: 0 1.1rem 0.6rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-main .board-nav .board-card,
  .guide-main .board-nav .board-card:nth-child(4),
  .guide-main .board-nav .board-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .guide-header .navbar {
    padding: 0.72rem 1rem 0.38rem;
  }

  .guide-main .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .guide-main .layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .guide-main .board-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .guide-main .board-nav {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================================
   v4.1 首页纵向留白与阅读顺序标题
   ============================================================ */
.guide-home .guide-main .hero {
  padding-bottom: 2.75rem;
}

.guide-main .board-head {
  padding-top: 1.15rem;
  padding-bottom: 1.6rem;
}

.board-head h2 {
  margin-top: 0.45rem;
  margin-bottom: 0.5rem;
}

.board-head p {
  margin-top: 0.15rem;
}

.board-head .board-kicker {
  font-size: 0.8rem;
  letter-spacing: 1.1px;
}

.guide-main .board-nav {
  gap: 18px;
  padding-bottom: 2.25rem;
}

.guide-main .board-nav .board-card {
  padding: 1.15rem;
}

@media (min-width: 1280px) {
  .guide-main .board-nav .board-card {
    gap: 12px;
  }
}

@media (max-width: 1080px) {
  .guide-home .guide-main .hero {
    padding-bottom: 2rem;
  }

  .guide-main .board-head {
    padding-top: 0.85rem;
    padding-bottom: 1.2rem;
  }

  .guide-main .board-nav {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 560px) {
  .guide-main .board-nav {
    gap: 16px;
  }

  .guide-main .board-nav .board-card {
    padding: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-sidebar,
  .side-nav > *,
  .side-sub,
  .side-sub-link {
    animation: none !important;
  }
}

@media print {
  .guide-shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  .guide-sidebar,
  .sidebar-backdrop,
  .menu-btn {
    display: none !important;
  }

  .guide-main {
    margin-left: 0;
  }

  .page-footer {
    margin-left: 0;
  }

  .guide-main .hero {
    padding: 0 0 0.8cm;
  }

  .guide-main .layout {
    padding: 0;
  }
}

/* ============================================================
   v4.2 首页视频弹窗
   ============================================================ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-card {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: #050b14;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.open .video-card {
  transform: none;
}

.video-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0.9rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(16, 32, 56, 0.99), rgba(9, 18, 33, 0.99));
}

.video-kicker {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--accent);
  margin-bottom: 2px;
}

.video-head h2 {
  font-size: 1.08rem;
  color: #fff;
  line-height: 1.35;
}

.video-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-close:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
}

.video-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #000;
}

.guide-video {
  display: block;
  width: 100%;
  max-height: calc(90vh - 78px);
  background: #000;
}

@media (max-width: 560px) {
  .video-modal {
    padding: 0.6rem;
  }

  .video-card {
    border-radius: 14px;
  }

  .video-head {
    padding: 0.8rem 0.9rem 0.75rem;
  }

  .video-head h2 {
    font-size: 1rem;
  }

  .guide-video {
    max-height: calc(90vh - 70px);
  }
}

@media print {
  .video-modal {
    display: none !important;
  }
}
