:root {
      --primary: #0B3D91;
      --primary-dark: #07285f;
      --primary-soft: #eaf2ff;
      --indigo: #101d42;
      --cyan: #18a7c7;
      --ink: #172033;
      --muted: #647089;
      --line: #dce3ed;
      --surface: #ffffff;
      --surface-soft: #f5f8fc;
      --success: #16866f;
      --shadow: 0 14px 36px rgba(16, 29, 66, 0.1);
      --container: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body.drawer-lock {
      overflow: hidden;
    }

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

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

    button,
    input,
    textarea,
    select {
      font: inherit;
    }

    button {
      color: inherit;
    }

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

    .topbar {
      color: #dceaff;
      background: var(--indigo);
      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: 22px;
    }

    .topbar a {
      transition: color 0.2s ease;
    }

    .topbar a:hover,
    .topbar a:focus-visible {
      color: #ffffff;
    }

    .header {
      position: relative;
      z-index: 50;
      background: rgba(255, 255, 255, 0.98);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 4px 18px rgba(16, 29, 66, 0.05);
    }

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

    .logo {
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--indigo);
      font-size: 19px;
      font-weight: 800;
      white-space: nowrap;
    }

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

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

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

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

    .nav-link {
      height: 100%;
      padding: 0 13px;
      display: flex;
      align-items: center;
      gap: 6px;
      color: #28344c;
      font-size: 15px;
      font-weight: 700;
      transition: color 0.2s ease, background 0.2s ease;
    }

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

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

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      z-index: 80;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      color: var(--ink);
      background: #ffffff;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      transform: translateY(8px);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .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 {
      left: 0;
      width: 320px;
      padding: 18px;
      border-radius: 0 0 6px 6px;
    }

    .dropdown-title {
      display: block;
      margin-bottom: 10px;
      color: var(--indigo);
      font-size: 15px;
    }

    .dropdown-article {
      padding: 9px 0;
      display: block;
      overflow: hidden;
      border-bottom: 1px solid #edf0f5;
      font-size: 14px;
      font-weight: 600;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dropdown-article:hover,
    .dropdown-article:focus-visible {
      color: var(--primary);
    }

    .dropdown-more {
      margin-top: 12px;
      display: inline-flex;
      color: var(--primary);
      font-size: 14px;
      font-weight: 800;
    }

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

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

    .mega-menu-title {
      margin-bottom: 16px;
      padding-bottom: 13px;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 16px;
      border-bottom: 1px solid var(--line);
    }

    .mega-menu-title strong {
      color: var(--indigo);
      font-size: 18px;
    }

    .mega-menu-title span {
      color: var(--muted);
      font-size: 13px;
    }

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

    .mega-card {
      min-width: 0;
      padding: 13px;
      display: block;
      background: var(--surface-soft);
      border: 1px solid transparent;
      border-radius: 6px;
      transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }

    .mega-card:hover,
    .mega-card:focus-visible {
      background: #ffffff;
      border-color: #b9cae7;
      transform: translateY(-2px);
    }

    .mega-card-head {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .mega-card-head img {
      width: 34px;
      height: 34px;
      flex: 0 0 auto;
      object-fit: contain;
      border-radius: 4px;
    }

    .mega-card strong {
      min-width: 0;
      display: block;
      overflow: hidden;
      color: var(--indigo);
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

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

    .mega-stats {
      margin-top: 9px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .mega-stats span,
    .video-duration,
    .product-meta {
      color: var(--primary);
      font-size: 11px;
      font-weight: 800;
    }

    .mega-footer {
      margin-top: 16px;
      padding: 11px 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      background: var(--primary);
      border-radius: 5px;
      font-size: 14px;
      font-weight: 800;
    }

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

    .mega-split {
      display: grid;
      grid-template-columns: 180px minmax(0, 1fr);
      gap: 18px;
    }

    .mega-categories {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .mega-categories a {
      padding: 8px 10px;
      color: #344059;
      background: var(--surface-soft);
      border-radius: 4px;
      font-size: 13px;
      font-weight: 700;
    }

    .mega-categories a:hover,
    .mega-categories a:focus-visible {
      color: var(--primary);
      background: var(--primary-soft);
    }

    .video-mega-card,
    .product-mega-card {
      padding: 0;
      overflow: hidden;
    }

    .video-mega-card > img,
    .product-mega-card > img {
      width: 100%;
      height: 82px;
      object-fit: cover;
    }

    .video-mega-copy,
    .product-mega-copy {
      padding: 10px;
    }

    .video-duration,
    .product-meta {
      margin-top: 6px;
      display: block;
    }

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

    .btn {
      min-height: 42px;
      padding: 0 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid transparent;
      border-radius: 5px;
      font-weight: 800;
      transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .btn-primary {
      color: #ffffff;
      background: var(--primary);
    }

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

    .btn-secondary {
      color: var(--primary);
      background: #ffffff;
      border-color: #b9cae7;
    }

    .btn-secondary:hover,
    .btn-secondary:focus-visible {
      border-color: var(--primary);
      background: var(--primary-soft);
    }

    .btn-small {
      min-height: 38px;
      padding: 0 14px;
      font-size: 14px;
      white-space: nowrap;
    }

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

    .hamburger span {
      width: 20px;
      height: 2px;
      display: block;
      background: var(--indigo);
      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: 90;
      visibility: hidden;
      opacity: 0;
      background: rgba(7, 18, 42, 0.58);
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

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

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

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

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

    .drawer-head > a {
      font-weight: 800;
    }

    .drawer-close {
      width: 40px;
      height: 40px;
      margin-left: auto;
      padding: 0;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 5px;
      font-size: 27px;
      line-height: 1;
      cursor: pointer;
    }

    .drawer-menu {
      padding: 12px 18px 32px;
    }

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

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

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

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

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

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

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

    .video-detail-main {
      min-width: 0;
    }

    .video-detail-main .video-heading-band {
      color: #ffffff;
      background: var(--indigo);
      border-bottom: 4px solid var(--cyan);
    }

    .video-detail-main .video-heading-inner {
      padding: 52px 0 44px;
    }

    .video-detail-main .video-breadcrumb {
      margin-bottom: 15px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      color: #b9cae7;
      font-size: 14px;
    }

    .video-detail-main .video-breadcrumb a:hover,
    .video-detail-main .video-breadcrumb a:focus-visible {
      color: #ffffff;
    }

    .video-detail-main .video-title {
      max-width: 940px;
      margin: 0;
      color: #ffffff;
      font-size: clamp(30px, 5vw, 52px);
      line-height: 1.2;
      overflow-wrap: anywhere;
    }

    .video-detail-main .video-summary {
      max-width: 820px;
      margin: 18px 0 0;
      color: #d6e3f7;
      font-size: 17px;
    }

    .video-detail-main .video-meta {
      margin-top: 22px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .video-detail-main .video-meta span {
      padding: 6px 10px;
      color: #e9f3ff;
      background: rgba(255, 255, 255, 0.09);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 4px;
      font-size: 13px;
    }

    .video-detail-main .video-layout {
      padding: 44px 0 64px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 300px;
      align-items: start;
      gap: 28px;
    }

    .video-detail-main .video-main-column,
    .video-detail-main .video-player,
    .video-detail-main .video-body {
      min-width: 0;
      max-width: 100%;
    }

    .video-detail-main .video-player {
      position: relative;
      overflow: hidden;
      color: #ffffff;
      background: #050a14;
      border: 1px solid #172746;
      border-radius: 6px;
      box-shadow: var(--shadow);
      aspect-ratio: 16 / 9;
    }

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

    .video-detail-main .video-info-panel,
    .video-detail-main .video-body,
    .video-detail-main .video-sidebar-panel,
    .video-detail-main .related-section {
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 6px;
    }

    .video-detail-main .video-info-panel {
      margin-top: 20px;
      padding: 24px;
    }

    .video-detail-main .section-title {
      margin: 0 0 14px;
      color: var(--indigo);
      font-size: 21px;
      line-height: 1.35;
    }

    .video-detail-main .video-description {
      margin: 0;
      color: #3f4b62;
      font-size: 16px;
      white-space: pre-wrap;
    }

    .video-detail-main .video-tags {
      margin-top: 18px;
      padding-top: 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      border-top: 1px solid var(--line);
    }

    .video-detail-main .video-tags span {
      color: var(--primary);
      font-size: 14px;
      font-weight: 800;
    }

    .video-detail-main .video-body {
      margin-top: 20px;
      padding: 26px;
      overflow-x: auto;
      color: #354158;
    }

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

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

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

    .video-detail-main .video-sidebar {
      position: sticky;
      top: 20px;
      display: grid;
      gap: 18px;
    }

    .video-detail-main .video-sidebar-panel {
      padding: 20px;
    }

    .video-detail-main .detail-list {
      margin: 0;
      display: grid;
      gap: 13px;
    }

    .video-detail-main .detail-row {
      padding-bottom: 12px;
      display: grid;
      gap: 3px;
      border-bottom: 1px solid var(--line);
    }

    .video-detail-main .detail-row:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .video-detail-main .detail-row dt {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .video-detail-main .detail-row dd {
      margin: 0;
      color: var(--indigo);
      font-size: 14px;
      font-weight: 800;
      overflow-wrap: anywhere;
    }

    .video-detail-main .sidebar-action {
      width: 100%;
      margin-top: 18px;
    }

    .video-detail-main .related-section {
      margin-bottom: 64px;
      padding: 28px;
    }

    .video-detail-main .related-head {
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .video-detail-main .related-head .section-title {
      margin: 0;
    }

    .video-detail-main .related-more {
      color: var(--primary);
      font-size: 14px;
      font-weight: 800;
    }

    .video-detail-main .related-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .video-detail-main .related-card {
      min-width: 0;
      overflow: hidden;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      border-radius: 6px;
      transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .video-detail-main .related-card:hover,
    .video-detail-main .related-card:focus-visible {
      border-color: #9bb6df;
      box-shadow: 0 10px 24px rgba(16, 29, 66, 0.09);
      transform: translateY(-3px);
    }

    .video-detail-main .related-cover {
      position: relative;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: var(--indigo);
    }

    .video-detail-main .related-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.25s ease;
    }

    .video-detail-main .related-card:hover .related-cover img {
      transform: scale(1.04);
    }

    .video-detail-main .related-duration {
      position: absolute;
      right: 8px;
      bottom: 8px;
      padding: 3px 7px;
      color: #ffffff;
      background: rgba(7, 18, 42, 0.84);
      border-radius: 3px;
      font-size: 12px;
      font-weight: 800;
    }

    .video-detail-main .related-copy {
      padding: 15px;
    }

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

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

    .footer {
      color: #cfdaec;
      background: var(--indigo);
    }

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

    .footer .logo {
      color: #ffffff;
    }

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

    .footer-title {
      margin: 5px 0 16px;
      color: #ffffff;
      font-size: 16px;
    }

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

    .footer-links a,
    .footer-contact a {
      color: #bdc9dc;
      font-size: 14px;
      transition: color 0.2s ease;
    }

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

    .social-link {
      margin-top: 5px;
      color: #8ed9eb !important;
      font-weight: 800;
    }

    .footer-bottom {
      min-height: 68px;
      padding: 16px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      color: #94a5c0;
      font-size: 13px;
    }

    :focus-visible {
      outline: 3px solid rgba(24, 167, 199, 0.42);
      outline-offset: 2px;
    }

    @media (max-width: 1120px) {
      .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: 900px) {
      .video-detail-main .video-layout {
        grid-template-columns: minmax(0, 1fr);
      }

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

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

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

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

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

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

      .header .logo span {
        max-width: 125px;
        overflow: hidden;
        text-overflow: ellipsis;
      }

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

      .video-detail-main .video-heading-inner {
        padding: 38px 0 34px;
      }

      .video-detail-main .video-title {
        font-size: 30px;
      }

      .video-detail-main .video-summary {
        font-size: 15px;
      }

      .video-detail-main .video-layout {
        padding: 28px 0 42px;
      }

      .video-detail-main .video-info-panel,
      .video-detail-main .video-body,
      .video-detail-main .video-sidebar-panel,
      .video-detail-main .related-section {
        padding: 19px;
      }

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

      .video-detail-main .related-section {
        margin-bottom: 42px;
      }

      .video-detail-main .related-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
      }

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

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