:root {
      --theme: #0B3D91;
      --theme-dark: #082d6b;
      --ink: #172033;
      --muted: #64748b;
      --line: #dbe3ef;
      --soft: #f3f6fa;
      --white: #fff;
      --shadow: 0 16px 38px rgba(15, 37, 74, .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", Arial, sans-serif;
      line-height: 1.6;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    button { font: inherit; }
    .container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

    .topbar {
      color: #dce8fb;
      background: #071a3b;
      font-size: 13px;
    }
    .topbar-inner {
      min-height: 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }
    .topbar-contact { display: flex; gap: 18px; }
    .topbar a:hover { color: #fff; }

    .header {
      position: relative;
      z-index: 20;
      background: var(--white);
      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;
      gap: 10px;
      min-width: 190px;
      color: var(--theme);
      font-size: 19px;
      font-weight: 800;
      white-space: nowrap;
    }
    .logo img {
      width: 34px;
      height: 34px;
      object-fit: contain;
    }
    .main-nav { flex: 1; }
    .nav-list {
      display: flex;
      justify-content: center;
      align-items: stretch;
      gap: 3px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    .nav-item { position: relative; }
    .nav-link {
      display: inline-flex;
      align-items: center;
      min-height: 76px;
      padding: 0 13px;
      color: #344156;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }
    .nav-link:hover,
    .nav-item:focus-within > .nav-link { color: var(--theme); }
    .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%;
      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 var(--radius) var(--radius);
      box-shadow: var(--shadow);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }
    .mega-menu { width: 650px; }
    .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);
    }
    .dropdown-panel::before,
    .mega-menu::before {
      content: "";
      position: absolute;
      top: -10px;
      left: 0;
      right: 0;
      height: 10px;
    }
    .panel-title,
    .mega-block h3 {
      margin: 0 0 14px;
      color: var(--theme);
      font-size: 14px;
      font-weight: 800;
    }
    .panel-list { display: grid; gap: 9px; }
    .panel-list a,
    .footer-links a {
      color: #526078;
      font-size: 13px;
    }
    .panel-list a:hover,
    .footer-links a:hover { color: var(--theme); }
    .mega-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 25px;
    }
    .mega-block + .mega-block {
      padding-left: 24px;
      border-left: 1px solid var(--line);
    }
    .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: 9px;
      padding: 8px 0;
      border-bottom: 1px solid #edf1f6;
    }
    .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: 5px;
      background: var(--soft);
    }
    .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: var(--ink);
      font-size: 12px;
      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: 800;
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 10px;
      white-space: nowrap;
    }
    .member-link {
      color: var(--theme);
      font-size: 13px;
      font-weight: 700;
    }
    .open-account {
      padding: 9px 15px;
      color: #fff;
      background: var(--theme);
      border-radius: 5px;
      font-size: 13px;
      font-weight: 800;
    }
    .open-account:hover { background: var(--theme-dark); }
    .hamburger {
      display: none;
      width: 42px;
      height: 42px;
      padding: 10px;
      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, 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(5, 18, 40, .48);
      transition: opacity .2s ease, visibility .2s ease;
    }
    .drawer-overlay.open { visibility: visible; opacity: 1; }
    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 50;
      width: min(360px, 88vw);
      padding-bottom: 28px;
      overflow-y: auto;
      visibility: hidden;
      transform: translateX(100%);
      background: #fff;
      box-shadow: -15px 0 40px rgba(5, 18, 40, .18);
      transition: transform .25s ease, visibility .25s ease;
    }
    .mobile-drawer.open {
      visibility: visible;
      transform: translateX(0);
    }
    .drawer-head {
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px 20px;
      color: var(--theme);
      border-bottom: 1px solid var(--line);
      font-weight: 800;
    }
    .drawer-head span { flex: 1; }
    .drawer-head a { font-size: 13px; }
    .drawer-close {
      width: 32px;
      height: 32px;
      padding: 0;
      color: var(--theme);
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 4px;
      cursor: pointer;
      font-size: 22px;
      line-height: 1;
    }
    .drawer-menu { padding: 8px 20px; }
    .drawer-link,
    .drawer-toggle {
      width: 100%;
      display: block;
      padding: 13px 0;
      color: #354258;
      border: 0;
      border-bottom: 1px solid #edf1f6;
      background: transparent;
      text-align: left;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }
    .drawer-toggle::after {
      content: "+";
      float: right;
      color: var(--theme);
      font-size: 18px;
      font-weight: 400;
    }
    .drawer-toggle.active::after { content: "−"; }
    .drawer-submenu {
      display: none;
      padding: 4px 0 8px 14px;
      border-bottom: 1px solid #edf1f6;
    }
    .drawer-submenu.open { display: grid; }
    .drawer-submenu a {
      padding: 8px 0;
      color: var(--muted);
      font-size: 13px;
    }

    .tag-page {
      padding: 58px 0 80px;
    }
    .tag-hero {
      padding: 42px 30px;
      color: #fff;
      background: linear-gradient(135deg, #092d68, #0B3D91);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    .tag-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 12px;
      color: #bcd4f7;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .08em;
    }
    .tag-kicker::before {
      content: "";
      width: 8px;
      height: 8px;
      background: #72b4ff;
      border-radius: 50%;
    }
    .tag-hero h1 {
      margin: 0 0 12px;
      font-size: clamp(28px, 4vw, 46px);
      line-height: 1.15;
    }
    .tag-hero p {
      max-width: 680px;
      margin: 0;
      color: #d9e7fb;
      font-size: 15px;
    }
    .tag-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 22px;
      margin-top: 24px;
      color: #d9e7fb;
      font-size: 13px;
    }
    .tag-summary strong { color: #fff; }
    .tag-content {
      margin-top: 30px;
      padding: 28px;
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 10px 28px rgba(15, 37, 74, .05);
    }
    .tag-content-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 20px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }
    .tag-content-head h2 {
      margin: 0;
      color: var(--ink);
      font-size: 21px;
    }
    .tag-content-head span {
      color: var(--muted);
      font-size: 13px;
    }
    .tag-article-list { display: grid; gap: 0; }
    .tag-article {
      display: grid;
      grid-template-columns: 210px minmax(0, 1fr);
      gap: 22px;
      padding: 20px 0;
      border-bottom: 1px solid var(--line);
    }
    .tag-article:last-child { border-bottom: 0; }
    .tag-article-cover {
      aspect-ratio: 16 / 10;
      overflow: hidden;
      background: var(--soft);
      border-radius: 6px;
    }
    .tag-article-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .tag-article-body { min-width: 0; }
    .tag-article-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 12px;
    }
    .tag-article-title {
      display: inline-block;
      margin-bottom: 7px;
      color: var(--ink);
      font-size: 18px;
      font-weight: 800;
      line-height: 1.35;
    }
    .tag-article-title:hover { color: var(--theme); }
    .tag-article-summary {
      display: -webkit-box;
      margin: 0 0 12px;
      overflow: hidden;
      color: #59677c;
      font-size: 14px;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }
    .tag-article-foot {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 18px;
      color: var(--muted);
      font-size: 12px;
    }
    .tag-article-foot a {
      color: var(--theme);
      font-weight: 800;
    }
    .tag-label {
      display: inline-flex;
      padding: 3px 8px;
      color: var(--theme);
      background: #eaf1fc;
      border-radius: 4px;
    }
    .pagination {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 28px;
    }
    .pagination a {
      min-width: 36px;
      padding: 7px 11px;
      color: #536176;
      border: 1px solid var(--line);
      border-radius: 4px;
      text-align: center;
      font-size: 13px;
    }
    .pagination a:hover,
    .pagination a.active {
      color: #fff;
      border-color: var(--theme);
      background: var(--theme);
    }

    .footer {
      color: #dbe6f6;
      background: #071a3b;
    }
    .footer-main {
      display: grid;
      grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
      gap: 35px;
      padding-top: 48px;
      padding-bottom: 42px;
    }
    .footer h3 {
      margin: 0 0 15px;
      color: #fff;
      font-size: 15px;
    }
    .footer p {
      margin: 0 0 8px;
      color: #aebed7;
      font-size: 13px;
    }
    .footer-links { display: grid; gap: 8px; }
    .footer-links a { color: #aebed7; }
    .footer-contact a { color: #dbe6f6; }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      padding-top: 17px;
      padding-bottom: 17px;
      color: #91a5c2;
      border-top: 1px solid rgba(219, 230, 246, .15);
      font-size: 12px;
    }

    @media (max-width: 1050px) {
      .header-inner { gap: 15px; }
      .logo { min-width: 155px; }
      .nav-link { padding: 0 8px; }
      .member-link { display: none; }
    }
    @media (max-width: 820px) {
      .container { width: min(100% - 30px, 680px); }
      .topbar-inner { align-items: flex-start; flex-direction: column; gap: 3px; padding-top: 8px; padding-bottom: 8px; }
      .topbar-contact { gap: 12px; }
      .main-nav { display: none; }
      .header-inner { min-height: 68px; }
      .header-btns { margin-left: auto; }
      .hamburger { display: block; }
      .open-account { padding: 8px 12px; }
      .tag-page { padding: 35px 0 55px; }
      .tag-hero { padding: 30px 22px; }
      .tag-content { padding: 20px 17px; }
      .tag-article { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
      .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    }
    @media (max-width: 560px) {
      .topbar-contact { flex-direction: column; gap: 0; }
      .open-account { display: none; }
      .tag-hero h1 { font-size: 31px; }
      .tag-content-head { align-items: flex-start; flex-direction: column; gap: 5px; }
      .tag-article { grid-template-columns: 1fr; gap: 13px; }
      .tag-article-cover { max-height: 190px; }
      .footer-main { grid-template-columns: 1fr; }
      .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
    }