:root{
      --primary:#0B3D91;
      --primary-dark:#082b68;
      --ink:#17243a;
      --muted:#68758a;
      --line:#e5eaf1;
      --surface:#ffffff;
      --soft:#f4f7fb;
      --accent:#f0b44d;
      --radius:18px;
      --shadow:0 14px 40px rgba(19,42,78,.09);
    }
    *{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{
      margin:0;
      color:var(--ink);
      background:#f7f9fc;
      font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;
      line-height:1.7;
    }
    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{
      background:var(--primary-dark);
      color:#dce8fb;
      font-size:13px;
    }
    .topbar .container{
      min-height:36px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
    }
    .topbar-links{display:flex;gap:22px}
    .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:30px;
    }
    .logo{
      display:inline-flex;
      align-items:center;
      gap:10px;
      color:var(--primary-dark);
      font-size:20px;
      font-weight:800;
      white-space:nowrap;
    }
    .logo img{
      width:35px;
      height:35px;
      object-fit:contain;
    }
    .main-nav{margin-left:auto}
    .nav-list{
      display:flex;
      align-items:stretch;
      gap:4px;
      list-style:none;
      padding:0;
      margin:0;
    }
    .nav-item{position:relative}
    .nav-link{
      display:flex;
      align-items:center;
      min-height:76px;
      padding:0 13px;
      color:#3e4b60;
      font-size:15px;
      font-weight:600;
      white-space:nowrap;
    }
    .nav-link:hover,.nav-item:focus-within>.nav-link{color:var(--primary)}
    .has-arrow:after{
      content:"";
      width:6px;
      height:6px;
      margin:0 0 3px 8px;
      border-right:1.5px solid currentColor;
      border-bottom:1.5px solid currentColor;
      transform:rotate(45deg);
    }
    .dropdown-panel,.mega-menu{
      position:absolute;
      top:calc(100% - 1px);
      left:50%;
      transform:translate(-50%,10px);
      width:280px;
      padding:18px;
      background:#fff;
      border:1px solid var(--line);
      border-radius:0 0 16px 16px;
      box-shadow:var(--shadow);
      opacity:0;
      visibility:hidden;
      transition:.2s ease;
    }
    .mega-menu{
      width:650px;
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:20px;
    }
    .nav-item:hover>.dropdown-panel,
    .nav-item:hover>.mega-menu,
    .nav-item:focus-within>.dropdown-panel,
    .nav-item:focus-within>.mega-menu{
      opacity:1;
      visibility:visible;
      transform:translate(-50%,0);
    }
    .dropdown-panel a,.mega-column>a{
      display:block;
      padding:9px 10px;
      color:#516077;
      font-size:14px;
      border-radius:9px;
    }
    .dropdown-panel a:hover,.mega-column>a:hover{background:var(--soft);color:var(--primary)}
    .mega-title{
      margin:4px 10px 10px;
      color:var(--primary-dark);
      font-size:14px;
      letter-spacing:.04em;
    }
    .mega-broker-card,.mega-video-card,.mega-product-card{
      display:flex!important;
      align-items:center;
      gap:10px;
      min-height:48px;
    }
    .mega-broker-card img,.mega-video-card img,.mega-product-card img{
      width:38px;
      height:38px;
      border-radius:8px;
      object-fit:cover;
      background:var(--soft);
      flex:none;
    }
    .mega-video-card img{width:58px;height:38px}
    .mega-card-meta{
      color:#8995a6;
      font-size:11px;
      font-weight:400;
    }
    .mega-footer{
      margin-top:8px;
      color:var(--primary)!important;
      font-weight:700;
      border-top:1px solid var(--line);
      border-radius:0!important;
    }
    .header-btns{
      display:flex;
      align-items:center;
      gap:10px;
    }
    .member-btn,.account-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-height:38px;
      padding:0 15px;
      border-radius:9px;
      font-size:13px;
      font-weight:700;
    }
    .member-btn{color:var(--primary)}
    .account-btn{background:var(--primary);color:#fff}
    .account-btn:hover{background:var(--primary-dark)}
    .hamburger{
      display:none;
      width:42px;
      height:40px;
      border:1px solid var(--line);
      border-radius:9px;
      background:#fff;
      cursor:pointer;
    }
    .hamburger span{
      display:block;
      width:19px;
      height:2px;
      margin:4px auto;
      background:var(--primary-dark);
      transition:.2s;
    }
    .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;
      background:rgba(5,19,43,.45);
      opacity:0;
      visibility:hidden;
      transition:.25s;
    }
    .drawer-overlay.open{opacity:1;visibility:visible}
    .mobile-drawer{
      position:fixed;
      top:0;
      right:0;
      z-index:50;
      width:min(390px,88vw);
      height:100vh;
      overflow:auto;
      background:#fff;
      transform:translateX(100%);
      transition:.28s ease;
      box-shadow:-12px 0 35px rgba(0,0,0,.15);
    }
    .mobile-drawer.open{transform:translateX(0)}
    .drawer-head{
      min-height:72px;
      display:flex;
      align-items:center;
      gap:16px;
      padding:16px 20px;
      color:var(--primary-dark);
      font-weight:800;
      border-bottom:1px solid var(--line);
    }
    .drawer-head>a{margin-left:auto;color:var(--primary)}
    .drawer-close{
      width:34px;
      height:34px;
      border:0;
      background:var(--soft);
      border-radius:50%;
      color:var(--primary-dark);
      font-size:24px;
      line-height:1;
      cursor:pointer;
    }
    .drawer-menu{padding:12px 20px 30px}
    .drawer-link,.drawer-toggle{
      display:block;
      width:100%;
      padding:13px 4px;
      color:#34445c;
      text-align:left;
      background:none;
      border:0;
      border-bottom:1px solid var(--line);
      font-weight:700;
      cursor:pointer;
    }
    .drawer-toggle:after{
      content:"+";
      float:right;
      color:var(--primary);
      font-size:20px;
      line-height:1;
    }
    .drawer-toggle.active:after{content:"−"}
    .drawer-submenu{
      display:none;
      padding:7px 0 8px 15px;
      border-bottom:1px solid var(--line);
    }
    .drawer-submenu.open{display:block}
    .drawer-submenu a{
      display:block;
      padding:8px 4px;
      color:var(--muted);
      font-size:14px;
    }

    .video-detail-main{padding:58px 0 90px}
    .video-breadcrumb{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom:24px;
      color:var(--muted);
      font-size:14px;
    }
    .video-breadcrumb a{color:var(--primary)}
    .video-layout{
      display:grid;
      grid-template-columns:minmax(0,1fr) 330px;
      gap:30px;
      align-items:start;
    }
    .video-main-card,.video-side-card{
      background:#fff;
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
    }
    .video-main-card{padding:26px}
    .video-heading{margin-bottom:22px}
    .video-heading h1{
      margin:0 0 12px;
      color:var(--primary-dark);
      font-size:clamp(27px,4vw,42px);
      line-height:1.25;
      letter-spacing:-.02em;
    }
    .video-meta{
      display:flex;
      flex-wrap:wrap;
      gap:10px 20px;
      color:var(--muted);
      font-size:14px;
    }
    .video-player{
      position:relative;
      min-height:430px;
      display:flex;
      align-items:center;
      justify-content:center;
      overflow:hidden;
      border-radius:14px;
      background:#0c1930;
    }
    .video-player img{
      width:100%;
      height:100%;
      min-height:430px;
      object-fit:cover;
      opacity:.68;
    }
    .video-player-overlay{
      position:absolute;
      inset:0;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      color:#fff;
      background:linear-gradient(180deg,rgba(5,19,43,.1),rgba(5,19,43,.64));
    }
    .play-button{
      width:76px;
      height:76px;
      display:grid;
      place-items:center;
      margin-bottom:16px;
      padding-left:5px;
      border:0;
      border-radius:50%;
      background:var(--accent);
      color:#162b50;
      font-size:30px;
      cursor:pointer;
      box-shadow:0 8px 24px rgba(240,180,77,.35);
    }
    .player-caption{font-size:14px}
    .video-description{
      min-width:0;
      max-width:100%;
      margin-top:28px;
      overflow-x:auto;
      color:#4e5d73;
    }
    .video-description h2{
      margin:0 0 12px;
      color:var(--primary-dark);
      font-size:22px;
    }
    .video-description img,.video-description table{
      max-width:100%;
    }
    .video-description iframe{max-width:100%}
    .video-tags{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-top:24px;
      padding-top:20px;
      border-top:1px solid var(--line);
    }
    .video-tag{
      padding:5px 11px;
      border-radius:999px;
      background:#edf3fc;
      color:var(--primary);
      font-size:13px;
    }
    .video-side-card{
      padding:22px;
      position:sticky;
      top:20px;
    }
    .video-side-card h2{
      margin:0 0 15px;
      color:var(--primary-dark);
      font-size:20px;
    }
    .related-video{
      display:grid;
      grid-template-columns:104px 1fr;
      gap:12px;
      padding:13px 0;
      border-bottom:1px solid var(--line);
    }
    .related-video:last-child{border-bottom:0}
    .related-video img{
      width:104px;
      height:68px;
      object-fit:cover;
      border-radius:9px;
      background:var(--soft);
    }
    .related-video strong{
      display:-webkit-box;
      overflow:hidden;
      color:#33435b;
      font-size:14px;
      line-height:1.45;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
    }
    .related-video span{
      display:block;
      margin-top:4px;
      color:var(--muted);
      font-size:12px;
    }
    .more-video{
      display:block;
      margin-top:14px;
      padding:11px 14px;
      border-radius:9px;
      background:#edf3fc;
      color:var(--primary);
      text-align:center;
      font-weight:700;
      font-size:14px;
    }

    .footer{
      padding:55px 0 20px;
      color:#cfdaeb;
      background:#0b1c39;
    }
    .footer .logo{color:#fff}
    .footer-grid{
      display:grid;
      grid-template-columns:1.4fr 1fr 1fr 1fr;
      gap:38px;
    }
    .footer-brand p{
      max-width:330px;
      margin:18px 0 0;
      color:#9eacc2;
      font-size:14px;
    }
    .footer h3{
      margin:0 0 15px;
      color:#fff;
      font-size:15px;
    }
    .footer-links{display:grid;gap:8px}
    .footer-links a{
      color:#aebbd0;
      font-size:14px;
    }
    .footer-links a:hover{color:#fff}
    .footer-bottom{
      display:flex;
      justify-content:space-between;
      gap:20px;
      margin-top:40px;
      padding-top:18px;
      border-top:1px solid rgba(255,255,255,.12);
      color:#8f9db4;
      font-size:12px;
    }

    @media (max-width:1050px){
      .main-nav{display:none}
      .hamburger{display:block}
      .header-btns{margin-left:auto}
      .video-layout{grid-template-columns:1fr}
      .video-side-card{position:static}
      .related-video{grid-template-columns:130px 1fr}
      .related-video img{width:130px;height:82px}
    }
    @media (max-width:700px){
      .container{width:min(100% - 28px,1180px)}
      .topbar .container{min-height:44px;align-items:flex-start;padding-top:7px;padding-bottom:7px}
      .topbar-links{gap:8px;flex-direction:column;line-height:1.3;text-align:right}
      .topbar{font-size:11px}
      .member-btn{display:none}
      .account-btn{padding:0 10px;font-size:12px}
      .header-inner{min-height:66px}
      .video-detail-main{padding:34px 0 60px}
      .video-main-card{padding:16px}
      .video-heading h1{font-size:28px}
      .video-player,.video-player img{min-height:235px}
      .play-button{width:62px;height:62px;font-size:25px}
      .footer-grid{grid-template-columns:1fr 1fr;gap:28px 18px}
      .footer-brand{grid-column:1/-1}
      .footer-bottom{display:grid;gap:8px}
    }
    @media (max-width:430px){
      .video-meta{display:grid;gap:5px}
      .related-video{grid-template-columns:92px 1fr}
      .related-video img{width:92px;height:63px}
      .footer-grid{grid-template-columns:1fr}
    }