:root {
      --theme: #0B3D91;
      --ink: #172033;
      --muted: #687386;
      --line: #dfe5ed;
      --paper: #f7f9fc;
      --white: #ffffff;
      --dark: #101a2b;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
      line-height: 1.7;
    }

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

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

    button,
    input {
      font: inherit;
    }

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

    .topbar {
      color: #dbe6fa;
      background: #0b1930;
      font-size: 13px;
    }

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

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

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

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

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

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

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

    .main-nav {
      flex: 1;
    }

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

    .nav-item {
      position: relative;
    }

    .nav-link {
      display: block;
      padding: 25px 13px;
      color: #334158;
      font-size: 14px;
      white-space: nowrap;
    }

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

    .has-arrow::after {
      content: "⌄";
      margin-left: 5px;
      font-size: 12px;
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      z-index: 30;
      width: 330px;
      padding: 18px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 0 0 14px 14px;
      box-shadow: 0 18px 40px rgba(18, 39, 73, .15);
      opacity: 0;
      visibility: hidden;
      transform: translate(-50%, 8px);
      transition: .2s ease;
    }

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

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

    .dropdown-panel > a:not(.mega-footer) {
      display: block;
      padding: 9px 10px;
      border-bottom: 1px solid #edf0f5;
      font-size: 14px;
    }

    .dropdown-panel > a:hover,
    .mega-card:hover {
      color: var(--theme);
      background: #f1f5fb;
    }

    .mega-menu {
      width: min(680px, 85vw);
    }

    .mega-heading {
      display: flex;
      justify-content: space-between;
      margin-bottom: 12px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 800;
    }

    .mega-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      max-height: 350px;
      overflow: auto;
    }

    .mega-card {
      display: block;
      min-height: 68px;
      padding: 10px;
      border: 1px solid #e5eaf2;
      border-radius: 9px;
      transition: .2s ease;
    }

    .mega-card img {
      width: 26px;
      height: 26px;
      margin-bottom: 3px;
      object-fit: contain;
    }

    .mega-card strong,
    .mega-card small {
      display: block;
    }

    .mega-card strong {
      font-size: 13px;
    }

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

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

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

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

    .account-link {
      padding: 8px 14px;
      color: #fff;
      background: var(--theme);
      border-radius: 7px;
      font-size: 13px;
      font-weight: 700;
    }

    .hamburger {
      display: none;
      width: 42px;
      height: 40px;
      padding: 9px;
      border: 0;
      background: transparent;
      cursor: pointer;
    }

    .hamburger span {
      display: block;
      width: 24px;
      height: 2px;
      margin: 5px auto;
      background: var(--ink);
      transition: .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: 50;
      background: rgba(5, 17, 35, .54);
      opacity: 0;
      visibility: hidden;
      transition: .25s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 60;
      width: min(390px, 88vw);
      height: 100vh;
      padding: 20px;
      overflow-y: auto;
      background: #fff;
      box-shadow: -15px 0 35px rgba(10, 27, 54, .18);
      transform: translateX(100%);
      transition: .3s ease;
    }

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

    .drawer-head {
      display: flex;
      align-items: center;
      gap: 14px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
      color: var(--theme);
      font-weight: 800;
    }

    .drawer-head > span {
      flex: 1;
    }

    .drawer-head a {
      padding: 6px 10px;
      color: #fff;
      background: var(--theme);
      border-radius: 5px;
      font-size: 12px;
    }

    .drawer-close {
      border: 0;
      background: transparent;
      color: var(--ink);
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
    }

    .drawer-menu {
      padding-top: 12px;
    }

    .drawer-link,
    .drawer-toggle {
      display: block;
      width: 100%;
      padding: 13px 4px;
      color: var(--ink);
      border: 0;
      border-bottom: 1px solid #edf0f5;
      background: transparent;
      text-align: left;
      cursor: pointer;
      font-size: 15px;
    }

    .drawer-toggle::after {
      content: "+";
      float: right;
      color: var(--theme);
    }

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

    .drawer-submenu {
      display: none;
      padding: 5px 12px 8px;
      background: #f7f9fc;
    }

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

    .drawer-submenu a {
      display: block;
      padding: 8px 0;
      color: var(--muted);
      border-bottom: 1px solid #e8edf3;
      font-size: 13px;
    }

    .tools-page {
      padding-bottom: 80px;
    }

    .tools-hero {
      padding: 74px 0 58px;
      color: #fff;
      background:
        radial-gradient(circle at 15% 20%, rgba(54, 129, 217, .34), transparent 28%),
        linear-gradient(135deg, #0c254d, #0B3D91 58%, #102b5b);
      text-align: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      color: #b7d5ff;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .12em;
    }

    .eyebrow::before {
      content: "";
      width: 28px;
      height: 2px;
      background: #8bbcff;
    }

    .tools-hero h1 {
      max-width: 780px;
      margin: 0 auto 14px;
      font-size: clamp(34px, 5vw, 58px);
      line-height: 1.2;
      letter-spacing: -.04em;
    }

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

    .tools-wrap {
      margin-top: -28px;
      position: relative;
      z-index: 2;
    }

    .tools-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 20px 24px;
      background: #fff;
      border: 1px solid #e1e8f1;
      border-radius: 14px;
      box-shadow: 0 12px 28px rgba(19, 46, 87, .1);
    }

    .tools-toolbar h2 {
      margin: 0;
      color: var(--ink);
      font-size: 20px;
    }

    .tools-toolbar p {
      margin: 3px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .tool-search {
      width: min(320px, 100%);
      padding: 11px 14px;
      border: 1px solid #d7e0eb;
      border-radius: 7px;
      outline: 0;
      color: var(--ink);
      background: #fbfcfe;
    }

    .tool-search:focus {
      border-color: var(--theme);
      box-shadow: 0 0 0 3px rgba(11, 61, 145, .1);
    }

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

    .tool-card {
      display: flex;
      min-height: 225px;
      flex-direction: column;
      padding: 24px;
      background: #fff;
      border: 1px solid #e3e9f1;
      border-radius: 13px;
      box-shadow: 0 6px 18px rgba(24, 43, 70, .04);
      transition: .2s ease;
    }

    .tool-card:hover {
      border-color: #a9c4ea;
      box-shadow: 0 14px 28px rgba(22, 58, 112, .11);
      transform: translateY(-4px);
    }

    .tool-icon {
      width: 52px;
      height: 52px;
      padding: 9px;
      margin-bottom: 16px;
      border-radius: 12px;
      object-fit: contain;
      background: #edf4ff;
    }

    .tool-card h3 {
      margin: 0 0 8px;
      color: var(--ink);
      font-size: 19px;
    }

    .tool-card p {
      display: -webkit-box;
      flex: 1;
      margin: 0 0 18px;
      overflow: hidden;
      color: var(--muted);
      font-size: 14px;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

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

    .tool-action::after {
      content: "→";
      transition: .2s ease;
    }

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

    .tools-note {
      margin-top: 35px;
      padding: 22px 26px;
      color: #31435e;
      background: #edf4fc;
      border-left: 4px solid var(--theme);
      border-radius: 8px;
    }

    .tools-note strong {
      display: block;
      margin-bottom: 4px;
      color: var(--theme);
    }

    .footer {
      color: #d9e4f5;
      background: #101a2b;
    }

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

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

    .footer h2,
    .footer h3 {
      margin: 0 0 15px;
      color: #fff;
    }

    .footer h2 {
      font-size: 20px;
    }

    .footer h3 {
      font-size: 15px;
    }

    .footer p {
      max-width: 280px;
      margin: 0;
      color: #aebdd2;
      font-size: 13px;
    }

    .footer-links {
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 8px;
      color: #aebdd2;
      font-size: 13px;
    }

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

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      padding: 20px 0;
      color: #91a4bd;
      border-top: 1px solid rgba(255, 255, 255, .12);
      font-size: 12px;
    }

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

      .header-inner {
        justify-content: space-between;
      }

      .hamburger {
        display: block;
      }

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

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

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

      .topbar .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
      }

      .topbar-links {
        gap: 12px;
        font-size: 11px;
      }

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

      .logo {
        min-width: 0;
      }

      .member-link,
      .account-link {
        display: none;
      }

      .tools-hero {
        padding: 54px 0 48px;
      }

      .tools-hero h1 {
        font-size: 35px;
      }

      .tools-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
      }

      .tool-search {
        width: 100%;
      }

      .tool-grid {
        grid-template-columns: 1fr;
        padding-top: 24px;
      }

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

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