* { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --blue-deep: #1F2D7B;
      --blue-dark: #253A8B;
      --gold: #C8A052;
      --gray-bg: #F4F6FA;
      --gray-100: #EDF2F7;
      --gray-200: #E2E8F0;
      --gray-300: #CBD5E1;
      --gray-600: #475569;
      --gray-800: #1E293B;
      --font-sans: "Noto Sans SC","PingFang SC","Inter",sans-serif;
      --font-serif: "Noto Serif SC","Source Han Serif SC",serif;
      --sidebar-width: 260px;
    }
    html { scroll-behavior: smooth; scroll-padding-top: 90px; }
    body {
      font-family: var(--font-sans);
      background: var(--gray-bg);
      color: #1E293B;
      line-height: 1.75;
      min-height: 100vh;
      display: flex; flex-direction: column;
      overflow-x: hidden;
    }
    body.sidebar-locked { overflow: hidden; }
    .sidebar-overlay {
      display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.45);
      z-index: 240; opacity: 0; transition: opacity 0.25s;
    }
    .sidebar-overlay.open { display: block; opacity: 1; }
    .site-header {
      position: sticky; top: 0; z-index: 200;
      background: rgba(255,255,255,.97); border-bottom: 1px solid var(--gray-200);
      box-shadow: 0 2px 8px rgba(0,0,0,.04); backdrop-filter: blur(14px) saturate(150%);
    }
    .header-wrap {
      display: flex; align-items: center; width: min(calc(100% - 40px), 1200px);
      min-height: 72px; margin: 0 auto;
    }
    .header-left { display: flex; align-items: center; gap: 14px; min-width: 0; margin-right: auto; }
    .header-logo { display: flex; align-items: center; flex-shrink: 0; }
    .header-left img.logo-img { display: block; width: auto; height: 42px; flex-shrink: 0; }
    .main-nav { display: flex; align-self: stretch; align-items: center; gap: 26px; margin-left: 24px; }
    .main-nav a {
      position: relative; display: flex; height: 100%; align-items: center;
      color: var(--gray-600); font-size: 14px; font-weight: 600; text-decoration: none;
      white-space: nowrap;
    }
    .main-nav a:hover { color: var(--blue-deep); }
    .main-nav a:hover::after {
      content: ""; position: absolute; right: 0; bottom: 0; left: 0;
      height: 2px; background: var(--gold);
    }
    .header-search {
      display: grid; width: 40px; height: 40px; margin-left: 18px;
      place-items: center; border: 1px solid var(--gray-200); border-radius: 50%;
      color: var(--blue-deep); background: #fff;
    }
    .header-search:hover { color: #fff; border-color: var(--blue-deep); background: var(--blue-deep); }
    .header-search svg { width: 18px; height: 18px; }
    .lang-switch { display: flex; gap: 6px; flex-shrink: 0; margin-left: 12px; }
    .lang-btn {
      padding: 6px 16px; border: 1px solid var(--gray-300);
      background: #fff; border-radius: 6px; font-size: 13px;
      font-weight: 600; color: var(--gray-600); cursor: pointer;
    }
    .lang-btn.active { background: var(--gold); color: #fff; border-color: var(--gold); }
    .lang-btn:hover:not(.active) { background: var(--gray-100); color: var(--blue-deep); }

    .wrapper { display: flex; flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; }
    .sidebar {
      width: var(--sidebar-width); flex-shrink: 0; background: #fff;
      border-right: 1px solid var(--gray-200); position: sticky; top: 72px;
      height: calc(100vh - 72px); overflow-y: auto; padding: 24px 0 24px 16px;
      z-index: 150; transition: transform 0.3s;
    }
    .sidebar nav ul { list-style: none; }
    .sidebar nav li { margin: 4px 0; }
    .chapter-title {
      font-weight: 700; font-size: 15px; color: var(--gray-800);
      display: flex; align-items: center; padding: 6px 12px;
      border-left: 3px solid transparent; border-radius: 6px 0 0 6px;
      cursor: pointer; transition: 0.15s;
    }
    .chapter-title:hover, .chapter-title.active { background: #F0F4FF; color: var(--blue-deep); border-left-color: var(--gold); }
    .chapter-title .toggle-icon {
      display: inline-block; width: 16px; margin-right: 8px; text-align: center;
      transition: transform 0.2s;
    }
    .chapter-title.collapsed .toggle-icon { transform: rotate(-90deg); }
    .chapter-title a { color: inherit; text-decoration: none; flex-grow: 1; font-weight: inherit; }
    .sub-list { padding-left: 20px; display: block; }
    .sub-list a {
      display: block; padding: 5px 12px; font-size: 13px; font-weight: 500;
      color: var(--gray-600); text-decoration: none; border-left: 3px solid transparent;
      border-radius: 6px 0 0 6px; transition: 0.15s;
    }
    .sub-list a:hover, .sub-list a.active { color: var(--blue-deep); background: #F0F4FF; border-left-color: var(--gold); }

    .main-content { flex: 1; min-width: 0; padding: 40px 48px 80px; background: #fff; }
    .content-section { max-width: 860px; margin: 0 auto 64px; }
    .content-section h1 {
      font-family: var(--font-serif); font-size: 28px; font-weight: 700;
      color: var(--blue-deep); margin-bottom: 16px; padding-bottom: 8px;
      border-bottom: 2px solid var(--gold);
    }
    .content-section h2 { font-size: 22px; font-weight: 700; color: var(--blue-dark); margin: 32px 0 12px; }
    .content-section h3 { font-size: 18px; font-weight: 600; color: var(--gray-800); margin: 24px 0 10px; }
    .content-section p { margin-bottom: 16px; color: #475569; line-height: 1.8; }
    .content-section ul, .content-section ol { margin-left: 20px; margin-bottom: 16px; color: #475569; }
    .content-section li { margin-bottom: 6px; }
    .content-section img {
      max-width: 100%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
      cursor: zoom-in; margin: 16px 0;
    }
    .content-section table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
    .content-section th, .content-section td {
      border: 1px solid var(--gray-200); padding: 10px 14px; vertical-align: top;
    }
    .content-section th { background: #F8FAFC; font-weight: 600; color: var(--blue-deep); }
    .video-container { margin: 24px 0; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
    .video-container video { width: 100%; display: block; }
    .warning-note {
      color: #DC2626; font-size: 13px; font-weight: 600;
      margin: -8px 0 16px; line-height: 1.6;
    }
    .plug-img {
      display: block; width: min(100%, 680px); margin: 24px auto 18px;
      border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.08); cursor: zoom-in;
    }
    .dl-buttons { display: flex; gap: 16px; margin: 24px 0; }
    .dl-btn {
      display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px;
      background: var(--blue-deep); color: #fff; text-decoration: none;
      border-radius: 8px; font-weight: 600;
    }
    .dl-btn:hover { background: var(--gold); }
    .footer-copy { margin-top: 32px; font-size: 14px; color: #475569; line-height: 2; }
    .site-footer {
      background: var(--blue-deep); color: rgba(255,255,255,0.75);
      text-align: center; padding: 20px 32px; font-size: 13px; line-height: 1.8;
      flex-shrink: 0;
    }

    .mobile-toc-btn { display: none; position: fixed; bottom: 28px; right: 24px; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-deep); color: #fff; border: none; font-size: 22px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 300; cursor: pointer; }
    .mobile-toc-btn:hover { background: var(--gold); }

    @media (max-width: 1024px) {
      .wrapper { flex-direction: column; }
      .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: min(280px, 85vw); transform: translateX(-100%); box-shadow: 2px 0 12px rgba(0,0,0,0.1); z-index: 250; padding-top: 80px; }
      .sidebar.open { transform: translateX(0); }
      .mobile-toc-btn { display: flex; align-items: center; justify-content: center; }
      .main-content { padding: 24px 16px 80px; }
      .main-nav { gap: 16px; margin-left: 16px; }
      .main-nav a { font-size: 12px; }
    }

    /* 装箱清单图片 */
    .packing-img {
      display: block; width: 100%; max-width: 560px;
      margin: 12px auto 20px; border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.08); cursor: zoom-in;
    }

    /* 官网跳转卡片 */
    .website-redirect {
      display: flex; align-items: center; justify-content: space-between; gap: 24px;
      margin-top: 24px; padding: 20px 28px;
      background: #FAFBFF; border: 1px solid var(--gray-200);
      border-left: 4px solid var(--gold); border-radius: 12px;
    }
    .redirect-msg { flex: 1; font-size: 15px; font-weight: 500; color: var(--gray-800); }
    .redirect-link {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 22px; border: 1.5px solid var(--blue-deep);
      border-radius: 8px; color: var(--blue-deep); text-decoration: none;
      font-weight: 600; font-size: 14px; white-space: nowrap; transition: all 0.2s;
    }
    .redirect-link:hover { background: var(--blue-deep); color: #fff; }
    .redirect-link svg { width: 16px; height: 16px; flex-shrink: 0; }

    /* 移动端补丁 (<768px) */
    @media (max-width: 768px) {
      html { scroll-padding-top: 108px; }
      .header-wrap { display: grid; grid-template-columns: 1fr auto auto; width: 100%; min-height: 104px; padding: 0 12px; }
      .header-left { min-height: 60px; gap: 10px; }
      .header-left img.logo-img { height: 32px; }
      .header-search { width: 36px; height: 36px; margin-left: 8px; }
      .main-nav {
        grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4,1fr);
        width: calc(100% + 24px); height: 44px; margin-left: -12px; gap: 0;
        border-top: 1px solid var(--gray-100);
      }
      .main-nav a { justify-content: center; font-size: 12px; }
      .main-nav a + a { border-left: 1px solid var(--gray-100); }
      .lang-btn { padding: 8px 14px; font-size: 12px; }
      .sidebar { padding-top: 116px; }
      .chapter-title { padding: 10px 12px; }
      .sub-list a { padding: 9px 12px; }
      .main-content { padding: 20px 14px 72px; }
      .content-section { margin-bottom: 44px; }
      .content-section table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; -ms-overflow-style: none; }
      .content-section table th, .content-section table td { padding: 8px 10px; font-size: 13px; }
      .dl-buttons { flex-direction: column; gap: 10px; }
      .dl-btn { width: 100%; justify-content: center; padding: 12px 20px; }
      .website-redirect { flex-direction: column; text-align: center; padding: 20px 16px; gap: 16px; }
      .redirect-link { width: 100%; justify-content: center; }
      .content-section h1 { font-size: 21px; margin-bottom: 12px; }
      .content-section h2 { font-size: 17px; margin: 26px 0 10px; }
      .content-section h3 { font-size: 16px; }
      .content-section p, .content-section ul, .content-section ol { font-size: 15px; line-height: 1.75; }
      .video-container { margin: 18px 0; border-radius: 8px; }
      .warning-note { font-size: 12.5px; }
      .mobile-toc-btn { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 18px; width: 48px; height: 48px; font-size: 20px; }
    }

    /* 移动端补丁 (<480px 小屏手机) */
    @media (max-width: 480px) {
      .lang-switch { gap: 6px; }
      .lang-btn { padding: 6px 8px; font-size: 11px; }
      .header-search { display: none; }
      .main-content { padding: 16px 12px 72px; }
      .content-section h1 { font-size: 19px; }
      .content-section h2 { font-size: 16px; }
      .content-section table th, .content-section table td { padding: 7px 8px; font-size: 12.5px; }
      .website-redirect { padding: 16px 12px; }
    }

    #lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
    #lightbox.open { display: flex; }
    #lightbox img { max-width: 95%; max-height: 90vh; border-radius: 8px; cursor: default; }
    #lb-close { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,0.3); border: none; color: #fff; font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    #lb-close:hover { opacity: 1; }

    /* 语言切换控制 */
    .lang-zh, .lang-en { display: none; }
    body.lang-zh-active .lang-zh { display: block; }
    body.lang-en-active .lang-en { display: block; }
    body.lang-zh-active .lang-zh.inline, body.lang-en-active .lang-en.inline { display: inline; }
    body.lang-zh-active .lang-zh.list-item, body.lang-en-active .lang-en.list-item { display: list-item; }
    /* 默认显示中文 */
    body.lang-zh-active .lang-zh, body.lang-en-active .lang-en { display: block; }
    /* 侧边栏语言切换 */
    .nav-zh, .nav-en { display: none; }
    body.lang-zh-active .nav-zh { display: block; }
    body.lang-en-active .nav-en { display: block; }
