:root {
      --theme: #0B3D91;
      --theme-deep: #082b68;
      --ink: #142033;
      --muted: #64748b;
      --line: #dce4ef;
      --surface: #ffffff;
      --soft: #f4f7fb;
      --accent: #3c82e8;
      --success: #16845b;
      --shadow: 0 18px 46px rgba(20, 42, 78, .09);
      --radius: 8px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

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

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

    button,
    input,
    select {
      font: inherit;
    }

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

    .topbar {
      color: #d9e6fa;
      background: #0b234b;
      font-size: 13px;
    }

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

    .topbar-contact {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
    }

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

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

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

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

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

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

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

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

    .nav-link {
      display: inline-flex;
      align-items: center;
      min-height: 76px;
      padding: 0 13px;
      color: #34445d;
      font-size: 14px;
      font-weight: 650;
      white-space: nowrap;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
      color: var(--theme);
      background: #f2f6fc;
      outline: none;
    }

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

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: calc(100% - 1px);
      left: 50%;
      width: 360px;
      padding: 22px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 0 0 var(--radius) var(--radius);
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translate(-50%, 8px);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

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

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

    .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);
    }

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

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

    .panel-list a {
      display: block;
      padding: 7px 0;
      color: #42526a;
      font-size: 14px;
      border-bottom: 1px solid #edf1f6;
    }

    .panel-list a:hover,
    .footer-links a:hover {
      color: var(--theme);
    }

    .mega-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
    }

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

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

    .broker-mini,
    .video-mini,
    .tool-mini,
    .product-mini {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      padding: 7px 0;
      border-bottom: 1px solid #edf1f6;
    }

    .broker-mini img,
    .video-mini img,
    .tool-mini img,
    .product-mini img {
      flex: 0 0 auto;
      width: 34px;
      height: 34px;
      object-fit: contain;
      border-radius: 6px;
      background: #f2f5f9;
    }

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

    .broker-mini strong,
    .video-mini strong,
    .tool-mini strong,
    .product-mini strong {
      overflow: hidden;
      color: #263752;
      font-size: 13px;
      font-weight: 750;
      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: 11px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-footer {
      display: inline-flex;
      margin-top: 14px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 750;
    }

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

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

    .open-account {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 36px;
      padding: 0 15px;
      color: #fff;
      background: var(--theme);
      border-radius: 5px;
      font-size: 13px;
      font-weight: 700;
    }

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

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

    .hamburger span {
      display: block;
      height: 2px;
      margin: 4px 0;
      background: var(--theme);
      transition: transform .2s ease;
    }

    .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;
      z-index: 40;
      inset: 0;
      background: rgba(9, 25, 50, .44);
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, visibility .2s ease;
    }

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

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

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

    .drawer-head {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 70px;
      padding: 0 20px;
      color: var(--theme-deep);
      border-bottom: 1px solid var(--line);
      font-weight: 800;
    }

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

    .drawer-head a {
      color: var(--theme);
      font-size: 13px;
    }

    .drawer-close {
      width: 34px;
      height: 34px;
      padding: 0;
      color: var(--theme-deep);
      border: 0;
      background: transparent;
      cursor: pointer;
      font-size: 25px;
      line-height: 1;
    }

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

    .drawer-link,
    .drawer-toggle {
      display: flex;
      align-items: center;
      width: 100%;
      min-height: 48px;
      padding: 0;
      color: #263752;
      border: 0;
      border-bottom: 1px solid #edf1f6;
      background: transparent;
      font-size: 15px;
      text-align: left;
      cursor: pointer;
    }

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

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

    .drawer-submenu {
      display: grid;
      max-height: 0;
      padding-left: 14px;
      overflow: hidden;
      opacity: 0;
      transition: max-height .25s ease, opacity .2s ease;
    }

    .drawer-submenu.open {
      max-height: 500px;
      opacity: 1;
    }

    .drawer-submenu a {
      padding: 9px 0;
      color: var(--muted);
      font-size: 14px;
      border-bottom: 1px solid #f0f3f7;
    }

    .footer {
      color: #d3deef;
      background: #0b234b;
    }

    .footer-main {
      display: grid;
      grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
      gap: 42px;
      padding-top: 52px;
      padding-bottom: 42px;
    }

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

    .footer p {
      margin: 0 0 8px;
      color: #aebed6;
      font-size: 13px;
    }

    .footer-brand p {
      max-width: 270px;
    }

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

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

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      padding-top: 17px;
      padding-bottom: 18px;
      color: #91a6c5;
      border-top: 1px solid rgba(214, 228, 248, .16);
      font-size: 12px;
    }

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

    .page-heading {
      padding: 68px 0 42px;
      background:
        linear-gradient(135deg, rgba(11, 61, 145, .97), rgba(8, 43, 104, .95)),
        #0b3d91;
      color: #fff;
    }

    .page-heading-inner {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
      gap: 35px;
    }

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

    .eyebrow::before {
      content: "";
      width: 22px;
      height: 2px;
      background: #72a9ff;
    }

    .page-heading h1 {
      max-width: 680px;
      margin: 0 0 12px;
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.15;
      letter-spacing: 0;
    }

    .page-heading p {
      max-width: 680px;
      margin: 0;
      color: #d8e5fa;
      font-size: 16px;
    }

    .heading-stat {
      min-width: 190px;
      padding: 18px 20px;
      border: 1px solid rgba(255, 255, 255, .2);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .08);
    }

    .heading-stat span {
      display: block;
      color: #b9d4ff;
      font-size: 12px;
    }

    .heading-stat strong {
      display: block;
      margin-top: 4px;
      color: #fff;
      font-size: 26px;
    }

    .brokerlist-content {
      padding: 42px 0 74px;
    }

    .filter-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 24px;
      padding: 15px 18px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 8px 24px rgba(20, 42, 78, .04);
    }

    .filter-copy {
      color: var(--muted);
      font-size: 13px;
    }

    .filter-copy strong {
      color: var(--ink);
      font-size: 15px;
    }

    .filter-select {
      min-width: 170px;
      padding: 9px 32px 9px 11px;
      color: #34445d;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: #fff;
      cursor: pointer;
    }

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

    .broker-card {
      display: grid;
      grid-template-columns: 76px minmax(0, 1fr);
      gap: 20px;
      padding: 23px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 8px 24px rgba(20, 42, 78, .04);
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .broker-card:hover {
      border-color: #a9c4ef;
      box-shadow: var(--shadow);
      transform: translateY(-2px);
    }

    .broker-logo {
      display: grid;
      place-items: center;
      width: 76px;
      height: 76px;
      border: 1px solid #e5ebf4;
      border-radius: 7px;
      background: #f7f9fc;
    }

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

    .broker-card h2 {
      margin: 0 0 5px;
      color: var(--theme-deep);
      font-size: 19px;
      line-height: 1.3;
    }

    .broker-summary {
      display: -webkit-box;
      margin: 0 0 16px;
      overflow: hidden;
      color: var(--muted);
      font-size: 13px;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .broker-rating {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 14px;
      color: #a56800;
      font-size: 13px;
      font-weight: 750;
    }

    .broker-rating b {
      color: #d28b00;
      font-size: 17px;
    }

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

    .broker-facts div {
      min-width: 0;
      padding: 9px 10px;
      background: #f5f8fc;
      border-radius: 5px;
    }

    .broker-facts dt {
      color: var(--muted);
      font-size: 11px;
    }

    .broker-facts dd {
      margin: 2px 0 0;
      overflow: hidden;
      color: #263752;
      font-size: 13px;
      font-weight: 750;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .broker-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 14px;
    }

    .broker-actions a {
      font-size: 13px;
      font-weight: 750;
    }

    .broker-actions .primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 36px;
      padding: 0 14px;
      color: #fff;
      background: var(--theme);
      border-radius: 5px;
    }

    .broker-actions .primary:hover {
      background: var(--theme-deep);
    }

    .broker-actions .secondary {
      color: var(--theme);
    }

    .pagination {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 36px;
    }

    .pagination a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 38px;
      height: 38px;
      padding: 0 10px;
      color: #52647c;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 5px;
      font-size: 13px;
    }

    .pagination a:hover,
    .pagination a.active,
    .pagination a.current {
      color: #fff;
      background: var(--theme);
      border-color: var(--theme);
    }

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

      .nav-link {
        padding: 0 8px;
      }

      .member-link {
        display: none;
      }

      .footer-main {
        gap: 24px;
      }
    }

    @media (max-width: 820px) {
      .container {
        width: min(100% - 30px, 680px);
      }

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

      .topbar-contact {
        gap: 12px;
      }

      .main-nav {
        display: none;
      }

      .hamburger {
        display: block;
      }

      .open-account {
        display: none;
      }

      .page-heading {
        padding: 48px 0 34px;
      }

      .page-heading-inner {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .heading-stat {
        width: fit-content;
        min-width: 170px;
      }

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

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

    @media (max-width: 540px) {
      .header-inner {
        min-height: 66px;
      }

      .logo {
        font-size: 18px;
      }

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

      .filter-bar {
        align-items: stretch;
        flex-direction: column;
      }

      .filter-select {
        width: 100%;
      }

      .broker-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
        padding: 17px;
      }

      .broker-logo {
        width: 58px;
        height: 58px;
      }

      .broker-logo img {
        width: 44px;
        height: 44px;
      }

      .broker-card h2 {
        font-size: 17px;
      }

      .broker-summary {
        font-size: 12px;
      }

      .broker-facts {
        grid-template-columns: 1fr;
        gap: 7px;
      }

      .footer-main {
        grid-template-columns: 1fr;
        padding-top: 38px;
      }

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