:root {
      --primary: #0B3D91;
      --primary-dark: #072c6a;
      --primary-soft: #eaf1fb;
      --ink: #172033;
      --muted: #667085;
      --line: #dfe4ec;
      --surface: #ffffff;
      --soft: #f5f7fa;
      --success: #16845b;
      --danger: #d64045;
      --radius: 8px;
      --shadow: 0 14px 36px rgba(20, 34, 60, 0.1);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body.drawer-locked {
      overflow: hidden;
    }

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

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

    button,
    input {
      font: inherit;
    }

    button {
      color: inherit;
    }

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

    .topbar {
      color: #eaf1fb;
      background: var(--primary-dark);
      font-size: 13px;
    }

    .topbar-inner {
      min-height: 34px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .topbar-contact {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .topbar a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .header {
      position: relative;
      z-index: 50;
      background: rgba(255, 255, 255, 0.98);
      border-bottom: 1px solid var(--line);
    }

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

    .logo {
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--primary-dark);
      font-weight: 800;
    }

    .logo img {
      width: 38px;
      height: 38px;
      flex: 0 0 38px;
      object-fit: contain;
    }

    .logo span {
      max-width: 190px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .main-nav {
      margin-left: auto;
      align-self: stretch;
    }

    .nav-list {
      height: 100%;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: stretch;
      list-style: none;
    }

    .nav-item {
      position: static;
      display: flex;
      align-items: center;
    }

    .nav-link {
      height: 100%;
      padding: 0 12px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #344054;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .nav-link:hover,
    .nav-item:focus-within > .nav-link {
      color: var(--primary);
    }

    .has-arrow::after {
      width: 6px;
      height: 6px;
      content: "";
      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%;
      z-index: 60;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
      background: #ffffff;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }

    .dropdown-panel {
      width: 290px;
      padding: 10px;
      border-radius: 0 0 var(--radius) var(--radius);
    }

    .dropdown-panel > a {
      display: block;
      padding: 10px 12px;
      border-radius: 6px;
      color: #344054;
      font-size: 14px;
    }

    .dropdown-panel > a:hover {
      color: var(--primary);
      background: var(--primary-soft);
    }

    .dropdown-panel .dropdown-all {
      margin-top: 6px;
      color: var(--primary);
      font-weight: 800;
      border-top: 1px solid var(--line);
      border-radius: 0;
    }

    .mega-menu {
      left: 50%;
      width: min(1140px, calc(100vw - 40px));
      padding: 24px;
      border-radius: 0 0 var(--radius) var(--radius);
      transform: translate(-50%, 8px);
    }

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

    .nav-item:hover > .dropdown-panel,
    .nav-item:focus-within > .dropdown-panel {
      transform: translateY(0);
    }

    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .mega-menu {
      transform: translate(-50%, 0);
    }

    .mega-heading {
      margin: 0 0 14px;
      color: var(--ink);
      font-size: 17px;
      line-height: 1.3;
    }

    .mega-categories {
      margin-bottom: 18px;
      padding-bottom: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      border-bottom: 1px solid var(--line);
    }

    .mega-categories a {
      padding: 7px 11px;
      color: var(--primary);
      background: var(--primary-soft);
      border-radius: 6px;
      font-size: 13px;
      font-weight: 700;
    }

    .mega-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .mega-card {
      min-width: 0;
      padding: 12px;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      align-items: center;
      gap: 8px 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    .mega-card:hover {
      border-color: #a8bfe2;
      box-shadow: 0 8px 20px rgba(11, 61, 145, 0.08);
    }

    .mega-card img {
      width: 42px;
      height: 42px;
      grid-row: 1 / span 3;
      object-fit: contain;
      border-radius: 5px;
    }

    .mega-card strong,
    .mega-card p {
      min-width: 0;
      margin: 0;
    }

    .mega-card strong {
      overflow: hidden;
      color: var(--ink);
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-card p {
      display: -webkit-box;
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .mega-card-cover {
      align-items: start;
      grid-template-columns: 84px minmax(0, 1fr);
    }

    .mega-card-cover img {
      width: 84px;
      height: 60px;
      object-fit: cover;
    }

    .mega-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 10px;
      color: var(--muted);
      font-size: 11px;
    }

    .mega-footer {
      margin-top: 18px;
      padding-top: 14px;
      display: block;
      color: var(--primary);
      border-top: 1px solid var(--line);
      font-size: 14px;
      font-weight: 800;
      text-align: right;
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .member-entry {
      color: var(--primary);
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .account-btn {
      min-height: 40px;
      padding: 8px 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      background: var(--primary);
      border-radius: 6px;
      font-size: 14px;
      font-weight: 800;
      white-space: nowrap;
    }

    .account-btn:hover {
      background: var(--primary-dark);
    }

    .hamburger {
      width: 42px;
      height: 42px;
      padding: 9px;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 6px;
      cursor: pointer;
    }

    .hamburger span {
      width: 20px;
      height: 2px;
      display: block;
      background: var(--ink);
      transition: transform 0.2s ease, opacity 0.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: 80;
      visibility: hidden;
      opacity: 0;
      background: rgba(10, 18, 32, 0.56);
      transition: opacity 0.22s ease, visibility 0.22s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 90;
      width: min(390px, 90vw);
      height: 100dvh;
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -18px 0 48px rgba(15, 23, 42, 0.2);
      transform: translateX(105%);
      transition: transform 0.24s ease;
    }

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

    .drawer-head {
      min-height: 72px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--primary);
      border-bottom: 1px solid var(--line);
      font-weight: 700;
    }

    .drawer-head > a {
      padding: 7px 10px;
      color: #ffffff;
      background: var(--primary);
      border-radius: 5px;
      font-size: 13px;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      margin-left: auto;
      padding: 0;
      color: #344054;
      background: transparent;
      border: 1px solid var(--line);
      border-radius: 6px;
      font-size: 27px;
      line-height: 1;
      cursor: pointer;
    }

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

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      min-height: 48px;
      padding: 12px 4px;
      display: flex;
      align-items: center;
      color: var(--ink);
      background: transparent;
      border: 0;
      border-bottom: 1px solid var(--line);
      font-weight: 750;
      text-align: left;
      cursor: pointer;
    }

    .drawer-toggle {
      justify-content: space-between;
    }

    .drawer-toggle::after {
      width: 8px;
      height: 8px;
      content: "";
      border-right: 2px solid var(--muted);
      border-bottom: 2px solid var(--muted);
      transform: rotate(45deg);
      transition: transform 0.18s ease;
    }

    .drawer-toggle.active::after {
      transform: rotate(225deg);
    }

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: var(--soft);
      transition: max-height 0.25s ease;
    }

    .drawer-submenu.open {
      max-height: 680px;
    }

    .drawer-submenu a {
      padding: 10px 14px;
      display: block;
      color: #475467;
      border-bottom: 1px solid #e8ebf0;
      font-size: 14px;
    }

    .drawer-submenu a:hover {
      color: var(--primary);
      background: var(--primary-soft);
    }

    .video-detail-main {
      min-width: 0;
      background: var(--soft);
    }

    .video-detail-main .video-hero {
      padding: 32px 0;
      color: #ffffff;
      background: #101827;
    }

    .video-detail-main .breadcrumb {
      margin-bottom: 20px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;
      color: #b9c3d3;
      font-size: 13px;
    }

    .video-detail-main .breadcrumb a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .video-detail-main .video-heading {
      max-width: 940px;
      margin: 0;
      overflow-wrap: anywhere;
      font-size: clamp(28px, 4vw, 46px);
      line-height: 1.22;
      letter-spacing: 0;
    }

    .video-detail-main .video-meta {
      margin-top: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px 20px;
      color: #cbd4e1;
      font-size: 14px;
    }

    .video-detail-main .video-stage {
      padding: 28px 0 36px;
      background: #101827;
    }

    .video-detail-main .player-shell {
      width: 100%;
      min-height: 300px;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      display: grid;
      place-items: center;
      background: #000000;
      border: 1px solid #293449;
      border-radius: var(--radius);
      box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
    }

    .video-detail-main .player-shell iframe,
    .video-detail-main .player-shell video,
    .video-detail-main .player-shell embed,
    .video-detail-main .player-shell object {
      width: 100%;
      height: 100%;
      max-width: 100%;
      border: 0;
    }

    .video-detail-main .player-shell img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .video-detail-main .video-workspace {
      padding: 42px 0 64px;
    }

    .video-detail-main .content-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 310px;
      align-items: start;
      gap: 30px;
    }

    .video-detail-main .video-article,
    .video-detail-main .related-panel {
      min-width: 0;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    .video-detail-main .video-article {
      padding: 30px;
    }

    .video-detail-main .section-heading {
      margin: 0 0 16px;
      color: var(--ink);
      font-size: 22px;
      line-height: 1.35;
    }

    .video-detail-main .video-summary {
      margin: 0 0 26px;
      padding: 18px 20px;
      color: #344054;
      background: var(--primary-soft);
      border-left: 4px solid var(--primary);
      border-radius: 0 var(--radius) var(--radius) 0;
      font-size: 16px;
    }

    .video-detail-main .video-content {
      min-width: 0;
      max-width: 100%;
      overflow-x: auto;
      color: #344054;
      overflow-wrap: anywhere;
    }

    .video-detail-main .video-content img,
    .video-detail-main .video-content iframe,
    .video-detail-main .video-content video,
    .video-detail-main .video-content table {
      max-width: 100%;
    }

    .video-detail-main .video-content table {
      width: 100%;
      border-collapse: collapse;
    }

    .video-detail-main .video-content th,
    .video-detail-main .video-content td {
      padding: 10px;
      border: 1px solid var(--line);
    }

    .video-detail-main .video-details {
      margin-top: 28px;
      padding-top: 20px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      border-top: 1px solid var(--line);
    }

    .video-detail-main .detail-item {
      min-width: 0;
      padding: 12px 14px;
      background: var(--soft);
      border-radius: 6px;
      color: var(--muted);
      font-size: 13px;
    }

    .video-detail-main .detail-item strong {
      display: block;
      color: var(--ink);
      font-size: 14px;
      overflow-wrap: anywhere;
    }

    .video-detail-main .video-tags {
      margin-top: 22px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 14px;
    }

    .video-detail-main .video-tags strong {
      color: var(--ink);
    }

    .video-detail-main .source-link {
      margin-top: 24px;
      min-height: 42px;
      padding: 9px 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      background: var(--primary);
      border-radius: 6px;
      font-weight: 800;
    }

    .video-detail-main .source-link:hover {
      background: var(--primary-dark);
    }

    .video-detail-main .related-panel {
      position: sticky;
      top: 18px;
      padding: 20px;
    }

    .video-detail-main .related-list {
      display: grid;
      gap: 14px;
    }

    .video-detail-main .related-video {
      min-width: 0;
      overflow: hidden;
      display: block;
      border: 1px solid var(--line);
      border-radius: 6px;
      transition: border-color 0.18s ease, transform 0.18s ease;
    }

    .video-detail-main .related-video:hover {
      border-color: #9db7df;
      transform: translateY(-2px);
    }

    .video-detail-main .related-cover {
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #e8edf4;
    }

    .video-detail-main .related-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .video-detail-main .duration {
      position: absolute;
      right: 7px;
      bottom: 7px;
      padding: 2px 6px;
      color: #ffffff;
      background: rgba(0, 0, 0, 0.78);
      border-radius: 4px;
      font-size: 11px;
    }

    .video-detail-main .related-copy {
      padding: 11px 12px 13px;
    }

    .video-detail-main .related-copy strong {
      display: -webkit-box;
      overflow: hidden;
      color: var(--ink);
      font-size: 14px;
      line-height: 1.5;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .video-detail-main .related-copy p {
      margin: 6px 0 0;
      display: -webkit-box;
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .video-detail-main .more-videos {
      width: 100%;
      min-height: 42px;
      margin-top: 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      border: 1px solid var(--primary);
      border-radius: 6px;
      font-size: 14px;
      font-weight: 800;
    }

    .video-detail-main .more-videos:hover {
      color: #ffffff;
      background: var(--primary);
    }

    .footer {
      color: #d9e2ef;
      background: #111a2b;
    }

    .footer-main {
      padding: 54px 0 42px;
      display: grid;
      grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
      gap: 38px;
    }

    .footer .logo {
      color: #ffffff;
    }

    .footer-brand p {
      max-width: 390px;
      margin: 18px 0 0;
      color: #aebbd0;
      font-size: 14px;
    }

    .footer h2 {
      margin: 4px 0 15px;
      color: #ffffff;
      font-size: 15px;
    }

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

    .footer-links a {
      color: #aebbd0;
      font-size: 14px;
      overflow-wrap: anywhere;
    }

    .footer-links a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .footer-bottom {
      min-height: 62px;
      padding: 16px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      color: #93a3bb;
      border-top: 1px solid #29344a;
      font-size: 13px;
    }

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

      .hamburger {
        display: flex;
      }

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

      .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 820px) {
      .video-detail-main .content-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .video-detail-main .related-panel {
        position: static;
      }

      .video-detail-main .related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

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

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

      .topbar-contact {
        width: 100%;
        flex-wrap: wrap;
        gap: 2px 14px;
      }

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

      .logo img {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
      }

      .logo span {
        max-width: 125px;
        font-size: 14px;
      }

      .member-entry,
      .account-btn {
        display: none;
      }

      .video-detail-main .video-hero {
        padding: 24px 0;
      }

      .video-detail-main .video-heading {
        font-size: 28px;
      }

      .video-detail-main .video-stage {
        padding: 10px 0 26px;
      }

      .video-detail-main .player-shell {
        min-height: 0;
        border-radius: 4px;
      }

      .video-detail-main .video-workspace {
        padding: 24px 0 42px;
      }

      .video-detail-main .video-article,
      .video-detail-main .related-panel {
        padding: 18px;
      }

      .video-detail-main .video-details,
      .video-detail-main .related-list {
        grid-template-columns: minmax(0, 1fr);
      }

      .footer-main {
        padding: 40px 0 30px;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
      }

      .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
      }
    }