:root {
  /* 布局变量（保留旧模板引用） */
  --max-width: 1280px;
  --nav-height: 72px;
  --section-padding: 104px;

  --easeOutExpo: cubic-bezier(0.16, 1, 0.3, 1);
  --easeOut: cubic-bezier(0.19, 1, 0.22, 1);
  --easeInExpo: cubic-bezier(0.7, 0, 0.84, 0);
  --color-black: #0B1220;
  --color-white: #FFFFFF;
  --color-blue: #2563EB;
  --color-blue-dark: #1D4ED8;
  --color-blue-light: #60A5FA;
  --color-cyan: #0891B2;
  --color-bg-soft: #F5F7FB;
  --color-gray-50: #F5F7FB;
  --color-gray-100: #E8EBF1;
  --color-gray-200: #D7DCE5;
  --color-gray-300: #B2B8C2;
  --color-gray-400: #8A93A3;
  --color-gray-500: #6B7385;
  --color-gray-600: #545D6E;
  --color-gray-700: #3D4557;
  --color-gray-800: #262D3D;
  --color-dark: #0B1220;
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-danger: #DC2626;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(11,18,32,.05), 0 8px 24px rgba(11,18,32,.06);
  --shadow-card-hover: 0 2px 6px rgba(11,18,32,.08), 0 16px 40px rgba(11,18,32,.14);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', 'Source Han Sans SC', sans-serif;
}
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-sans);
      color: var(--color-black); background: var(--color-white);
      font-size: 1rem; font-weight: 400; line-height: 1.6; overflow-x: hidden;
    }

    /* ===== 页面加载过渡 ===== */
    .page-transition {
      position: fixed; inset: 0; background: var(--color-black); z-index: 9999;
      transition: opacity 0.8s var(--easeOutExpo), visibility 0.8s;
    }
    .page-transition.hidden { opacity: 0; visibility: hidden; }

    /* ===== 文字显现 ===== */
    .split-line { display: block; overflow: hidden; }
    .split-word {
      display: inline-block; opacity: 0; transform: translateY(100%);
      transition: opacity 0.9s var(--easeOutExpo), transform 1.2s var(--easeOutExpo);
    }
    .split-triggered .split-word { opacity: 1; transform: translateY(0); }

    /* ===== 导航 ===== */
    .nav {
      position: fixed; top: 0; left: 0; right: 0; height: 80px; z-index: 1000;
      transition: all 0.8s var(--easeOut); background: transparent;
    }
    .nav.scrolled {
      background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    }
    .nav-inner {
      max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 100%;
      display: flex; align-items: center; justify-content: space-between;
    }
    .nav-logo { font-size: 1.25rem; font-weight: 800; color: var(--color-black); text-decoration: none; letter-spacing: -0.02em; }
    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a {
      font-size: 0.9rem; font-weight: 500; color: var(--color-gray-600);
      text-decoration: none; position: relative; transition: color 0.3s ease;
    }
    .nav-links a::after {
      content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
      background: var(--color-blue); border-radius: 1px;
      transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--easeOutExpo);
    }
    .nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
    .nav-links a:hover, .nav-links a.active { color: var(--color-black); }
    .nav-cta {
      display: inline-flex; align-items: center; padding: 10px 24px;
      background: var(--color-blue); color: #fff !important; border-radius: 999px;
      font-size: 0.875rem; font-weight: 600; text-decoration: none;
      transition: all 0.4s var(--easeOutExpo);
    }
    .nav-cta:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }

    .hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; background: none; border: none; padding: 4px; }
    .hamburger span { display: block; width: 24px; height: 2px; background: var(--color-black); transition: all 0.3s ease; border-radius: 1px; }
    .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    .mobile-menu { display: none; position: fixed; inset: 0; background: #fff; z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 32px; opacity: 0; transition: opacity 0.3s ease; }
    .mobile-menu.open { display: flex; opacity: 1; }
    .mobile-menu a { font-size: 1.5rem; font-weight: 600; color: var(--color-black); text-decoration: none; }
    .mobile-menu a:hover { color: var(--color-blue); }

    /* ===== 按钮 ===== */
    .btn-primary {
      display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px;
      background: var(--color-blue); color: #fff; border-radius: 999px;
      font-size: 1rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
      transition: all 0.4s var(--easeOutExpo);
    }
    .btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
    .btn-primary .btn-arrow { transition: transform 0.55s var(--easeOutExpo); }
    .btn-primary:hover .btn-arrow { transform: translateX(4px); }
    .btn-outline {
      display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px;
      background: transparent; color: var(--color-black); border: 2px solid var(--color-black);
      border-radius: 999px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
      transition: all 0.4s var(--easeOutExpo);
    }
    .btn-outline:hover { background: var(--color-black); color: #fff; transform: translateY(-2px); }

    /* ===== 链接箭头 ===== */
    .link-arrow {
      display: inline-flex; align-items: center; gap: 8px; color: var(--color-black);
      font-size: 0.95rem; font-weight: 500; text-decoration: none; position: relative;
    }
    .link-arrow::after {
      content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
      background: var(--color-black); transform: scaleX(0); transform-origin: left;
      transition: transform 0.5s var(--easeOutExpo);
    }
    .link-arrow:hover::after { transform: scaleX(1); }
    .link-arrow svg { transition: transform 0.55s var(--easeOutExpo); }
    .link-arrow:hover svg { transform: translateX(4px); }

    /* ===== 滚动显现 ===== */
    .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--easeOutExpo), transform 1.2s var(--easeOutExpo); }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }

    /* ===== Marquee ===== */
    .marquee-section { padding: 40px 0; overflow: hidden; border-top: 1px solid var(--color-gray-100); border-bottom: 1px solid var(--color-gray-100); }
    .marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
    .marquee-track:hover { animation-play-state: paused; }
    .marquee-item { flex-shrink: 0; padding: 0 48px; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; color: var(--color-gray-300); white-space: nowrap; transition: color 0.3s ease; }
    .marquee-item:hover { color: var(--color-black); }
    .marquee-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--color-blue); margin: auto 0; }
    @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

    /* ===== 文章排版 ===== */
    .article-container { max-width: 720px; margin: 0 auto; padding: 0 24px; }
    .article-body { font-family: 'Noto Serif SC', 'Inter', serif; }
    .article-body h2 {
      font-family: var(--font-sans);
      font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
      letter-spacing: -0.03em; line-height: 1.2;
      margin: 56px 0 24px; color: var(--color-black);
    }
    .article-body h3 {
      font-family: var(--font-sans);
      font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700;
      letter-spacing: -0.02em; line-height: 1.3;
      margin: 40px 0 16px; color: var(--color-black);
    }
    .article-body p {
      font-size: 1.125rem; line-height: 1.9; color: var(--color-gray-700);
      margin-bottom: 24px;
    }
    .article-body img {
      width: 100%; border-radius: 0; margin: 40px 0;
    }
    .article-body blockquote {
      border-left: 3px solid var(--color-blue);
      padding: 24px 32px; margin: 40px 0;
      background: var(--color-gray-50);
      font-style: italic; color: var(--color-gray-600);
      font-size: 1.2rem; line-height: 1.7;
    }
    .article-body ul, .article-body ol {
      padding-left: 24px; margin-bottom: 24px;
    }
    .article-body li {
      font-size: 1.125rem; line-height: 1.8; color: var(--color-gray-700);
      margin-bottom: 8px;
    }
    .article-body strong { color: var(--color-black); font-weight: 700; }

    /* ===== 阅读进度条 ===== */
    .reading-progress {
      position: fixed; top: 80px; left: 0; right: 0; height: 3px; z-index: 999;
      background: transparent;
    }
    .reading-progress-bar {
      height: 100%; width: 0%; background: var(--color-blue);
      transition: width 0.1s linear;
    }

    /* ===== 目录 TOC ===== */
    .toc-sidebar {
      position: fixed; left: 40px; top: 50%; transform: translateY(-50%);
      z-index: 100; width: 200px; display: none;
    }
    .toc-sidebar a {
      display: block; font-size: 0.8rem; color: var(--color-gray-400);
      text-decoration: none; padding: 6px 0 6px 16px;
      border-left: 2px solid var(--color-gray-100);
      transition: all 0.3s ease;
    }
    .toc-sidebar a:hover, .toc-sidebar a.active {
      color: var(--color-blue); border-left-color: var(--color-blue);
    }

    /* ===== 分享按钮 ===== */
    .share-btn {
      display: inline-flex; align-items: center; justify-content: center;
      width: 44px; height: 44px; border: 1px solid var(--color-gray-100);
      border-radius: 50%; color: var(--color-gray-500);
      transition: all 0.4s var(--easeOutExpo); cursor: pointer; background: none;
    }
    .share-btn:hover {
      border-color: var(--color-blue); color: var(--color-blue);
      transform: translateY(-3px); box-shadow: 0 6px 16px rgba(37,99,235,0.15);
    }

    /* ===== 标签 ===== */
    .tag-pill {
      display: inline-block; padding: 6px 16px; font-size: 0.8rem; font-weight: 600;
      border: 1px solid var(--color-gray-100); color: var(--color-gray-600);
      border-radius: 999px; transition: all 0.3s ease; text-decoration: none;
    }
    .tag-pill:hover { border-color: var(--color-blue); color: var(--color-blue); }

    /* ===== 相关文章卡片 ===== */
    .related-card { transition: all 0.5s var(--easeOutExpo); display: block; text-decoration: none; color: inherit; }
    .related-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
    .related-card-img {
      width: 100%; aspect-ratio: 16/9; object-fit: cover;
      transform: scale(0.95); transition: transform 0.8s var(--easeOutExpo);
    }
    .related-card:hover .related-card-img { transform: scale(1); }

    /* ===== 上下篇导航 ===== */
    .article-nav {
      display: flex; justify-content: space-between; gap: 32px;
      padding: 48px 0; border-top: 1px solid var(--color-gray-100);
      border-bottom: 1px solid var(--color-gray-100);
    }
    .article-nav-item {
      flex: 1; text-decoration: none; color: inherit;
      padding: 24px 0; transition: all 0.3s ease;
    }
    .article-nav-item:hover .article-nav-title { color: var(--color-blue); }
    .article-nav-label { font-size: 0.8rem; color: var(--color-gray-400); font-weight: 500; margin-bottom: 8px; }
    .article-nav-title {
      font-size: 1.125rem; font-weight: 700; transition: color 0.3s ease;
      font-family: var(--font-sans);
    }
    .article-nav-next { text-align: right; }

    /* ===== Footer ===== */
    .footer { background: var(--color-dark); color: #fff; padding: 80px 0 40px; }
    .footer a { color: var(--color-gray-400); text-decoration: none; transition: color 0.3s ease; font-size: 0.9rem; }
    .footer a:hover { color: #fff; }

    /* ===== 响应式 ===== */
    @media (min-width: 1400px) {
      .toc-sidebar { display: block; }
    }
    @media (max-width: 768px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .article-nav { flex-direction: column; gap: 24px; }
      .article-nav-next { text-align: left; border-top: 1px solid var(--color-gray-100); padding-top: 24px; }
      .footer-cols { grid-template-columns: 1fr !important; gap: 40px !important; }
    }
/* ===== 空标签区不渲染 ===== */
    .article-tags:not(:has(.tag-pill)) { display: none !important; }

/* ===== 正文阅读体验增强 ===== */
    .article-body {
      max-width: 760px;
    }
    .article-body img {
      border-radius: var(--radius-md);
    }
