:root {
      --primary: #0B3D91;
      --primary-deep: #06295f;
      --primary-light: #e9f3ff;
      --ice: #f5faff;
      --silver: #dce8f4;
      --ink: #10243d;
      --muted: #64748b;
      --line: #dce6f0;
      --white: #ffffff;
      --shadow: 0 18px 50px rgba(11, 61, 145, .11);
      --radius: 18px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

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

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

    button {
      font: inherit;
    }

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

    .topbar {
      color: #dcecff;
      background: var(--primary-deep);
      font-size: 13px;
    }

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

    .topbar-info {
      display: flex;
      gap: 20px;
      align-items: center;
    }

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

    .header {
      position: relative;
      z-index: 20;
      background: rgba(255, 255, 255, .96);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 5px 20px rgba(15, 53, 90, .04);
    }

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

    .logo {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      gap: 10px;
      color: var(--primary-deep);
      font-size: 19px;
      font-weight: 800;
      letter-spacing: .02em;
    }

    .logo img {
      width: 38px;
      height: 38px;
      object-fit: contain;
      border-radius: 9px;
    }

    .main-nav {
      flex: 1;
    }

    .nav-list {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 4px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      min-height: 78px;
      display: inline-flex;
      align-items: center;
      padding: 0 14px;
      color: #29415c;
      font-size: 15px;
      white-space: nowrap;
      transition: color .2s, background .2s;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
      color: var(--primary);
      background: var(--primary-light);
    }

    .has-arrow::after {
      content: "⌄";
      margin-left: 7px;
      color: #7890aa;
      font-size: 14px;
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      z-index: 30;
      visibility: hidden;
      opacity: 0;
      transform: translate(-50%, 8px);
      transition: opacity .2s, transform .2s, visibility .2s;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 0 0 16px 16px;
      box-shadow: var(--shadow);
    }

    .dropdown-panel {
      width: 260px;
      padding: 14px;
    }

    .dropdown-panel a {
      display: block;
      padding: 10px 12px;
      border-radius: 9px;
      color: #334b67;
      font-size: 14px;
    }

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

    .mega-menu {
      width: min(700px, 86vw);
      padding: 22px;
    }

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

    .nav-item::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      height: 10px;
    }

    .mega-title {
      margin-bottom: 13px;
      color: var(--primary-deep);
      font-size: 14px;
      font-weight: 800;
    }

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

    .mega-card {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      padding: 10px;
      border: 1px solid #e5edf6;
      border-radius: 12px;
      transition: border-color .2s, background .2s;
    }

    .mega-card:hover {
      border-color: #a8c8ed;
      background: #f6faff;
    }

    .mega-card img {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      object-fit: cover;
      border-radius: 8px;
      background: var(--primary-light);
    }

    .mega-card span {
      min-width: 0;
    }

    .mega-card strong,
    .mega-card small {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mega-card strong {
      color: var(--ink);
      font-size: 13px;
      white-space: nowrap;
    }

    .mega-card small {
      margin-top: 2px;
      color: var(--muted);
      font-size: 11px;
      line-height: 1.5;
    }

    .mega-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .mega-links a {
      padding: 7px 11px;
      color: #365576;
      background: var(--ice);
      border: 1px solid var(--line);
      border-radius: 999px;
      font-size: 12px;
    }

    .mega-links a:hover {
      color: var(--primary);
      border-color: #a9c9ed;
    }

    .mega-footer {
      display: block;
      margin-top: 17px;
      padding-top: 13px;
      border-top: 1px solid var(--line);
      color: var(--primary);
      font-size: 13px;
      font-weight: 700;
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 11px;
      flex: 0 0 auto;
    }

    .member-link {
      color: var(--primary);
      font-size: 14px;
      font-weight: 700;
    }

    .open-account {
      padding: 9px 16px;
      color: #fff;
      background: var(--primary);
      border-radius: 9px;
      font-size: 13px;
      font-weight: 700;
    }

    .open-account:hover {
      background: var(--primary-deep);
    }

    .hamburger {
      display: none;
      width: 42px;
      height: 42px;
      padding: 9px;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 10px;
      cursor: pointer;
    }

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      margin: 4px auto;
      background: var(--primary);
      transition: transform .2s;
    }

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

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

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

    .drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 50;
      visibility: hidden;
      opacity: 0;
      background: rgba(5, 25, 50, .48);
      transition: opacity .25s, visibility .25s;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 60;
      width: min(390px, 88vw);
      height: 100vh;
      overflow-y: auto;
      visibility: hidden;
      transform: translateX(105%);
      background: #fff;
      box-shadow: -12px 0 40px rgba(4, 30, 67, .18);
      transition: transform .25s, visibility .25s;
    }

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

    .drawer-head {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 22px 20px;
      color: var(--primary-deep);
      border-bottom: 1px solid var(--line);
      font-weight: 800;
    }

    .drawer-head a {
      margin-left: auto;
      padding: 6px 11px;
      color: #fff;
      background: var(--primary);
      border-radius: 7px;
      font-size: 12px;
    }

    .drawer-close {
      width: 32px;
      height: 32px;
      border: 0;
      color: var(--primary-deep);
      background: var(--primary-light);
      border-radius: 50%;
      cursor: pointer;
      font-size: 22px;
      line-height: 1;
    }

    .drawer-menu {
      padding: 12px 20px 30px;
    }

    .drawer-link,
    .drawer-toggle {
      display: block;
      width: 100%;
      padding: 13px 0;
      color: #29415c;
      border: 0;
      border-bottom: 1px solid #edf2f7;
      background: transparent;
      text-align: left;
      font-size: 15px;
      cursor: pointer;
    }

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

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

    .drawer-submenu {
      display: none;
      padding: 6px 0 8px 15px;
      border-left: 2px solid #cfe2f8;
    }

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

    .drawer-submenu a {
      display: block;
      padding: 8px 0;
      color: var(--muted);
      font-size: 13px;
    }

    .footer {
      margin-top: 70px;
      color: #c7daf0;
      background: #071d3b;
    }

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

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

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #fff;
      font-size: 18px;
      font-weight: 800;
    }

    .footer-brand img {
      width: 34px;
      height: 34px;
      object-fit: contain;
      border-radius: 7px;
    }

    .footer p {
      max-width: 310px;
      margin: 16px 0 0;
      color: #9db6d3;
      font-size: 13px;
    }

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

    .footer-links {
      display: grid;
      gap: 8px;
    }

    .footer-links a,
    .footer-links span {
      color: #a9c0da;
      font-size: 13px;
    }

    .footer-links a:hover {
      color: #fff;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin-top: 38px;
      padding-top: 18px;
      color: #88a5c5;
      border-top: 1px solid rgba(190, 220, 250, .14);
      font-size: 12px;
    }

    .tools-page {
      min-height: 600px;
    }

    .tools-hero {
      position: relative;
      overflow: hidden;
      padding: 78px 0 92px;
      background:
        radial-gradient(circle at 12% 20%, rgba(139, 201, 255, .35), transparent 25%),
        radial-gradient(circle at 88% 18%, rgba(57, 133, 219, .16), transparent 28%),
        linear-gradient(135deg, #f7fbff 0%, #eaf4ff 56%, #dcecff 100%);
    }

    .tools-hero::before,
    .tools-hero::after {
      position: absolute;
      content: "";
      border: 1px solid rgba(11, 61, 145, .1);
      border-radius: 50%;
      pointer-events: none;
    }

    .tools-hero::before {
      width: 470px;
      height: 470px;
      right: -150px;
      top: -240px;
    }

    .tools-hero::after {
      width: 280px;
      height: 280px;
      left: -120px;
      bottom: -170px;
    }

    .tools-heading {
      position: relative;
      z-index: 1;
      max-width: 760px;
      margin: 0 auto;
      text-align: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 13px;
      color: var(--primary);
      background: rgba(255, 255, 255, .7);
      border: 1px solid #c9def3;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
    }

    .eyebrow::before {
      width: 7px;
      height: 7px;
      content: "";
      background: #37a2e8;
      border-radius: 50%;
      box-shadow: 0 0 0 5px rgba(55, 162, 232, .14);
    }

    .tools-heading h1 {
      margin: 20px 0 13px;
      color: var(--primary-deep);
      font-size: clamp(32px, 5vw, 58px);
      line-height: 1.18;
      letter-spacing: -.04em;
    }

    .tools-heading p {
      max-width: 650px;
      margin: 0 auto;
      color: #58718e;
      font-size: 16px;
    }

    .tool-filter {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 9px;
      margin-top: 30px;
    }

    .tool-filter span {
      padding: 8px 15px;
      color: #46627f;
      background: rgba(255, 255, 255, .65);
      border: 1px solid #cbddec;
      border-radius: 999px;
      font-size: 13px;
    }

    .tool-filter span:first-child {
      color: #fff;
      background: var(--primary);
      border-color: var(--primary);
    }

    .tools-content {
      padding: 70px 0 0;
    }

    .section-intro {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 24px;
    }

    .section-intro h2 {
      margin: 0;
      color: var(--primary-deep);
      font-size: 27px;
      line-height: 1.3;
    }

    .section-intro p {
      max-width: 510px;
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

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

    .tool-card {
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 270px;
      padding: 25px;
      overflow: hidden;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 8px 25px rgba(21, 67, 113, .05);
      transition: transform .25s, border-color .25s, box-shadow .25s;
    }

    .tool-card::after {
      position: absolute;
      right: -28px;
      bottom: -32px;
      width: 110px;
      height: 110px;
      content: "";
      border: 18px solid #eff6fd;
      border-radius: 50%;
    }

    .tool-card:hover {
      transform: translateY(-6px);
      border-color: #a9c9ec;
      box-shadow: 0 16px 36px rgba(11, 61, 145, .13);
    }

    .tool-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 58px;
      height: 58px;
      margin-bottom: 19px;
      overflow: hidden;
      color: var(--primary);
      background: linear-gradient(145deg, #edf6ff, #d9eaff);
      border: 1px solid #cbe0f5;
      border-radius: 16px;
    }

    .tool-icon img {
      width: 34px;
      height: 34px;
      object-fit: contain;
    }

    .tool-card h3 {
      position: relative;
      z-index: 1;
      margin: 0 0 10px;
      color: var(--ink);
      font-size: 19px;
    }

    .tool-card p {
      position: relative;
      z-index: 1;
      display: -webkit-box;
      margin: 0;
      overflow: hidden;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.75;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .tool-card-bottom {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: auto;
      padding-top: 20px;
    }

    .tool-label {
      color: #8aa1b9;
      font-size: 12px;
    }

    .tool-enter {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: var(--primary);
      font-size: 13px;
      font-weight: 800;
    }

    .tool-enter::after {
      content: "→";
      transition: transform .2s;
    }

    .tool-card:hover .tool-enter::after {
      transform: translateX(4px);
    }

    .tools-note {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: 28px;
      padding: 18px 22px;
      color: #526d89;
      background: #edf6ff;
      border: 1px solid #d0e3f5;
      border-radius: 14px;
      font-size: 13px;
    }

    .tools-note strong {
      flex: 0 0 auto;
      color: var(--primary);
    }

    @media (max-width: 1050px) {
      .header-inner {
        gap: 15px;
      }

      .nav-link {
        padding: 0 9px;
        font-size: 14px;
      }

      .member-link {
        display: none;
      }

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

    @media (max-width: 800px) {
      .topbar .container {
        min-height: 34px;
      }

      .topbar-info {
        gap: 8px;
      }

      .topbar-info a:first-child {
        display: none;
      }

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

      .main-nav {
        display: none;
      }

      .hamburger {
        display: block;
      }

      .nav-list {
        display: none;
      }

      .open-account {
        display: none;
      }

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

      .tools-hero {
        padding: 58px 0 68px;
      }

      .tools-content {
        padding-top: 50px;
      }
    }

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

      .topbar {
        font-size: 11px;
      }

      .logo {
        font-size: 16px;
      }

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

      .tools-heading h1 {
        font-size: 36px;
      }

      .tools-heading p {
        font-size: 14px;
      }

      .tool-grid {
        grid-template-columns: 1fr;
      }

      .section-intro {
        display: block;
      }

      .section-intro h2 {
        margin-bottom: 8px;
        font-size: 24px;
      }

      .tools-note {
        display: block;
      }

      .tools-note strong {
        display: block;
        margin-bottom: 5px;
      }

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

      .footer-bottom {
        display: block;
      }

      .footer-bottom span {
        display: block;
        margin-top: 7px;
      }

      .mega-grid {
        grid-template-columns: 1fr;
      }
    }