:root {
      --theme: #0B3D91;
      --theme-dark: #082b68;
      --ink: #172033;
      --muted: #667085;
      --line: #dfe5ee;
      --surface: #ffffff;
      --soft: #f4f7fb;
      --page: #eef2f7;
      --shadow: 0 16px 40px rgba(15, 38, 72, .08);
      --radius: 10px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

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

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

    button {
      font: inherit;
    }

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

    .topbar {
      color: #d9e5f8;
      background: #101a2d;
      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: var(--surface);
      border-bottom: 1px solid var(--line);
    }

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

    .logo {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      gap: 10px;
      color: var(--theme-dark);
      font-size: 18px;
      font-weight: 800;
      white-space: nowrap;
    }

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

    .main-nav {
      flex: 1;
    }

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

    .nav-item {
      position: relative;
    }

    .nav-link {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
      padding: 8px 13px;
      color: #344054;
      border-radius: 7px;
      font-size: 14px;
      font-weight: 650;
      white-space: nowrap;
    }

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

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

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

    .mega-menu {
      width: min(760px, 90vw);
    }

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

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

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

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

    .panel-list a,
    .mega-block p {
      color: var(--muted);
      font-size: 13px;
    }

    .panel-list a {
      padding: 7px 0;
      border-bottom: 1px solid #edf0f5;
    }

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

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

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

    .mega-block p {
      margin: 8px 0;
    }

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

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

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

    .broker-mini strong,
    .video-mini strong,
    .tool-mini strong,
    .product-mini strong {
      overflow: hidden;
      color: #26344d;
      font-size: 13px;
      font-weight: 700;
      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: 15px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 750;
    }

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

    .member-link,
    .open-account {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 6px 13px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

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

    .open-account {
      color: #fff;
      background: var(--theme);
    }

    .member-link:hover {
      background: #edf3fc;
    }

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

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

    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      margin: 4px auto;
      background: var(--theme);
      transition: transform .2s ease, opacity .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;
      inset: 0;
      z-index: 40;
      visibility: hidden;
      opacity: 0;
      background: rgba(7, 18, 38, .48);
      transition: opacity .2s ease, visibility .2s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 50;
      width: min(390px, 88vw);
      height: 100vh;
      overflow-y: auto;
      visibility: hidden;
      background: #fff;
      transform: translateX(100%);
      transition: transform .25s ease, visibility .25s ease;
    }

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

    .drawer-head {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 70px;
      padding: 14px 20px;
      color: var(--theme-dark);
      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(--muted);
      cursor: pointer;
      background: #f2f5f9;
      border: 0;
      border-radius: 6px;
      font-size: 24px;
      line-height: 1;
    }

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

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

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

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

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

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

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

    .footer {
      margin-top: 70px;
      color: #c7d4e8;
      background: #101a2d;
    }

    .footer-main {
      display: grid;
      grid-template-columns: 1.35fr 1fr 1fr 1.1fr;
      gap: 34px;
      padding-top: 48px;
      padding-bottom: 42px;
    }

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

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

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

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

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

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

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

    .category-intro {
      padding: 66px 0 38px;
      background: #f7f9fc;
      border-bottom: 1px solid var(--line);
    }

    .category-intro-inner {
      max-width: 760px;
    }

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

    .eyebrow::before {
      content: "";
      width: 22px;
      height: 2px;
      background: var(--theme);
    }

    .category-intro h1 {
      margin: 0 0 13px;
      color: #12213d;
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.2;
      letter-spacing: 0;
    }

    .category-intro p {
      max-width: 690px;
      margin: 0;
      color: var(--muted);
      font-size: 16px;
    }

    .article-list-section {
      padding: 42px 0 12px;
    }

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

    .section-heading h2 {
      margin: 0;
      color: #172b4d;
      font-size: 24px;
      line-height: 1.3;
    }

    .section-heading span {
      color: var(--muted);
      font-size: 13px;
    }

    .article-list {
      display: grid;
      gap: 18px;
    }

    .article-card {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      min-width: 0;
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 7px 22px rgba(21, 45, 82, .045);
    }

    .article-cover {
      min-height: 220px;
      background: #dfe7f2;
    }

    .article-cover img {
      width: 100%;
      height: 100%;
      min-height: 220px;
      object-fit: cover;
    }

    .article-body {
      min-width: 0;
      padding: 23px 26px 20px;
    }

    .article-label {
      display: inline-flex;
      margin-bottom: 9px;
      padding: 3px 9px;
      color: var(--theme);
      background: #eaf1fb;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 750;
    }

    .article-title {
      margin: 0 0 9px;
      color: #172b4d;
      font-size: 22px;
      line-height: 1.35;
    }

    .article-title a:hover {
      color: var(--theme);
    }

    .article-summary {
      display: -webkit-box;
      min-height: 50px;
      margin: 0 0 15px;
      overflow: hidden;
      color: #667085;
      font-size: 14px;
      line-height: 1.8;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .article-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
      padding-top: 13px;
      color: #7b8799;
      border-top: 1px solid #edf0f5;
      font-size: 12px;
    }

    .article-meta strong {
      color: #46546a;
      font-weight: 700;
    }

    .article-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 12px;
      color: var(--theme);
      font-size: 12px;
    }

    .article-tags a {
      padding: 3px 8px;
      background: #f2f6fb;
      border-radius: 4px;
    }

    .article-tags a:hover {
      background: #e3edf9;
    }

    .article-cta {
      display: inline-flex;
      align-items: center;
      margin-top: 16px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 800;
    }

    .article-cta::after {
      content: "→";
      margin-left: 7px;
      font-size: 17px;
    }

    .pagination {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 7px;
      margin: 34px 0 10px;
    }

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

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

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

      .hamburger {
        display: block;
      }

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

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

      .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding-top: 7px;
        padding-bottom: 7px;
      }

      .topbar-contact {
        gap: 10px;
      }

      .header-inner {
        min-height: 66px;
        gap: 10px;
      }

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

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

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

      .category-intro {
        padding: 42px 0 30px;
      }

      .category-intro h1 {
        font-size: 32px;
      }

      .category-intro p {
        font-size: 14px;
      }

      .article-list-section {
        padding-top: 30px;
      }

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

      .article-card {
        grid-template-columns: 1fr;
      }

      .article-cover,
      .article-cover img {
        min-height: 190px;
        height: 190px;
      }

      .article-body {
        padding: 20px;
      }

      .article-title {
        font-size: 19px;
      }

      .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        padding-top: 35px;
        padding-bottom: 30px;
      }

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