:root {
      --primary: #1a56db;
      --primary-light: #e8eefb;
      --primary-dark: #1240a8;
      --accent: #e74c3c;
      --green: #16a34a;
      --orange: #ea580c;
      --bg: #f5f7fa;
      --white: #ffffff;
      --gray-50: #f9fafb;
      --gray-100: #f3f4f6;
      --gray-200: #e5e7eb;
      --gray-300: #d1d5db;
      --gray-400: #9ca3af;
      --gray-500: #6b7280;
      --gray-600: #4b5563;
      --gray-700: #374151;
      --gray-800: #1f2937;
      --gray-900: #111827;
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
      --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
      --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
      --radius: 8px;
      --radius-lg: 12px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
      color: var(--gray-800);
      background: var(--bg);
      line-height: 1.8;
      -webkit-font-smoothing: antialiased;
    }

    /* ===== Navigation ===== */
    .nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(10px);
    }

    .nav-inner {
      max-width: 1200px;
      padding: 0 20px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: var(--gray-900);
      font-weight: 700;
      font-size: 18px;
      white-space: nowrap;
    }
    .logo-mark {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(15, 174, 255, 0.25);
    }
    .nav-logo img { width: 40px; height: 40px; }

    .nav-links {
      display: flex;
      gap: 20px;
      list-style: none;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--gray-600);
      font-size: 13px;
      font-weight: 500;
      transition: color 0.2s;
      border: none;
    }

    .nav-links a:hover { color: var(--primary); }

    /* ===== Hero ===== */
    .hero {
      background: linear-gradient(250deg, #1e3a8a 0%, #1a56db 50%, #3b82f6 100%);
      color: white;
      padding: 64px 24px 48px;
      text-align: center;
    }

    .hero-inner { max-width: 720px; margin: 0 auto; }

    .hero-badge {
      display: inline-block;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.25);
      border-radius: 20px;
      padding: 4px 14px;
      font-size: 12px;
      font-weight: 500;
      margin-bottom: 20px;
    }

    .hero h1 {
      font-size: 28px;
      font-weight: 800;
      line-height: 1.5;
      margin-bottom: 16px;
    }

    .hero-desc {
      font-size: 16px;
      line-height: 1.8;
      opacity: 0.9;
      max-width: 600px;
      margin: 0 auto 24px;
      color: #ffffff;
    }

    .hero-meta {
      display: flex;
      justify-content: center;
      gap: 20px;
      font-size: 12px;
      opacity: 0.7;
    }

    /* ===== Main Layout ===== */
    .content-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      padding: 32px 20px 80px;
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 28px;
    }

    /* ===== Article ===== */
    .main-content {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 36px 40px;
      min-width: 0;
    }

    .article-intro {
      font-size: 17px;
      line-height: 1.9;
      color: var(--gray-700);
      margin-bottom: 20px;
    }

    .article-intro strong { color: var(--gray-900); }

    /* ===== TOC Sidebar ===== */
    .toc-sidebar {
      position: sticky;
      top: 72px;
      align-self: start;
      max-height: calc(100vh - 90px);
      overflow-y: auto;
    }

    .toc-sidebar::-webkit-scrollbar { width: 3px; }
    .toc-sidebar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

    .toc-card {
      background: var(--white);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      padding: 14px;
    }

    .toc-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--gray-900);
      margin-bottom: 10px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--primary);
    }

    .toc-list { list-style: none; }
    .toc-list li { margin-bottom: 1px; }

    .toc-list a {
      display: block;
      padding: 3px 6px;
      color: var(--gray-600);
      text-decoration: none;
      border-radius: 4px;
      transition: all 0.15s;
      line-height: 1.4;
      border: none;
      font-size: 13px;
    }

    .toc-list a:hover,
    .toc-list a.active {
      background: var(--primary-light);
      color: var(--primary);
      font-weight: 600;
    }

    .toc-list .toc-h3 {
      padding-left: 12px;
      font-size: 12px;
    }

    /* ===== Typography ===== */
    .key-points {
      background: linear-gradient(135deg, #eff6ff, #dbeafe);
      border-left: 4px solid var(--primary);
      border-radius: 0 var(--radius) var(--radius) 0;
      padding: 16px 20px;
      margin: 24px 0;
    }

    .key-points-title {
      font-size: 13px;
      font-weight: 700;
      color: var(--primary-dark);
      margin-bottom: 8px;
    }

    .key-points ul { list-style: none; padding: 0; }

    .key-points li {
      font-size: 14px;
      line-height: 1.7;
      color: var(--gray-700);
      padding: 3px 0 3px 18px;
      position: relative;
    }

    .key-points li::before {
      content: '\2713';
      position: absolute;
      left: 0;
      color: var(--primary);
      font-weight: 700;
      font-size: 12px;
    }

    .story-box {
      background: var(--gray-50);
      border-radius: var(--radius);
      padding: 16px 20px;
      margin: 20px 0;
      border: 1px solid var(--gray-200);
      font-size: 15px;
      line-height: 1.8;
    }

    h2 {
      font-size: 24px;
      font-weight: 800;
      color: var(--gray-900);
      margin: 40px 0 16px;
      padding-bottom: 10px;
      border-bottom: 3px solid var(--primary);
      display: inline-block;
      line-height: 1.4;
    }

    h3 {
      font-size: 19px;
      font-weight: 700;
      color: var(--gray-800);
      margin: 28px 0 10px;
      line-height: 1.5;
    }

    h4 {
      font-size: 17px;
      font-weight: 700;
      color: var(--gray-700);
      margin: 20px 0 6px;
    }

    p {
      font-size: 16px;
      line-height: 1.9;
      color: var(--gray-700);
      margin-bottom: 14px;
    }

    strong { color: var(--gray-900); }

    ul, ol { padding-left: 22px; }

    li {
      font-size: 15px;
      line-height: 1.8;
      color: var(--gray-700);
    }

    a {
      color: var(--primary);
      text-decoration: none;
      transition: all 0.2s;
    }

    a:hover {
      color: var(--primary-dark);
      border-bottom-color: var(--primary-dark);
    }

    /* ===== Tables ===== */
    .table-wrapper {
      overflow-x: auto;
      margin: 20px 0;
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }

    thead {
      background: var(--primary);
      color: white;
    }

    th {
      padding: 10px 14px;
      text-align: left;
      font-weight: 600;
      white-space: nowrap;
    }

    td {
      padding: 10px 14px;
      border-bottom: 1px solid var(--gray-200);
      color: var(--gray-700);
    }

    tbody tr:nth-child(even) { background: var(--gray-50); }
    tbody tr:hover { background: var(--primary-light); }
    td strong { color: var(--accent); font-weight: 700; }

    /* ===== Components: Dimension Cards ===== */
    .dim-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin: 20px 0;
    }

    .dim-card {
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      padding: 18px;
      transition: all 0.2s;
    }

    .dim-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
    }

    .dim-card .dim-num {
      font-size: 11px;
      font-weight: 700;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 6px;
    }

    .dim-card .dim-title {
      font-size: 15px;
      font-weight: 700;
      color: var(--gray-900);
      margin-bottom: 6px;
    }

    .dim-card .dim-desc {
      font-size: 13px;
      color: var(--gray-600);
      line-height: 1.7;
    }

    /* ===== Components: Scene Cards ===== */
    .scene-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin: 20px 0;
    }

    .scene-card {
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      padding: 18px;
      transition: all 0.2s;
    }

    .scene-card:hover {
      box-shadow: var(--shadow-md);
      border-color: var(--primary);
    }

    .scene-card .scene-icon {
      font-size: 24px;
      margin-bottom: 8px;
    }

    .scene-card .scene-name {
      font-size: 15px;
      font-weight: 700;
      color: var(--gray-900);
      margin-bottom: 6px;
    }

    .scene-card .scene-desc {
      font-size: 13px;
      color: var(--gray-600);
      line-height: 1.7;
    }

    /* ===== Components: Stat Row ===== */
    .num-highlights {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin: 20px 0;
    }

    .num-card {
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      padding: 14px;
      text-align: center;
    }

    .num-card .num {
      font-size: 24px;
      font-weight: 800;
      color: var(--accent);
      line-height: 1.2;
    }

    .num-card .num-label {
      font-size: 11px;
      color: var(--gray-500);
      margin-top: 4px;
    }

    /* ===== Components: Timeline Steps ===== */
    .steps-visual { margin: 20px 0; }

    .step-item {
      display: flex;
      gap: 14px;
      margin-bottom: 20px;
      position: relative;
    }

    .step-item:not(:last-child)::after {
      content: '';
      position: absolute;
      left: 17px;
      top: 38px;
      bottom: -14px;
      width: 2px;
      background: var(--gray-200);
    }

    .step-num {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      font-weight: 700;
    }

    .step-content { flex: 1; }

    .step-content h4 {
      font-size: 15px;
      font-weight: 700;
      color: var(--gray-900);
      margin: 2px 0 6px;
    }

    .step-content p,
    .step-content li { font-size: 14px; line-height: 1.7; }

    /* ===== Components: Period Grid ===== */
    .period-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin: 20px 0;
    }

    .period-card {
      border-radius: var(--radius);
      padding: 14px;
      text-align: center;
    }

    .period-card.peak { background: #fef2f2; border: 1px solid #fecaca; }
    .period-card.urgent { background: #fff7ed; border: 1px solid #fed7aa; }
    .period-card.window { background: #f0fdf4; border: 1px solid #bbf7d0; }
    .period-card.normal { background: var(--gray-50); border: 1px solid var(--gray-200); }

    .period-label {
      font-size: 12px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .period-card.peak .period-label { color: #dc2626; }
    .period-card.urgent .period-label { color: #ea580c; }
    .period-card.window .period-label { color: #16a34a; }
    .period-card.normal .period-label { color: var(--gray-600); }

    .period-desc { font-size: 12px; color: var(--gray-600); line-height: 1.5; }

    /* ===== Components: Badge ===== */
    .badge {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 100px;
    }
    .badge-green { background: #dcfce7; color: #16a34a; }
    .badge-red { background: #fee2e2; color: #dc2626; }
    .badge-blue { background: var(--primary-light); color: var(--primary); }
    .badge-orange { background: #fff7ed; color: #ea580c; }

    /* ===== Components: FAQ ===== */
    .faq-item {
      background: var(--gray-50);
      border-radius: var(--radius);
      padding: 16px 20px;
      margin-bottom: 12px;
      border: 1px solid var(--gray-200);
    }

    .faq-item h3 {
      font-size: 15px;
      font-weight: 700;
      color: var(--gray-900);
      margin: 0 0 8px;
    }

    .faq-item p {
      font-size: 14px;
      line-height: 1.7;
      color: var(--gray-600);
      margin: 0;
    }

    /* ===== CTA Box ===== */
    .cta-box {
      background: linear-gradient(135deg, #1e3a8a, #1a56db);
      border-radius: var(--radius-lg);
      padding: 28px;
      margin: 36px 0;
      text-align: center;
      color: white;
    }

    .cta-box h3 { color: white; font-size: 18px; margin: 0 0 10px; }
    .cta-box p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 20px; }

    .cta-btn {
      display: inline-block;
      background: white;
      color: var(--primary-dark);
      padding: 10px 28px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 700;
      text-decoration: none;
      transition: all 0.2s;
      border: none;
    }

    .cta-btn:hover {
      background: #f0f4ff;
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
      color: var(--primary-dark);
    }

    .cta-tags {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 16px;
      flex-wrap: wrap;
    }

    .cta-tag {
      font-size: 12px;
      opacity: 0.75;
    }

    /* ===== Footnote ===== */
    .footnote {
      font-size: 12px;
      color: var(--gray-400);
      margin-top: 30px;
      padding-top: 16px;
      border-top: 1px solid var(--gray-200);
      line-height: 1.6;
    }

    .footnote p { margin-bottom: 4px; font-size: 12px; color: var(--gray-400); }

    /* ===== Footer ===== */
    .footer {
      background: var(--gray-900);
      color: var(--gray-400);
      padding: 32px 24px;
      text-align: center;
      font-size: 12px;
    }

    .footer a {
      color: var(--gray-300);
      border-bottom-color: var(--gray-600);
    }

    .footer a:hover {
      color: white;
      border-bottom-color: white;
    }

    /* ===== Responsive ===== */
    @media (max-width: 768px) {
      .content-wrapper {
        grid-template-columns: 1fr;
        padding: 20px 16px 60px;
      }

      .toc-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
      }

      .main-content { padding: 24px 20px; }

      .hero { padding: 40px 16px 32px; }
      .hero h1 { font-size: 20px; }

      .dim-grid, .scene-grid { grid-template-columns: 1fr; }
      .num-highlights { grid-template-columns: 1fr; }
      .period-grid { grid-template-columns: 1fr 1fr; }

      .nav-links { display: none; }
      .nav-inner { padding: 0 16px; }

      h2 { font-size: 19px; }
      h3 { font-size: 15px; }
    }

    /* ===== Smooth scroll ===== */
    html {
      scroll-behavior: smooth;
      scroll-padding-top: 72px;
    }
        /* ====== Related Articles (Sidebar) ====== */
    .related-articles {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.07);
      border-top: 4px solid #1a56db;
      padding: 20px 18px;
      margin-top: 20px;
    }
    .related-articles ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .related-articles li {
      margin-bottom: 10px;
      font-size: 14px;
      line-height: 1.5;
    }
    .related-articles li:last-child { margin-bottom: 0; }
    .related-articles li a {
      font-size: 14px;
      font-weight: 500;
      color: #374151;
      line-height: 1.6;
      text-decoration: none;
      transition: color 0.2s;
    }
    .related-articles li a:hover { color: #1a56db; }
    .related-list { list-style: none; }
    .related-list li { margin-bottom: 4px; }
    .related-list a { display: block; padding: 4px 6px; font-size: 12px; color: var(--gray-600); border-radius: 4px; transition: background .15s, color .15s; line-height: 1.5; }
    .related-list a:hover { background: var(--primary-light); color: var(--primary); }
    .related-list .related-tag { display: inline-block; font-size: 10px; background: var(--primary-light); color: var(--primary); padding: 1px 5px; border-radius: 3px; margin-right: 4px; font-weight: 600; vertical-align: middle; }

    /* ===== Print ===== */
    @media print {
      .nav, .toc-sidebar, .hero-badge, .footer { display: none; }
      .hero { background: none; color: black; padding: 20px 0; }
      .main-content { box-shadow: none; padding: 0; }
    }