:root {
      --primary: #0B3D91;
      --primary-dark: #06265f;
      --primary-light: #e8f0ff;
      --navy: #071426;
      --ink: #142033;
      --muted: #607089;
      --line: #dce5f1;
      --surface: #ffffff;
      --surface-soft: #f4f7fb;
      --cyan: #19d3ff;
      --radius: 18px;
      --shadow: 0 18px 45px rgba(7, 20, 38, 0.12);
      --container: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body,
    button,
    input {
      font: inherit;
    }

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

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

    button {
      color: inherit;
    }

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

    .topbar {
      position: relative;
      z-index: 80;
      color: #dce9ff;
      background: #061226;
      font-size: 13px;
    }

    .topbar-inner {
      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 {
      transition: color 0.2s ease;
    }

    .topbar a:hover {
      color: var(--cyan);
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 70;
      border-bottom: 1px solid rgba(11, 61, 145, 0.1);
      background: rgba(255, 255, 255, 0.96);
      box-shadow: 0 8px 28px rgba(7, 20, 38, 0.06);
      backdrop-filter: blur(18px);
    }

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

    .logo {
      min-width: 150px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--navy);
      font-size: 20px;
      font-weight: 900;
      letter-spacing: -0.02em;
    }

    .logo img {
      width: 40px;
      height: 40px;
      flex: 0 0 auto;
      border-radius: 11px;
      object-fit: contain;
    }

    .main-nav {
      margin-left: auto;
    }

    .nav-list {
      margin: 0;
      padding: 0;
      display: flex;
      align-items: center;
      list-style: none;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      min-height: 76px;
      padding: 0 13px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #27364b;
      font-size: 14px;
      font-weight: 750;
      white-space: nowrap;
      transition: color 0.2s ease;
    }

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

    .has-arrow::after {
      width: 6px;
      height: 6px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      content: "";
      transform: rotate(45deg) translateY(-2px);
      transition: transform 0.2s ease;
    }

    .nav-item:hover .has-arrow::after,
    .nav-item:focus-within .has-arrow::after {
      transform: rotate(225deg) translate(-2px, -1px);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      z-index: 90;
      padding: 20px;
      visibility: hidden;
      border: 1px solid rgba(11, 61, 145, 0.12);
      border-radius: 0 0 18px 18px;
      background: rgba(255, 255, 255, 0.99);
      box-shadow: var(--shadow);
      opacity: 0;
      transform: translate(-50%, 10px);
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .dropdown-panel::before,
    .mega-menu::before {
      position: absolute;
      right: 0;
      bottom: 100%;
      left: 0;
      height: 12px;
      content: "";
    }

    .dropdown-panel {
      width: 330px;
    }

    .mega-menu {
      width: min(720px, calc(100vw - 40px));
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .dropdown-panel,
    .nav-item:focus-within > .mega-menu {
      visibility: visible;
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .panel-title {
      margin: 0 0 12px;
      color: var(--primary);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.08em;
    }

    .panel-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
    }

    .panel-list a {
      min-width: 0;
      padding: 9px 11px;
      overflow: hidden;
      border-radius: 9px;
      color: #33445b;
      background: #f5f8fc;
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .panel-list a:hover {
      color: var(--primary);
      background: var(--primary-light);
    }

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

    .mega-card {
      min-width: 0;
      padding: 10px;
      display: flex;
      align-items: center;
      gap: 11px;
      border: 1px solid #e7edf5;
      border-radius: 12px;
      background: #fff;
      transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mega-card:hover {
      border-color: rgba(11, 61, 145, 0.35);
      box-shadow: 0 10px 22px rgba(11, 61, 145, 0.1);
      transform: translateY(-2px);
    }

    .mega-card img {
      width: 48px;
      height: 48px;
      flex: 0 0 auto;
      border-radius: 10px;
      background: #eef3f9;
      object-fit: cover;
    }

    .mega-card span {
      min-width: 0;
      display: block;
    }

    .mega-card strong,
    .mega-card small {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-card strong {
      color: #17243a;
      font-size: 14px;
    }

    .mega-card small {
      margin-top: 3px;
      color: var(--muted);
      font-size: 11px;
    }

    .mega-footer {
      margin-top: 14px;
      padding: 10px 12px;
      display: block;
      border-radius: 10px;
      color: #fff;
      background: var(--primary);
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      transition: background 0.2s ease;
    }

    .mega-footer:hover {
      background: var(--primary-dark);
    }

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

    .member-btn {
      padding: 10px 15px;
      border-radius: 10px;
      color: #fff;
      background: var(--primary);
      font-size: 14px;
      font-weight: 800;
      box-shadow: 0 8px 20px rgba(11, 61, 145, 0.2);
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .member-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
    }

    .hamburger {
      width: 44px;
      height: 44px;
      padding: 0;
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      border: 1px solid #dce5f1;
      border-radius: 11px;
      background: #fff;
      cursor: pointer;
    }

    .hamburger span {
      width: 21px;
      height: 2px;
      display: block;
      border-radius: 10px;
      background: var(--navy);
      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: 110;
      visibility: hidden;
      background: rgba(3, 11, 25, 0.64);
      opacity: 0;
      backdrop-filter: blur(4px);
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 120;
      width: min(400px, 90vw);
      overflow-y: auto;
      background: #fff;
      box-shadow: -24px 0 60px rgba(3, 11, 25, 0.25);
      transform: translateX(105%);
      transition: transform 0.28s ease;
    }

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

    .drawer-head {
      min-height: 76px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      color: #fff;
      background: var(--navy);
    }

    .drawer-head > a {
      padding: 8px 12px;
      border: 1px solid rgba(255, 255, 255, 0.24);
      border-radius: 9px;
      font-weight: 750;
    }

    .drawer-close {
      width: 40px;
      height: 40px;
      margin-left: auto;
      border: 0;
      border-radius: 10px;
      color: #fff;
      background: rgba(255, 255, 255, 0.12);
      font-size: 28px;
      line-height: 1;
      cursor: pointer;
    }

    .drawer-menu {
      padding: 16px;
    }

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      padding: 14px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 0;
      border-bottom: 1px solid #e7edf5;
      color: #18263b;
      background: transparent;
      font-weight: 800;
      text-align: left;
      cursor: pointer;
    }

    .drawer-toggle::after {
      content: "＋";
      color: var(--primary);
      font-size: 18px;
    }

    .drawer-toggle.active::after {
      content: "－";
    }

    .drawer-submenu {
      max-height: 0;
      padding: 0 10px;
      overflow: hidden;
      background: #f5f8fc;
      transition: max-height 0.28s ease, padding 0.28s ease;
    }

    .drawer-submenu.open {
      max-height: 700px;
      padding: 8px 10px;
    }

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

    .video-page {
      min-height: 70vh;
    }

    .video-page .video-masthead {
      position: relative;
      overflow: hidden;
      color: #fff;
      background:
        radial-gradient(circle at 78% 18%, rgba(25, 211, 255, 0.2), transparent 26%),
        radial-gradient(circle at 18% 72%, rgba(54, 103, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #061126 0%, #0b2b62 52%, #07172e 100%);
    }

    .video-page .video-masthead::before {
      position: absolute;
      inset: 0;
      content: "";
      opacity: 0.25;
      background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: linear-gradient(to bottom, black, transparent);
    }

    .video-page .masthead-inner {
      position: relative;
      z-index: 1;
      padding: 72px 0 64px;
      text-align: center;
    }

    .video-page .eyebrow {
      margin: 0 0 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #8deaff;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.14em;
    }

    .video-page .eyebrow::before {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--cyan);
      box-shadow: 0 0 18px var(--cyan);
      content: "";
    }

    .video-page .video-masthead h1 {
      max-width: 850px;
      margin: 0 auto;
      font-size: clamp(36px, 6vw, 66px);
      line-height: 1.12;
      letter-spacing: -0.045em;
    }

    .video-page .video-masthead p {
      max-width: 720px;
      margin: 20px auto 0;
      color: #c8d8ef;
      font-size: 17px;
    }

    .video-page .category-strip {
      position: relative;
      z-index: 2;
      margin-top: -24px;
    }

    .video-page .category-panel {
      padding: 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      overflow-x: auto;
      border: 1px solid rgba(11, 61, 145, 0.1);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: var(--shadow);
      scrollbar-width: thin;
    }

    .video-page .category-label {
      padding: 9px 12px;
      flex: 0 0 auto;
      color: var(--primary);
      font-size: 13px;
      font-weight: 900;
    }

    .video-page .category-panel a {
      padding: 9px 15px;
      flex: 0 0 auto;
      border: 1px solid #dfe7f1;
      border-radius: 999px;
      color: #42536a;
      background: #fff;
      font-size: 13px;
      font-weight: 750;
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .video-page .category-panel a:hover {
      border-color: var(--primary);
      color: #fff;
      background: var(--primary);
    }

    .video-page .video-section {
      padding: 68px 0 86px;
    }

    .video-page .section-heading {
      margin-bottom: 28px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 20px;
    }

    .video-page .section-heading h2 {
      margin: 0;
      color: var(--navy);
      font-size: clamp(26px, 4vw, 38px);
      letter-spacing: -0.035em;
    }

    .video-page .section-heading p {
      max-width: 500px;
      margin: 6px 0 0;
      color: var(--muted);
    }

    .video-page .section-count {
      padding: 8px 13px;
      border-radius: 999px;
      color: var(--primary);
      background: var(--primary-light);
      font-size: 13px;
      font-weight: 850;
      white-space: nowrap;
    }

    .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 #e1e8f2;
      border-radius: var(--radius);
      background: #fff;
      box-shadow: 0 10px 30px rgba(7, 20, 38, 0.07);
      transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    }

    .video-page .video-card:hover {
      border-color: rgba(11, 61, 145, 0.32);
      box-shadow: 0 20px 45px rgba(7, 20, 38, 0.14);
      transform: translateY(-6px);
    }

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

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

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

    .video-page .video-cover::after {
      position: absolute;
      inset: 42% auto auto 50%;
      width: 54px;
      height: 54px;
      border: 1px solid rgba(255, 255, 255, 0.65);
      border-radius: 50%;
      color: #fff;
      background: rgba(5, 18, 42, 0.72);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
      content: "▶";
      display: grid;
      place-items: center;
      font-size: 18px;
      transform: translate(-50%, -50%);
      backdrop-filter: blur(8px);
    }

    .video-page .duration {
      position: absolute;
      right: 12px;
      bottom: 12px;
      z-index: 2;
      padding: 4px 8px;
      border-radius: 6px;
      color: #fff;
      background: rgba(4, 13, 29, 0.82);
      font-size: 12px;
      font-weight: 800;
    }

    .video-page .video-body {
      padding: 20px;
    }

    .video-page .video-type {
      margin-bottom: 9px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--primary);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.06em;
    }

    .video-page .video-type::before {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--cyan);
      content: "";
    }

    .video-page .video-card h3 {
      margin: 0;
      color: #132138;
      font-size: 19px;
      line-height: 1.42;
    }

    .video-page .video-card h3 a:hover {
      color: var(--primary);
    }

    .video-page .video-summary {
      min-height: 4.8em;
      margin: 11px 0 18px;
      overflow: hidden;
      color: var(--muted);
      display: -webkit-box;
      font-size: 14px;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .video-page .watch-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--primary);
      font-size: 14px;
      font-weight: 900;
    }

    .video-page .watch-link::after {
      content: "→";
      transition: transform 0.2s ease;
    }

    .video-page .watch-link:hover::after {
      transform: translateX(4px);
    }

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

    .video-page .pagination a {
      min-width: 42px;
      min-height: 42px;
      padding: 8px 13px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #dce5f0;
      border-radius: 10px;
      color: #34455d;
      background: #fff;
      font-weight: 750;
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    }

    .video-page .pagination a:hover,
    .video-page .pagination a.active,
    .video-page .pagination a.current {
      border-color: var(--primary);
      color: #fff;
      background: var(--primary);
    }

    .video-page .video-note {
      margin-top: 54px;
      padding: 26px 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 25px;
      border-radius: 18px;
      color: #fff;
      background: linear-gradient(120deg, var(--primary-dark), var(--primary));
      box-shadow: 0 20px 40px rgba(11, 61, 145, 0.2);
    }

    .video-page .video-note h2 {
      margin: 0 0 5px;
      font-size: 23px;
    }

    .video-page .video-note p {
      margin: 0;
      color: #d8e7ff;
    }

    .video-page .video-note a {
      padding: 11px 18px;
      flex: 0 0 auto;
      border-radius: 10px;
      color: var(--primary-dark);
      background: #fff;
      font-weight: 900;
    }

    .footer {
      color: #c4d1e3;
      background: #061226;
    }

    .footer-grid {
      padding: 62px 0 42px;
      display: grid;
      grid-template-columns: 1.45fr 1fr 1fr 1fr;
      gap: 42px;
    }

    .footer .logo {
      color: #fff;
    }

    .footer-brand p {
      max-width: 380px;
      margin: 19px 0 0;
      color: #91a4bd;
      font-size: 14px;
    }

    .footer h3 {
      margin: 5px 0 17px;
      color: #fff;
      font-size: 15px;
    }

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

    .footer-links a,
    .footer-links span {
      color: #9fb0c7;
      font-size: 14px;
    }

    .footer-links a {
      transition: color 0.2s ease, transform 0.2s ease;
    }

    .footer-links a:hover {
      color: var(--cyan);
      transform: translateX(3px);
    }

    .footer-bottom {
      padding: 20px 0 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: #7f93ad;
      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));
      }
    }

    @media (max-width: 820px) {
      .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .video-page .masthead-inner {
        padding: 58px 0 54px;
      }

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

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

      .topbar-inner {
        min-height: 45px;
        justify-content: center;
        text-align: center;
      }

      .topbar-inner > span {
        display: none;
      }

      .topbar-links {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        font-size: 12px;
      }

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

      .logo {
        min-width: 0;
        font-size: 17px;
      }

      .logo img {
        width: 36px;
        height: 36px;
      }

      .header-btns > .member-btn {
        display: none;
      }

      .video-page .video-masthead h1 {
        font-size: 38px;
      }

      .video-page .video-masthead p {
        font-size: 15px;
      }

      .video-page .video-section {
        padding: 56px 0 68px;
      }

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

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

      .video-page .video-summary {
        min-height: auto;
      }

      .video-page .video-note {
        padding: 23px;
      }

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

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