:root {
      --primary: #0B3D91;
      --primary-dark: #072b68;
      --primary-soft: #eaf1fc;
      --orange: #f97316;
      --orange-dark: #c2410c;
      --ink: #172033;
      --muted: #647084;
      --line: #dce2ea;
      --surface: #ffffff;
      --surface-soft: #f5f7fa;
      --shadow: 0 16px 40px rgba(23, 32, 51, .1);
      --radius: 8px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--surface-soft);
      font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
      line-height: 1.7;
    }

    body,
    button,
    input,
    textarea {
      font-size: 15px;
    }

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

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

    button {
      color: inherit;
      font-family: inherit;
    }

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

    .topbar {
      color: #eef4ff;
      background: #172033;
      font-size: 13px;
    }

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

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

    .topbar a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .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: 170px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--primary);
      font-size: 19px;
      font-weight: 800;
    }

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

    .main-nav {
      align-self: 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 {
      display: flex;
      align-items: center;
      padding: 0 13px;
      color: #27344b;
      font-weight: 700;
      white-space: nowrap;
      border-bottom: 3px solid transparent;
    }

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

    .has-arrow::after {
      content: "";
      width: 6px;
      height: 6px;
      margin: -4px 0 0 8px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg);
    }

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

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

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

    .dropdown-panel {
      width: 290px;
      padding: 10px;
    }

    .dropdown-panel a {
      display: block;
      padding: 10px 12px;
      color: #334158;
      border-bottom: 1px solid #edf0f5;
    }

    .dropdown-panel a:last-child {
      color: var(--primary);
      font-weight: 800;
      border-bottom: 0;
    }

    .dropdown-panel a:hover {
      color: var(--primary);
      background: var(--primary-soft);
    }

    .mega-menu {
      width: min(760px, calc(100vw - 40px));
      padding: 20px;
    }

    .nav-item:nth-last-child(-n+3) .mega-menu {
      right: 0;
      left: auto;
    }

    .mega-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 12px;
      color: var(--primary);
      font-weight: 800;
    }

    .mega-title a {
      font-size: 13px;
    }

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

    .mega-card {
      min-width: 0;
      display: grid;
      align-content: start;
      gap: 5px;
      min-height: 88px;
      padding: 12px;
      background: #f7f9fc;
      border: 1px solid #e4e9f1;
      border-radius: 6px;
    }

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

    .mega-card img {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }

    .mega-card strong,
    .mega-card small {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mega-card strong {
      color: #1f2c43;
      white-space: nowrap;
    }

    .mega-card small {
      color: var(--muted);
      line-height: 1.45;
    }

    .mega-footer {
      display: block;
      margin-top: 14px;
      padding-top: 12px;
      color: var(--primary);
      font-weight: 800;
      text-align: right;
      border-top: 1px solid var(--line);
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .member-link,
    .open-account {
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 7px 13px;
      border-radius: 6px;
      font-weight: 800;
      white-space: nowrap;
    }

    .member-link {
      color: var(--primary);
      border: 1px solid #b8c9e8;
    }

    .open-account {
      color: #ffffff;
      background: var(--orange);
      border: 1px solid var(--orange);
    }

    .member-link:hover {
      background: var(--primary-soft);
    }

    .open-account:hover {
      background: var(--orange-dark);
      border-color: var(--orange-dark);
    }

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

    .hamburger span {
      width: 20px;
      height: 2px;
      background: var(--ink);
      transition: transform .2s ease, opacity .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: 90;
      visibility: hidden;
      opacity: 0;
      background: rgba(10, 18, 32, .58);
      transition: opacity .2s ease, visibility .2s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 100;
      width: min(390px, 90vw);
      height: 100%;
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -16px 0 44px rgba(10, 18, 32, .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: 12px;
      padding: 14px 18px;
      color: #ffffff;
      background: var(--primary);
    }

    .drawer-head strong {
      min-width: 0;
      margin-right: auto;
    }

    .drawer-head > a {
      padding: 6px 12px;
      color: #ffffff;
      font-weight: 800;
      border: 1px solid rgba(255, 255, 255, .55);
      border-radius: 5px;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      padding: 0;
      color: #ffffff;
      background: transparent;
      border: 0;
      font-size: 29px;
      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;
      justify-content: space-between;
      padding: 11px 4px;
      background: transparent;
      border: 0;
      border-bottom: 1px solid var(--line);
      font-weight: 800;
      text-align: left;
      cursor: pointer;
    }

    .drawer-toggle::after {
      content: "+";
      color: var(--primary);
      font-size: 20px;
    }

    .drawer-toggle.active::after {
      content: "−";
    }

    .drawer-submenu {
      display: none;
      padding: 7px 0 10px 14px;
      border-bottom: 1px solid var(--line);
    }

    .drawer-submenu.open {
      display: block;
    }

    .drawer-submenu a {
      display: block;
      padding: 8px 6px;
      color: var(--muted);
    }

    .drawer-submenu a:hover {
      color: var(--primary);
    }

    .tool-detail-page {
      padding-bottom: 72px;
    }

    .tool-detail-page .tool-heading-band {
      color: #ffffff;
      background: var(--primary);
      border-bottom: 5px solid var(--orange);
    }

    .tool-detail-page .tool-heading-inner {
      min-height: 250px;
      display: grid;
      align-content: center;
      padding-top: 42px;
      padding-bottom: 42px;
    }

    .tool-detail-page .breadcrumb {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 20px;
      color: #dce8ff;
      font-size: 14px;
    }

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

    .tool-detail-page .tool-title-row {
      display: flex;
      align-items: center;
      gap: 22px;
    }

    .tool-detail-page .tool-main-icon {
      width: 76px;
      height: 76px;
      flex: 0 0 76px;
      padding: 12px;
      object-fit: contain;
      background: #ffffff;
      border: 1px solid rgba(255, 255, 255, .65);
      border-radius: 8px;
    }

    .tool-detail-page h1 {
      margin: 0 0 8px;
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.2;
      letter-spacing: 0;
    }

    .tool-detail-page .tool-summary {
      max-width: 820px;
      margin: 0;
      color: #e7efff;
      font-size: 17px;
    }

    .tool-detail-page .tool-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 310px;
      gap: 28px;
      align-items: start;
      margin-top: 34px;
    }

    .tool-detail-page .tool-primary,
    .tool-detail-page .related-tools {
      min-width: 0;
    }

    .tool-detail-page .tool-panel {
      padding: 28px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 8px 24px rgba(23, 32, 51, .06);
    }

    .tool-detail-page .tool-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 24px;
      margin-bottom: 26px;
      padding-bottom: 18px;
      color: var(--muted);
      border-bottom: 1px solid var(--line);
    }

    .tool-detail-page .tool-meta strong {
      color: var(--ink);
    }

    .tool-detail-page .tool-content {
      min-width: 0;
      max-width: 100%;
      overflow-x: auto;
      color: #354157;
    }

    .tool-detail-page .tool-content h2,
    .tool-detail-page .tool-content h3 {
      color: var(--ink);
      line-height: 1.35;
    }

    .tool-detail-page .tool-content h2 {
      margin: 30px 0 14px;
      padding-left: 12px;
      border-left: 4px solid var(--orange);
      font-size: 24px;
    }

    .tool-detail-page .tool-content h3 {
      margin: 24px 0 10px;
      font-size: 19px;
    }

    .tool-detail-page .tool-content p {
      margin: 0 0 16px;
    }

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

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

    .tool-detail-page .tool-content th,
    .tool-detail-page .tool-content td {
      padding: 10px;
      border: 1px solid var(--line);
    }

    .tool-detail-page .risk-note {
      margin-top: 28px;
      padding: 16px 18px;
      color: #713913;
      background: #fff7ed;
      border-left: 4px solid var(--orange);
    }

    .tool-detail-page .related-tools {
      position: sticky;
      top: 20px;
      padding: 22px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    .tool-detail-page .related-tools h2 {
      margin: 0 0 16px;
      font-size: 21px;
      line-height: 1.35;
    }

    .tool-detail-page .related-tool-card {
      display: grid;
      grid-template-columns: 46px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      padding: 14px 0;
      border-top: 1px solid var(--line);
    }

    .tool-detail-page .related-tool-card:first-of-type {
      border-top: 0;
    }

    .tool-detail-page .related-tool-card:hover strong {
      color: var(--primary);
    }

    .tool-detail-page .related-tool-card img {
      width: 46px;
      height: 46px;
      padding: 7px;
      object-fit: contain;
      background: var(--primary-soft);
      border-radius: 6px;
    }

    .tool-detail-page .related-tool-card strong {
      display: block;
      margin-bottom: 4px;
      line-height: 1.4;
    }

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

    .tool-detail-page .tools-link {
      min-height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 16px;
      color: #ffffff;
      background: var(--primary);
      border-radius: 6px;
      font-weight: 800;
    }

    .tool-detail-page .tools-link:hover {
      background: var(--primary-dark);
    }

    .footer {
      color: #d9e2ef;
      background: #172033;
    }

    .footer .container {
      padding-top: 48px;
      padding-bottom: 22px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 38px;
    }

    .footer-brand {
      margin-bottom: 13px;
      color: #ffffff;
      font-size: 22px;
      font-weight: 800;
    }

    .footer p {
      margin: 0 0 10px;
      color: #aeb9ca;
    }

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

    .footer-grid > div > a {
      display: block;
      margin: 9px 0;
      color: #bfc9d8;
    }

    .footer-grid a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      margin-top: 34px;
      padding-top: 20px;
      color: #94a1b4;
      border-top: 1px solid #334057;
      font-size: 13px;
    }

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

      .hamburger {
        display: flex;
      }

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

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

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

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

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

      .topbar .container {
        min-height: 42px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding-top: 6px;
        padding-bottom: 6px;
      }

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

      .header-inner {
        min-height: 66px;
        gap: 10px;
      }

      .logo {
        min-width: 0;
        font-size: 16px;
      }

      .logo img {
        width: 36px;
        height: 36px;
      }

      .member-link {
        display: none;
      }

      .open-account {
        min-height: 36px;
        padding: 6px 10px;
      }

      .tool-detail-page .tool-heading-inner {
        min-height: 230px;
        padding-top: 30px;
        padding-bottom: 32px;
      }

      .tool-detail-page .tool-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
      }

      .tool-detail-page .tool-main-icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
      }

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

      .tool-detail-page .tool-summary {
        font-size: 15px;
      }

      .tool-detail-page .tool-layout {
        margin-top: 22px;
      }

      .tool-detail-page .tool-panel,
      .tool-detail-page .related-tools {
        padding: 19px;
      }

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

      .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
      }
    }