:root{
      --primary:#0B3D91;
      --primary-dark:#072b68;
      --primary-soft:#eaf1ff;
      --accent:#edb95e;
      --ink:#14213d;
      --muted:#64748b;
      --line:#dce4ef;
      --surface:#ffffff;
      --surface-soft:#f5f8fc;
      --shadow:0 18px 45px rgba(15,45,90,.12);
      --radius:18px;
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      color:var(--ink);
      background:#fff;
      font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
      line-height:1.65;
      overflow-x:hidden;
    }
    body,button,input{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:0 auto}

    .topbar{
      position:relative;
      z-index:110;
      color:#dce8ff;
      background:var(--primary-dark);
      font-size:13px;
    }
    .topbar .container{
      min-height:38px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:24px;
    }
    .topbar-links{display:flex;align-items:center;gap:20px}
    .topbar a{transition:color .2s ease}
    .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 18px rgba(31,55,90,.05);
    }
    .header-inner{
      min-height:78px;
      display:flex;
      align-items:center;
      gap:28px;
    }
    .logo{
      flex:0 0 auto;
      display:inline-flex;
      align-items:center;
      gap:10px;
      color:var(--primary);
      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:#263650;
      font-size:15px;
      font-weight:700;
      white-space:nowrap;
      transition:color .2s ease,background .2s ease;
    }
    .nav-link:hover,.nav-item:focus-within>.nav-link{
      color:var(--primary);
      background:var(--primary-soft);
    }
    .has-arrow::after{
      content:"";
      width:6px;
      height:6px;
      margin:-4px 0 0 8px;
      border-right:1.5px solid currentColor;
      border-bottom:1.5px solid currentColor;
      transform:rotate(45deg);
    }
    .dropdown-panel,.mega-menu{
      position:absolute;
      top:100%;
      right:0;
      visibility:hidden;
      opacity:0;
      pointer-events:none;
      transform:translateY(8px);
      background:#fff;
      border:1px solid var(--line);
      box-shadow:var(--shadow);
      transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
    }
    .dropdown-panel::before,.mega-menu::before{
      content:"";
      position:absolute;
      right:0;
      bottom:100%;
      width:100%;
      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;
      pointer-events:auto;
      transform:translateY(0);
    }
    .dropdown-panel{
      width:290px;
      padding:10px;
      border-radius:0 0 15px 15px;
    }
    .dropdown-panel a,.mega-column>a:not(.mega-broker-card):not(.mega-video-card):not(.mega-product-card){
      display:block;
      padding:10px 12px;
      border-radius:9px;
      color:#34445c;
      font-size:14px;
      font-weight:600;
    }
    .dropdown-panel a:hover,.mega-column>a:hover{
      color:var(--primary);
      background:var(--primary-soft);
    }
    .mega-menu{
      width:min(720px,calc(100vw - 40px));
      padding:22px;
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:25px;
      border-radius:0 0 18px 18px;
    }
    .nav-item:nth-last-child(-n+2) .mega-menu{right:0}
    .mega-column{min-width:0}
    .mega-title{
      margin:0 0 12px;
      color:var(--primary);
      font-size:13px;
      letter-spacing:.08em;
    }
    .mega-broker-card,.mega-video-card,.mega-product-card{
      display:flex;
      align-items:center;
      gap:11px;
      min-width:0;
      padding:8px;
      border-radius:11px;
      transition:background .2s ease;
    }
    .mega-broker-card:hover,.mega-video-card:hover,.mega-product-card:hover{
      background:var(--primary-soft);
    }
    .mega-broker-card img,.mega-product-card img{
      flex:0 0 auto;
      width:42px;
      height:42px;
      object-fit:contain;
      border:1px solid var(--line);
      border-radius:9px;
      background:#fff;
    }
    .mega-video-card img{
      flex:0 0 auto;
      width:72px;
      height:44px;
      object-fit:cover;
      border-radius:8px;
    }
    .mega-broker-card span,.mega-video-card span,.mega-product-card span{
      min-width:0;
      font-size:13px;
    }
    .mega-broker-card strong,.mega-video-card strong,.mega-product-card strong{
      display:inline-block;
      max-width:100%;
      overflow:hidden;
      color:#22324b;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .mega-card-meta{
      display:inline-block;
      max-width:100%;
      overflow:hidden;
      color:var(--muted);
      font-size:12px!important;
      text-overflow:ellipsis;
      white-space:nowrap;
    }
    .mega-footer{
      margin-top:8px;
      color:var(--primary)!important;
      border-top:1px solid var(--line);
      border-radius:0!important;
    }

    .header-btns{
      flex:0 0 auto;
      display:flex;
      align-items:center;
      gap:9px;
    }
    .member-btn,.account-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:40px;
      padding:8px 14px;
      border-radius:10px;
      font-size:14px;
      font-weight:800;
    }
    .member-btn{
      color:var(--primary);
      border:1px solid #a9bde0;
      background:#fff;
    }
    .account-btn{
      color:#fff;
      background:var(--primary);
      box-shadow:0 8px 18px rgba(11,61,145,.2);
    }
    .member-btn:hover{background:var(--primary-soft)}
    .account-btn:hover{background:var(--primary-dark)}
    .hamburger{
      width:44px;
      height:42px;
      display:none;
      align-items:center;
      justify-content:center;
      flex-direction:column;
      gap:5px;
      padding:0;
      border:1px solid var(--line);
      border-radius:10px;
      background:#fff;
      cursor:pointer;
    }
    .hamburger span{
      width:20px;
      height:2px;
      background:var(--primary);
      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;
      inset:0;
      z-index:999;
      visibility:hidden;
      opacity:0;
      background:rgba(7,20,42,.58);
      backdrop-filter:blur(3px);
      transition:opacity .25s ease,visibility .25s ease;
    }
    .drawer-overlay.open{visibility:visible;opacity:1}
    .mobile-drawer{
      position:fixed;
      top:0;
      right:0;
      z-index:1000;
      width:min(390px,90vw);
      height:100dvh;
      visibility:hidden;
      overflow-y:auto;
      background:#fff;
      box-shadow:-24px 0 60px rgba(5,24,58,.22);
      transform:translateX(105%);
      transition:transform .28s ease,visibility .28s ease;
    }
    .mobile-drawer.open{visibility:visible;transform:translateX(0)}
    .drawer-head{
      min-height:74px;
      display:flex;
      align-items:center;
      gap:10px;
      padding:14px 18px;
      color:#fff;
      background:var(--primary);
    }
    .drawer-head>a{
      padding:7px 11px;
      border:1px solid rgba(255,255,255,.4);
      border-radius:8px;
      font-size:14px;
      font-weight:700;
    }
    .drawer-close{
      width:38px;
      height:38px;
      margin-left:auto;
      padding:0;
      color:#fff;
      border:0;
      background:transparent;
      font-size:30px;
      line-height:1;
      cursor:pointer;
    }
    .drawer-menu{padding:12px 18px 30px}
    .drawer-link,.drawer-toggle{
      width:100%;
      display:flex;
      align-items:center;
      justify-content:space-between;
      min-height:48px;
      padding:10px 5px;
      color:#263650;
      border:0;
      border-bottom:1px solid var(--line);
      background:transparent;
      font-weight:800;
      text-align:left;
      cursor:pointer;
    }
    .drawer-toggle::after{
      content:"+";
      color:var(--primary);
      font-size:20px;
      font-weight:500;
    }
    .drawer-toggle.active::after{content:"−"}
    .drawer-submenu{
      max-height:0;
      overflow:hidden;
      background:var(--surface-soft);
      transition:max-height .3s ease;
    }
    .drawer-submenu.open{max-height:720px}
    .drawer-submenu a{
      display:block;
      padding:10px 14px;
      color:#53647c;
      border-bottom:1px solid #e6ebf2;
      font-size:14px;
    }
    .drawer-submenu a:hover{color:var(--primary);background:#edf3ff}

    .video-page{background:var(--surface-soft)}
    .video-page .video-hero{
      position:relative;
      overflow:hidden;
      padding:76px 0 64px;
      color:#fff;
      background:
        radial-gradient(circle at 15% 20%,rgba(69,135,240,.42),transparent 30%),
        radial-gradient(circle at 82% 75%,rgba(237,185,94,.19),transparent 24%),
        linear-gradient(135deg,#061d45 0%,var(--primary) 58%,#123f7a 100%);
    }
    .video-page .video-hero::before{
      content:"";
      position:absolute;
      inset:0;
      opacity:.22;
      background-image:
        linear-gradient(rgba(255,255,255,.09) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.09) 1px,transparent 1px);
      background-size:42px 42px;
      mask-image:linear-gradient(to bottom,#000,transparent);
    }
    .video-page .hero-copy{
      position:relative;
      z-index:1;
      max-width:820px;
      margin:0 auto;
      text-align:center;
    }
    .video-page .eyebrow{
      display:inline-flex;
      align-items:center;
      gap:8px;
      margin-bottom:15px;
      padding:6px 13px;
      border:1px solid rgba(255,255,255,.25);
      border-radius:999px;
      background:rgba(255,255,255,.1);
      font-size:13px;
      font-weight:800;
      letter-spacing:.08em;
    }
    .video-page .eyebrow::before{
      content:"";
      width:8px;
      height:8px;
      border-radius:50%;
      background:var(--accent);
      box-shadow:0 0 0 5px rgba(237,185,94,.16);
    }
    .video-page .video-hero h1{
      margin:0;
      font-size:clamp(36px,6vw,66px);
      line-height:1.12;
      letter-spacing:-.04em;
    }
    .video-page .video-hero p{
      max-width:700px;
      margin:20px auto 0;
      color:#d8e5fa;
      font-size:18px;
    }
    .video-page .hero-stats{
      position:relative;
      z-index:1;
      display:flex;
      justify-content:center;
      flex-wrap:wrap;
      gap:12px;
      margin-top:29px;
    }
    .video-page .hero-stat{
      padding:9px 15px;
      border:1px solid rgba(255,255,255,.18);
      border-radius:10px;
      background:rgba(4,27,66,.36);
      color:#eef5ff;
      font-size:14px;
      backdrop-filter:blur(8px);
    }

    .video-page .category-section{
      position:relative;
      z-index:3;
      margin-top:-26px;
    }
    .video-page .category-bar{
      display:flex;
      align-items:center;
      gap:10px;
      overflow-x:auto;
      padding:16px;
      border:1px solid var(--line);
      border-radius:16px;
      background:#fff;
      box-shadow:0 15px 35px rgba(9,42,91,.11);
      scrollbar-width:thin;
    }
    .video-page .category-label{
      flex:0 0 auto;
      padding:8px 10px;
      color:var(--muted);
      font-size:13px;
      font-weight:800;
    }
    .video-page .category-chip{
      flex:0 0 auto;
      padding:9px 15px;
      color:#33445d;
      border:1px solid var(--line);
      border-radius:999px;
      background:#fff;
      font-size:14px;
      font-weight:700;
      transition:all .2s ease;
    }
    .video-page .category-chip:hover{
      color:#fff;
      border-color:var(--primary);
      background:var(--primary);
    }

    .video-page .video-library{padding:62px 0 86px}
    .video-page .section-heading{
      display:flex;
      align-items:end;
      justify-content:space-between;
      gap:24px;
      margin-bottom:28px;
    }
    .video-page .section-kicker{
      display:block;
      margin-bottom:5px;
      color:var(--primary);
      font-size:13px;
      font-weight:900;
      letter-spacing:.12em;
    }
    .video-page .section-heading h2{
      margin:0;
      color:#132443;
      font-size:clamp(27px,4vw,39px);
      line-height:1.2;
    }
    .video-page .section-heading p{
      max-width:530px;
      margin:0;
      color:var(--muted);
      font-size:15px;
      text-align:right;
    }
    .video-page .video-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:24px;
    }
    .video-page .video-card{
      min-width:0;
      overflow:hidden;
      border:1px solid var(--line);
      border-radius:var(--radius);
      background:#fff;
      box-shadow:0 10px 30px rgba(25,51,86,.07);
      transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
    }
    .video-page .video-card:hover{
      border-color:#b7c8e4;
      box-shadow:0 18px 42px rgba(17,54,110,.14);
      transform:translateY(-5px);
    }
    .video-page .video-cover{
      position:relative;
      display:block;
      aspect-ratio:16/9;
      overflow:hidden;
      background:#dce7f6;
    }
    .video-page .video-cover img{
      width:100%;
      height:100%;
      object-fit:cover;
      transition:transform .35s ease;
    }
    .video-page .video-card:hover .video-cover img{transform:scale(1.045)}
    .video-page .play-icon{
      position:absolute;
      top:50%;
      left:50%;
      width:56px;
      height:56px;
      display:grid;
      place-items:center;
      color:var(--primary);
      border:3px solid rgba(255,255,255,.7);
      border-radius:50%;
      background:rgba(255,255,255,.92);
      box-shadow:0 9px 25px rgba(2,18,43,.28);
      transform:translate(-50%,-50%);
    }
    .video-page .play-icon::before{
      content:"";
      width:0;
      height:0;
      margin-left:4px;
      border-top:8px solid transparent;
      border-bottom:8px solid transparent;
      border-left:13px solid currentColor;
    }
    .video-page .duration{
      position:absolute;
      right:10px;
      bottom:10px;
      padding:3px 8px;
      color:#fff;
      border-radius:6px;
      background:rgba(5,15,31,.8);
      font-size:12px;
      font-weight:800;
    }
    .video-page .video-body{padding:20px}
    .video-page .video-label{
      display:inline-block;
      margin-bottom:8px;
      color:var(--primary);
      font-size:12px;
      font-weight:900;
      letter-spacing:.06em;
    }
    .video-page .video-body h3{
      margin:0;
      color:#182841;
      font-size:19px;
      line-height:1.42;
    }
    .video-page .video-body h3 a:hover{color:var(--primary)}
    .video-page .video-summary{
      display:-webkit-box;
      min-height:51px;
      margin:11px 0 17px;
      overflow:hidden;
      color:var(--muted);
      font-size:14px;
      line-height:1.75;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
    }
    .video-page .video-meta{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      padding-top:14px;
      color:#75849a;
      border-top:1px solid #e7ecf3;
      font-size:12px;
    }
    .video-page .watch-link{
      color:var(--primary);
      font-weight:900;
    }
    .video-page .watch-link:hover{text-decoration:underline}

    .video-page .pagination{
      display:flex;
      align-items:center;
      justify-content:center;
      flex-wrap:wrap;
      gap:8px;
      margin-top:42px;
    }
    .video-page .pagination a{
      min-width:42px;
      min-height:42px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:8px 13px;
      color:#384a64;
      border:1px solid var(--line);
      border-radius:10px;
      background:#fff;
      font-size:14px;
      font-weight:800;
      transition:all .2s ease;
    }
    .video-page .pagination a:hover,
    .video-page .pagination a.active,
    .video-page .pagination a.current{
      color:#fff;
      border-color:var(--primary);
      background:var(--primary);
    }
    .video-page .video-note{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:28px;
      margin-top:60px;
      padding:30px 34px;
      color:#fff;
      border-radius:22px;
      background:linear-gradient(120deg,var(--primary-dark),var(--primary));
      box-shadow:0 20px 45px rgba(11,61,145,.18);
    }
    .video-page .video-note h2{margin:0 0 5px;font-size:25px}
    .video-page .video-note p{margin:0;color:#d9e6fb}
    .video-page .note-button{
      flex:0 0 auto;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:46px;
      padding:10px 19px;
      color:var(--primary-dark);
      border-radius:11px;
      background:#fff;
      font-weight:900;
    }

    .footer{
      color:#c8d5ea;
      background:#061b3e;
    }
    .footer .container{padding-top:64px}
    .footer-grid{
      display:grid;
      grid-template-columns:1.4fr 1fr 1fr 1fr;
      gap:42px;
      padding-bottom:45px;
    }
    .footer .logo{color:#fff}
    .footer-brand p{
      max-width:390px;
      margin:18px 0 0;
      color:#aebed5;
      font-size:14px;
    }
    .footer h3{
      margin:6px 0 18px;
      color:#fff;
      font-size:16px;
    }
    .footer-links{display:grid;gap:9px}
    .footer-links a{
      color:#b8c7dc;
      font-size:14px;
      transition:color .2s ease,transform .2s ease;
    }
    .footer-links a:hover{color:#fff;transform:translateX(3px)}
    .footer-bottom{
      min-height:70px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:22px;
      padding:17px 0;
      color:#91a5c1;
      border-top:1px solid rgba(255,255,255,.11);
      font-size:13px;
    }

    @media (max-width:1120px){
      .main-nav{display:none}
      .hamburger{display:flex}
      .header-inner{min-height:72px}
      .header-btns{margin-left:auto}
    }
    @media (max-width:900px){
      .video-page .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .video-page .section-heading{align-items:flex-start;flex-direction:column;gap:9px}
      .video-page .section-heading p{text-align:left}
      .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    }
    @media (max-width:680px){
      .container{width:min(100% - 28px,1180px)}
      .topbar .container{min-height:42px}
      .topbar .container>span{display:none}
      .topbar-links{width:100%;justify-content:space-between;gap:10px}
      .topbar-links a{font-size:12px}
      .member-btn{display:none}
      .account-btn{min-height:39px;padding:7px 11px}
      .logo span{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
      .video-page .video-hero{padding:56px 0 54px}
      .video-page .video-hero p{font-size:16px}
      .video-page .video-library{padding:48px 0 66px}
      .video-page .video-grid{grid-template-columns:1fr}
      .video-page .video-note{align-items:flex-start;flex-direction:column;padding:25px}
      .footer .container{padding-top:48px}
      .footer-grid{grid-template-columns:1fr;gap:30px}
      .footer-bottom{align-items:flex-start;flex-direction:column;justify-content:center}
    }
    @media (max-width:430px){
      .account-btn{display:none}
      .topbar-links{align-items:flex-start;flex-direction:column;padding:7px 0}
      .topbar .container{min-height:58px}
      .video-page .hero-stats{align-items:stretch;flex-direction:column}
      .video-page .hero-stat{text-align:center}
    }