/* Bootstrap 主题覆盖与页面定制 */

:root {
    --primary: #07c160;
    --primary-hover: #06ad56;
    --hero-blue: #4a90e2;
    --header-height: 64px;
    --header-bg: #fff;
    --header-border: #eee;
    --text: #1a1a1a;
    --text-muted: #666;
    /* 参考图导航配色：蓝为主、粉为强调 */
    --nav-link: #8a8f98;
    --nav-link-active: #5b9bd5;
    --nav-highlight: #e11d48;
    --nav-highlight-bg: rgba(225, 29, 72, 0.08);
    --btn-publish: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    --btn-member-bg: linear-gradient(135deg, #3d4452 0%, #2c3039 100%);
    --tag-new: #ee0a24;
    /* 手机端右侧边栏：浅色主题 */
    --mobile-panel-bg: #f5f6f8;
  }

  /* 全站页面载入：顶部细进度条（首屏解析即插入，见 front_header_nav + page-load-progress.js） */
  .page-load-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    z-index: 2147483646;
    pointer-events: none;
    background: rgba(91, 155, 213, 0.12);
    opacity: 1;
    transition: opacity 0.22s ease;
  }

  html[data-theme='dark'] .page-load-progress {
    background: rgba(126, 184, 230, 0.14);
  }

  .page-load-progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0.08);
    background: linear-gradient(90deg, var(--nav-link-active) 0%, #6eb6e8 50%, var(--nav-highlight) 100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(91, 155, 213, 0.35);
  }

  html[data-theme='dark'] .page-load-progress-bar {
    box-shadow: 0 0 10px rgba(126, 184, 230, 0.25);
  }

  .page-load-progress[data-phase='loading'] .page-load-progress-bar {
    transform: scaleX(0.9);
    transition: transform 10s cubic-bezier(0.05, 0.72, 0.12, 1);
  }

  .page-load-progress.is-done .page-load-progress-bar {
    transform: scaleX(1);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
  }

  .page-load-progress.is-hidden {
    opacity: 0;
    transition: opacity 0.18s ease;
    visibility: hidden;
  }

  @media (prefers-reduced-motion: reduce) {
    .page-load-progress {
      display: none !important;
    }
  }

  /* 侧栏登录卡等：与 article.css 一致，用于 PHP 加类互斥显示 */
  .hidden {
    display: none !important;
  }
  
  /* 深色主题变量（柔和灰阶搭配） */
  html[data-theme="dark"] {
    --key-color: #f8fafc;
    --main-color: #e5eef7;
    --main-shadow: rgba(24, 24, 24, 0.1);
    --muted-color: #b4b6bb;
    --muted-2-color: #888a8f;
    --muted-3-color: #636469;
    --muted-4-color: #43454a;
    --body-bg-color: #292a2d;
    --main-bg-color: #323335;
    /* 映射到全局变量 */
    --header-bg: var(--main-bg-color);
    --header-border: var(--muted-4-color);
    --text: var(--main-color);
    --text-muted: var(--muted-color);
    --nav-link: var(--muted-2-color);
    --nav-link-active: #7eb8e6;
    --nav-highlight: #f472b6;
    --nav-highlight-bg: rgba(244, 114, 182, 0.25);
    --tag-new: #f472b6;
    /* 手机端右侧边栏：深色主题 */
    --mobile-panel-bg: var(--body-bg-color);
  }
  
  /* ========== 顶部导航 - 新设计 ========== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: visible;
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
  }
  
  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
  }
  @media (min-width: 992px) {
    .header-inner {
      flex-wrap: nowrap;
    }
  }
  @media (max-width: 991px) {
    .header-inner {
      padding: 10px 16px;
    }
    .header-nav-wrap { order: 3; width: 100%; }
    .header-toggler { margin-left: auto; }
    .header-search-wrap { display: none; }
    .header-actions {
      margin-right: 0;
    }
  }
  
  .header-logo {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    gap: 0.35rem;
    margin-left: 0;
    margin-right: 1rem;
    position: relative;
    z-index: 0;
  }
  
  @media (min-width: 992px) {
    .header-logo {
      margin-left: 0;
      margin-right: 0.35rem;
    }
  }
  
  @media (max-width: 991px) {
    .header-logo {
      margin-left: 0;
      margin-right: 0.75rem;
    }
  }
  .header-logo:hover { color: var(--text); }
  .header-logo-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
  }

  /* Logo 扫光（轻量高光扫过，不遮挡「简约版」角标） */
  .header-logo-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 45%;
    max-width: 140px;
    height: 38px;
    pointer-events: none;
    border-radius: 3px;
    background: linear-gradient(
      98deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-120%);
    animation: header-logo-shine 4.2s ease-in-out infinite;
    will-change: transform;
  }

  html[data-theme='dark'] .header-logo-wrap::before {
    background: linear-gradient(
      98deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0.32) 50%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  @keyframes header-logo-shine {
    0%,
    28% {
      transform: translateX(-130%);
      opacity: 0;
    }
    32% {
      opacity: 1;
    }
    48% {
      transform: translateX(220%);
      opacity: 1;
    }
    52%,
    100% {
      transform: translateX(220%);
      opacity: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .header-logo-wrap::before {
      display: none;
    }
  }

  .header-logo-img {
    display: block;
    height: 38px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    position: relative;
    z-index: 0;
  }
  /* 浅色模式显示浅色 logo，暗色模式显示暗色 logo */
  .header-logo-img--light {
    display: block;
  }
  .header-logo-img--dark {
    display: none;
  }
  html[data-theme="dark"] .header-logo-img--light {
    display: none;
  }
  html[data-theme="dark"] .header-logo-img--dark {
    display: block;
  }
  .logo-mark { color: var(--primary); }
  .logo-text-wrap {
    position: relative;
    display: inline-block;
    padding-right: 0.55em;
  }
  .logo-text { color: var(--text); }
  .header-logo .logo-tag {
    position: absolute;
    top: -3px;
    right: 0;
    margin-left: 0;
    transform: translate(65%, -18%);
  }
  .logo-tag {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.15em 0.45em;
    background: linear-gradient(135deg, var(--nav-link-active) 0%, #4a8fc8 100%);
    color: #fff;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    z-index: 2;
    pointer-events: none;
  }
  
  .header-toggler {
    /* 触控区域不小于 44px，便于手机端点击 */
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .header-toggler .header-toggler-icon {
    pointer-events: none;
  }
  .header-toggler:hover { background: #f8f8f8; color: var(--nav-link-active); }
  .header-toggler:active { background: #eee; color: var(--nav-link-active); }
  
  /* 搜索：图标按钮 + 点击展开的搜索框 */
  .header-search-wrap {
    position: relative;
    flex-shrink: 0;
  }
  .header-search-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    background: #fff;
    color: var(--nav-link-active);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .header-search-btn:hover {
    background: rgba(91, 155, 213, 0.1);
    color: var(--nav-highlight);
    border-color: rgba(91, 155, 213, 0.35);
  }
  .header-search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    padding: 8px;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 1050;
  }
  .header-search-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .header-search-input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9375rem;
    border: 1px solid var(--header-border);
    border-radius: 6px;
    outline: none;
    transition: border-color .2s ease;
  }
  .header-search-input:focus {
    border-color: var(--nav-link-active);
  }
  
  /* 深色/浅色切换按钮（搜索框后） */
  .header-theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--header-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .header-theme-toggle:hover {
    background: rgba(91, 155, 213, 0.1);
    color: var(--nav-link-active);
    border-color: rgba(91, 155, 213, 0.35);
  }
  @media (min-width: 992px) {
    .header-search-wrap + .header-theme-toggle {
      margin-left: 0.35rem;
    }
  }
  .header-theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
  }
  .header-theme-icon svg {
    display: block;
    color: inherit;
  }
  
  .header-nav-wrap {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    position: relative;
    z-index: 10;
  }
  .header-nav-wrap.show .header-nav { border-top: 1px solid var(--header-border); padding-top: 1rem; margin-top: 1rem; }
  
  /* 主导航内链接靠左，不居中 */
  .header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem 0.6rem;
    margin-left: 0;
  }
  
  /* 电脑端：菜单与 Logo / 右侧工具区留白均衡 */
  @media (min-width: 992px) {
    .header-nav-wrap {
      margin-left: 1rem;
    }
    .header-nav {
      gap: 0.2rem 1.1rem;
    }
    .header-nav-link {
      padding: 0.45rem 0;
    }
  }
  
  .header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--nav-link);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    border-radius: 6px;
    transition: color 0.22s ease, background-color 0.22s ease;
  }
  .header-nav-link:hover { color: var(--nav-highlight); }
  .header-nav-link--active { color: var(--nav-highlight); }
  .header-nav-link--active:hover { color: var(--nav-highlight); }
  .header-nav-link--active::after { transform: scaleX(1); background: var(--nav-highlight); }
  /* 悬停下划线 */
  .header-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--nav-highlight);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .header-nav-link:hover::after,
  .header-nav-link.show::after { transform: scaleX(1); }
  .header-nav-link--icon::after { display: none; }
  
  .header-tag {
    font-size: 0.6rem;
    font-weight: 400;
    padding: 0.12em 0.45em;
    background: var(--tag-new);
    color: #fff;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.3;
  }
  .header-tag--new { background: var(--tag-new); }
  .header-tag--offer { background: #f59c2d; }
  
  /* 下拉：隐藏 Bootstrap 默认三角，用自定义箭头 */
  .header-dropdown .dropdown-toggle::after { display: none; }
  .header-dropdown-arrow {
    margin-left: 0.25em;
    font-size: 0.7em;
    vertical-align: 0.15em;
    opacity: 0.85;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* 电脑端：hover 展开时箭头朝下 */
  @media (min-width: 992px) {
    .header-dropdown:hover .header-dropdown-arrow {
      transform: rotate(90deg);
    }
  }
  .header-dropdown-menu {
    margin-top: 0.5rem;
    padding: 0.35rem;
    border-radius: 8px;
    border: 1px solid var(--header-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .header-dropdown-menu .dropdown-divider {
    display: none;
  }
  .header-dropdown-item {
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .header-dropdown-item:hover { color: var(--nav-highlight); }
  
  /* 电脑端：二级菜单 hover 即显示 */
  @media (min-width: 992px) {
    .header-dropdown {
      position: relative;
    }
    .header-dropdown .header-dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      margin-top: 0;
      padding-top: 8px;
      min-width: 9rem;
    }
    .header-dropdown .header-dropdown-menu::before {
      content: "";
      position: absolute;
      top: -4px;
      left: -4px;
      right: -4px;
      height: 16px;
    }
    .header-dropdown:hover .header-dropdown-menu,
    .header-dropdown .header-dropdown-menu:hover {
      display: block !important;
    }
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
  }
  
  .header-actions-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  .header-icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--nav-link);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, background .15s ease;
  }
  .header-icon-btn:hover { color: var(--nav-link-active); background: rgba(91, 155, 213, .08); }
  .header-icon-btn--badge { position: relative; }
  .header-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.65rem;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #ff4d4f;
    border-radius: 8px;
  }
  
  .btn-header {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: none;
    transition: opacity .15s ease, filter .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }
  .btn-header--primary {
    background: var(--btn-publish);
    color: #fff;
  }
  .btn-header--primary:hover { filter: brightness(1.05); color: #fff; }
  .btn-header--member {
    background: var(--btn-member-bg);
    color: #fff;
  }
  .btn-header--member i { color: #f0c14b; }
  .btn-header--member:hover { opacity: .92; color: #fff; }
  .btn-header--member:hover i { color: #f0c14b; }
  
  @media (min-width: 992px) {
    .header-nav-wrap { display: flex !important; }
  }
  
  /* ========== 手机端左侧抽屉菜单（重新设计） ========== */
  /* 遮罩：始终在 DOM 中，用 opacity 做淡入淡出，避免 display 导致无动画 */
  .header-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .header-drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  @media (max-width: 991px) {
    /* 抽屉打开时整体 header 提高层级，避免被主内容（轮播等）盖住 */
    .site-header:has(.header-nav-wrap.show) {
      z-index: 1070;
    }
    .header-inner {
      position: relative;
      overflow: visible;
    }
    /* 关闭：抽屉滑出视口，动画结束后再隐藏 visibility */
    .header-nav-wrap.collapse:not(.show),
    .header-nav-wrap:not(.show) {
      transform: translateX(-100%);
      visibility: hidden;
      pointer-events: none;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
    }
    /* 展开：先可见再滑入，z-index 高于主内容与遮罩，避免被轮播等盖住 */
    .header-nav-wrap.collapse.show,
    .header-nav-wrap.show {
      transform: translateX(0);
      visibility: visible;
      pointer-events: auto;
      display: flex !important;
      flex-direction: column;
      height: 100vh !important;
      min-height: 100vh !important;
      overflow: visible !important;
      opacity: 1 !important;
      z-index: 1070 !important;
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* 抽屉始终 display:flex，便于做 transform 动画（覆盖 Bootstrap .collapse 的 display:none） */
    .header-nav-wrap {
      position: fixed;
      left: 0;
      top: 0;
      width: 300px;
      max-width: 88vw;
      height: 100vh;
      min-height: 100vh;
      display: flex !important;
      flex-direction: column;
      z-index: 1070 !important;
      background: linear-gradient(180deg, #fefefe 0%, #f8f9fc 100%);
      border: none;
      border-right: 1px solid rgba(0, 0, 0, 0.06);
      padding: 0;
      box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
      overflow-y: auto;
      overflow-x: hidden;
    }
  
    /* 手机端抽屉：搜索 + 深色切换 同一行 */
    .header-drawer-top {
      display: flex;
      align-items: stretch;
      gap: 8px;
      margin: 14px 12px 12px;
    }
    .header-drawer-top .header-drawer-search {
      flex: 1;
      min-width: 0;
      margin: 0;
    }
    .header-theme-toggle-drawer {
      flex-shrink: 0;
      width: 44px;
      height: 44px;
      border-radius: 10px;
      border: 1px solid transparent;
      background: rgba(0, 0, 0, 0.045);
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }
    .header-theme-toggle-drawer:hover {
      background: rgba(91, 155, 213, 0.1);
      color: var(--nav-link-active);
    }
    /* 手机端抽屉：搜索框（与菜单风格统一） */
    .header-drawer-search {
      display: flex;
      align-items: center;
      gap: 0;
      margin: 14px 8px 12px;
      padding: 0;
      min-height: 44px;
      background: rgba(0, 0, 0, 0.045);
      border-radius: 10px;
      border: 1px solid transparent;
      transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .header-drawer-search:focus-within {
      background: #fff;
      border-color: rgba(0, 0, 0, 0.08);
      box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.15);
    }
    .header-drawer-search-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      flex-shrink: 0;
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    .header-drawer-search-input {
      flex: 1;
      min-width: 0;
      height: 42px;
      padding: 0 12px 0 0;
      font-size: 0.9375rem;
      border: none;
      background: transparent;
      outline: none;
    }
    .header-drawer-search-input::placeholder {
      color: var(--text-muted);
    }
  
    /* 抽屉内导航区：一行三个菜单 */
    .header-nav-wrap .header-nav {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin: 0;
      padding: 12px 8px 16px;
      align-items: start;
    }
    .header-nav-wrap .header-nav-link {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 8px;
      margin: 0;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--text);
      border-radius: 8px;
      border: none;
      border-bottom: none;
      transition: background 0.2s ease, color 0.2s ease;
      text-align: center;
    }
    .header-nav-wrap .header-nav-link:hover {
      color: var(--nav-highlight);
    }
    .header-nav-wrap .header-nav-link--active {
      color: var(--nav-highlight);
    }
    .header-nav-wrap .header-nav-link--active:hover {
      color: var(--nav-highlight);
    }
    .header-nav-wrap .header-nav-link::after {
      display: none;
    }
    .header-nav-wrap .header-nav-link:last-of-type {
      border-bottom: none;
    }
  
    /* 抽屉内下拉菜单（占一格，与其他菜单对齐） */
    .header-nav-wrap .header-dropdown {
      width: 100%;
      min-height: 40px;
      display: block;
    }
    .header-nav-wrap .header-dropdown .header-nav-link {
      width: 100%;
      min-height: 40px;
      justify-content: center;
    }
    /* 展开二级菜单时占满整行，避免 grid 错乱 */
    .header-nav-wrap .header-dropdown:has(.dropdown-menu.show) {
      grid-column: 1 / -1;
      width: 100%;
    }
    .header-nav-wrap .header-dropdown:has(.dropdown-menu.show) .header-nav-link {
      justify-content: center;
    }
    .header-nav-wrap .header-dropdown-menu {
      position: static !important;
      transform: none !important;
      margin: 0 4px 4px;
      padding: 4px;
      border-radius: 8px;
      border: 1px solid rgba(0, 0, 0, 0.06);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
      width: calc(100% - 8px) !important;
      min-width: 0 !important;
      max-width: none !important;
    }
    .header-nav-wrap .header-dropdown-item {
      padding: 8px 10px;
      border-radius: 6px;
    }
  
    /* 移动端抽屉底部：用户登录/注册 */
    .header-drawer-user {
      margin-top: auto;
      padding: 16px 12px 24px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
    .header-drawer-user-panel {
      min-height: 0;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    .header-drawer-user-panel-head {
      height: 80px;
    }
    .header-drawer-user .hero-user-panel-body {
      padding: 1rem 1rem 1.25rem;
    }
    .header-drawer-user .hero-user-avatar {
      width: 56px;
      height: 56px;
      margin-top: -32px;
      margin-bottom: 0.5rem;
    }
    .header-drawer-user .hero-user-greeting {
      margin-bottom: 0.75rem;
      font-size: 0.875rem;
    }
    .header-drawer-user .hero-user-btns {
      margin-bottom: 0;
    }
    .header-drawer-user .hero-user-btn {
      padding: 0.5rem 0.6rem;
      font-size: 0.8125rem;
    }
  
    /* 抽屉内操作区 */
    .header-nav-wrap .header-actions {
      margin: 0;
      padding: 16px 16px 24px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    .header-nav-wrap .header-actions-icons {
      justify-content: center;
      gap: 8px;
    }
    .header-nav-wrap .header-icon-btn {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      font-size: 1.15rem;
      background: rgba(0, 0, 0, 0.04);
    }
    .header-nav-wrap .header-icon-btn:hover {
      background: rgba(91, 155, 213, 0.12);
      color: var(--nav-link-active);
    }
    .header-nav-wrap .header-actions-btns {
      width: 100%;
    }
    .header-nav-wrap .btn-header--member {
      width: 100%;
      justify-content: center;
      padding: 12px 1rem;
      font-size: 0.9375rem;
      border-radius: 10px;
    }
  }
  
  /* 左右双栏 */
  .hero-two-col {
    padding: 24px 12px 0;
  }
  .hero-two-col-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: stretch;
  }
  .hero-two-col-left {
    flex: 1;
    min-width: 0;
  }
  .hero-two-col-right {
    width: 300px;
    flex-shrink: 0;
  }
  
  /* 页面内容区：左右两栏 */
  .content-two-col {
    padding: 16px 12px 3rem;
  }
  .content-two-col-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 14px;
    align-items: stretch;
  }
  .content-two-col-left {
    flex: 1;
    min-width: 0;
  }
  .content-two-col-right {
    width: 300px;
    flex-shrink: 0;
  }
  
  /* 网站底部 */
  .site-footer {
    margin-top: auto;
    padding-top: 2.75rem;
    padding-bottom: 2rem;
    padding-left: 12px;
    padding-right: 12px;
    background: #f8f9fa;
  }
  .site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
  }
  .site-footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 1.15rem;
  
  }
  .site-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .site-footer-logo {
    display: inline-block;
    text-decoration: none;
  }
  .site-footer-logo:hover {
    text-decoration: none;
    opacity: 0.9;
  }
  .site-footer-logo-img {
    display: block;
    height: 46px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
  }
  .site-footer-logo-img--light {
    display: block;
  }
  .site-footer-logo-img--dark {
    display: none;
  }
  html[data-theme="dark"] .site-footer-logo-img--light {
    display: none;
  }
  html[data-theme="dark"] .site-footer-logo-img--dark {
    display: block;
  }
  .site-footer-tag {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.2em 0.5em;
    background: #07c160;
    color: #fff;
    border-radius: 3px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .site-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 1rem;
  }
  .site-footer-links a {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
  }
  .site-footer-links a:hover {
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .site-footer-friend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 1rem 0 1.1rem;
   
  }
  .site-footer-friend-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .site-footer-friend-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.85rem;
  }
  .site-footer-friend-links a {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-decoration: none;
  }
  .site-footer-friend-links a:hover {
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding-top: 1.15rem;
  }
  .site-footer-copy,
  .site-footer-icp {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin: 0;
  }
  .site-footer-icp a {
    color: var(--text-muted);
    text-decoration: none;
  }
  .site-footer-icp a:hover {
    color: var(--nav-link-active);
    text-decoration: underline;
  }
  @media (max-width: 575px) {
    .site-footer {
      padding: 1.35rem 12px 1.5rem;
    }
    .site-footer-top {
      flex-direction: column;
      align-items: flex-start;
      padding-bottom: 1rem;
    }
    .site-footer-links {
      gap: 0 0.75rem;
    }
    .site-footer-friend {
      padding: 0.85rem 0 0.95rem;
    }
    .site-footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      padding-top: 1rem;
    }
  }
  
  .content-main-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }
  .content-main-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 2rem;
    color: var(--text-muted);
  }
  .content-main-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
  }
  .content-main-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
  }
  .content-main-desc {
    font-size: 0.9375rem;
    margin: 0;
  }
  .content-main-inner {
    padding: 1.1rem 1.2rem 1.15rem;
    color: var(--text);
    background: linear-gradient(180deg, rgba(91, 155, 213, 0.045) 0%, transparent 48%);
    border-radius: 0 0 12px 12px;
  }
  .content-main-welcome {
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--text);
    margin: 0 0 0.35rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(91, 155, 213, 0.18);
    position: relative;
  }
  .content-main-welcome::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.75rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--nav-link-active), rgba(91, 155, 213, 0.25));
  }
  .content-main-intro {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.55rem 0 0.95rem;
    line-height: 1.6;
    max-width: 38rem;
  }
  .content-main-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(91, 155, 213, 0.14);
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
  }
  .content-main-actions li {
    margin: 0;
  }
  .content-main-actions li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.055);
  }
  .content-main-action {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0.95rem;
    min-height: 3.4rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
  }
  .content-main-action:hover {
    background: rgba(91, 155, 213, 0.07);
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .content-main-action:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(91, 155, 213, 0.4);
  }
  .content-main-action-glyph {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--nav-link-active);
    background: rgba(91, 155, 213, 0.085);
    border: 1px solid rgba(91, 155, 213, 0.16);
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease;
  }
  .content-main-action-glyph i {
    font-style: normal;
  }
  .content-main-action:hover .content-main-action-glyph {
    background: rgba(91, 155, 213, 0.14);
    border-color: rgba(91, 155, 213, 0.24);
  }
  .content-main-action-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
  }
  .content-main-action-title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.28;
  }
  .content-main-action-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
  }
  .content-main-action:hover .content-main-action-desc {
    color: var(--text-muted);
  }
  .content-main-action-go {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--nav-link);
    opacity: 0.55;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease,
      color 0.18s ease;
  }
  .content-main-action-go i {
    font-style: normal;
  }
  .content-main-action:hover .content-main-action-go {
    color: var(--nav-link-active);
    opacity: 1;
    transform: translateX(3px);
  }

  @media (max-width: 767px) {
    .content-main-inner {
      padding: 0.88rem 0.95rem 0.95rem;
    }
    .content-main-welcome {
      font-size: 1.0625rem;
      padding-bottom: 0.4rem;
      margin-bottom: 0.28rem;
    }
    .content-main-intro {
      font-size: 0.8125rem;
      margin: 0.5rem 0 0.8rem;
    }
    .content-main-action {
      gap: 0.65rem;
      padding: 0.7rem 0.8rem;
      min-height: 3.15rem;
    }
    .content-main-action-glyph {
      width: 2.2rem;
      height: 2.2rem;
      font-size: 0.9rem;
    }
    .content-main-action-title {
      font-size: 0.875rem;
    }
    .content-main-action-desc {
      font-size: 0.6875rem;
    }
  }
  .content-side-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    min-height: 100px;
    margin-top: 12px;
  }
  .content-side-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    color: var(--text-muted);
    text-align: center;
  }
  .content-side-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
  }
  .content-side-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
  }
  
  /* 侧边组合块：使用提示 + 推荐阅读 */
  .content-side-combo {
    min-height: 0;
  }
  .content-side-section {
    margin-bottom: 1.25rem;
  }
  .content-side-section:last-child {
    margin-bottom: 0;
  }
  .content-side-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
  }
  .content-side-section-title i {
    opacity: 0.85;
  }
  .content-side-tips {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .content-side-tip {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
  }
  .content-side-tip:last-child {
    margin-bottom: 0;
  }
  .content-side-tip-icon {
    position: absolute;
    left: 0;
    top: 0.2em;
    font-size: 0.625rem;
    color: var(--nav-link-active);
    opacity: 0.9;
  }
  .content-side-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .content-side-links li {
    margin-bottom: 0.45rem;
  }
  .content-side-links li:last-child {
    margin-bottom: 0;
  }
  .content-side-link {
    font-size: 0.8125rem;
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 0.35rem 0;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .content-side-link:hover {
    color: var(--nav-link-active);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.03);
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
  }
  .content-side-tip--empty,
  .content-side-link-empty {
    color: var(--text-muted, #666);
    font-size: 0.8rem;
  }
  
  /* 图片卡片区：图片入口卡片 */
  .feature-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 14px;
  }
  .feature-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 2 / 1;
    background: #f1f3f5;
  }
  .feature-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
    transition: transform 0.3s ease;
  }
  .feature-card:hover .feature-card-img {
    transform: scale(1.06);
  }
  
  @media (max-width: 1199px) {
    .feature-cards { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 991px) {
    .feature-cards {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-top: 12px;
    }
  }
  @media (max-width: 575px) {
    .feature-cards {
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      margin-top: 8px;
    }
    .feature-card {
      border-radius: 6px;
      aspect-ratio: 1.6 / 1;
    }
  }
  
  /* 内容卡片区：带渐变横幅的教程/功能卡 */
  .content-cards-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
  }
  .content-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  .content-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
  }
  .content-card-banner {
    position: relative;
    min-height: 100px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
  }
  .content-card-banner--1 {
    background: linear-gradient(135deg, #5b9bd5 0%, #6b7bd8 50%, #8b6bb8 100%);
  }
  .content-card-banner--2 {
    background: linear-gradient(135deg, #4a90e2 0%, #5b7bc8 50%, #7b6bb8 100%);
  }
  .content-card-banner-inner {
    position: relative;
    z-index: 1;
  }
  .content-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.3;
  }
  .content-card-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    color: #fff;
    margin-bottom: 0.5rem;
  }
  .content-card-tag--green {
    background: rgba(32, 201, 151, 0.9);
  }
  .content-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
  }
  .content-card-cta i {
    font-size: 0.9rem;
  }
  .content-card-banner-figures {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.85;
  }
  .content-card-fig {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
  }
  .content-card-fig--2 {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .content-card-body {
    padding: 0.85rem 1.25rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .content-card-desc {
    font-size: 0.8125rem;
    color: var(--text);
    margin: 0 0 0.5rem;
    line-height: 1.45;
  }
  .content-card-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .content-card-meta-tags span {
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }
  .content-card-meta-tags .bi-folder2 {
    color: #5b9bd5;
  }
  .content-card-meta-tags .bi-hash {
    color: var(--text-muted);
  }
  .content-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--text-muted);
  }
  .content-card-author {
    color: var(--text-muted);
  }
  .content-card-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .content-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }
  .content-card-stats .bi-chat-dots,
  .content-card-stats .bi-eye,
  .content-card-stats .bi-hand-thumbs-up {
    font-size: 0.75rem;
    opacity: 0.8;
  }
  @media (max-width: 767px) {
    .content-cards-wrap {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 10px;
    }
    .content-card-banner {
      min-height: 88px;
      padding: 0.85rem 1rem;
    }
    .content-card-title {
      font-size: 0.9375rem;
    }
    .content-card-body {
      padding: 0.7rem 1rem 0.85rem;
    }
    .content-card-desc {
      font-size: 0.75rem;
    }
  }
  @media (max-width: 575px) {
    .content-card-banner-figures {
      right: 0.5rem;
    }
    .content-card-fig {
      width: 30px;
      height: 30px;
      font-size: 0.95rem;
    }
    .content-card-fig--2 {
      width: 26px;
      height: 26px;
      font-size: 0.85rem;
    }
  }
  
  /* 文章内容卡片（功能模块区下方）：大屏一行 4 个；随宽度递减列数 */
  .article-cards-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
  }
  .article-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  .article-card:hover {
    text-decoration: none;
    color: inherit;
  }
  .article-card:hover .article-card-heading,
  .article-card:hover .article-card-desc {
    color: var(--nav-highlight);
  }
  .article-card-banner {
    position: relative;
    min-height: 90px;
    height: 115px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
  }
  /* 缩略图：铺满横幅区域 */
  .article-card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  /* 缩略图上方的半透明遮罩，保证文字可读 */
  .article-card-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.04) 100%);
    z-index: 0.5;
  }
  .article-card-banner--1 {
    background: linear-gradient(135deg, #3b82b6 0%, #0ea5e9 50%, #06b6d4 100%);
  }
  .article-card-banner--2 {
    background: linear-gradient(135deg, #5b9bd5 0%, #6b7bd8 50%, #8b6bb8 100%);
  }
  .article-card-banner--3 {
    background: linear-gradient(135deg, #4a90e2 0%, #6366f1 50%, #8b5cf6 100%);
  }
  .article-card-banner-inner {
    position: relative;
    z-index: 1;
  }
  .article-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.35;
  }
  .article-card-tag {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.9);
    font-size: 0.6875rem;
    color: #fff;
    margin-bottom: 0.5rem;
  }
  .article-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
  }
  .article-card-cta i {
    font-size: 0.8rem;
  }
  .article-card-figures {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.9;
    z-index: 1;
  }
  .article-card-fig {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
  }
  .article-card-fig:last-child {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
  .article-card-body {
    padding: 0.6rem 0.75rem 0.7rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .article-card-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.3rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
  }
  .article-card-desc {
    font-size: 0.6875rem;
    color: var(--text);
    margin: 0 0 0.35rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
  }
  .article-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.4rem;
    margin-bottom: 0.4rem;
  }
  .article-card-tags--footer {
    margin-bottom: 0;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
  }
  .article-card-stats--date {
    flex-shrink: 0;
  }
  .article-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    background: rgba(91, 155, 213, 0.15);
    color: var(--nav-link-active);
    font-size: 0.5625rem;
  }
  .article-card-pill .bi-folder2 {
    font-size: 0.625rem;
  }
  .article-card-hash {
    font-size: 0.5625rem;
    color: var(--text-muted);
  }
  .article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.5625rem;
    color: var(--text-muted);
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  .article-card-author {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
  }
  .article-card-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(91, 155, 213, 0.2);
    color: var(--nav-link-active);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  .article-card-author-avatar i {
    font-size: 0.5625rem;
    line-height: 1;
    display: block;
  }
  .article-card-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .article-card-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .article-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
  }
  .article-card-stats .bi-chat-dots,
  .article-card-stats .bi-eye,
  .article-card-stats .bi-hand-thumbs-up {
    font-size: 0.5625rem;
    opacity: 0.85;
  }
  @media (max-width: 1199px) {
    .article-cards-section {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (max-width: 991px) {
    .article-cards-section {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
  }
  @media (max-width: 767px) {
    .article-cards-section {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 575px) {
    .article-cards-section {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      margin-top: 10px;
    }
    .article-card {
      border-radius: 6px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    .article-card-banner {
      min-height: 72px;
      height: 88px;
      padding: 0.4rem 0.5rem;
    }
    .article-card-body {
      padding: 0.45rem 0.5rem 0.5rem;
    }
    .article-card-heading {
      font-size: 0.75rem;
      margin-bottom: 0.25rem;
    }
    .article-card-desc {
      font-size: 0.6875rem;
      line-height: 1.35;
      -webkit-line-clamp: 2;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .article-card-tags {
      gap: 0.2rem;
      margin-bottom: 0.35rem;
    }
    .article-card-tags--footer {
      gap: 0.2rem 0.3rem;
      margin-bottom: 0;
    }
    .article-card-pill {
      font-size: 0.5625rem;
      padding: 0.12rem 0.35rem;
    }
    .article-card-footer {
      flex-wrap: wrap;
      gap: 0.25rem;
    }
    .article-card-author {
      font-size: 0.5625rem;
    }
    .article-card-author-avatar {
      width: 16px;
      height: 16px;
    }
    .article-card-author-avatar i {
      font-size: 0.5rem;
    }
    .article-card-stats {
      font-size: 0.5625rem;
    }
    .article-card-stats span {
      gap: 0.15rem;
    }
  }
  
  /* 文章卡片分页 */
  .article-cards-pagination-wrap {
    margin-top: 1rem;
    padding: 0.5rem 0;
  }
  .article-cards-pagination .page-link {
    color: var(--text);
    border-color: rgba(0, 0, 0, 0.1);
    font-size: 0.8125rem;
    padding: 0.35rem 0.6rem;
  }
  .article-cards-pagination .page-link--prev i,
  .article-cards-pagination .page-link--next i {
    font-size: 0.75rem;
    display: inline-block;
    line-height: 1;
  }
  .article-cards-pagination .page-link:hover {
    color: var(--nav-link-active);
    background: rgba(91, 155, 213, 0.08);
    border-color: rgba(91, 155, 213, 0.3);
  }
  .article-cards-pagination .page-item.active .page-link {
    background-color: var(--nav-link-active);
    border-color: var(--nav-link-active);
    color: #fff;
  }
  .article-cards-pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
  }
  .article-cards-pagination .page-item--ellipsis .page-link--ellipsis {
    pointer-events: none;
    cursor: default;
    color: var(--text-muted);
    border-color: transparent;
    background: transparent;
  }
  .article-cards-pagination .page-item--ellipsis .page-link--ellipsis:hover {
    color: var(--text-muted);
    background: transparent;
    border-color: transparent;
  }
  html[data-theme="dark"] .article-cards-pagination .page-link {
    color: var(--main-color);
    background: var(--main-bg-color);
  }
  html[data-theme="dark"] .article-cards-pagination .page-link:hover {
    color: var(--nav-link-active);
    background: rgba(126, 184, 230, 0.15);
    border-color: var(--muted-3-color);
  }
  html[data-theme="dark"] .article-cards-pagination .page-item.active .page-link {
    background-color: var(--nav-link-active);
    border-color: var(--nav-link-active);
    color: #fff;
  }
  html[data-theme="dark"] .article-cards-pagination .page-item.disabled .page-link {
    color: var(--muted-color);
    background: var(--muted-4-color);
  }
  html[data-theme="dark"] .article-cards-pagination .page-item--ellipsis .page-link--ellipsis {
    color: var(--muted-color);
    background: transparent;
    border-color: transparent;
  }
  html[data-theme="dark"] .article-cards-pagination .page-item--ellipsis .page-link--ellipsis:hover {
    color: var(--muted-color);
    background: transparent;
  }
  
  /* 分类：仅保留卡片网格，无外层块与标题 */
  .content-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.1rem;
    margin-top: 1.25rem;
  }
  .content-category-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }
  /* 分类卡片：上排左缩略图右标题/简介/文章数/更多文章，下排整行文章列表 */
  .content-category-card--twocol .content-category-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem 1rem 0.85rem 1rem;
    gap: 0;
  }
  .content-category-card--twocol .content-category-top .content-category-thumb {
    width: 100px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 8px;
    margin-right: 1rem;
    overflow: hidden;
  }
  .content-category-card--twocol .content-category-top .content-category-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .content-category-card--twocol .content-category-top .content-category-badge {
    top: 4px;
    right: 4px;
    font-size: 0.5rem;
    padding: 0.12rem 0.35rem;
  }
  .content-category-card--twocol .content-category-top .content-category-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }
  .content-category-card--twocol .content-category-top .content-category-body .content-category-card-title {
    margin: 0 0 0.35rem;
  }
  .content-category-card--twocol .content-category-top .content-category-body .content-category-desc {
    margin: 0 0 0.5rem;
    line-height: 1.45;
  }
  .content-category-card--twocol .content-category-top .content-category-meta {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  .content-category-card--twocol .content-category-list {
    padding: 0.75rem 1rem 1rem;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .content-category-card--twocol .content-category-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
  }
  .content-category-card--twocol .content-category-list li:last-child {
    margin-bottom: 0;
  }
  .content-category-thumb {
    position: relative;
    height: 88px;
    overflow: hidden;
  }
  .content-category-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .content-category-thumb--1 { background: linear-gradient(135deg, #4a90e2 0%, #5b9bd5 100%); }
  .content-category-thumb--2 { background: linear-gradient(135deg, #e8a54b 0%, #f0b85c 100%); }
  .content-category-thumb--3 { background: linear-gradient(135deg, #6b7bd8 0%, #8b6bb8 100%); }
  .content-category-thumb--4 { background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%); }
  .content-category-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #fff;
    background: rgba(220, 53, 69, 0.9);
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
  }
  .content-category-badge i {
    font-size: 0.625rem;
  }
  .content-category-body {
    padding: 0.7rem 0.9rem 0.9rem;
  }
  .content-category-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem;
  }
  .content-category-desc {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
    line-height: 1.4;
  }
  .content-category-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .content-category-count {
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
  }
  .content-category-count i {
    font-size: 0.75rem;
    opacity: 0.8;
  }
  .content-category-more {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #fff;
    background: rgba(91, 155, 213, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    text-decoration: none;
  }
  .content-category-more:hover {
    background: var(--nav-link-active);
    color: #fff;
    text-decoration: none;
  }
  .content-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .content-category-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    padding-left: 0.7rem;
    position: relative;
  }
  .content-category-list li:last-child {
    margin-bottom: 0;
  }
  .content-category-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e85d6a;
  }
  .content-category-list a {
    font-size: 0.6875rem;
    color: var(--text);
    text-decoration: none;
    flex: 1;
    min-width: 0;
  }
  .content-category-list a:hover {
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .content-category-time {
    font-size: 0.5625rem;
    color: var(--text-muted);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
  }
  .content-category-time i {
    font-size: 0.625rem;
    opacity: 0.8;
  }
  @media (max-width: 991px) {
    .content-category-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.85rem 1rem;
    }
  }
  @media (max-width: 575px) {
    .content-category-grid {
      grid-template-columns: 1fr;
      gap: 0.85rem;
      margin-top: 1rem;
    }
    .content-category-thumb {
      height: 78px;
    }
    .content-category-body {
      padding: 0.6rem 0.8rem 0.8rem;
    }
    .content-category-card-title {
      font-size: 0.8125rem;
    }
    .content-category-desc {
      font-size: 0.625rem;
    }
    .content-category-list a {
      font-size: 0.6875rem;
    }
    .content-category-time {
      font-size: 0.5625rem;
    }
  }
  
  /* 左栏通用内容块 */
  .content-block {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 14px;
    overflow: hidden;
  }
  .content-block-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .content-block-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
  }
  .content-block-placeholder .content-block-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
  }
  .content-block--list .content-block-placeholder { min-height: 200px; }
  .content-block--extra .content-block-placeholder { min-height: 140px; }
  
  /* 功能模块区：数据、公告、帮助 */
  .feature-module-body {
    padding: 0.75rem 1rem 1rem;
  }
  .feature-module-section {
    margin-bottom: 0.85rem;
  }
  .feature-module-section:last-child {
    margin-bottom: 0;
  }
  .feature-module-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .feature-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .feature-tool-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(91, 155, 213, 0.08);
    color: var(--text);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .feature-tool-item:hover {
    background: rgba(91, 155, 213, 0.15);
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .feature-tool-item i {
    font-size: 1rem;
    opacity: 0.9;
  }
  .feature-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .feature-stat-item {
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
  }
  .feature-stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nav-link-active);
    line-height: 1.2;
  }
  .feature-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    display: block;
  }
  .feature-module-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .feature-module-section--news {
    margin-bottom: 0;
  }
  .feature-news-item {
    display: block;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--text);
    font-size: 0.8125rem;
    transition: color 0.2s ease;
  }
  .feature-news-item:hover {
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .feature-news-date {
    display: inline-block;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    margin-right: 0.5rem;
    border-radius: 4px;
    background: var(--nav-highlight);
    vertical-align: 0.05em;
  }
  .feature-news-title {
    color: var(--nav-link);
  }
  .feature-news-more {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .feature-news-more:hover {
    text-decoration: underline;
    color: var(--nav-link-active);
  }
  .feature-news-more i {
    font-size: 0.6875rem;
    vertical-align: 0.05em;
  }
  .feature-help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .feature-help-item {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .feature-help-item:hover {
    text-decoration: none;
    transform: translateY(-1px);
  }
  .feature-help-item i {
    font-size: 0.8125rem;
    opacity: 0.95;
  }
  /* 新手指南：绿色 */
  .feature-help-item--guide {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
  }
  .feature-help-item--guide:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
  }
  /* 常见问题：橙色 */
  .feature-help-item--faq {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
  }
  .feature-help-item--faq:hover {
    background: rgba(249, 115, 22, 0.2);
    color: #c2410c;
  }
  /* 推荐下载：蓝色 */
  .feature-help-item--download {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
  }
  .feature-help-item--download:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
  }
  /* 功能建议：紫色 */
  .feature-help-item--suggest {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
  }
  .feature-help-item--suggest:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #6d28d9;
  }
  @media (max-width: 575px) {
    .feature-module-row {
      grid-template-columns: 1fr;
    }
    .feature-module-body {
      padding: 0.6rem 0.85rem 0.85rem;
    }
    .feature-stats {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.4rem;
    }
    .feature-stat-item {
      padding: 0.4rem;
    }
    .feature-stat-num {
      font-size: 1rem;
    }
    .feature-stat-label {
      font-size: 0.625rem;
    }
  }
  
  /* 右栏通用侧边块 */
  .content-side-block {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 12px;
    overflow: hidden;
  }
  .content-side-block-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .content-side-block-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
  }
  .content-side-block-placeholder i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    opacity: 0.6;
  }
  
  /* 推荐/热门：热门文章列表 */
  .content-side-block--hot .hot-list {
    padding: 0.5rem 0;
  }
  .hot-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.8125rem;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .hot-item:hover {
    background: rgba(91, 155, 213, 0.06);
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .hot-item-icon {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    color: #ea580c;
    font-size: 0.75rem;
  }
  .hot-item:hover .hot-item-icon {
    color: #c2410c;
  }
  .hot-item-title {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hot-item-views {
    flex-shrink: 0;
    font-size: 0.6875rem;
    color: var(--text-muted);
  }
  .hot-item:hover .hot-item-views {
    color: var(--nav-link-active);
  }
  
  /* 快捷入口：紧凑横排，图标+短文案 */
  .content-side-block--shortcuts .shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0.75rem 1rem 1rem;
  }
  .shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .shortcut-btn i {
    font-size: 1rem;
    opacity: 0.9;
  }
  .shortcut-btn:hover {
    background: rgba(91, 155, 213, 0.12);
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .shortcut-btn:active {
    background: rgba(91, 155, 213, 0.2);
  }
  .shortcuts-empty-hint {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--text-muted, #666);
  }
  
  /* 功能通知：列表样式 */
  .content-side-block--notice .notice-list {
    padding: 0.5rem 0;
  }
  .notice-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.45;
    transition: background-color 0.25s ease, color 0.25s ease;
  }
  .notice-item:hover {
    background: rgba(91, 155, 213, 0.06);
    color: var(--nav-link-active);
  }
  .notice-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 2.25rem;
    transition: color 0.25s ease;
  }
  .notice-item:hover .notice-date {
    color: var(--nav-link-active);
  }
  .notice-title {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.25s ease;
  }
  .notice-item:hover .notice-title {
    color: var(--nav-link-active);
  }
  .notice-tag {
    flex-shrink: 0;
    font-size: 0.625rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
  }
  .notice-tag--new {
    background: rgba(238, 10, 36, 0.12);
    color: var(--tag-new);
  }
  .notice-more-wrap {
    padding: 0.5rem 1rem 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
  }
  .notice-more {
    font-size: 0.8125rem;
    color: var(--nav-link-active);
    text-decoration: none;
    transition: color 0.22s ease, opacity 0.22s ease;
  }
  .notice-more:hover {
    text-decoration: underline;
    color: var(--nav-link-active);
    opacity: 0.85;
  }
  
  @media (max-width: 991px) {
    .content-two-col {
      padding: 20px 16px 2.5rem;
    }
    .content-two-col-inner {
      flex-direction: column;
      gap: 16px;
    }
    .content-two-col-right {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
    }
  }
  
  .hero-user-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    overflow: hidden;
    height: 100%;
    min-height: 280px;
  }
  .hero-user-panel-head {
    height: 140px;
    overflow: hidden;
    background: #f1f3f5;
  }
  .hero-user-panel-head-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .hero-user-panel-body {
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
  }
  .hero-user-avatar {
    width: 88px;
    height: 88px;
    margin: -48px auto 0.75rem;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
    overflow: hidden;
  }
  .hero-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .hero-user-greeting {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: #6c757d;
  }
  .hero-user-btns {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  /* 双区块侧栏登录卡：避免其它规则与 .hidden 同优先级时仍露出 flex */
  .hero-user-btns.hidden {
    display: none !important;
  }
  .hero-user-logout-wrap {
    margin-bottom: 1rem;
  }
  .hero-user-logout-wrap.hidden {
    display: none !important;
  }
  .hero-user-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: opacity .2s ease;
  }
  .hero-user-btn:hover { color: #fff; }
  .hero-user-btn--login {
    background-image: linear-gradient(to right, #1FA2FF 0%, #12D8FA 51%, #1FA2FF 100%);
    background-size: 200% auto;
   
    border-radius: 10px;
    transition: background-position .5s ease;
  }
  .hero-user-btn--login:hover {
    background-position: right center;
    color: #fff;
  }
  .hero-user-btn--reg {
    background-image: linear-gradient(to right, #FF512F 0%, #F09819 51%, #FF512F 100%);
    background-size: 200% auto;
   
    border-radius: 10px;
    transition: background-position .5s ease;
  }
  .hero-user-btn--reg:hover {
    background-position: right center;
    color: #fff;
  }
  .hero-user-btn--center {
    background-image: linear-gradient(to right, #1FA2FF 0%, #12D8FA 51%, #1FA2FF 100%);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 0 20px rgba(31, 162, 255, 0.22);
    border-radius: 10px;
    border: none;
    outline: none;
    text-decoration: none;
    transition: background-position .5s ease, box-shadow .2s ease, transform .2s ease;
  }
  .hero-user-btn--center:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(18, 216, 250, 0.35);
    transform: translateY(-1px);
  }
  .hero-user-btn--center:active {
    transform: translateY(0);
  }
  .hero-user-btn--center:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 216, 250, 0.25), 0 8px 20px rgba(18, 216, 250, 0.25);
  }
  .hero-user-btn--logout {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 0 20px rgba(238, 238, 238, 0.9);
    border-radius: 10px;
    border: none;
    outline: none;
    transition: background-position .5s ease, box-shadow .2s ease, transform .2s ease;
  }
  .hero-user-btn--logout:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(221, 36, 118, 0.35);
    transform: translateY(-1px);
  }
  .hero-user-btn--logout:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.24);
  }
  .hero-user-btn--logout:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22), 0 8px 20px rgba(220, 38, 38, 0.18);
  }
  .hero-user-member {
    margin-top: 0.75rem;
    text-align: left;
    padding: 0.7rem 0.85rem 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(91, 155, 213, 0.22);
    border-left: 3px solid var(--nav-link-active, #5b9bd5);
    background: var(--header-bg, #fff);
    box-shadow: 0 1px 4px rgba(91, 155, 213, 0.08);
  }
  .hero-user-member--vip {
    background: linear-gradient(
      135deg,
      rgba(91, 155, 213, 0.07) 0%,
      var(--header-bg, #fff) 48%,
      rgba(225, 29, 72, 0.04) 100%
    );
    border-color: rgba(91, 155, 213, 0.28);
    box-shadow: 0 2px 10px rgba(91, 155, 213, 0.1);
  }
  .hero-user-member--guest {
    border-left-color: rgba(91, 155, 213, 0.45);
    background: var(--header-bg, #fff);
  }
  .hero-user-member-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted, #666);
    margin-bottom: 0.4rem;
  }
  .hero-user-member-label i {
    color: var(--nav-link-active, #5b9bd5);
    font-size: 0.875rem;
  }
  .hero-user-member-status {
    margin: 0 0 0.3rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text, #1a1a1a);
  }
  .hero-user-member-status--none {
    color: var(--text, #1a1a1a);
    font-weight: 600;
  }
  .hero-user-member-status--vip {
    font-weight: 500;
    color: var(--text, #1a1a1a);
  }
  .hero-user-member-status--oneline {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .hero-user-member-status--oneline > .hero-user-member-level,
  .hero-user-member-status--oneline > .hero-user-member-tag {
    flex-shrink: 0;
  }
  .hero-user-member-status--oneline > .hero-user-member-expire {
    flex-shrink: 0;
    min-width: 0;
  }
  .hero-user-member-expire {
    color: var(--text-muted, #666);
    font-weight: 500;
    white-space: nowrap;
  }
  .hero-user-member-level {
    color: var(--nav-link-active, #5b9bd5);
    font-weight: 700;
  }
  .hero-user-member-status-sep {
    color: var(--text-muted, #666);
    font-weight: 400;
    opacity: 0.75;
  }
  .hero-user-member-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--nav-highlight, #e11d48);
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: var(--nav-highlight-bg, rgba(225, 29, 72, 0.08));
    vertical-align: baseline;
  }
  .hero-user-member-hint {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted, #666);
  }
  @media (max-width: 991px) {
    .hero-two-col {
      padding: 20px 16px 0;
    }
    .hero-two-col-inner {
      flex-direction: column;
      gap: 16px;
    }
    .hero-two-col-right {
      display: none;
    }
  }
  
  /* 轮播 Banner - 左栏内 */
  .hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  .hero-carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    max-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    background: #f1f3f5;
  }
  /* 翻页效果：横向滑动条，通过 translateX 切换 */
  .hero-carousel-slides {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    width: calc(100% * var(--carousel-count, 4));
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .hero-carousel-slide {
    flex: 0 0 calc(100% / var(--carousel-count, 4));
    width: calc(100% / var(--carousel-count, 4));
    height: 100%;
  }
  .hero-carousel-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    vertical-align: middle;
  }
  .hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
    flex-shrink: 0;
  }
  .hero-carousel-arrow svg { display: block; width: 24px; height: 24px; }
  .hero-carousel-arrow:hover { background: rgba(0,0,0,.65); color: #fff; }
  .hero-carousel-prev { left: 16px; right: auto; }
  .hero-carousel-next { left: auto; right: 16px; }
  .hero-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
  }
  .hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
  }
  .hero-carousel-dot:hover { background: rgba(255,255,255,.6); }
  .hero-carousel-dot.is-active { background: #fff; transform: scale(1.15); }
  
  /* 电脑端：箭头仅鼠标悬停轮播图时显示 */
  @media (min-width: 992px) {
    .hero-carousel-arrow {
      opacity: 0;
      transition: opacity 0.25s ease, background 0.2s ease;
    }
    .hero-carousel:hover .hero-carousel-arrow {
      opacity: 1;
    }
  }
  
  /* 平板及以下：降低高度、箭头左右分开不叠加 */
  @media (max-width: 991px) {
    .hero-carousel-inner {
      aspect-ratio: 2.4 / 1;
      max-height: none;
      border-radius: 10px;
    }
    .hero-carousel-arrow {
      width: 38px;
      height: 38px;
    }
    .hero-carousel-arrow svg { width: 20px; height: 20px; }
    .hero-carousel-prev { left: 10px; right: auto; }
    .hero-carousel-next { left: auto; right: 10px; }
    .hero-carousel-dots {
      bottom: 0.75rem;
      gap: 6px;
    }
    .hero-carousel-dot {
      width: 8px;
      height: 8px;
    }
  }
  
  /* 小屏手机：更矮、箭头左右分明 */
  @media (max-width: 576px) {
    .hero-two-col-left {
      min-width: 0;
      overflow: hidden;
    }
    .hero-carousel-inner {
      aspect-ratio: 2.2 / 1;
      border-radius: 8px;
    }
    .hero-carousel-arrow {
      width: 32px;
      height: 32px;
    }
    .hero-carousel-arrow svg { width: 18px; height: 18px; }
    .hero-carousel-prev { left: 8px; right: auto; }
    .hero-carousel-next { left: auto; right: 8px; }
    .hero-carousel-dots {
      bottom: 0.5rem;
      gap: 5px;
    }
    .hero-carousel-dot {
      width: 6px;
      height: 6px;
    }
  }
  
  /* 卡片悬停 */
  .hover-card {
    transition: box-shadow .2s ease, transform .2s ease;
  }
  .hover-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
    transform: translateY(-2px);
  }
  
  /* 功能卡片图标区 */
  .card-icon-wrap {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 内容块右侧插图 */
  .content-card-img {
    min-height: 120px;
  }
  .content-card-img-1 {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  }
  .content-card-img-2 {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  }
  .content-card-img-3 {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  }
  .content-card-img-4 {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
  }
  
  /* 右侧浮动按钮悬停 */
  .position-fixed .btn-light:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary);
  }
  
  /* 移动端内容块：小屏时插图在下 */
  @media (max-width: 768px) {
    .content-card .flex-row-reverse {
      flex-direction: column !important;
    }
    .content-card .flex-row-reverse .rounded-end {
      border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius) !important;
    }
    .content-card-img {
      min-height: 80px;
    }
  }
  
  /* ========== 手机端整体适配 ========== */
  @media (max-width: 767px) {
    body {
      overflow-x: hidden;
    }
    .site-header {
      overflow-x: hidden;
    }
    /* 抽屉打开时勿裁切 position:fixed 的菜单（含 :has 与 body 类双保险） */
    .site-header:has(.header-nav-wrap.show),
    body.header-drawer-open .site-header {
      overflow-x: visible;
      overflow-y: visible;
    }
    .header-inner {
      padding-left: 16px;
      padding-right: 16px;
      min-width: 0;
    }
    .header-logo {
      margin-left: 0 !important;
      margin-right: 0.75rem !important;
      min-width: 0;
    }
    .header-nav-wrap {
      padding-left: 16px;
      padding-right: 16px;
    }
    .hero-two-col {
      padding-left: 16px;
      padding-right: 16px;
    }
    .container {
      padding-left: 16px;
      padding-right: 16px;
      max-width: 100%;
    }
  }
  
  /* 手机端：注册/登录弹窗层级置于左侧抽屉之上 */
  @media (max-width: 991px) {
    .modal-backdrop {
      z-index: 1080 !important;
    }
    .modal {
      z-index: 1090 !important;
    }
  }
  
  /* 注册弹窗：双栏布局，左说明右表单 */
  .register-modal-dialog {
    max-width: 560px;
  }
  .register-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.06);
    background: #fff;
  }
  .register-modal-header {
    background: #fff;
    color: var(--text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.25rem;
    justify-content: center;
    position: relative;
  }
  .register-modal-header .modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
  }
  .register-modal-header .btn-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  .register-modal-body {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    min-height: 320px;
  }
  #registerForm.register-form {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
    width: 100%;
  }
  .register-modal-left {
    flex: 0 0 42%;
    min-width: 0;
    background: linear-gradient(160deg, #e8f4fd 0%, #f0f7ff 50%, #e6f0fa 100%);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .register-promo {
    width: 100%;
  }
  .register-left-fields {
    width: 100%;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(91, 155, 213, 0.2);
  }
  .register-left-fields .form-control {
    background: #fff;
  }
  .register-promo-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.35rem;
  }
  .register-promo-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.45;
  }
  .register-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
  }
  .register-steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .register-step-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--nav-link-active);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .register-modal-right {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.5rem 1.5rem;
  }
  .register-form .form-label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
  }
  .register-required {
    color: #dc3545;
  }
  .register-form .form-control {
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--header-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .register-form .form-control:focus {
    border-color: var(--nav-link-active);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15);
    outline: none;
  }
  .register-form .form-control::placeholder {
    color: #999;
  }
  .register-form .mb-3 { margin-bottom: 0.875rem !important; }
  .register-code-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
  }
  .register-code-row .form-control {
    flex: 1;
    min-width: 0;
  }
  .register-code-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    color: #fff;
    border: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.15s ease;
  }
  .register-code-btn:hover {
    color: #fff;
    opacity: 0.92;
  }
  .register-code-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    opacity: 0.8;
  }
  .register-code-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .register-code-msg {
    font-size: 0.8125rem;
    min-height: 1.25rem;
  }
  .register-code-msg--success {
    color: #0d6e0d;
  }
  .register-code-msg--error {
    color: #c0392b;
  }
  .register-submit-msg {
    font-size: 0.8125rem;
    min-height: 1.25rem;
  }
  .register-submit-msg--success {
    color: #0d6e0d;
  }
  .register-submit-msg--error {
    color: #c0392b;
  }
  .register-form .form-check-label { font-size: 0.8125rem; color: var(--text-muted); }
  .register-form-link {
    color: var(--nav-link-active);
    text-decoration: none;
  }
  .register-form-link:hover {
    text-decoration: underline;
    color: #4a8bc2;
  }
  .register-submit-btn {
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 0.25rem;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
  }
  .register-submit-btn:hover {
    color: #fff;
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.35);
  }
  
  @media (max-width: 575px) {
    #registerModal.modal .modal-dialog {
      max-width: 340px;
      width: 100%;
      margin: 0 auto;
    }
    #registerModal.modal { justify-content: center; align-items: center; }
    .register-modal-content { border-radius: 10px; }
    .register-modal-header { padding: 0.7rem 1rem; }
    .register-modal-header .modal-title { font-size: 0.875rem; }
    .register-modal-body { flex-direction: column; min-height: 0; padding: 0; }
    #registerForm.register-form { flex-direction: column; }
    .register-modal-left {
      flex: none;
      padding: 0.75rem 1rem 0.65rem;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .register-promo { display: none; }
    .register-left-fields { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .register-modal-right { padding: 0.75rem 1rem 1rem; }
    .register-form .form-label { font-size: 0.6875rem; }
    .register-form .form-control { padding: 0.4rem 0.65rem; font-size: 0.8125rem; }
    .register-form .mb-3 { margin-bottom: 0.6rem !important; }
    .register-code-row { flex-wrap: wrap; gap: 0.4rem; }
    .register-code-btn { flex: 1; min-width: 88px; padding: 0.4rem 0.6rem; font-size: 0.6875rem; }
    .register-code-hint { font-size: 0.625rem; margin-top: 0.25rem; }
    .register-form .form-check-label { font-size: 0.6875rem; }
    .register-submit-btn { padding: 0.5rem 0.85rem; font-size: 0.8125rem; margin-top: 0.2rem; }
  }
  
  /* 最新动态详情弹窗：顶部图片 + 标题 + 正文 + 底部按钮，风格统一 */
  .news-detail-modal-dialog {
    max-width: 440px;
  }
  .news-detail-modal-content {
    border-radius: 14px;
    border: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), 0 0 1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: #fff;
  }
  .news-detail-modal-cover {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #4a90e2 0%, #5b9bd5 100%);
  }
  .news-detail-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .news-detail-modal-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
  }
  .news-detail-modal-header {
    position: relative;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: none;
    align-items: flex-start;
  }
  .news-detail-modal-header .modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
  }
  .news-detail-body {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
  }
  .news-detail-body p {
    margin: 0 0 0.65rem;
  }
  .news-detail-body p:last-child {
    margin-bottom: 0;
  }
  .news-detail-body.markdown-body img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
  }
  .news-detail-body.markdown-body h1,
  .news-detail-body.markdown-body h2,
  .news-detail-body.markdown-body h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
  }
  .news-detail-body.markdown-body pre,
  .news-detail-body.markdown-body code {
    font-size: 0.875em;
    border-radius: 4px;
  }
  .news-detail-body.markdown-body pre {
    padding: 0.75rem;
    overflow-x: auto;
    background: var(--bg-secondary, #f5f5f5);
  }
  .news-detail-modal-footer {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
    justify-content: center;
  }
  .news-detail-btn-close {
    min-width: 88px;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    border: none;
  }
  .news-detail-btn-close:hover {
    background: linear-gradient(135deg, #4a8bc2 0%, #3d7ab0 100%);
    border: none;
    opacity: 0.95;
  }
  
  /* 登录弹窗 */
  .login-modal-dialog {
    max-width: 400px;
  }
  .login-modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.06);
    background: #fff;
  }
  .login-modal-header {
    background: #fff;
    color: var(--text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.25rem;
    justify-content: center;
    position: relative;
  }
  .login-modal-header .modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
  }
  .login-modal-header .btn-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  .login-modal-body {
    padding: 1.5rem 1.5rem 1.75rem;
  }
  .login-form .form-label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
  }
  .login-form .form-control {
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--header-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .login-form .form-control:focus {
    border-color: var(--nav-link-active);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15);
    outline: none;
  }
  .login-form .mb-3 { margin-bottom: 0.875rem !important; }
  .login-code-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
  }
  .login-code-row .form-control {
    flex: 1;
    min-width: 0;
  }
  .login-code-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    color: #fff;
    border: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
  }
  .login-code-btn:hover {
    color: #fff;
    opacity: 0.92;
  }
  .login-code-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    opacity: 0.8;
  }
  .login-code-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  .login-code-msg {
    font-size: 0.8125rem;
    min-height: 1.25rem;
  }
  .login-code-msg--success { color: #0d6e0d; }
  .login-code-msg--error { color: #c0392b; }
  .login-submit-msg {
    font-size: 0.8125rem;
    min-height: 1.25rem;
  }
  .login-submit-msg--success { color: #0d6e0d; }
  .login-submit-msg--error { color: #c0392b; }
  .login-submit-btn {
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-top: 0.25rem;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
  }
  .login-submit-btn:hover {
    color: #fff;
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.35);
  }
  @media (max-width: 575px) {
    #loginModal.modal .modal-dialog {
      max-width: 340px;
      width: 100%;
      margin: 0 auto;
    }
    #loginModal.modal { justify-content: center; align-items: center; }
    .login-modal-content { border-radius: 10px; }
    .login-modal-header { padding: 0.7rem 1rem; }
    .login-modal-header .modal-title { font-size: 0.875rem; }
    .login-modal-body { padding: 0.75rem 1rem 1rem; }
    .login-form .form-label { font-size: 0.75rem; }
    .login-form .form-control { padding: 0.4rem 0.65rem; font-size: 0.8125rem; }
    .login-form .mb-3 { margin-bottom: 0.6rem !important; }
    .login-code-row { flex-wrap: wrap; gap: 0.4rem; }
    .login-code-btn { flex: 1; min-width: 88px; padding: 0.4rem 0.6rem; font-size: 0.6875rem; }
    .login-code-hint { font-size: 0.625rem; margin-top: 0.25rem; }
    .login-submit-btn { padding: 0.5rem 0.85rem; font-size: 0.8125rem; margin-top: 0.2rem; }
  }
  
  /* 深色主题：柔和背景与卡片（body-bg / main-bg） */
  html[data-theme="dark"] body {
    background: var(--body-bg-color);
  }
  html[data-theme="dark"] .site-header {
    background: var(--main-bg-color);
    box-shadow: 0 1px 0 var(--main-shadow);
  }
  html[data-theme="dark"] .header-theme-toggle,
  html[data-theme="dark"] .header-search-btn,
  html[data-theme="dark"] .header-toggler {
    background: var(--muted-4-color);
    color: var(--muted-color);
  }
  html[data-theme="dark"] .header-theme-toggle:hover,
  html[data-theme="dark"] .header-search-btn:hover {
    background: var(--muted-3-color);
    color: var(--main-color);
    border-color: var(--muted-2-color);
  }
  html[data-theme="dark"] .header-toggler:hover {
    color: var(--main-color);
  }
  html[data-theme="dark"] .header-search-dropdown {
    background: var(--main-bg-color);
    box-shadow: 0 8px 24px var(--main-shadow);
  }
  html[data-theme="dark"] .header-search-input {
    background: var(--body-bg-color);
    color: var(--main-color);
  }
  html[data-theme="dark"] .header-dropdown-menu {
    background: var(--main-bg-color);
    box-shadow: 0 8px 24px var(--main-shadow);
    border: none;
  }
  html[data-theme="dark"] .header-dropdown-item {
    color: var(--main-color);
  }
  html[data-theme="dark"] .header-dropdown-item:hover {
    background: var(--muted-4-color);
    color: var(--nav-highlight);
  }
  html[data-theme="dark"] .content-main-card,
  html[data-theme="dark"] .content-block,
  html[data-theme="dark"] .content-side-card,
  html[data-theme="dark"] .content-side-block,
  html[data-theme="dark"] .hero-user-panel {
    background: var(--main-bg-color);
    box-shadow: 0 2px 12px var(--main-shadow);
  }
  html[data-theme="dark"] .shortcut-btn {
    background: var(--muted-4-color);
    color: var(--main-color);
  }
  html[data-theme="dark"] .shortcut-btn:hover {
    background: rgba(91, 155, 213, 0.25);
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .content-category-card {
    background: var(--main-bg-color);
    box-shadow: 0 2px 12px var(--main-shadow);
  }
  html[data-theme="dark"] .content-category-card-title {
    color: var(--main-color);
  }
  html[data-theme="dark"] .content-category-desc {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-category-meta {
    border-bottom-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .content-category-count {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-category-more {
    background: rgba(126, 184, 230, 0.9);
    color: #fff;
  }
  html[data-theme="dark"] .content-category-more:hover {
    background: var(--nav-link-active);
    color: #fff;
  }
  html[data-theme="dark"] .content-category-list li::before {
    background: #e85d6a;
  }
  html[data-theme="dark"] .content-category-list a {
    color: var(--main-color);
  }
  html[data-theme="dark"] .content-category-list a:hover {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .content-category-time {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-card {
    background: var(--main-bg-color);
    box-shadow: 0 2px 12px var(--main-shadow);
  }
  html[data-theme="dark"] .content-card:hover {
    box-shadow: 0 4px 20px var(--main-shadow);
  }
  html[data-theme="dark"] .content-card-body {
    border-top-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .content-card-desc {
    color: var(--main-color);
  }
  html[data-theme="dark"] .content-card-meta-tags span {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-card-meta-tags .bi-folder2 {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .content-card-author,
  html[data-theme="dark"] .content-card-stats {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .article-card {
    background: var(--main-bg-color);
    box-shadow: 0 2px 12px var(--main-shadow);
  }
  html[data-theme="dark"] .article-card-body {
    border-top-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .article-card-heading,
  html[data-theme="dark"] .article-card-desc {
    color: var(--main-color);
  }
  html[data-theme="dark"] .article-card-pill {
    background: rgba(126, 184, 230, 0.2);
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .article-card-hash {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .article-card-footer {
    border-top-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .article-card-author,
  html[data-theme="dark"] .article-card-stats {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-main-inner {
    background: linear-gradient(180deg, rgba(126, 184, 230, 0.08) 0%, transparent 52%);
  }
  html[data-theme="dark"] .content-main-welcome {
    border-bottom-color: rgba(126, 184, 230, 0.22);
  }
  html[data-theme="dark"] .content-main-welcome::after {
    background: linear-gradient(90deg, var(--nav-link-active), rgba(126, 184, 230, 0.3));
  }
  html[data-theme="dark"] .content-main-welcome,
  html[data-theme="dark"] .content-main-action-title {
    color: var(--main-color);
  }
  html[data-theme="dark"] .content-main-intro {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-main-actions {
    background: rgba(42, 44, 48, 0.55);
    border-color: rgba(126, 184, 230, 0.2);
  }
  html[data-theme="dark"] .content-main-actions li + li {
    border-top-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .content-main-action {
    color: var(--main-color);
  }
  html[data-theme="dark"] .content-main-action:hover {
    background: rgba(126, 184, 230, 0.12);
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .content-main-action:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(126, 184, 230, 0.45);
  }
  html[data-theme="dark"] .content-main-action-glyph {
    background: rgba(126, 184, 230, 0.12);
    border-color: rgba(126, 184, 230, 0.22);
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .content-main-action:hover .content-main-action-glyph {
    background: rgba(126, 184, 230, 0.22);
    border-color: rgba(126, 184, 230, 0.35);
  }
  html[data-theme="dark"] .content-main-action-desc {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-main-action-go {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-main-action:hover .content-main-action-go {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .content-block-title,
  html[data-theme="dark"] .content-side-block-title {
    border-bottom-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .content-side-section-title {
    color: var(--main-color);
    border-bottom-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .content-side-tip {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .content-side-link {
    color: var(--main-color);
  }
  html[data-theme="dark"] .content-side-link:hover {
    color: var(--nav-link-active);
    background: var(--muted-4-color);
  }
  html[data-theme="dark"] .feature-module-section-title {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .feature-tool-item,
  html[data-theme="dark"] .feature-help-item {
    background: rgba(126, 184, 230, 0.12);
    color: var(--main-color);
  }
  html[data-theme="dark"] .feature-tool-item:hover,
  html[data-theme="dark"] .feature-help-item:hover {
    background: rgba(126, 184, 230, 0.22);
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .feature-help-item--guide {
    background: rgba(34, 197, 94, 0.22);
    color: #4ade80;
  }
  html[data-theme="dark"] .feature-help-item--guide:hover {
    background: rgba(34, 197, 94, 0.32);
    color: #86efac;
  }
  html[data-theme="dark"] .feature-help-item--faq {
    background: rgba(249, 115, 22, 0.22);
    color: #fb923c;
  }
  html[data-theme="dark"] .feature-help-item--faq:hover {
    background: rgba(249, 115, 22, 0.32);
    color: #fdba74;
  }
  html[data-theme="dark"] .feature-help-item--download {
    background: rgba(59, 130, 246, 0.22);
    color: #60a5fa;
  }
  html[data-theme="dark"] .feature-help-item--download:hover {
    background: rgba(59, 130, 246, 0.32);
    color: #93c5fd;
  }
  html[data-theme="dark"] .feature-help-item--suggest {
    background: rgba(139, 92, 246, 0.22);
    color: #a78bfa;
  }
  html[data-theme="dark"] .feature-help-item--suggest:hover {
    background: rgba(139, 92, 246, 0.32);
    color: #c4b5fd;
  }
  html[data-theme="dark"] .feature-stat-item {
    background: var(--muted-4-color);
  }
  html[data-theme="dark"] .feature-stat-num {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .feature-stat-label {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .feature-news-item {
    border-bottom-color: var(--muted-4-color);
    color: var(--main-color);
  }
  html[data-theme="dark"] .feature-news-item:hover {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .feature-news-date {
    color: #fff;
    background: var(--nav-highlight);
  }
  html[data-theme="dark"] .notice-item:hover {
    background: rgba(184, 182, 187, 0.08);
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .notice-item:hover .notice-date,
  html[data-theme="dark"] .notice-item:hover .notice-title {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .hot-item {
    color: var(--main-color);
  }
  html[data-theme="dark"] .hot-item:hover {
    background: rgba(126, 184, 230, 0.12);
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .hot-item-icon {
    color: #fb923c;
  }
  html[data-theme="dark"] .hot-item:hover .hot-item-icon {
    color: #fdba74;
  }
  html[data-theme="dark"] .hot-item-views {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .hot-item:hover .hot-item-views {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .notice-more-wrap {
    border-top-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .hero-user-panel-head {
    background: var(--muted-4-color);
    border-bottom: 1px solid var(--muted-4-color);
  }
  html[data-theme="dark"] .hero-user-btn--logout {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%);
    background-size: 200% auto;
    color: #fff;
    border: none;
    box-shadow: 0 0 16px rgba(221, 36, 118, 0.26);
  }
  html[data-theme="dark"] .hero-user-btn--logout:hover {
    background-position: right center;
    color: #fff;
    box-shadow: 0 10px 24px rgba(221, 36, 118, 0.42);
  }
  html[data-theme="dark"] .hero-user-btn--center {
    box-shadow: 0 0 16px rgba(18, 216, 250, 0.25);
  }
  html[data-theme="dark"] .hero-user-btn--center:hover {
    box-shadow: 0 10px 24px rgba(18, 216, 250, 0.38);
  }
  html[data-theme="dark"] .hero-user-btn--logout:focus-visible {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3), 0 10px 24px rgba(239, 68, 68, 0.24);
  }
  html[data-theme="dark"] .hero-user-member {
    background: var(--main-bg-color);
    border-color: rgba(126, 184, 230, 0.22);
    border-left-color: var(--nav-link-active);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  }
  html[data-theme="dark"] .hero-user-member--vip {
    background: linear-gradient(
      135deg,
      rgba(126, 184, 230, 0.12) 0%,
      var(--main-bg-color) 50%,
      rgba(244, 114, 182, 0.09) 100%
    );
    border-color: rgba(126, 184, 230, 0.32);
  }
  html[data-theme="dark"] .hero-user-member-label {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .hero-user-member-label i {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .hero-user-member-status,
  html[data-theme="dark"] .hero-user-member-status--vip {
    color: var(--main-color);
  }
  html[data-theme="dark"] .hero-user-member-level {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .hero-user-member-status-sep {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .hero-user-member-tag {
    color: var(--nav-highlight);
    background: var(--nav-highlight-bg);
  }
  html[data-theme="dark"] .hero-user-member-status--none {
    color: var(--main-color);
  }
  html[data-theme="dark"] .hero-user-member-hint {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .hero-user-member-expire {
    color: var(--muted-2-color);
  }
  html[data-theme="dark"] .feature-card {
    box-shadow: 0 2px 8px var(--main-shadow);
  }
  html[data-theme="dark"] .news-detail-modal-content {
    background: var(--main-bg-color);
    box-shadow: 0 16px 48px var(--main-shadow);
  }
  html[data-theme="dark"] .news-detail-modal-cover {
    background: var(--muted-4-color);
  }
  html[data-theme="dark"] .news-detail-modal-header .modal-title {
    color: var(--main-color);
  }
  html[data-theme="dark"] .news-detail-body {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .news-detail-modal-footer {
    border-top-color: var(--muted-4-color);
    background: rgba(255, 255, 255, 0.03);
  }
  html[data-theme="dark"] .news-detail-btn-close {
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    color: #fff;
  }
  html[data-theme="dark"] .register-modal-content,
  html[data-theme="dark"] .login-modal-content {
    background: var(--main-bg-color);
    box-shadow: 0 16px 40px var(--main-shadow);
  }
  html[data-theme="dark"] .register-modal-header,
  html[data-theme="dark"] .login-modal-header {
    background: var(--muted-4-color);
    border-bottom-color: var(--muted-4-color);
  }
  /* 深色模式：登录弹窗输入框 */
  html[data-theme="dark"] #loginModal .form-control {
    background: var(--body-bg-color);
    color: var(--main-color);
  }
  html[data-theme="dark"] #loginModal .form-control::placeholder {
    color: var(--muted-2-color);
  }
  html[data-theme="dark"] #loginModal .form-control:focus {
    border-color: var(--nav-link-active);
    box-shadow: 0 0 0 3px rgba(126, 184, 230, 0.2);
    background: var(--body-bg-color);
    color: var(--main-color);
  }
  html[data-theme="dark"] .login-code-btn {
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    color: #fff;
  }
  html[data-theme="dark"] .login-code-btn:disabled {
    background: var(--muted-4-color);
  }
  html[data-theme="dark"] .login-code-msg--success { color: #6bc96b; }
  html[data-theme="dark"] .login-code-msg--error { color: #e57373; }
  html[data-theme="dark"] .login-submit-msg--success { color: #6bc96b; }
  html[data-theme="dark"] .login-submit-msg--error { color: #e57373; }
  html[data-theme="dark"] .login-code-hint {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .register-modal-left {
    background: linear-gradient(160deg, rgba(67, 68, 71, 0.6) 0%, rgba(50, 51, 53, 0.5) 100%);
  }
  html[data-theme="dark"] .register-left-fields {
    border-bottom-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .register-left-fields .form-control {
    background: var(--body-bg-color);
    color: var(--main-color);
  }
  /* 深色模式：注册弹窗内所有输入框（右栏邮箱、密码、验证码等） */
  html[data-theme="dark"] #registerModal .form-control {
    background: var(--body-bg-color);
    color: var(--main-color);
  }
  html[data-theme="dark"] #registerModal .form-control::placeholder {
    color: var(--muted-2-color);
  }
  html[data-theme="dark"] #registerModal .form-control:focus {
    border-color: var(--nav-link-active);
    box-shadow: 0 0 0 3px rgba(126, 184, 230, 0.2);
    background: var(--body-bg-color);
    color: var(--main-color);
  }
  html[data-theme="dark"] .register-promo-title { color: var(--main-color); }
  html[data-theme="dark"] .register-promo-desc,
  html[data-theme="dark"] .register-steps { color: var(--muted-color); }
  html[data-theme="dark"] .register-step-num {
    background: var(--nav-link-active);
    color: #fff;
  }
  html[data-theme="dark"] .register-code-btn {
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    color: #fff;
  }
  html[data-theme="dark"] .register-code-btn:disabled {
    background: var(--muted-4-color);
  }
  html[data-theme="dark"] .register-code-hint { color: var(--muted-color); }
  html[data-theme="dark"] .register-code-msg--success { color: #6bc96b; }
  html[data-theme="dark"] .register-code-msg--error { color: #e57373; }
  html[data-theme="dark"] .register-submit-msg--success { color: #6bc96b; }
  html[data-theme="dark"] .register-submit-msg--error { color: #e57373; }
  html[data-theme="dark"] .modal-backdrop {
    opacity: 0.6;
  }
  html[data-theme="dark"] .hero-two-col,
  html[data-theme="dark"] .content-two-col {
    background: var(--body-bg-color);
  }
  html[data-theme="dark"] .site-footer {
    border-top-color: var(--muted-4-color);
    background: var(--main-bg-color);
  }
  html[data-theme="dark"] .site-footer-top {
    border-bottom-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .site-footer-friend {
    border-bottom-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .site-footer-friend-label {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .site-footer-friend-links a {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .site-footer-friend-links a:hover {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .site-footer-tag {
    background: #07c160;
    color: #fff;
  }
  html[data-theme="dark"] .site-footer-links a {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .site-footer-links a:hover {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .site-footer-copy,
  html[data-theme="dark"] .site-footer-icp,
  html[data-theme="dark"] .site-footer-icp a {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .site-footer-icp a:hover {
    color: var(--nav-link-active);
  }
  
  /* 深色模式：手机端左侧抽屉（实色背景，避免透明/backdrop 导致层级错乱） */
  @media (max-width: 991px) {
    html[data-theme="dark"] .header-nav-wrap {
      background: #323335;
      border-right: 1px solid var(--muted-4-color);
      box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    }
    html[data-theme="dark"] .header-nav-wrap.show,
    html[data-theme="dark"] .header-nav-wrap.collapse.show {
      display: flex !important;
      visibility: visible !important;
      transform: translateX(0) !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }
    html[data-theme="dark"] .header-nav-wrap.show .header-nav {
      border-top-color: var(--muted-4-color);
    }
    html[data-theme="dark"] .header-drawer-search {
      background: var(--muted-4-color);
      border-color: transparent;
    }
    html[data-theme="dark"] .header-drawer-search:focus-within {
      background: var(--body-bg-color);
      box-shadow: 0 0 0 2px rgba(126, 184, 230, 0.2);
    }
    html[data-theme="dark"] .header-theme-toggle-drawer {
      background: var(--muted-4-color);
      color: var(--muted-color);
    }
    html[data-theme="dark"] .header-theme-toggle-drawer:hover {
      background: var(--muted-3-color);
      color: var(--main-color);
    }
    html[data-theme="dark"] .header-drawer-search-icon {
      color: var(--muted-color);
    }
    html[data-theme="dark"] .header-drawer-search-input {
      color: var(--main-color);
    }
    html[data-theme="dark"] .header-drawer-search-input::placeholder {
      color: var(--muted-2-color);
    }
    html[data-theme="dark"] .header-nav-wrap .header-nav-link {
      color: var(--main-color);
    }
    html[data-theme="dark"] .header-nav-wrap .header-nav-link:hover,
    html[data-theme="dark"] .header-nav-wrap .header-nav-link--active,
    html[data-theme="dark"] .header-nav-wrap .header-nav-link--active:hover {
      color: var(--nav-highlight);
    }
    html[data-theme="dark"] .header-nav-wrap .header-dropdown-menu {
      background: var(--main-bg-color);
      box-shadow: 0 4px 12px var(--main-shadow);
    }
    html[data-theme="dark"] .header-nav-wrap .header-dropdown-item {
      color: var(--main-color);
    }
    html[data-theme="dark"] .header-nav-wrap .header-dropdown-item:hover {
      background: var(--muted-4-color);
      color: var(--nav-highlight);
    }
    html[data-theme="dark"] .header-drawer-user {
      border-top-color: var(--muted-4-color);
    }
    html[data-theme="dark"] .header-drawer-user-panel {
      background: var(--main-bg-color);
      box-shadow: 0 2px 12px var(--main-shadow);
    }
    html[data-theme="dark"] .header-drawer-user-panel-head {
      background: var(--muted-4-color);
    }
    html[data-theme="dark"] .header-drawer-user .hero-user-greeting {
      color: var(--main-color);
    }
    html[data-theme="dark"] .header-nav-wrap .header-actions {
      border-top-color: var(--muted-4-color);
    }
  }
  
  /* 手机端右侧悬浮：图标按钮 + 展开面板 */
  .mobile-float-wrap {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1040;
    display: flex;
    align-items: stretch;
    flex-direction: row-reverse;
  }
  .mobile-float-btn {
    width: 36px;
    height: 36px;
    align-self: center;
    border-radius: 10px 0 0 10px;
    flex-shrink: 0;
    background: var(--nav-link-active);
    color: #fff;
    border: none;
    box-shadow: -4px 0 16px rgba(91, 155, 213, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
  }
  .mobile-float-btn:hover {
    background: #4a8bc2;
    color: #fff;
  }
  .mobile-float-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
  }
  /* 关闭时显示盒子图标，收起时显示 X */
  .mobile-float-btn-icon--close {
    display: none;
  }
  .mobile-float-btn[aria-expanded="true"] .mobile-float-btn-icon--expand {
    display: none;
  }
  .mobile-float-btn[aria-expanded="true"] .mobile-float-btn-icon--close {
    display: flex;
  }
  .mobile-float-btn[aria-expanded="true"] {
    box-shadow: -4px 0 20px rgba(91, 155, 213, 0.4);
  }
  .mobile-float-panel {
    width: 0;
    height: 100%;
    max-height: 100vh;
    overflow: hidden;
    background: var(--mobile-panel-bg);
    border-radius: 12px 0 0 12px;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
    transition: width 0.28s ease;
    display: flex;
    flex-direction: column;
  }
  .mobile-float-panel.is-open {
    width: 340px;
    max-width: 92vw;
  }
  .mobile-float-panel-inner {
    flex: 1;
    min-height: 0;
    padding: 1rem 1rem 2rem 1.25rem;
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    min-width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* 面板内右侧边栏：占满宽度，与桌面 aside 同结构 */
  .mobile-float-sidebar.content-two-col-right {
    width: 100%;
    max-width: none;
  }
  /* 手机端侧栏：卡片之间上下间距统一 */
  .mobile-float-sidebar > .content-side-block,
  .mobile-float-sidebar > .content-side-card {
    margin-top: 12px;
  }
  .mobile-float-sidebar > .content-side-block:first-child,
  .mobile-float-sidebar > .content-side-card:first-child {
    margin-top: 0;
  }
  
  /* 手机端右侧边栏样式优化：间距、触控区、层次（浅色） */
  .mobile-float-sidebar .content-side-card {
    padding: 1.25rem 1rem;
    min-height: 100px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  .mobile-float-sidebar .content-side-placeholder {
    min-height: 72px;
  }
  .mobile-float-sidebar .content-side-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }
  .mobile-float-sidebar .content-side-text {
    font-size: 0.9375rem;
  }
  .mobile-float-sidebar .content-side-block {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  .mobile-float-sidebar .content-side-block-title {
    font-size: 0.9375rem;
    padding: 0.875rem 1rem;
    border-bottom-width: 1px;
  }
  .mobile-float-sidebar .content-side-block--notice .notice-list {
    padding: 0.25rem 0;
  }
  .mobile-float-sidebar .notice-item {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    gap: 0.5rem;
    align-items: center;
    box-sizing: border-box;
    display: flex;
  }
  .mobile-float-sidebar .notice-date {
    font-size: 0.75rem;
  }
  .mobile-float-sidebar .notice-title {
    flex: 1;
    min-width: 0;
  }
  .mobile-float-sidebar .notice-more-wrap {
    padding: 0.625rem 1rem 0.875rem;
  }
  .mobile-float-sidebar .notice-more {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    min-height: 36px;
    line-height: 1.4;
    box-sizing: border-box;
    border-radius: 8px;
    transition: background-color 0.2s ease;
  }
  .mobile-float-sidebar .notice-more:hover {
    background-color: rgba(91, 155, 213, 0.08);
    text-decoration: none;
  }
  .mobile-float-sidebar .content-side-block-placeholder {
    min-height: 72px;
    padding: 1rem;
    font-size: 0.875rem;
  }
  .mobile-float-sidebar .content-side-block-placeholder i {
    font-size: 1.375rem;
    margin-bottom: 0.35rem;
  }
  
  .mobile-float-panel-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.35rem;
  }
  .mobile-float-panel-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
  }
  /* 手机端右侧边栏：深色主题 */
  html[data-theme="dark"] .mobile-float-panel {
    background: var(--mobile-panel-bg);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
  }
  html[data-theme="dark"] .mobile-float-sidebar .content-side-card,
  html[data-theme="dark"] .mobile-float-sidebar .content-side-block {
    background: var(--main-bg-color);
    box-shadow: 0 2px 12px var(--main-shadow);
  }
  html[data-theme="dark"] .mobile-float-sidebar .content-side-block-title {
    border-bottom-color: var(--muted-4-color);
    color: var(--main-color);
  }
  html[data-theme="dark"] .mobile-float-sidebar .content-side-text,
  html[data-theme="dark"] .mobile-float-sidebar .notice-title {
    color: var(--main-color);
  }
  html[data-theme="dark"] .mobile-float-sidebar .content-side-placeholder,
  html[data-theme="dark"] .mobile-float-sidebar .content-side-block-placeholder,
  html[data-theme="dark"] .mobile-float-sidebar .notice-date {
    color: var(--muted-color);
  }
  html[data-theme="dark"] .mobile-float-sidebar .notice-more-wrap {
    border-top-color: var(--muted-4-color);
  }
  html[data-theme="dark"] .mobile-float-sidebar .notice-more {
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .mobile-float-sidebar .notice-more:hover {
    background-color: rgba(126, 184, 230, 0.15);
    color: var(--nav-link-active);
  }
  html[data-theme="dark"] .mobile-float-panel-title {
    color: var(--main-color);
  }
  html[data-theme="dark"] .mobile-float-panel-desc {
    color: var(--muted-color);
  }

  /* ========== 首页载入：顶栏 / 首屏入场 + 下方区块滚动显现（body.page-home） ========== */
  @keyframes home-header-in {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 小屏：顶栏入场勿对 .site-header 使用 transform，否则会形成 fixed 包含块，
   * 手机抽屉 #headerNav（position:fixed）会被压在窄条里，整页内容盖住菜单。 */
  @keyframes home-header-in-mobile {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes home-hero-left-in {
    from {
      opacity: 0;
      transform: translateX(-18px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes home-hero-right-in {
    from {
      opacity: 0;
      transform: translateX(18px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes home-fade-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .page-home .site-header {
    animation: home-header-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @media (max-width: 991px) {
    .page-home .site-header {
      animation: home-header-in-mobile 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
  }

  .page-home .hero-two-col-left {
    animation: home-hero-left-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
  }

  .page-home .hero-two-col-right {
    animation: home-hero-right-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }

  .page-home .home-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .page-home .home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .page-home .content-two-col-right.home-reveal {
    transform: translateY(18px) translateX(10px);
  }

  .page-home .content-two-col-right.home-reveal.is-visible {
    transform: translateY(0) translateX(0);
  }

  .page-home .content-main-card.home-reveal.is-visible .content-main-actions li .content-main-action {
    animation: home-fade-up 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .page-home .content-main-card.home-reveal.is-visible .content-main-actions li:nth-child(1) .content-main-action {
    animation-delay: 0.04s;
  }
  .page-home .content-main-card.home-reveal.is-visible .content-main-actions li:nth-child(2) .content-main-action {
    animation-delay: 0.11s;
  }
  .page-home .content-main-card.home-reveal.is-visible .content-main-actions li:nth-child(3) .content-main-action {
    animation-delay: 0.18s;
  }
  .page-home .content-main-card.home-reveal.is-visible .content-main-actions li:nth-child(4) .content-main-action {
    animation-delay: 0.25s;
  }

  .page-home .feature-cards.home-reveal.is-visible .feature-card {
    animation: home-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .page-home .feature-cards.home-reveal.is-visible .feature-card:nth-child(1) {
    animation-delay: 0.03s;
  }
  .page-home .feature-cards.home-reveal.is-visible .feature-card:nth-child(2) {
    animation-delay: 0.1s;
  }
  .page-home .feature-cards.home-reveal.is-visible .feature-card:nth-child(3) {
    animation-delay: 0.17s;
  }
  .page-home .feature-cards.home-reveal.is-visible .feature-card:nth-child(4) {
    animation-delay: 0.24s;
  }
  .page-home .feature-cards.home-reveal.is-visible .feature-card:nth-child(5) {
    animation-delay: 0.31s;
  }
  .page-home .feature-cards.home-reveal.is-visible .feature-card:nth-child(6) {
    animation-delay: 0.38s;
  }

  .page-home .content-cards-wrap.home-reveal.is-visible .content-card {
    animation: home-fade-up 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .page-home .content-cards-wrap.home-reveal.is-visible .content-card:nth-child(1) {
    animation-delay: 0.06s;
  }
  .page-home .content-cards-wrap.home-reveal.is-visible .content-card:nth-child(2) {
    animation-delay: 0.14s;
  }

  .page-home .article-cards-section.home-reveal.is-visible .article-card {
    animation: home-fade-up 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(1) {
    animation-delay: 0.03s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(2) {
    animation-delay: 0.08s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(3) {
    animation-delay: 0.13s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(4) {
    animation-delay: 0.18s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(5) {
    animation-delay: 0.23s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(6) {
    animation-delay: 0.28s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(7) {
    animation-delay: 0.33s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(8) {
    animation-delay: 0.38s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(9) {
    animation-delay: 0.43s;
  }
  .page-home .article-cards-section.home-reveal.is-visible .article-card:nth-child(10) {
    animation-delay: 0.48s;
  }

  .page-home .content-category-grid.home-reveal.is-visible .content-category-card {
    animation: home-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .page-home .content-category-grid.home-reveal.is-visible .content-category-card:nth-child(1) {
    animation-delay: 0.04s;
  }
  .page-home .content-category-grid.home-reveal.is-visible .content-category-card:nth-child(2) {
    animation-delay: 0.1s;
  }
  .page-home .content-category-grid.home-reveal.is-visible .content-category-card:nth-child(3) {
    animation-delay: 0.16s;
  }
  .page-home .content-category-grid.home-reveal.is-visible .content-category-card:nth-child(4) {
    animation-delay: 0.22s;
  }
  .page-home .content-category-grid.home-reveal.is-visible .content-category-card:nth-child(5) {
    animation-delay: 0.28s;
  }
  .page-home .content-category-grid.home-reveal.is-visible .content-category-card:nth-child(6) {
    animation-delay: 0.34s;
  }
  .page-home .content-category-grid.home-reveal.is-visible .content-category-card:nth-child(7) {
    animation-delay: 0.4s;
  }
  .page-home .content-category-grid.home-reveal.is-visible .content-category-card:nth-child(8) {
    animation-delay: 0.46s;
  }

  @media (prefers-reduced-motion: reduce) {
    .page-home .site-header,
    .page-home .hero-two-col-left,
    .page-home .hero-two-col-right {
      animation: none !important;
    }

    .page-home .home-reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .page-home .content-main-card.home-reveal.is-visible .content-main-actions li .content-main-action,
    .page-home .feature-cards.home-reveal.is-visible .feature-card,
    .page-home .content-cards-wrap.home-reveal.is-visible .content-card,
    .page-home .article-cards-section.home-reveal.is-visible .article-card,
    .page-home .content-category-grid.home-reveal.is-visible .content-category-card {
      animation: none !important;
    }
  }
  