#kq-header-auth { display: flex; align-items: center; min-height: 40px; }
  #kq-header-auth .header-auth-logged { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
  #kq-header-auth .header-user-menu { position: relative; flex: 0 0 auto; }
  #kq-header-auth .header-login-btn.is-logged-in {
    min-width: 126px;
    height: 42px;
    padding: 0 12px 0 8px;
    border: 1px solid #bfd5fa;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    color: #1f74ea;
    box-shadow: 0 10px 22px rgba(30, 136, 229, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
  #kq-header-auth .header-login-btn.is-logged-in:hover {
    border-color: #98bef8;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  }
  #kq-header-auth .header-login-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(180deg, #f4f8ff 0%, #dce9ff 100%);
    border: 1px solid #d8e5fb;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    color: #1f74ea;
  }
  #kq-header-auth .header-login-label {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
  }
  #kq-header-auth .header-login-indicator {
    width: 12px;
    height: 12px;
    opacity: .76;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }
  #kq-header-auth .auth-user-avatar-fallback {
    text-transform: uppercase;
  }
  #kq-header-auth .auth-user-panel {
    margin: 0 10px 8px;
    padding: 12px 14px 11px;
    border: 1px solid #e4eefc;
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #eef5ff 100%);
  }
  #kq-header-auth .auth-user-panel-name {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    color: #0f4ea6;
    margin-bottom: 3px;
    white-space: nowrap;
  }
  #kq-header-auth .auth-user-panel-id {
    font-size: 12px;
    color: #6b83aa;
  }
  #kq-header-auth .auth-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 190px;
    background: rgba(255,255,255,.98);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(37,99,235,.14);
    border: 1px solid #ddeafb;
    padding: 10px 0 8px;
    z-index: 100002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }
  #kq-header-auth .auth-user-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  #kq-header-auth .auth-user-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 20px);
    min-height: 42px;
    margin: 0 10px;
    padding: 0 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    font: inherit;
    color: #21456f;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 700;
  }
  #kq-header-auth .auth-user-menu-item:hover { background: #f4f8ff; color: #1f74ea; }
  #kq-header-auth .auth-user-menu-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #eef5ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4d7fc2;
    flex: 0 0 auto;
  }
  #kq-header-auth .auth-user-menu-icon svg {
    width: 15px;
    height: 15px;
    display: block;
  }
  #root .App { position: relative; }
  .mobile-nav-grid-item.active {
    color: #1e88e5;
    background: #e3f2fd;
    font-weight: 600;
    border: 1px solid #bbdefb;
  }
  .mobile-nav-custom-btn.active { box-shadow: 0 0 0 2px #1e88e5; }
  /* 平台概况：Vue 下 .info-card-stats 为横向 flex，子级为 .info-stat-item | .info-stat-divider | .info-stat-item；
     轮换层 .kq-hero-stat-face 须同为横向 flex，否则两数字会竖排 */
  #kq-hero-stat-rotator { flex-wrap: nowrap; }
  .kq-hero-stat-face {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  /* 与旧 SPA（main-*.js）一致：桌面 .nav-primary 可裁切，溢出项由 kqReflowDesktopNav 收进「更多工具」；下拉默认隐藏，hover / .kq-more-open 显示，fixed 坐标由脚本写在按钮下方 */
  @media (min-width: 769px) {
    header.header .nav-primary {
      overflow: hidden !important;
    }
    header.header .nav-item-wrapper {
      flex-shrink: 0;
    }
    header.header .nav {
      overflow: visible !important;
    }
  }
  .header .nav-more-wrapper .nav-more-dropdown {
    display: none !important;
  }
  .header .nav-more-wrapper:hover .nav-more-dropdown,
  .header .nav-more-wrapper:focus-within .nav-more-dropdown,
  .header .nav-more-wrapper.kq-more-open .nav-more-dropdown {
    display: block !important;
  }
  /* fixed 下拉与按钮之间不能有「视觉缝隙」：否则鼠标经过空白时父级 :hover 丢失，菜单会闪没 */
  .header .nav-more-dropdown {
    margin-top: -6px;
    padding-top: 10px;
  }
  /* 更多下拉内与顶栏相同：链接 + 展开按钮同一行（block 会导致箭头换行） */
  .header .nav-more-dropdown .nav-item-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
  }
  .header .nav-more-dropdown .nav-item-wrapper > a {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header .nav-more-dropdown .nav-item-wrapper > .category-dropdown-toggle {
    flex-shrink: 0;
  }
  /* 「更多工具」按钮与下拉项：与顶栏 .nav-link 一致（index-ded8e127：宽屏 14px/400，769–1024 为 13px；dropdown 曾为 15px/500） */
  .header .nav-more-wrapper > .nav-more-trigger,
  .header .nav-more-dropdown a.nav-more-dropdown-item {
    font-family: Microsoft YaHei, PingFang SC, sans-serif;
    font-weight: 400;
  }
  @media (min-width: 1025px) {
    .header .nav-more-wrapper > .nav-more-trigger,
    .header .nav-more-dropdown a.nav-more-dropdown-item {
      font-size: 14px;
    }
  }
  @media (min-width: 769px) and (max-width: 1024px) {
    .header .nav-more-wrapper > .nav-more-trigger,
    .header .nav-more-dropdown a.nav-more-dropdown-item {
      font-size: 13px;
    }
  }
  /* 顶栏分类工具下拉（与 old/dist main-82466e14.js + index-ded8e127.css 一致；打包 CSS 缺省时兜底） */
  .dropdown-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
  }
  .category-dropdown-panel {
    position: fixed;
    z-index: 100001;
    max-width: min(520px, 90vw);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  }
.category-dropdown-toggle svg.rotated {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
  }

  .kq-website-footer-shell .footer a:hover,
  .kq-website-footer-shell .footer-section ul li a:hover,
  .kq-website-footer-shell .copyright-links a:hover {
    color: #3b82f6 !important;
  }

  .kq-website-footer-shell .footer-brand-section {
    max-width: 280px;
  }

  .kq-website-footer-shell .footer-desc {
    max-width: none;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .kq-website-footer-shell .footer {
    background-color: #1d2939;
    border-top: none;
    margin-top: auto;
  }

  .kq-website-footer-shell .container {
    max-width: none;
    padding: 0;
  }

  .kq-website-footer-shell .footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .kq-website-footer-shell .footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
  }

  .kq-website-footer-shell .footer-social {
    display: flex;
    gap: 12px;
  }

  .kq-website-footer-shell .social-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #374151;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: transparent;
  }

  .kq-website-footer-shell .social-icon:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
  }

  .kq-website-footer-shell .social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  .kq-website-footer-shell .footer-section h4 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
  }

  .kq-website-footer-shell .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .kq-website-footer-shell .footer-section ul li {
    margin-bottom: 12px;
  }

  .kq-website-footer-shell .footer-section ul li a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s;
  }

  .kq-website-footer-shell .contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
  }

  .kq-website-footer-shell .contact-list li span {
    min-width: 0;
  }

  .kq-website-footer-shell .footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #374151;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-top: 0;
  }

  .kq-website-footer-shell .copyright-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .kq-website-footer-shell .copyright-links span {
    color: #64748b;
  }

  .kq-website-footer-shell .copyright-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
  }

  .kq-website-footer-shell .separator {
    color: #475569;
  }

  @media (max-width: 1024px) {
    .kq-website-footer-shell .footer-content {
      grid-template-columns: 1fr 1fr;
      gap: 30px;
    }

    .kq-website-footer-shell .footer-brand-section {
      grid-column: span 2;
      max-width: 100%;
    }
  }

  @media (max-width: 768px) {
    .kq-website-footer-shell .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .kq-website-footer-shell .footer-brand-section {
      grid-column: span 1;
    }

    .kq-website-footer-shell .footer-social,
    .kq-website-footer-shell .contact-list li {
      justify-content: center;
    }

    .kq-website-footer-shell .footer-section:nth-child(2),
    .kq-website-footer-shell .footer-section:nth-child(3) {
      display: none;
    }

    .kq-website-footer-shell .footer-section:nth-child(4) .contact-list li {
      justify-content: left;
    }
  }

  .kq-qr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 200000;
    cursor: pointer;
  }

  .kq-qr-overlay.kq-qr-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .kq-qr-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    text-align: center;
    max-width: 300px;
    width: 90vw;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    position: relative;
    cursor: default;
  }

  .kq-qr-box img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    display: block;
    margin: 0 auto;
    background: #fff;
  }

  .kq-qr-box p {
    margin: 14px 0 0;
    font-size: 15px;
    color: #333;
    font-weight: 600;
  }

  .kq-qr-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kq-qr-close:hover {
    background: #f5f5f5;
    color: #333;
  }

.kq-website-footer-shell .footer-content .footer-section ul li a:hover,
.kq-website-footer-shell .footer-bottom .copyright-links a:hover,
.kq-website-footer-shell .footer .footer-content .footer-section a:hover,
.kq-website-footer-shell .footer .copyright-links a:hover {
  color: #3b82f6 !important;
}

@media (max-width: 768px) {
  .kq-website-header-shell .header-container {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .kq-website-header-shell .header-left {
    flex: 0 0 auto !important;
  }

  .kq-website-header-shell .nav {
    display: none !important;
  }

  .kq-website-header-shell .search-box {
    display: none !important;
  }

  .kq-website-header-shell .header-right {
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }

  .kq-website-header-shell .header-actions {
    display: flex !important;
    margin-left: 0 !important;
  }

  .kq-website-header-shell .mobile-menu-btn,
  .kq-website-header-shell .header-search-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
