:root {
      --theme: #0B3D91;
      --theme-dark: #072d6d;
      --theme-soft: #eaf1fc;
      --accent: #2f73dc;
      --ink: #172033;
      --muted: #647087;
      --line: #dfe5ef;
      --surface: #ffffff;
      --soft: #f5f7fa;
      --success: #198754;
      --shadow: 0 18px 45px rgba(16, 39, 75, .1);
      --radius: 18px;
      --container: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body,
    button,
    input {
      font: inherit;
    }

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

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

    button {
      color: inherit;
    }

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

    .topbar {
      color: #dbe7ff;
      background: #061d43;
      font-size: 13px;
    }

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

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

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

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

    .header {
      position: relative;
      z-index: 50;
      background: rgba(255, 255, 255, .98);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 4px 18px rgba(23, 32, 51, .04);
    }

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

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

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

    .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: relative;
      display: flex;
      align-items: center;
    }

    .nav-link {
      height: 100%;
      padding: 0 14px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #2c3546;
      font-size: 15px;
      font-weight: 650;
      white-space: nowrap;
      transition: color .2s ease;
    }

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

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

    .nav-item:hover .has-arrow::after,
    .nav-item:focus-within .has-arrow::after {
      transform: translateY(3px) rotate(225deg);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      visibility: hidden;
      opacity: 0;
      transform: translate(-50%, 10px);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 0 0 16px 16px;
      box-shadow: var(--shadow);
      pointer-events: none;
    }

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

    .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;
      transform: translate(-50%, 0);
      pointer-events: auto;
    }

    .dropdown-panel {
      width: 320px;
      padding: 22px;
    }

    .mega-menu {
      width: min(720px, 80vw);
      padding: 24px;
    }

    .nav-item:nth-last-child(-n+3) .mega-menu {
      right: -110px;
      left: auto;
      transform: translateY(10px);
    }

    .nav-item:nth-last-child(-n+3):hover > .mega-menu,
    .nav-item:nth-last-child(-n+3):focus-within > .mega-menu {
      transform: translateY(0);
    }

    .panel-title,
    .mega-block h3 {
      margin: 0 0 14px;
      color: var(--theme);
      font-size: 15px;
      font-weight: 800;
    }

    .panel-list {
      display: grid;
      gap: 7px;
    }

    .panel-list a {
      padding: 8px 10px;
      color: #3b4659;
      background: var(--soft);
      border-radius: 9px;
      font-size: 14px;
      transition: color .2s ease, background .2s ease;
    }

    .panel-list a:hover {
      color: var(--theme);
      background: var(--theme-soft);
    }

    .mega-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(210px, .85fr);
      gap: 28px;
    }

    .mega-block {
      min-width: 0;
    }

    .mega-block p {
      margin: 0 0 11px;
      color: var(--muted);
      font-size: 14px;
    }

    .broker-mini,
    .video-mini,
    .tool-mini,
    .product-mini {
      padding: 9px;
      display: flex;
      align-items: center;
      gap: 11px;
      border-radius: 10px;
      transition: background .2s ease;
    }

    .broker-mini:hover,
    .video-mini:hover,
    .tool-mini:hover,
    .product-mini:hover {
      background: var(--soft);
    }

    .broker-mini img,
    .tool-mini img {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      object-fit: contain;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #fff;
    }

    .video-mini img,
    .product-mini img {
      width: 64px;
      height: 42px;
      flex: 0 0 64px;
      object-fit: cover;
      border-radius: 8px;
      background: var(--soft);
    }

    .broker-mini span,
    .video-mini span,
    .tool-mini span,
    .product-mini span {
      min-width: 0;
      display: grid;
    }

    .broker-mini strong,
    .video-mini strong,
    .tool-mini strong,
    .product-mini strong {
      overflow: hidden;
      color: var(--ink);
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .broker-mini small,
    .video-mini small,
    .tool-mini small,
    .product-mini small {
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-footer {
      margin-top: 15px;
      padding: 10px 12px;
      display: block;
      color: var(--theme);
      background: var(--theme-soft);
      border-radius: 9px;
      font-size: 14px;
      font-weight: 750;
      text-align: center;
    }

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

    .member-link,
    .open-account {
      min-height: 40px;
      padding: 8px 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 750;
      white-space: nowrap;
    }

    .member-link {
      color: var(--theme);
      border: 1px solid #c7d6ee;
      background: #fff;
    }

    .open-account {
      color: #fff;
      background: var(--theme);
      box-shadow: 0 8px 18px rgba(11, 61, 145, .2);
    }

    .hamburger {
      width: 42px;
      height: 42px;
      padding: 9px;
      display: none;
      border: 0;
      border-radius: 10px;
      background: var(--theme-soft);
      cursor: pointer;
    }

    .hamburger span {
      width: 100%;
      height: 2px;
      margin: 5px 0;
      display: block;
      background: var(--theme);
      border-radius: 4px;
      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;
      z-index: 90;
      inset: 0;
      visibility: hidden;
      opacity: 0;
      background: rgba(5, 16, 34, .55);
      backdrop-filter: blur(3px);
      transition: opacity .25s ease, visibility .25s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      z-index: 100;
      top: 0;
      right: 0;
      bottom: 0;
      width: min(390px, 90vw);
      overflow-y: auto;
      background: #fff;
      box-shadow: -18px 0 45px rgba(9, 28, 59, .18);
      transform: translateX(105%);
      transition: transform .28s ease;
    }

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

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

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

    .drawer-head > a {
      padding: 7px 12px;
      border: 1px solid rgba(255, 255, 255, .45);
      border-radius: 8px;
      font-size: 14px;
      font-weight: 750;
    }

    .drawer-close {
      width: 36px;
      height: 36px;
      padding: 0;
      color: #fff;
      background: transparent;
      border: 0;
      font-size: 30px;
      line-height: 1;
      cursor: pointer;
    }

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

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

    .drawer-toggle {
      justify-content: space-between;
    }

    .drawer-toggle::after {
      content: "+";
      color: var(--theme);
      font-size: 21px;
      font-weight: 400;
    }

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

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      transition: max-height .3s ease;
    }

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

    .drawer-submenu a {
      padding: 10px 12px;
      display: block;
      color: var(--muted);
      border-bottom: 1px dashed #e4e8ef;
      font-size: 14px;
    }

    .tools-page {
      min-height: 70vh;
      background: #f5f7fa;
    }

    .tools-page .tools-intro {
      position: relative;
      overflow: hidden;
      padding: 82px 0 72px;
      color: #fff;
      background:
        radial-gradient(circle at 18% 15%, rgba(73, 137, 236, .46), transparent 29%),
        radial-gradient(circle at 83% 85%, rgba(42, 105, 201, .35), transparent 26%),
        linear-gradient(145deg, #061d43 0%, #0B3D91 55%, #1455ac 100%);
    }

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

    .tools-page .tools-intro::before {
      width: 390px;
      height: 390px;
      top: -240px;
      right: 5%;
    }

    .tools-page .tools-intro::after {
      width: 260px;
      height: 260px;
      bottom: -190px;
      left: 8%;
    }

    .tools-page .breadcrumb {
      position: relative;
      z-index: 1;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      color: #cad9f4;
      font-size: 14px;
    }

    .tools-page .breadcrumb a:hover {
      color: #fff;
    }

    .tools-page .intro-copy {
      position: relative;
      z-index: 1;
      max-width: 790px;
      margin: 0 auto;
      text-align: center;
    }

    .tools-page .eyebrow {
      margin: 0 0 13px;
      color: #bcd4ff;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .15em;
    }

    .tools-page .intro-copy h1 {
      margin: 0;
      font-size: clamp(36px, 6vw, 62px);
      line-height: 1.1;
      letter-spacing: -.035em;
    }

    .tools-page .intro-copy > p:not(.eyebrow) {
      max-width: 680px;
      margin: 20px auto 0;
      color: #dbe7fa;
      font-size: 17px;
    }

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

    .tools-page .intro-points span {
      padding: 8px 13px;
      color: #eef5ff;
      background: rgba(255, 255, 255, .1);
      border: 1px solid rgba(255, 255, 255, .18);
      border-radius: 999px;
      font-size: 13px;
      backdrop-filter: blur(5px);
    }

    .tools-page .tool-directory {
      padding: 74px 0 86px;
    }

    .tools-page .section-heading {
      max-width: 760px;
      margin: 0 auto 36px;
      text-align: center;
    }

    .tools-page .section-heading span {
      color: var(--theme);
      font-size: 13px;
      font-weight: 850;
      letter-spacing: .14em;
    }

    .tools-page .section-heading h2 {
      margin: 8px 0 10px;
      color: var(--ink);
      font-size: clamp(28px, 4vw, 41px);
      line-height: 1.2;
    }

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

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

    .tools-page .tool-card {
      min-width: 0;
      padding: 25px;
      display: flex;
      flex-direction: column;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 7px 24px rgba(25, 47, 82, .05);
      transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    }

    .tools-page .tool-card:hover {
      border-color: #b7c9e7;
      box-shadow: 0 19px 42px rgba(20, 56, 107, .12);
      transform: translateY(-5px);
    }

    .tools-page .tool-card-head {
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .tools-page .tool-icon {
      width: 56px;
      height: 56px;
      padding: 10px;
      flex: 0 0 56px;
      object-fit: contain;
      background: var(--theme-soft);
      border: 1px solid #d8e4f7;
      border-radius: 15px;
    }

    .tools-page .tool-type {
      color: var(--theme);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
    }

    .tools-page .tool-card h3 {
      margin: 3px 0 0;
      color: var(--ink);
      font-size: 19px;
      line-height: 1.35;
    }

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

    .tools-page .tool-action {
      margin-top: auto;
      padding-top: 15px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: var(--theme);
      border-top: 1px solid #edf0f5;
      font-size: 14px;
      font-weight: 800;
    }

    .tools-page .tool-action::after {
      content: "→";
      font-size: 18px;
      transition: transform .2s ease;
    }

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

    .tools-page .research-flow {
      padding: 82px 0;
      background: #fff;
    }

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

    .tools-page .flow-card {
      position: relative;
      min-height: 205px;
      padding: 29px;
      overflow: hidden;
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      counter-increment: flow;
    }

    .tools-page .flow-card::after {
      position: absolute;
      right: 18px;
      bottom: -27px;
      content: "0" counter(flow);
      color: rgba(11, 61, 145, .08);
      font-size: 94px;
      font-weight: 900;
      line-height: 1;
    }

    .tools-page .flow-number {
      width: 38px;
      height: 38px;
      margin-bottom: 19px;
      display: grid;
      place-items: center;
      color: #fff;
      background: var(--theme);
      border-radius: 50%;
      font-size: 13px;
      font-weight: 850;
    }

    .tools-page .flow-card h3 {
      position: relative;
      z-index: 1;
      margin: 0 0 8px;
      font-size: 19px;
    }

    .tools-page .flow-card p {
      position: relative;
      z-index: 1;
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .tools-page .tool-notice {
      padding: 0 0 84px;
      background: #fff;
    }

    .tools-page .notice-box {
      padding: 35px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 28px;
      color: #fff;
      background: linear-gradient(135deg, #082c68, var(--theme));
      border-radius: 22px;
      box-shadow: var(--shadow);
    }

    .tools-page .notice-box h2 {
      margin: 0 0 7px;
      font-size: 25px;
    }

    .tools-page .notice-box p {
      max-width: 760px;
      margin: 0;
      color: #d9e7ff;
      font-size: 14px;
    }

    .tools-page .notice-box a {
      min-height: 45px;
      padding: 10px 19px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--theme);
      background: #fff;
      border-radius: 11px;
      font-size: 14px;
      font-weight: 850;
      white-space: nowrap;
    }

    .footer {
      color: #c7d2e5;
      background: #07172f;
    }

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

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

    .footer p {
      margin: 0 0 9px;
      color: #aab8cf;
      font-size: 14px;
    }

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

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

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

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

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

      .hamburger {
        display: block;
      }

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

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

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

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

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

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

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

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

      .logo {
        min-width: 0;
      }

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

      .logo span {
        max-width: 125px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .member-link {
        display: none;
      }

      .open-account {
        min-height: 38px;
        padding: 7px 11px;
      }

      .tools-page .tools-intro {
        padding: 59px 0 54px;
      }

      .tools-page .intro-copy > p:not(.eyebrow) {
        font-size: 15px;
      }

      .tools-page .tool-directory,
      .tools-page .research-flow {
        padding: 57px 0;
      }

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

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

      .tools-page .tool-notice {
        padding-bottom: 58px;
      }

      .tools-page .notice-box {
        padding: 27px 23px;
        grid-template-columns: 1fr;
      }

      .tools-page .notice-box a {
        width: 100%;
      }

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

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

    @media (max-width: 420px) {
      .topbar-contact {
        display: grid;
      }

      .logo span {
        max-width: 105px;
        font-size: 16px;
      }

      .header-btns {
        gap: 6px;
      }

      .open-account {
        font-size: 13px;
      }

      .tools-page .intro-points {
        align-items: stretch;
        flex-direction: column;
      }

      .tools-page .intro-points span {
        text-align: center;
      }
    }