:root{
      --theme:#0B3D91;
      --theme-dark:#072b68;
      --theme-soft:#eaf1fc;
      --accent:#f3a712;
      --green:#16845b;
      --ink:#142033;
      --muted:#657286;
      --line:#dce3ed;
      --surface:#ffffff;
      --background:#f5f7fb;
      --shadow:0 18px 45px rgba(21,38,69,.10);
      --radius:18px;
    }

    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      color:var(--ink);
      background:var(--background);
      font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
      line-height:1.65;
    }
    body,button,input,select{font:inherit}
    img{display:block;max-width:100%}
    a{color:inherit;text-decoration:none}
    button{color:inherit}
    .container{width:min(1180px,calc(100% - 40px));margin-inline:auto}

    .topbar{
      color:#dce9ff;
      background:#061f49;
      font-size:13px;
    }
    .topbar .container{
      min-height:38px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
    }
    .topbar-links{display:flex;align-items:center;gap:22px}
    .topbar a:hover{color:#fff}

    .header{
      position:relative;
      z-index:100;
      background:rgba(255,255,255,.98);
      border-bottom:1px solid var(--line);
      box-shadow:0 5px 20px rgba(20,32,51,.04);
    }
    .header-inner{
      min-height:78px;
      display:flex;
      align-items:center;
      gap:24px;
    }
    .logo{
      flex:none;
      display:inline-flex;
      align-items:center;
      gap:10px;
      color:var(--theme);
      font-size:19px;
      font-weight:800;
      letter-spacing:.01em;
    }
    .logo img{
      width:42px;
      height:42px;
      object-fit:contain;
      border-radius:10px;
    }
    .main-nav{margin-left:auto;align-self:stretch}
    .nav-list{
      height:100%;
      display:flex;
      align-items:stretch;
      gap:2px;
      margin:0;
      padding:0;
      list-style:none;
    }
    .nav-item{
      position:relative;
      display:flex;
      align-items:center;
    }
    .nav-link{
      height:100%;
      display:flex;
      align-items:center;
      padding:0 12px;
      color:#2b3749;
      font-size:15px;
      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-left:7px;
      border-right:1.5px solid currentColor;
      border-bottom:1.5px solid currentColor;
      transform:rotate(45deg) translateY(-2px);
    }
    .dropdown-panel,
    .mega-menu{
      position:absolute;
      top:100%;
      left:50%;
      visibility:hidden;
      opacity:0;
      transform:translate(-50%,10px);
      pointer-events:none;
      transition:.2s ease;
      background:#fff;
      border:1px solid var(--line);
      border-radius:0 0 16px 16px;
      box-shadow:var(--shadow);
    }
    .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{
      visibility:visible;
      opacity:1;
      transform:translate(-50%,0);
      pointer-events:auto;
    }
    .dropdown-panel{
      width:280px;
      padding:12px;
    }
    .dropdown-panel a{
      display:block;
      padding:10px 12px;
      border-radius:9px;
      color:#344055;
      font-size:14px;
    }
    .dropdown-panel a:hover{color:var(--theme);background:var(--theme-soft)}
    .mega-menu{
      width:min(720px,80vw);
      padding:24px;
      display:grid;
      grid-template-columns:1.25fr .75fr;
      gap:28px;
    }
    .nav-item:nth-child(5) .mega-menu,
    .nav-item:nth-child(6) .mega-menu{
      left:auto;
      right:0;
      transform:translateY(10px);
    }
    .nav-item:nth-child(5):hover>.mega-menu,
    .nav-item:nth-child(5):focus-within>.mega-menu,
    .nav-item:nth-child(6):hover>.mega-menu,
    .nav-item:nth-child(6):focus-within>.mega-menu{
      transform:translateY(0);
    }
    .mega-column{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:6px;
    }
    .mega-title{
      margin:0 0 8px;
      color:var(--theme);
      font-size:15px;
    }
    .mega-column>a{
      padding:9px 10px;
      border-radius:10px;
      color:#344055;
      font-size:14px;
    }
    .mega-column>a:hover{color:var(--theme);background:var(--theme-soft)}
    .mega-broker-card,
    .mega-video-card,
    .mega-product-card{
      display:flex;
      align-items:center;
      gap:11px;
    }
    .mega-broker-card img,
    .mega-product-card img{
      width:38px;
      height:38px;
      flex:none;
      border-radius:9px;
      object-fit:contain;
      background:#f4f7fb;
    }
    .mega-video-card img{
      width:64px;
      height:40px;
      flex:none;
      border-radius:7px;
      object-fit:cover;
    }
    .mega-broker-card span,
    .mega-video-card span,
    .mega-product-card span{
      min-width:0;
      overflow:hidden;
      text-overflow:ellipsis;
    }
    .mega-card-meta{
      color:var(--muted);
      font-size:12px;
      font-weight:400;
    }
    .mega-footer{
      margin-top:7px;
      color:var(--theme)!important;
      background:var(--theme-soft);
      font-weight:800;
      text-align:center;
    }

    .header-btns{
      flex:none;
      display:flex;
      align-items:center;
      gap:9px;
    }
    .member-btn,
    .account-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:40px;
      padding:0 15px;
      border-radius:10px;
      font-size:14px;
      font-weight:800;
    }
    .member-btn{color:var(--theme);border:1px solid #bfd0ec}
    .account-btn{color:#fff;background:var(--theme);box-shadow:0 8px 18px rgba(11,61,145,.2)}
    .member-btn:hover{background:var(--theme-soft)}
    .account-btn:hover{background:var(--theme-dark)}
    .hamburger{
      width:42px;
      height:42px;
      display:none;
      padding:9px;
      border:0;
      border-radius:10px;
      background:var(--theme-soft);
      cursor:pointer;
    }
    .hamburger span{
      display:block;
      width:100%;
      height:2px;
      margin:5px 0;
      background:var(--theme);
      transition:.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:998;
      inset:0;
      visibility:hidden;
      opacity:0;
      background:rgba(4,16,35,.58);
      transition:.25s ease;
    }
    .drawer-overlay.open{visibility:visible;opacity:1}
    .mobile-drawer{
      position:fixed;
      z-index:999;
      top:0;
      right:0;
      width:min(390px,90vw);
      height:100dvh;
      overflow-y:auto;
      visibility:hidden;
      transform:translateX(100%);
      background:#fff;
      box-shadow:-20px 0 50px rgba(0,0,0,.16);
      transition:.28s ease;
    }
    .mobile-drawer.open{visibility:visible;transform:translateX(0)}
    .drawer-head{
      min-height:72px;
      display:flex;
      align-items:center;
      gap:14px;
      padding:14px 20px;
      color:#fff;
      background:var(--theme);
    }
    .drawer-head a{font-weight:800}
    .drawer-close{
      width:38px;
      height:38px;
      margin-left:auto;
      border:0;
      border-radius:50%;
      color:#fff;
      background:rgba(255,255,255,.16);
      font-size:27px;
      line-height:1;
      cursor:pointer;
    }
    .drawer-menu{padding:16px 20px 32px}
    .drawer-link,
    .drawer-toggle{
      width:100%;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:14px 4px;
      border:0;
      border-bottom:1px solid var(--line);
      background:none;
      color:#253148;
      font-weight:800;
      text-align:left;
      cursor:pointer;
    }
    .drawer-toggle::after{
      content:"+";
      color:var(--theme);
      font-size:20px;
    }
    .drawer-toggle.active::after{content:"−"}
    .drawer-submenu{
      display:none;
      padding:8px 0 10px 14px;
      border-bottom:1px solid var(--line);
    }
    .drawer-submenu.open{display:block}
    .drawer-submenu a{
      display:block;
      padding:9px 8px;
      color:var(--muted);
      font-size:14px;
    }
    .drawer-submenu a:hover{color:var(--theme)}

    .brokerlist-page{min-height:650px}
    .brokerlist-page .broker-hero{
      position:relative;
      overflow:hidden;
      padding:72px 0 62px;
      color:#fff;
      background:
        radial-gradient(circle at 15% 30%,rgba(113,161,232,.28),transparent 28%),
        radial-gradient(circle at 85% 15%,rgba(243,167,18,.18),transparent 24%),
        linear-gradient(135deg,#071d43,#0b3d91 58%,#1456af);
    }
    .brokerlist-page .broker-hero::before,
    .brokerlist-page .broker-hero::after{
      content:"";
      position:absolute;
      border:1px solid rgba(255,255,255,.16);
      border-radius:50%;
    }
    .brokerlist-page .broker-hero::before{
      width:360px;
      height:360px;
      top:-220px;
      right:8%;
    }
    .brokerlist-page .broker-hero::after{
      width:190px;
      height:190px;
      bottom:-130px;
      left:7%;
    }
    .brokerlist-page .broker-hero-inner{
      position:relative;
      z-index:1;
      max-width:860px;
      margin:auto;
      text-align:center;
    }
    .brokerlist-page .eyebrow{
      display:inline-flex;
      align-items:center;
      gap:8px;
      margin-bottom:16px;
      padding:7px 13px;
      border:1px solid rgba(255,255,255,.25);
      border-radius:999px;
      background:rgba(255,255,255,.09);
      font-size:13px;
      font-weight:800;
      letter-spacing:.06em;
    }
    .brokerlist-page .broker-hero h1{
      margin:0;
      font-size:clamp(34px,5vw,58px);
      line-height:1.15;
      letter-spacing:-.03em;
    }
    .brokerlist-page .broker-hero p{
      max-width:720px;
      margin:20px auto 0;
      color:#dce8fb;
      font-size:17px;
    }
    .brokerlist-page .hero-points{
      display:flex;
      flex-wrap:wrap;
      justify-content:center;
      gap:12px;
      margin:27px 0 0;
      padding:0;
      list-style:none;
    }
    .brokerlist-page .hero-points li{
      padding:8px 13px;
      border-radius:10px;
      background:rgba(255,255,255,.1);
      font-size:14px;
    }

    .brokerlist-page .broker-directory{padding:46px 0 80px}
    .brokerlist-page .filter-panel{
      position:relative;
      z-index:3;
      margin-top:-72px;
      margin-bottom:32px;
      padding:25px;
      border:1px solid rgba(220,227,237,.9);
      border-radius:20px;
      background:#fff;
      box-shadow:var(--shadow);
    }
    .brokerlist-page .filter-heading{
      display:flex;
      align-items:flex-end;
      justify-content:space-between;
      gap:20px;
      margin-bottom:20px;
    }
    .brokerlist-page .filter-heading h2{
      margin:0;
      color:var(--ink);
      font-size:22px;
    }
    .brokerlist-page .filter-heading p{
      margin:3px 0 0;
      color:var(--muted);
      font-size:14px;
    }
    .brokerlist-page .filter-grid{
      display:grid;
      grid-template-columns:1.25fr repeat(3,1fr) auto;
      gap:12px;
    }
    .brokerlist-page .filter-field{
      min-width:0;
      display:flex;
      flex-direction:column;
      gap:6px;
    }
    .brokerlist-page .filter-field label{
      color:#4e5b70;
      font-size:12px;
      font-weight:800;
    }
    .brokerlist-page .filter-field input,
    .brokerlist-page .filter-field select{
      width:100%;
      height:46px;
      min-width:0;
      padding:0 13px;
      border:1px solid var(--line);
      border-radius:10px;
      outline:none;
      background:#f9fbfd;
    }
    .brokerlist-page .filter-field input:focus,
    .brokerlist-page .filter-field select:focus{
      border-color:var(--theme);
      box-shadow:0 0 0 3px rgba(11,61,145,.1);
    }
    .brokerlist-page .filter-submit{
      align-self:end;
      height:46px;
      padding:0 22px;
      border:0;
      border-radius:10px;
      color:#fff;
      background:var(--theme);
      font-weight:800;
      cursor:pointer;
    }
    .brokerlist-page .filter-submit:hover{background:var(--theme-dark)}

    .brokerlist-page .section-head{
      display:flex;
      align-items:end;
      justify-content:space-between;
      gap:24px;
      margin-bottom:20px;
    }
    .brokerlist-page .section-head h2{
      margin:0;
      font-size:28px;
      line-height:1.25;
    }
    .brokerlist-page .section-head p{
      max-width:700px;
      margin:7px 0 0;
      color:var(--muted);
    }
    .brokerlist-page .comparison-note{
      flex:none;
      padding:8px 12px;
      border-radius:999px;
      color:var(--theme);
      background:var(--theme-soft);
      font-size:13px;
      font-weight:800;
    }
    .brokerlist-page .broker-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:20px;
    }
    .brokerlist-page .broker-card{
      min-width:0;
      display:flex;
      flex-direction:column;
      padding:24px;
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:#fff;
      box-shadow:0 8px 25px rgba(24,42,72,.05);
      transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
    }
    .brokerlist-page .broker-card:hover{
      transform:translateY(-4px);
      border-color:#b8c9e3;
      box-shadow:var(--shadow);
    }
    .brokerlist-page .broker-card-head{
      display:flex;
      align-items:center;
      gap:15px;
    }
    .brokerlist-page .broker-logo{
      width:64px;
      height:64px;
      flex:none;
      padding:7px;
      border:1px solid var(--line);
      border-radius:14px;
      object-fit:contain;
      background:#fff;
    }
    .brokerlist-page .broker-name-wrap{min-width:0;flex:1}
    .brokerlist-page .broker-name{
      display:inline-block;
      max-width:100%;
      overflow:hidden;
      color:var(--ink);
      font-size:21px;
      font-weight:850;
      line-height:1.25;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .brokerlist-page .broker-name:hover{color:var(--theme)}
    .brokerlist-page .rating{
      display:flex;
      align-items:center;
      gap:7px;
      margin-top:6px;
      color:#6a7280;
      font-size:13px;
    }
    .brokerlist-page .rating strong{
      padding:3px 8px;
      border-radius:999px;
      color:#7a4b00;
      background:#fff3d7;
    }
    .brokerlist-page .broker-summary{
      min-height:78px;
      margin:18px 0;
      color:var(--muted);
      font-size:14px;
    }
    .brokerlist-page .broker-facts{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
      margin:0 0 20px;
    }
    .brokerlist-page .fact{
      min-width:0;
      padding:11px 12px;
      border-radius:11px;
      background:#f6f8fc;
    }
    .brokerlist-page .fact dt{
      margin-bottom:2px;
      color:#778397;
      font-size:11px;
      font-weight:800;
    }
    .brokerlist-page .fact dd{
      margin:0;
      overflow:hidden;
      color:#26334a;
      font-size:14px;
      font-weight:800;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .brokerlist-page .regulation{
      margin-bottom:20px;
      padding:12px 14px;
      border-left:3px solid var(--green);
      border-radius:0 10px 10px 0;
      color:#435267;
      background:#eef8f4;
      font-size:13px;
    }
    .brokerlist-page .regulation strong{color:#17684d}
    .brokerlist-page .broker-actions{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:10px;
      margin-top:auto;
    }
    .brokerlist-page .detail-btn,
    .brokerlist-page .open-btn{
      min-height:44px;
      display:flex;
      align-items:center;
      justify-content:center;
      border-radius:10px;
      font-size:14px;
      font-weight:850;
    }
    .brokerlist-page .detail-btn{
      color:var(--theme);
      border:1px solid #b9cae5;
      background:#fff;
    }
    .brokerlist-page .open-btn{color:#fff;background:var(--theme)}
    .brokerlist-page .detail-btn:hover{background:var(--theme-soft)}
    .brokerlist-page .open-btn:hover{background:var(--theme-dark)}

    .brokerlist-page .pagination{
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      justify-content:center;
      gap:8px;
      margin-top:38px;
    }
    .brokerlist-page .pagination a{
      min-width:42px;
      height:42px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:0 13px;
      border:1px solid var(--line);
      border-radius:10px;
      background:#fff;
      color:#445168;
      font-weight:750;
    }
    .brokerlist-page .pagination a:hover,
    .brokerlist-page .pagination a.active,
    .brokerlist-page .pagination a.current{
      color:#fff;
      border-color:var(--theme);
      background:var(--theme);
    }
    .brokerlist-page .guide{
      margin-top:44px;
      padding:30px;
      border-radius:20px;
      color:#dce9ff;
      background:#0a285b;
    }
    .brokerlist-page .guide h2{margin:0 0 18px;color:#fff;font-size:24px}
    .brokerlist-page .guide-grid{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:16px;
    }
    .brokerlist-page .guide-item{
      padding:18px;
      border:1px solid rgba(255,255,255,.12);
      border-radius:14px;
      background:rgba(255,255,255,.06);
    }
    .brokerlist-page .guide-item strong{display:block;margin-bottom:6px;color:#fff}
    .brokerlist-page .guide-item p{margin:0;font-size:13px}

    .footer{
      color:#c8d3e4;
      background:#071a36;
    }
    .footer .container{padding-top:55px}
    .footer-grid{
      display:grid;
      grid-template-columns:1.45fr repeat(3,1fr);
      gap:42px;
      padding-bottom:42px;
    }
    .footer .logo{color:#fff}
    .footer-brand p{
      max-width:390px;
      margin:18px 0 0;
      color:#9dacbf;
      font-size:14px;
    }
    .footer h3{
      margin:8px 0 17px;
      color:#fff;
      font-size:15px;
    }
    .footer-links{display:flex;flex-direction:column;gap:10px}
    .footer-links a{color:#aab8cb;font-size:14px}
    .footer-links a:hover{color:#fff}
    .footer-bottom{
      min-height:72px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:25px;
      border-top:1px solid rgba(255,255,255,.1);
      color:#8e9db1;
      font-size:13px;
    }

    @media (max-width:1080px){
      .main-nav{display:none}
      .hamburger{display:block}
      .header-btns{margin-left:auto}
      .brokerlist-page .filter-grid{grid-template-columns:repeat(2,1fr)}
      .brokerlist-page .filter-submit{width:100%}
    }
    @media (max-width:820px){
      .brokerlist-page .broker-grid{grid-template-columns:1fr}
      .brokerlist-page .guide-grid{grid-template-columns:1fr}
      .footer-grid{grid-template-columns:repeat(2,1fr)}
      .brokerlist-page .section-head{align-items:flex-start;flex-direction:column}
    }
    @media (max-width:620px){
      .container{width:min(100% - 28px,1180px)}
      .topbar .container{
        min-height:52px;
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:0;
        padding:7px 0;
      }
      .topbar-links{width:100%;justify-content:space-between;gap:10px}
      .header-inner{min-height:68px}
      .header .logo span{display:none}
      .header .logo img{width:38px;height:38px}
      .member-btn{display:none}
      .account-btn{min-height:38px;padding:0 12px}
      .brokerlist-page .broker-hero{padding:54px 0 94px}
      .brokerlist-page .broker-hero p{font-size:15px}
      .brokerlist-page .filter-panel{padding:18px}
      .brokerlist-page .filter-heading{align-items:flex-start;flex-direction:column}
      .brokerlist-page .filter-grid{grid-template-columns:1fr}
      .brokerlist-page .broker-card{padding:19px}
      .brokerlist-page .broker-summary{min-height:0}
      .brokerlist-page .broker-facts{grid-template-columns:1fr 1fr}
      .brokerlist-page .broker-actions{grid-template-columns:1fr}
      .brokerlist-page .guide{padding:22px}
      .footer-grid{grid-template-columns:1fr;gap:28px}
      .footer-bottom{
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        padding:18px 0;
      }
    }
    @media (max-width:400px){
      .topbar-links{align-items:flex-start;flex-direction:column;gap:1px}
      .topbar .container{min-height:70px}
      .brokerlist-page .broker-facts{grid-template-columns:1fr}
    }