* {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, "Segoe UI", sans-serif;
      font-size: 16px;
    }

    /* 顶栏一行高度（与占位同步）；有刘海屏时在占位里加上 safe-area */
    :root {
      --hdr-bar-h: 64px;
    }

    .nav-cb {
      position: absolute;
      width: 0;
      height: 0;
      opacity: 0;
      margin: 0;
      pointer-events: none;
    }

    /* 悬顶：fixed 相对视口固定，任意滚动容器内下方内容滚动时顶栏始终吸顶（不受父级 overflow 影响） */
    .hd {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      width: 100%;
      max-width: 100%;
      padding-top: env(safe-area-inset-top, 0px);
      background: #00245d;
      color: #fff;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /*
      文档流占位：在滑动/滚动之前，首屏顶部就要留出与 fixed 顶栏相同的高度（含刘海安全区），
      避免正文顶到导航下面。整站若改用 body { padding-top: ... }，可删掉本元素。
    */
    .hd-spacer {
      height: calc(var(--hdr-bar-h) + env(safe-area-inset-top, 0px));
      min-height: calc(var(--hdr-bar-h) + env(safe-area-inset-top, 0px));
      flex-shrink: 0;
      pointer-events: none;
    }

    /* 小屏主导航隐藏时，中间仍占位，把右侧按钮顶到右边 */
    .nav-gap {
      flex: 1;
      min-width: 0;
      min-height: 1px;
    }

    @media (min-width: 1024px) {
      .nav-gap {
        display: none;
      }
    }

    .hd a {
      color: inherit;
      text-decoration: none;
    }

    .hd a:hover,
    .hd a:focus,
    .hd a:active {
      text-decoration: none;
    }

    .bar {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      min-height: var(--hdr-bar-h);
      width: 100%;
    }

    .logo-wrap {
      flex-shrink: 0;
      padding: 0 14px 0 18px;
      display: flex;
      align-items: center;
    }

    .logo-wrap img {
      height: 41px;
      width: auto;
      max-width: 161px;
      display: block;
    }

    .nav-desk {
      display: none;
      flex: 1;
      align-items: stretch;
      min-height: var(--hdr-bar-h);
      padding: 0 9px;
    }

    @media (min-width: 1024px) {
      .nav-desk {
        display: flex;
      }
    }

    .nav-desk-inner {
      display: flex;
      align-items: stretch;
      flex: 1;
      width: 100%;
      flex-wrap: wrap;
    }

    .nav-desk .nav-link {
      position: relative;
      display: flex;
      align-items: center;
      align-self: stretch;
      padding: 0 16px;
      font-size: 15px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.82);
      transition: color 0.17s, background 0.17s;
    }

    .nav-desk .nav-link:hover,
    .nav-desk .nav-link:focus {
      color: #fff;
      background: rgba(255, 255, 255, 0.06);
      text-decoration: none;
    }

    /* 悬停时不显示底部条，仅选中项 .nav-link--active 有 */
    .nav-desk .nav-link:hover::after,
    .nav-desk .nav-link:focus::after {
      display: none;
      content: none;
    }

    /* 当前栏目选中：无底块，底部金色指示条 */
    .nav-desk .nav-link--active {
      color: #fff;
      font-weight: 600;
      background: transparent;
    }

    .nav-desk .nav-link--active::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 14px;
      right: 14px;
      height: 3px;
      background: #e8c547;
      border-radius: 3px 3px 0 0;
    }

    .mnav-panel a.nav-link--active {
      color: #fff;
      font-weight: 600;
      background: rgba(255, 255, 255, 0.1);
      border-left: 3px solid #e8c547;
      padding-left: 15px;
    }

    .actions {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 0 14px 0 9px;
    }

    .btn-o {
      display: inline-block;
      padding: 8px 16px;
      font-size: 15px;
      font-weight: 500;
      border: 1px solid rgba(255, 255, 255, 0.35);
      border-radius: 9px;
      color: #fff;
      background: transparent;
      cursor: pointer;
      text-decoration: none;
    }

    .btn-o:hover,
    .btn-o:focus {
      background: rgba(255, 255, 255, 0.1);
      text-decoration: none;
    }

    .btn-a {
      display: inline-block;
      padding: 8px 16px;
      font-size: 15px;
      font-weight: 600;
      border-radius: 9px;
      border: none;
      cursor: pointer;
      background: #e8c547;
      color: #152a52;
      text-decoration: none;
    }

    .btn-a:hover,
    .btn-a:focus {
      filter: brightness(1.05);
      text-decoration: none;
    }

    .menu-btn {
      display: none;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      margin-left: 5px;
      border-radius: 9px;
      cursor: pointer;
      color: #fff;
      font-size: 21px;
      line-height: 1;
      user-select: none;
    }

    .menu-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    @media (max-width: 1023px) {
      .menu-btn {
        display: flex;
      }
    }

    .mnav-panel {
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      z-index: 1;
      max-height: min(70vh, calc(100vh - var(--hdr-bar-h) - env(safe-area-inset-top, 0px)));
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      background: #142d55;
      padding: 14px 18px 18px;
      box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    }

    .nav-cb:checked~.mnav-panel {
      display: block;
    }

    .mnav-panel a {
      display: block;
      padding: 14px 18px;
      font-size: 17px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.88);
      border-radius: 9px;
      margin-bottom: 5px;
    }

    .mnav-panel a:hover,
    .mnav-panel a:focus {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      text-decoration: none;
    }

    .mob-actions {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      display: flex;
      flex-direction: column;
      gap: 9px;
    }

    .mob-actions .btn-o,
    .mob-actions .btn-a {
      text-align: center;
    }