:root {
      --theme: #0B3D91;
      --theme-dark: #07285f;
      --theme-soft: #eaf1fb;
      --ink: #172033;
      --muted: #667085;
      --line: #dfe5ee;
      --surface: #ffffff;
      --background: #f5f7fb;
      --success: #138a64;
      --gold: #d69b2d;
      --radius: 18px;
      --shadow: 0 18px 45px rgba(20, 35, 65, .1);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--background);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
      line-height: 1.65;
    }

    body.drawer-locked {
      overflow: hidden;
    }

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

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

    button,
    input {
      font: inherit;
    }

    button,
    a {
      -webkit-tap-highlight-color: transparent;
    }

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

    .topbar {
      color: #dce7fb;
      background: #061a3d;
      font-size: 13px;
    }

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

    .topbar-welcome {
      margin: 0;
    }

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

    .topbar-contact a {
      transition: color .2s ease;
    }

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

    .header {
      position: relative;
      z-index: 40;
      background: rgba(255, 255, 255, .98);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 6px 22px rgba(13, 35, 72, .04);
    }

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

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

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

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

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

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

    .nav-link {
      position: relative;
      display: flex;
      align-items: center;
      padding: 0 13px;
      color: #29364c;
      font-size: 15px;
      font-weight: 700;
      white-space: nowrap;
      transition: color .2s ease;
    }

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

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

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

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

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

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

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

    .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;
      pointer-events: auto;
      transform: translateY(0);
    }

    .dropdown-shell,
    .mega-shell {
      width: min(1120px, calc(100% - 40px));
      margin: 0 auto;
      padding: 24px;
      overflow: hidden;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 0 0 18px 18px;
      box-shadow: 0 24px 50px rgba(18, 39, 76, .16);
    }

    .dropdown-head,
    .mega-heading-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 18px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--line);
    }

    .dropdown-head strong,
    .mega-heading-row strong {
      font-size: 18px;
    }

    .dropdown-head a,
    .mega-heading-row a,
    .mega-footer {
      color: var(--theme);
      font-weight: 750;
    }

    .dropdown-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .dropdown-story {
      min-width: 0;
      padding: 10px;
      background: #f8faff;
      border: 1px solid #e8edf5;
      border-radius: 12px;
    }

    .dropdown-story img {
      width: 100%;
      height: 90px;
      margin-bottom: 8px;
      object-fit: cover;
      border-radius: 8px;
    }

    .dropdown-story span {
      display: block;
      overflow: hidden;
      font-size: 14px;
      font-weight: 700;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-body {
      display: grid;
      grid-template-columns: 180px minmax(0, 1fr);
      gap: 22px;
    }

    .mega-categories {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 14px;
      background: var(--theme-soft);
      border-radius: 14px;
    }

    .mega-categories-title {
      margin-bottom: 5px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .08em;
    }

    .mega-categories a {
      padding: 7px 8px;
      border-radius: 8px;
      font-size: 14px;
    }

    .mega-categories a:hover {
      color: var(--theme);
      background: #ffffff;
    }

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

    .mega-card {
      min-width: 0;
      padding: 13px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 13px;
      transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }

    .mega-card:hover {
      border-color: #aac1e7;
      box-shadow: 0 10px 24px rgba(11, 61, 145, .09);
      transform: translateY(-2px);
    }

    .mega-card > img {
      width: 100%;
      height: 72px;
      margin-bottom: 9px;
      object-fit: cover;
      border-radius: 8px;
    }

    .mega-card > img.mega-logo,
    .mega-card > img.mega-icon {
      width: 42px;
      height: 42px;
      object-fit: contain;
    }

    .mega-card strong {
      display: block;
      overflow: hidden;
      color: #1a2740;
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-card p {
      display: -webkit-box;
      margin: 6px 0 0;
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .mega-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 8px;
      margin-top: 8px;
      color: var(--muted);
      font-size: 11px;
    }

    .mega-footer {
      display: block;
      margin: 18px -24px -24px;
      padding: 13px 24px;
      text-align: center;
      background: #f5f8fd;
      border-top: 1px solid var(--line);
    }

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

    .header-member {
      color: var(--theme);
      font-weight: 700;
    }

    .account-btn {
      padding: 10px 15px;
      color: #ffffff;
      background: var(--theme);
      border-radius: 10px;
      font-size: 14px;
      font-weight: 750;
      box-shadow: 0 8px 18px rgba(11, 61, 145, .18);
    }

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

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

    .hamburger span {
      width: 100%;
      height: 2px;
      display: block;
      margin: 5px 0;
      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: 80;
      visibility: hidden;
      background: rgba(3, 13, 31, .62);
      opacity: 0;
      transition: opacity .25s ease, visibility .25s ease;
    }

    .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: -20px 0 55px rgba(8, 23, 51, .2);
      transform: translateX(105%);
      transition: transform .28s 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(--theme);
    }

    .drawer-head > a {
      padding: 7px 10px;
      border: 1px solid rgba(255, 255, 255, .38);
      border-radius: 8px;
      font-weight: 700;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      margin-left: auto;
      color: #ffffff;
      background: rgba(255, 255, 255, .12);
      border: 0;
      border-radius: 50%;
      font-size: 27px;
      line-height: 1;
      cursor: pointer;
    }

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

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 4px;
      color: var(--ink);
      background: transparent;
      border: 0;
      border-bottom: 1px solid var(--line);
      font-weight: 750;
      text-align: left;
      cursor: pointer;
    }

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

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

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: #f6f8fc;
      border-radius: 0 0 10px 10px;
      transition: max-height .3s ease;
    }

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

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

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

    .tools-page .tools-hero {
      position: relative;
      overflow: hidden;
      padding: 76px 0 70px;
      color: #ffffff;
      background:
        radial-gradient(circle at 16% 15%, rgba(88, 148, 255, .28), transparent 30%),
        radial-gradient(circle at 85% 70%, rgba(214, 155, 45, .18), transparent 28%),
        linear-gradient(145deg, #061a3d 0%, #0B3D91 57%, #082d6d 100%);
    }

    .tools-page .tools-hero::before,
    .tools-page .tools-hero::after {
      position: absolute;
      content: "";
      border: 1px solid rgba(255, 255, 255, .13);
      border-radius: 50%;
    }

    .tools-page .tools-hero::before {
      width: 360px;
      height: 360px;
      top: -200px;
      right: 8%;
    }

    .tools-page .tools-hero::after {
      width: 230px;
      height: 230px;
      bottom: -150px;
      left: 8%;
    }

    .tools-page .tools-hero-inner {
      position: relative;
      z-index: 1;
      max-width: 820px;
      margin: 0 auto;
      text-align: center;
    }

    .tools-page .eyebrow {
      display: inline-flex;
      padding: 6px 13px;
      color: #ffe3a6;
      background: rgba(255, 255, 255, .1);
      border: 1px solid rgba(255, 227, 166, .35);
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .12em;
    }

    .tools-page .tools-hero h1 {
      margin: 18px 0 15px;
      font-size: clamp(34px, 5vw, 62px);
      line-height: 1.15;
      letter-spacing: -.03em;
    }

    .tools-page .tools-hero p {
      max-width: 700px;
      margin: 0 auto;
      color: #dce7fb;
      font-size: 18px;
    }

    .tools-page .hero-points {
      margin-top: 28px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }

    .tools-page .hero-points span {
      padding: 8px 13px;
      background: rgba(255, 255, 255, .09);
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 999px;
      font-size: 14px;
    }

    .tools-page .tools-content {
      padding: 56px 0 80px;
    }

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

    .tools-page .section-heading h2 {
      margin: 0 0 6px;
      color: #13213a;
      font-size: clamp(26px, 3vw, 38px);
      line-height: 1.25;
    }

    .tools-page .section-heading p {
      margin: 0;
      color: var(--muted);
    }

    .tools-page .tool-note {
      flex: 0 0 auto;
      padding: 8px 12px;
      color: var(--theme);
      background: var(--theme-soft);
      border-radius: 999px;
      font-size: 13px;
      font-weight: 800;
    }

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

    .tools-page .tool-card {
      min-width: 0;
      display: flex;
      flex-direction: column;
      padding: 24px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 10px 30px rgba(20, 35, 65, .05);
      transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    }

    .tools-page .tool-card:hover {
      border-color: #9bb8e8;
      box-shadow: var(--shadow);
      transform: translateY(-5px);
    }

    .tools-page .tool-icon-wrap {
      width: 60px;
      height: 60px;
      display: grid;
      place-items: center;
      margin-bottom: 18px;
      background: var(--theme-soft);
      border-radius: 16px;
    }

    .tools-page .tool-icon-wrap img {
      width: 38px;
      height: 38px;
      object-fit: contain;
    }

    .tools-page .tool-card h3 {
      margin: 0 0 10px;
      color: #15233d;
      font-size: 20px;
      line-height: 1.35;
    }

    .tools-page .tool-card p {
      margin: 0 0 22px;
      color: var(--muted);
      font-size: 15px;
    }

    .tools-page .tool-link {
      margin-top: auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--theme);
      font-weight: 800;
    }

    .tools-page .tool-link::after {
      content: "→";
      transition: transform .2s ease;
    }

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

    .tools-page .guide-panel {
      margin-top: 54px;
      padding: 34px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: 0 15px 36px rgba(20, 35, 65, .06);
    }

    .tools-page .guide-panel h2 {
      margin: 0 0 22px;
      font-size: 28px;
    }

    .tools-page .guide-steps {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .tools-page .guide-step {
      position: relative;
      padding: 20px;
      background: #f7f9fd;
      border-radius: 15px;
    }

    .tools-page .guide-step strong {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      margin-bottom: 12px;
      color: #ffffff;
      background: var(--theme);
      border-radius: 50%;
    }

    .tools-page .guide-step h3 {
      margin: 0 0 6px;
      font-size: 18px;
    }

    .tools-page .guide-step p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .tools-page .risk-box {
      margin-top: 24px;
      padding: 18px 20px;
      color: #674f20;
      background: #fff8e8;
      border: 1px solid #f0d99f;
      border-radius: 13px;
      font-size: 14px;
    }

    .tools-page .tools-cta {
      margin-top: 54px;
      padding: 40px;
      color: #ffffff;
      text-align: center;
      background: linear-gradient(135deg, var(--theme-dark), var(--theme));
      border-radius: 24px;
    }

    .tools-page .tools-cta h2 {
      margin: 0 0 10px;
      font-size: 30px;
    }

    .tools-page .tools-cta p {
      max-width: 650px;
      margin: 0 auto 22px;
      color: #d9e6fb;
    }

    .tools-page .cta-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }

    .tools-page .cta-primary,
    .tools-page .cta-secondary {
      padding: 11px 18px;
      border-radius: 10px;
      font-weight: 800;
    }

    .tools-page .cta-primary {
      color: var(--theme-dark);
      background: #ffffff;
    }

    .tools-page .cta-secondary {
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, .4);
    }

    .footer {
      color: #cbd5e6;
      background: #07162f;
    }

    .footer-main {
      padding: 58px 0 42px;
      display: grid;
      grid-template-columns: 1.35fr .8fr .8fr 1fr;
      gap: 42px;
    }

    .footer .logo {
      color: #ffffff;
    }

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

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

    .footer-links,
    .footer-contact {
      display: flex;
      flex-direction: column;
      gap: 9px;
    }

    .footer-links a,
    .footer-contact a {
      color: #b9c5d8;
      font-size: 14px;
      transition: color .2s ease;
    }

    .footer-links a:hover,
    .footer-contact a:hover {
      color: #ffffff;
    }

    .footer-social {
      margin-top: 8px;
    }

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

    .footer-bottom p {
      margin: 0;
    }

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

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

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

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

      .hamburger {
        display: block;
      }

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

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

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

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

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

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

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

      .header-member,
      .account-btn {
        display: none;
      }

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

      .tools-page .tools-hero p {
        font-size: 16px;
      }

      .tools-page .tools-content {
        padding: 42px 0 58px;
      }

      .tools-page .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
      }

      .tools-page .tools-grid {
        grid-template-columns: 1fr;
      }

      .tools-page .tool-card {
        padding: 21px;
      }

      .tools-page .guide-panel {
        padding: 24px 18px;
      }

      .tools-page .guide-steps {
        grid-template-columns: 1fr;
      }

      .tools-page .tools-cta {
        padding: 32px 20px;
      }

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

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