:root {
      --theme: #0B3D91;
      --template-theme: {主题色};
      --theme-dark: #06265e;
      --theme-soft: #eaf1fc;
      --ink: #172033;
      --muted: #667085;
      --line: #dce3ee;
      --surface: #ffffff;
      --page: #f4f7fb;
      --success: #08785b;
      --shadow: 0 12px 32px rgba(16, 35, 68, .09);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--page);
      font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
      font-size: 15px;
      line-height: 1.65;
      letter-spacing: 0;
    }

    body,
    button,
    input,
    select {
      font-family: inherit;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      color: inherit;
    }

    .container {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }

    .topbar {
      color: #dbe8ff;
      background: var(--theme-dark);
      font-size: 13px;
    }

    .topbar .container {
      min-height: 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .topbar span:last-child {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .topbar a {
      color: #dbe8ff;
    }

    .topbar a:hover {
      color: #fff;
    }

    .header {
      position: relative;
      z-index: 50;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, .98);
    }

    .header-inner {
      min-height: 78px;
      display: flex;
      align-items: center;
      gap: 26px;
    }

    .logo {
      min-width: 178px;
      max-width: 240px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--theme-dark);
      font-size: 18px;
      font-weight: 800;
    }

    .logo img {
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      object-fit: contain;
    }

    .logo span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .main-nav {
      align-self: stretch;
      min-width: 0;
      display: flex;
      align-items: stretch;
      margin-left: auto;
    }

    .nav-list {
      height: 100%;
      display: flex;
      align-items: stretch;
      gap: 2px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: stretch;
    }

    .nav-link {
      position: relative;
      display: flex;
      align-items: center;
      padding: 0 13px;
      color: #27344b;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .nav-link:hover,
    .nav-item:focus-within > .nav-link {
      color: var(--theme);
    }

    .nav-link::after {
      position: absolute;
      right: 13px;
      bottom: 0;
      left: 13px;
      height: 3px;
      content: "";
      background: var(--theme);
      transform: scaleX(0);
      transition: transform .2s ease;
    }

    .nav-link:hover::after,
    .nav-item:focus-within > .nav-link::after {
      transform: scaleX(1);
    }

    .nav-link.has-arrow {
      padding-right: 27px;
    }

    .nav-link.has-arrow::before {
      position: absolute;
      right: 12px;
      top: 50%;
      width: 6px;
      height: 6px;
      content: "";
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: translateY(-70%) rotate(45deg);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      visibility: hidden;
      opacity: 0;
      border: 1px solid var(--line);
      background: #fff;
      box-shadow: var(--shadow);
      transform: translateY(8px);
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
      pointer-events: none;
    }

    .dropdown-panel {
      left: 0;
      width: 310px;
      padding: 10px;
      border-radius: 0 0 6px 6px;
    }

    .mega-menu {
      left: 50%;
      width: min(760px, calc(100vw - 40px));
      border-radius: 0 0 8px 8px;
      transform: translate(-50%, 8px);
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:focus-within > .dropdown-panel {
      visibility: visible;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .mega-menu {
      visibility: visible;
      opacity: 1;
      transform: translate(-50%, 0);
      pointer-events: auto;
    }

    .dropdown-panel > a:not(.mega-footer) {
      display: block;
      overflow: hidden;
      padding: 10px 11px;
      border-radius: 4px;
      color: #344054;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dropdown-panel > a:not(.mega-footer):hover {
      color: var(--theme);
      background: var(--theme-soft);
    }

    .mega-grid {
      display: grid;
      grid-template-columns: 210px minmax(0, 1fr);
      gap: 24px;
      padding: 24px;
    }

    .mega-grid h4 {
      margin: 0 0 8px;
      color: var(--theme-dark);
      font-size: 16px;
    }

    .mega-grid p {
      margin: 0 0 13px;
      color: var(--muted);
      font-size: 13px;
    }

    .mega-grid > div:first-child > a {
      display: block;
      padding: 5px 0;
      color: var(--theme);
      font-size: 13px;
      font-weight: 700;
    }

    .mega-cards {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
    }

    .mega-card {
      min-width: 0;
      min-height: 66px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-content: center;
      gap: 2px 9px;
      padding: 10px 12px;
      border: 1px solid #e7ebf2;
      border-radius: 5px;
      background: #fbfcfe;
    }

    .mega-card:hover {
      border-color: #b7c9e8;
      background: var(--theme-soft);
    }

    .mega-card img {
      grid-row: 1 / 3;
      width: 30px;
      height: 30px;
      align-self: center;
      object-fit: contain;
    }

    .mega-card b,
    .mega-card small {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-card b {
      color: #202c42;
      font-size: 13px;
    }

    .mega-card small {
      color: var(--muted);
      font-size: 11px;
    }

    .mega-footer {
      display: block;
      padding: 11px 24px;
      border-top: 1px solid var(--line);
      color: var(--theme);
      background: #f7f9fc;
      font-size: 13px;
      font-weight: 800;
      text-align: right;
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .member-btn,
    .open-btn {
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 7px 13px;
      border-radius: 4px;
      font-size: 13px;
      font-weight: 700;
    }

    .member-btn {
      color: var(--theme);
      border: 1px solid #cbd8ec;
      background: #fff;
    }

    .open-btn {
      color: #fff;
      border: 1px solid var(--theme);
      background: var(--theme);
    }

    .open-btn:hover {
      background: var(--theme-dark);
    }

    .hamburger {
      width: 42px;
      height: 42px;
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: #fff;
      cursor: pointer;
    }

    .hamburger span {
      width: 19px;
      height: 2px;
      background: var(--theme-dark);
      transition: transform .2s ease, opacity .2s ease;
    }

    .hamburger.active span:first-child {
      transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:last-child {
      transform: translateY(-7px) rotate(-45deg);
    }

    .drawer-overlay {
      position: fixed;
      z-index: 80;
      inset: 0;
      visibility: hidden;
      opacity: 0;
      background: rgba(4, 14, 33, .58);
      transition: opacity .22s ease, visibility .22s ease;
    }

    .drawer-overlay.open {
      visibility: visible;
      opacity: 1;
    }

    .mobile-drawer {
      position: fixed;
      z-index: 90;
      top: 0;
      right: 0;
      bottom: 0;
      width: min(390px, 90vw);
      overflow-y: auto;
      background: #fff;
      box-shadow: -14px 0 35px rgba(7, 25, 55, .2);
      transform: translateX(105%);
      transition: transform .24s ease;
    }

    .mobile-drawer.open {
      transform: translateX(0);
    }

    .drawer-head {
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 18px;
      color: #fff;
      background: var(--theme-dark);
    }

    .drawer-head > a {
      padding: 7px 11px;
      border: 1px solid rgba(255, 255, 255, .32);
      border-radius: 4px;
      font-size: 13px;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      margin-left: auto;
      padding: 0;
      border: 0;
      color: #fff;
      background: transparent;
      font-size: 27px;
      line-height: 1;
      cursor: pointer;
    }

    .drawer-menu {
      padding: 10px 18px 30px;
    }

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      min-height: 48px;
      display: flex;
      align-items: center;
      padding: 10px 2px;
      border: 0;
      border-bottom: 1px solid var(--line);
      background: transparent;
      font-size: 15px;
      font-weight: 700;
      text-align: left;
      cursor: pointer;
    }

    .drawer-toggle {
      position: relative;
      padding-right: 30px;
    }

    .drawer-toggle::after {
      position: absolute;
      right: 5px;
      width: 8px;
      height: 8px;
      content: "";
      border-right: 2px solid var(--theme);
      border-bottom: 2px solid var(--theme);
      transform: rotate(45deg);
      transition: transform .2s ease;
    }

    .drawer-toggle.active::after {
      transform: rotate(225deg);
    }

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: #f7f9fc;
      transition: max-height .28s ease;
    }

    .drawer-submenu.open {
      max-height: 720px;
    }

    .drawer-submenu a {
      display: block;
      padding: 10px 14px;
      border-bottom: 1px solid #e7ebf2;
      color: #475467;
      font-size: 13px;
    }

    .category-page {
      min-height: 640px;
    }

    .category-page .category-head {
      position: relative;
      overflow: hidden;
      padding: 58px 0 54px;
      color: #fff;
      background: var(--theme-dark);
    }

    .category-page .category-head::before,
    .category-page .category-head::after {
      position: absolute;
      content: "";
      border: 1px solid rgba(207, 221, 245, .22);
      border-radius: 50%;
    }

    .category-page .category-head::before {
      width: 330px;
      height: 330px;
      right: 7%;
      top: -210px;
    }

    .category-page .category-head::after {
      width: 190px;
      height: 190px;
      right: 19%;
      bottom: -135px;
    }

    .category-page .category-head-inner {
      position: relative;
      z-index: 1;
      max-width: 800px;
    }

    .category-page .category-kicker {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 12px;
      color: #bcd2f7;
      font-size: 13px;
      font-weight: 700;
    }

    .category-page .category-kicker::before {
      width: 28px;
      height: 2px;
      content: "";
      background: #f1f5ff;
    }

    .category-page h1 {
      margin: 0 0 12px;
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.18;
      letter-spacing: 0;
    }

    .category-page .category-description {
      max-width: 720px;
      margin: 0;
      color: #d8e4f7;
      font-size: 16px;
    }

    .category-page .category-toolbar {
      border-bottom: 1px solid var(--line);
      background: #fff;
    }

    .category-page .toolbar-inner {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .category-page .toolbar-title {
      color: #29364c;
      font-weight: 800;
    }

    .category-page .toolbar-links {
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      padding: 8px 0;
    }

    .category-page .toolbar-links a {
      flex: 0 0 auto;
      padding: 6px 11px;
      border: 1px solid var(--line);
      border-radius: 4px;
      color: #475467;
      background: #fff;
      font-size: 13px;
    }

    .category-page .toolbar-links a:hover {
      color: var(--theme);
      border-color: #afc3e3;
      background: var(--theme-soft);
    }

    .category-page .content-wrap {
      padding: 38px 0 64px;
    }

    .category-page .article-list {
      display: grid;
      gap: 20px;
    }

    .category-page .article-card {
      min-width: 0;
      display: grid;
      grid-template-columns: 320px minmax(0, 1fr);
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--surface);
      box-shadow: 0 5px 18px rgba(19, 39, 72, .05);
      transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }

    .category-page .article-card:hover {
      border-color: #b5c7e3;
      box-shadow: var(--shadow);
      transform: translateY(-2px);
    }

    .category-page .article-cover {
      position: relative;
      min-height: 238px;
      overflow: hidden;
      background: #dfe7f3;
    }

    .category-page .article-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .35s ease;
    }

    .category-page .article-card:hover .article-cover img {
      transform: scale(1.025);
    }

    .category-page .category-badge {
      position: absolute;
      top: 16px;
      left: 16px;
      max-width: calc(100% - 32px);
      overflow: hidden;
      padding: 5px 9px;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .35);
      border-radius: 3px;
      background: rgba(6, 38, 94, .9);
      font-size: 12px;
      font-weight: 700;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .category-page .article-body {
      min-width: 0;
      display: flex;
      flex-direction: column;
      padding: 23px 25px 21px;
    }

    .category-page .article-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px 16px;
      margin-bottom: 9px;
      color: var(--muted);
      font-size: 12px;
    }

    .category-page .article-meta span {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .category-page .article-meta span::before {
      width: 5px;
      height: 5px;
      content: "";
      border-radius: 50%;
      background: #8ca7d2;
    }

    .category-page .article-title {
      margin: 0 0 10px;
      color: #17233a;
      font-size: 22px;
      line-height: 1.38;
      letter-spacing: 0;
    }

    .category-page .article-title a:hover {
      color: var(--theme);
    }

    .category-page .article-summary {
      display: -webkit-box;
      overflow: hidden;
      margin: 0 0 14px;
      color: #596579;
      font-size: 14px;
      line-height: 1.75;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .category-page .article-tags {
      margin: 0 0 17px;
      color: #52647e;
      font-size: 12px;
      overflow-wrap: anywhere;
    }

    .category-page .article-tags strong {
      color: #33435d;
    }

    .category-page .article-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-top: auto;
      padding-top: 14px;
      border-top: 1px solid #edf0f5;
    }

    .category-page .author {
      min-width: 0;
      overflow: hidden;
      color: #68758a;
      font-size: 12px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .category-page .read-more {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 800;
    }

    .category-page .read-more::after {
      content: "→";
      font-size: 17px;
      line-height: 1;
    }

    .category-page .pagination {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      margin-top: 34px;
    }

    .category-page .pagination a {
      min-width: 40px;
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 7px 12px;
      border: 1px solid var(--line);
      border-radius: 4px;
      color: #40506a;
      background: #fff;
      font-size: 13px;
      font-weight: 700;
    }

    .category-page .pagination a:hover,
    .category-page .pagination a.active,
    .category-page .pagination a.current {
      color: #fff;
      border-color: var(--theme);
      background: var(--theme);
    }

    .footer {
      color: #c6d1e2;
      background: #101b2e;
    }

    .footer .container {
      padding-top: 50px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.35fr .8fr .8fr 1.05fr;
      gap: 38px;
      padding-bottom: 38px;
    }

    .footer h4,
    .footer-brand strong {
      display: block;
      margin: 0 0 15px;
      color: #fff;
      font-size: 16px;
    }

    .footer-brand strong {
      font-size: 20px;
    }

    .footer p {
      margin: 0 0 8px;
      font-size: 13px;
    }

    .footer-grid > div > a {
      display: block;
      width: fit-content;
      margin: 0 0 9px;
      color: #c6d1e2;
      font-size: 13px;
    }

    .footer-grid > div > a:hover {
      color: #fff;
    }

    .footer-bottom {
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid rgba(255, 255, 255, .12);
      color: #94a3b8;
      font-size: 12px;
    }

    @media (max-width: 1120px) {
      .main-nav {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .header-btns {
        margin-left: auto;
      }

      .category-page .article-card {
        grid-template-columns: 290px minmax(0, 1fr);
      }
    }

    @media (max-width: 820px) {
      .container {
        width: min(100% - 28px, 1180px);
      }

      .topbar .container {
        min-height: 42px;
      }

      .topbar span:first-child {
        display: none;
      }

      .topbar span:last-child {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
      }

      .header-inner {
        min-height: 68px;
      }

      .logo {
        min-width: 0;
        max-width: calc(100% - 150px);
      }

      .logo img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
      }

      .member-btn {
        display: none;
      }

      .category-page .category-head {
        padding: 42px 0 40px;
      }

      .category-page .toolbar-inner {
        display: block;
        padding: 12px 0;
      }

      .category-page .toolbar-title {
        margin-bottom: 5px;
      }

      .category-page .content-wrap {
        padding: 28px 0 48px;
      }

      .category-page .article-card {
        grid-template-columns: 1fr;
      }

      .category-page .article-cover {
        min-height: 0;
        aspect-ratio: 16 / 9;
      }

      .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 560px) {
      .topbar {
        display: none;
      }

      .header-inner {
        gap: 10px;
      }

      .logo {
        max-width: calc(100% - 100px);
        font-size: 16px;
      }

      .open-btn {
        display: none;
      }

      .category-page h1 {
        font-size: 31px;
      }

      .category-page .category-description {
        font-size: 14px;
      }

      .category-page .article-body {
        padding: 19px 18px 18px;
      }

      .category-page .article-title {
        font-size: 19px;
      }

      .category-page .article-summary {
        -webkit-line-clamp: 3;
      }

      .category-page .article-actions {
        align-items: flex-end;
      }

      .footer .container {
        padding-top: 38px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
      }

      .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
      }
    }