:root {
      --theme: #0B3D91;
      --theme-dark: #072b68;
      --theme-soft: #eaf1fc;
      --ink: #142033;
      --muted: #5f6c7d;
      --line: #dbe2ea;
      --surface: #ffffff;
      --page: #f5f7fa;
      --accent: #e53935;
      --yellow: #f5c518;
      --green: #16834b;
      --shadow: 0 12px 32px rgba(20, 32, 51, 0.1);
      --container: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--page);
      font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
      line-height: 1.65;
    }

    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(var(--container), calc(100% - 40px));
      margin-inline: auto;
    }

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

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

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

    .topbar a:hover,
    .topbar a:focus-visible {
      text-decoration: underline;
    }

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

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

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

    .logo img {
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      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: stretch;
    }

    .nav-link {
      position: relative;
      display: flex;
      align-items: center;
      padding: 0 13px;
      color: #26364d;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

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

    .nav-link::after {
      position: absolute;
      right: 13px;
      bottom: 0;
      left: 13px;
      height: 3px;
      background: var(--theme);
      content: "";
      transform: scaleX(0);
      transition: transform 0.2s ease;
    }

    .nav-item:hover > .nav-link::after,
    .nav-item:focus-within > .nav-link::after {
      transform: scaleX(1);
    }

    .nav-link.has-arrow {
      padding-right: 27px;
    }

    .nav-link.has-arrow::before {
      position: absolute;
      top: 50%;
      right: 12px;
      width: 6px;
      height: 6px;
      border-right: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      content: "";
      transform: translateY(-70%) rotate(45deg);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      z-index: 60;
      visibility: hidden;
      border: 1px solid var(--line);
      background: var(--surface);
      box-shadow: var(--shadow);
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    }

    .dropdown-panel {
      width: 320px;
      margin-left: -20px;
      padding: 10px;
      border-radius: 0 0 6px 6px;
    }

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

    .dropdown-panel > a:hover,
    .dropdown-panel > a:focus-visible {
      color: var(--theme);
      background: var(--theme-soft);
    }

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

    .mega-menu {
      right: max(20px, calc((100vw - var(--container)) / 2));
      left: max(20px, calc((100vw - var(--container)) / 2));
      max-height: calc(100vh - 112px);
      padding: 22px;
      overflow-y: auto;
      border-radius: 0 0 6px 6px;
    }

    .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: translateY(0);
    }

    .mega-heading {
      margin: 0 0 14px;
      color: var(--ink);
      font-size: 18px;
      letter-spacing: 0;
    }

    .mega-categories {
      margin-bottom: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .mega-categories a {
      padding: 7px 12px;
      color: var(--theme);
      background: var(--theme-soft);
      border: 1px solid #cad9f2;
      border-radius: 4px;
      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: 13px;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      align-items: center;
      gap: 4px 11px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #ffffff;
    }

    .mega-card:hover,
    .mega-card:focus-visible {
      border-color: var(--theme);
      box-shadow: 0 7px 18px rgba(11, 61, 145, 0.1);
    }

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

    .mega-card strong,
    .mega-card p,
    .mega-meta {
      min-width: 0;
      grid-column: 2;
    }

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

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

    .mega-card-cover {
      align-items: start;
    }

    .mega-card-cover img {
      object-fit: cover;
    }

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

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

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

    .member-entry {
      color: var(--theme);
      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(--theme);
      border-radius: 4px;
      font-size: 14px;
      font-weight: 800;
      white-space: nowrap;
    }

    .account-btn:hover,
    .account-btn:focus-visible {
      background: var(--theme-dark);
    }

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

    .hamburger span {
      width: 21px;
      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;
      background: rgba(7, 20, 40, 0.58);
      opacity: 0;
      transition: opacity 0.25s ease, visibility 0.25s;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 90;
      width: min(390px, 92vw);
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -18px 0 42px rgba(0, 0, 0, 0.18);
      transform: translateX(105%);
      transition: transform 0.25s ease;
    }

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

    .drawer-head {
      min-height: 72px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #ffffff;
      background: var(--theme);
    }

    .drawer-head > a {
      padding: 7px 10px;
      border: 1px solid rgba(255, 255, 255, 0.55);
      border-radius: 4px;
      font-size: 13px;
      font-weight: 700;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      margin-left: auto;
      border: 0;
      background: transparent;
      color: #ffffff;
      cursor: pointer;
      font-size: 30px;
      line-height: 1;
    }

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

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

    .drawer-toggle {
      position: relative;
      padding-right: 30px;
    }

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

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

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: #f7f9fc;
      transition: max-height 0.3s ease;
    }

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

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

    .drawer-submenu a:hover,
    .drawer-submenu a:focus-visible {
      color: var(--theme);
      background: var(--theme-soft);
    }

    .video-page {
      min-width: 0;
    }

    .video-page .video-intro {
      padding: 52px 0 44px;
      color: #ffffff;
      background: var(--theme);
      border-bottom: 8px solid var(--yellow);
    }

    .video-page .eyebrow {
      margin: 0 0 8px;
      color: #dce8fb;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0;
    }

    .video-page .video-intro h1 {
      max-width: 820px;
      margin: 0;
      font-size: clamp(30px, 5vw, 52px);
      line-height: 1.16;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

    .video-page .video-intro p {
      max-width: 760px;
      margin: 14px 0 0;
      color: #e6eefc;
      font-size: 16px;
    }

    .video-page .video-category-nav {
      padding: 18px 0;
      background: #ffffff;
      border-bottom: 1px solid var(--line);
    }

    .video-page .category-list {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 9px;
    }

    .video-page .category-list strong {
      margin-right: 4px;
      color: var(--ink);
      font-size: 14px;
    }

    .video-page .category-list a {
      padding: 7px 12px;
      color: var(--theme);
      border: 1px solid #c8d7ef;
      border-radius: 4px;
      background: var(--theme-soft);
      font-size: 13px;
      font-weight: 700;
    }

    .video-page .category-list a:hover,
    .video-page .category-list a:focus-visible {
      color: #ffffff;
      background: var(--theme);
      border-color: var(--theme);
    }

    .video-page .video-library {
      padding: 42px 0 64px;
    }

    .video-page .section-head {
      margin-bottom: 22px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
    }

    .video-page .section-head h2 {
      margin: 0;
      color: var(--ink);
      font-size: 27px;
      line-height: 1.25;
      letter-spacing: 0;
    }

    .video-page .section-head p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 14px;
    }

    .video-page .section-count {
      flex: 0 0 auto;
      padding: 6px 10px;
      color: var(--theme);
      background: var(--theme-soft);
      border-radius: 4px;
      font-size: 13px;
      font-weight: 800;
    }

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

    .video-page .video-card {
      min-width: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #ffffff;
      box-shadow: 0 8px 22px rgba(20, 32, 51, 0.06);
      transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .video-page .video-card:hover,
    .video-page .video-card:focus-within {
      border-color: #a8bde0;
      box-shadow: 0 14px 30px rgba(11, 61, 145, 0.12);
      transform: translateY(-3px);
    }

    .video-page .video-cover {
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #dce4ef;
    }

    .video-page .video-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .video-page .video-card:hover .video-cover img {
      transform: scale(1.035);
    }

    .video-page .play-symbol {
      position: absolute;
      inset: 50% auto auto 50%;
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      color: #ffffff;
      background: rgba(11, 61, 145, 0.92);
      border: 3px solid rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
      transform: translate(-50%, -50%);
    }

    .video-page .play-symbol::before {
      margin-left: 3px;
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
      border-left: 11px solid currentColor;
      content: "";
    }

    .video-page .video-duration {
      position: absolute;
      right: 9px;
      bottom: 9px;
      padding: 3px 7px;
      color: #ffffff;
      background: rgba(15, 23, 36, 0.84);
      border-radius: 3px;
      font-size: 12px;
      font-weight: 800;
    }

    .video-page .video-card-body {
      min-width: 0;
      padding: 17px;
      display: flex;
      flex: 1;
      flex-direction: column;
    }

    .video-page .video-card h3 {
      margin: 0;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.4;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

    .video-page .video-card h3 a:hover,
    .video-page .video-card h3 a:focus-visible {
      color: var(--theme);
    }

    .video-page .video-summary {
      margin: 9px 0 15px;
      display: -webkit-box;
      overflow: hidden;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .video-page .video-meta {
      margin-top: auto;
      padding-top: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: #778295;
      border-top: 1px solid #edf0f4;
      font-size: 12px;
    }

    .video-page .watch-link {
      color: var(--theme);
      font-weight: 800;
    }

    .video-page .pagination {
      margin-top: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 7px;
    }

    .video-page .pagination a {
      min-width: 40px;
      min-height: 40px;
      padding: 7px 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--ink);
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 4px;
      font-size: 14px;
      font-weight: 700;
    }

    .video-page .pagination a:hover,
    .video-page .pagination a:focus-visible,
    .video-page .pagination a.active,
    .video-page .pagination a.current {
      color: #ffffff;
      background: var(--theme);
      border-color: var(--theme);
    }

    .video-page .video-note {
      padding: 26px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      color: #ffffff;
      background: #18263a;
      border-left: 6px solid var(--yellow);
    }

    .video-page .video-note h2 {
      margin: 0;
      font-size: 21px;
      letter-spacing: 0;
    }

    .video-page .video-note p {
      margin: 5px 0 0;
      color: #cbd5e2;
      font-size: 14px;
    }

    .video-page .video-note a {
      min-height: 42px;
      padding: 9px 16px;
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--ink);
      background: var(--yellow);
      border-radius: 4px;
      font-size: 14px;
      font-weight: 800;
    }

    .footer {
      color: #d9e1ec;
      background: #101b2b;
    }

    .footer-main {
      padding: 48px 0 38px;
      display: grid;
      grid-template-columns: 1.35fr 1fr 1fr 1fr;
      gap: 36px;
    }

    .footer .logo {
      color: #ffffff;
    }

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

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

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

    .footer-links a {
      width: fit-content;
      color: #b9c4d2;
      font-size: 14px;
    }

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

    .footer-bottom {
      min-height: 64px;
      padding: 16px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      color: #96a4b5;
      border-top: 1px solid #2b3748;
      font-size: 13px;
    }

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

      .hamburger {
        display: flex;
      }

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

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

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

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

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

      .topbar-contact {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
      }

      .header-inner {
        min-height: 68px;
      }

      .header .logo span {
        max-width: 128px;
      }

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

      .video-page .video-intro {
        padding: 38px 0 32px;
      }

      .video-page .video-intro h1 {
        font-size: 32px;
      }

      .video-page .video-library {
        padding: 32px 0 48px;
      }

      .video-page .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
      }

      .video-page .video-grid {
        grid-template-columns: 1fr;
      }

      .video-page .video-note {
        align-items: flex-start;
        flex-direction: column;
      }

      .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }