:root {
      --theme: #0B3D91;
      --theme-dark: #07295f;
      --theme-soft: #eaf1fb;
      --ink: #172033;
      --muted: #647087;
      --line: #dfe5ee;
      --surface: #ffffff;
      --page: #f5f7fa;
      --success: #147d64;
      --warning: #b36b00;
      --shadow: 0 14px 36px rgba(24, 39, 75, 0.1);
      --container: 1200px;
    }

    * {
      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;
      line-height: 1.65;
      letter-spacing: 0;
    }

    body.drawer-locked {
      overflow: hidden;
    }

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

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

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button {
      color: inherit;
    }

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

    .topbar {
      color: #dce8fb;
      background: #071c3d;
      font-size: 13px;
    }

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

    .topbar-contact {
      display: flex;
      align-items: center;
      gap: 22px;
    }

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

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

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

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

    .logo img {
      width: 40px;
      height: 40px;
      object-fit: contain;
    }

    .logo span {
      max-width: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .main-nav {
      align-self: stretch;
      flex: 1;
    }

    .nav-list {
      height: 100%;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: stretch;
      justify-content: center;
      list-style: none;
    }

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

    .nav-link {
      position: relative;
      display: flex;
      align-items: center;
      padding: 0 12px;
      color: #263349;
      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: 12px;
      bottom: 0;
      left: 12px;
      height: 3px;
      content: "";
      background: var(--theme);
      transform: scaleX(0);
      transition: transform 0.2s ease;
    }

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

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

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

    .mega-menu,
    .dropdown-panel {
      position: absolute;
      top: 100%;
      right: 0;
      left: 0;
      z-index: 60;
      padding-top: 0;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    }

    .mega-menu::before,
    .dropdown-panel::before {
      position: absolute;
      right: 0;
      bottom: 100%;
      left: 0;
      height: 12px;
      content: "";
    }

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

    .mega-shell,
    .dropdown-shell {
      width: min(calc(100% - 40px), var(--container));
      margin: 0 auto;
      padding: 24px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-top: 3px solid var(--theme);
      box-shadow: var(--shadow);
    }

    .dropdown-shell {
      width: min(calc(100% - 40px), 560px);
      margin-right: calc((100% - min(calc(100% - 40px), var(--container))) / 2);
    }

    .mega-layout {
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 28px;
    }

    .mega-title,
    .dropdown-title {
      margin: 0 0 14px;
      color: var(--theme-dark);
      font-size: 14px;
      font-weight: 800;
    }

    .mega-category-links,
    .dropdown-list {
      display: grid;
      gap: 7px;
    }

    .mega-category-links a,
    .dropdown-list a {
      padding: 9px 10px;
      color: #455169;
      background: #f6f8fb;
      border-left: 3px solid transparent;
      font-size: 13px;
    }

    .mega-category-links a:hover,
    .dropdown-list a:hover {
      color: var(--theme);
      border-left-color: var(--theme);
      background: var(--theme-soft);
    }

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

    .mega-card {
      min-width: 0;
      display: flex;
      align-items: flex-start;
      gap: 11px;
      padding: 12px;
      background: #f7f9fc;
      border: 1px solid #edf0f5;
      border-radius: 6px;
    }

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

    .mega-card > img {
      flex: 0 0 auto;
      width: 44px;
      height: 44px;
      padding: 3px;
      object-fit: contain;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 5px;
    }

    .mega-card > span {
      min-width: 0;
      display: grid;
      gap: 4px;
      color: var(--muted);
      font-size: 12px;
    }

    .mega-card strong {
      color: var(--ink);
      font-size: 13px;
      line-height: 1.4;
    }

    .mega-summary {
      display: -webkit-box;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .mega-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 9px;
    }

    .mega-footer {
      margin-top: 18px;
      padding-top: 14px;
      display: flex;
      justify-content: flex-end;
      color: var(--theme);
      border-top: 1px solid var(--line);
      font-size: 13px;
      font-weight: 800;
    }

    .header-btns {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 9px;
      white-space: nowrap;
    }

    .header-btns > a {
      min-height: 38px;
      padding: 7px 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      background: var(--theme);
      border: 1px solid var(--theme);
      border-radius: 5px;
      font-size: 13px;
      font-weight: 800;
    }

    .header-btns > a:hover {
      background: var(--theme-dark);
    }

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

    .hamburger span {
      width: 20px;
      height: 2px;
      background: var(--ink);
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

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

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

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

    .drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 80;
      visibility: hidden;
      opacity: 0;
      background: rgba(7, 18, 38, 0.58);
      transition: opacity 0.22s ease, visibility 0.22s;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 90;
      width: min(390px, 92vw);
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -18px 0 45px rgba(8, 24, 50, 0.2);
      transform: translateX(105%);
      transition: transform 0.25s ease;
    }

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

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

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

    .drawer-close {
      width: 40px;
      height: 40px;
      margin-left: auto;
      padding: 0;
      color: #ffffff;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.35);
      border-radius: 4px;
      font-size: 27px;
      line-height: 1;
      cursor: pointer;
    }

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

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      min-height: 50px;
      padding: 12px 4px;
      display: flex;
      align-items: center;
      text-align: left;
      background: transparent;
      border: 0;
      border-bottom: 1px solid var(--line);
      font-weight: 800;
      cursor: pointer;
    }

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

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

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

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

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

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

    .drawer-submenu a:hover {
      color: var(--theme);
      background: var(--theme-soft);
    }

    .tool-detail-page {
      min-width: 0;
    }

    .tool-detail-page .tool-banner {
      color: #ffffff;
      background:
        linear-gradient(90deg, rgba(11, 61, 145, 0.96), rgba(7, 41, 95, 0.94)),
        #0B3D91;
      border-bottom: 5px solid #e0ad3e;
    }

    .tool-detail-page .tool-banner-inner {
      min-height: 310px;
      padding-block: 54px;
      display: grid;
      align-content: center;
      justify-items: center;
      text-align: center;
    }

    .tool-detail-page .breadcrumb {
      margin-bottom: 22px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #c9d8ef;
      font-size: 13px;
    }

    .tool-detail-page .breadcrumb a:hover {
      color: #ffffff;
    }

    .tool-detail-page .tool-icon {
      width: 76px;
      height: 76px;
      margin-bottom: 18px;
      padding: 12px;
      object-fit: contain;
      background: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.7);
      border-radius: 8px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    }

    .tool-detail-page .tool-banner h1 {
      max-width: 900px;
      margin: 0;
      font-size: clamp(30px, 5vw, 52px);
      line-height: 1.18;
      overflow-wrap: anywhere;
    }

    .tool-detail-page .tool-intro {
      max-width: 780px;
      margin: 16px 0 0;
      color: #e7eef9;
      font-size: 16px;
    }

    .tool-detail-page .tool-meta {
      margin-top: 22px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 9px;
    }

    .tool-detail-page .tool-meta span {
      padding: 6px 11px;
      color: #eff5ff;
      background: rgba(255, 255, 255, 0.11);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 4px;
      font-size: 13px;
    }

    .tool-detail-page .detail-layout {
      padding-block: 42px 68px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 320px;
      align-items: start;
      gap: 28px;
    }

    .tool-detail-page .tool-content,
    .tool-detail-page .related-panel {
      min-width: 0;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 7px;
      box-shadow: 0 8px 24px rgba(24, 39, 75, 0.06);
    }

    .tool-detail-page .content-head {
      padding: 24px 28px;
      border-bottom: 1px solid var(--line);
    }

    .tool-detail-page .content-head h2,
    .tool-detail-page .related-panel h2 {
      margin: 0;
      color: var(--theme-dark);
      font-size: 22px;
      line-height: 1.35;
    }

    .tool-detail-page .content-head p {
      margin: 7px 0 0;
      color: var(--muted);
      font-size: 14px;
    }

    .tool-detail-page .tool-body {
      min-width: 0;
      max-width: 100%;
      padding: 30px;
      overflow-x: auto;
      color: #303c51;
      font-size: 16px;
    }

    .tool-detail-page .tool-body > :first-child {
      margin-top: 0;
    }

    .tool-detail-page .tool-body > :last-child {
      margin-bottom: 0;
    }

    .tool-detail-page .tool-body h2,
    .tool-detail-page .tool-body h3,
    .tool-detail-page .tool-body h4 {
      color: var(--ink);
      line-height: 1.4;
    }

    .tool-detail-page .tool-body a {
      color: var(--theme);
      text-decoration: underline;
    }

    .tool-detail-page .tool-body img,
    .tool-detail-page .tool-body video,
    .tool-detail-page .tool-body iframe {
      max-width: 100%;
    }

    .tool-detail-page .tool-body table {
      width: 100%;
      max-width: 100%;
      border-collapse: collapse;
    }

    .tool-detail-page .tool-body th,
    .tool-detail-page .tool-body td {
      padding: 11px;
      border: 1px solid var(--line);
      text-align: left;
    }

    .tool-detail-page .tool-body blockquote {
      margin: 24px 0;
      padding: 16px 20px;
      color: #3f4e65;
      background: var(--theme-soft);
      border-left: 4px solid var(--theme);
    }

    .tool-detail-page .tool-note {
      margin: 0 30px 30px;
      padding: 16px 18px;
      color: #4e596c;
      background: #fff8e8;
      border: 1px solid #ecd49d;
      border-radius: 5px;
      font-size: 14px;
    }

    .tool-detail-page .tool-note strong {
      color: var(--warning);
    }

    .tool-detail-page .related-panel {
      position: sticky;
      top: 20px;
      overflow: hidden;
    }

    .tool-detail-page .related-panel h2 {
      padding: 21px 22px;
      border-bottom: 1px solid var(--line);
    }

    .tool-detail-page .related-list {
      display: grid;
    }

    .tool-detail-page .related-tool {
      min-width: 0;
      padding: 16px 18px;
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr);
      align-items: start;
      gap: 12px;
      border-bottom: 1px solid var(--line);
    }

    .tool-detail-page .related-tool:last-child {
      border-bottom: 0;
    }

    .tool-detail-page .related-tool:hover {
      background: var(--theme-soft);
    }

    .tool-detail-page .related-tool img {
      width: 48px;
      height: 48px;
      padding: 5px;
      object-fit: contain;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 5px;
    }

    .tool-detail-page .related-tool strong {
      display: block;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }

    .tool-detail-page .related-tool span {
      margin-top: 5px;
      display: -webkit-box;
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.55;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .tool-detail-page .tool-actions {
      padding: 18px 22px;
      display: grid;
      gap: 10px;
      background: #f7f9fc;
      border-top: 1px solid var(--line);
    }

    .tool-detail-page .tool-actions a {
      min-height: 42px;
      padding: 9px 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      background: var(--theme);
      border: 1px solid var(--theme);
      border-radius: 5px;
      font-size: 14px;
      font-weight: 800;
    }

    .tool-detail-page .tool-actions a:last-child {
      color: var(--theme);
      background: #ffffff;
    }

    .tool-detail-page .tool-actions a:hover {
      color: #ffffff;
      background: var(--theme-dark);
      border-color: var(--theme-dark);
    }

    .footer {
      color: #c7d2e3;
      background: #09192f;
    }

    .footer-main {
      padding-block: 52px 38px;
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
      gap: 38px;
    }

    .footer .logo {
      color: #ffffff;
    }

    .footer-brand p {
      max-width: 420px;
      margin: 18px 0 0;
      color: #aebbd0;
      font-size: 14px;
    }

    .footer h3 {
      margin: 5px 0 16px;
      color: #ffffff;
      font-size: 15px;
    }

    .footer-links,
    .footer-contact {
      display: grid;
      gap: 9px;
      color: #aebbd0;
      font-size: 13px;
    }

    .footer a:hover {
      color: #ffffff;
    }

    .footer-contact strong {
      color: #d9e2ef;
    }

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

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

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

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

      .hamburger {
        display: flex;
      }

      .tool-detail-page .detail-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
      }
    }

    @media (max-width: 860px) {
      .tool-detail-page .detail-layout {
        grid-template-columns: 1fr;
      }

      .tool-detail-page .related-panel {
        position: static;
      }

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

    @media (max-width: 640px) {
      .container {
        width: min(calc(100% - 28px), var(--container));
      }

      .topbar-inner {
        padding-block: 7px;
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
      }

      .topbar-contact {
        flex-wrap: wrap;
        gap: 2px 14px;
      }

      .header-btns > a {
        display: none;
      }

      .logo span {
        max-width: 150px;
      }

      .tool-detail-page .tool-banner-inner {
        min-height: 280px;
        padding-block: 40px;
      }

      .tool-detail-page .tool-banner h1 {
        font-size: 30px;
      }

      .tool-detail-page .tool-intro {
        font-size: 14px;
      }

      .tool-detail-page .detail-layout {
        padding-block: 24px 44px;
      }

      .tool-detail-page .content-head,
      .tool-detail-page .tool-body {
        padding: 20px;
      }

      .tool-detail-page .tool-note {
        margin: 0 20px 20px;
      }

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

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