:root {
      --primary: #0B3D91;
      --primary-dark: #072b67;
      --primary-soft: #eaf1fc;
      --ink: #18212f;
      --muted: #667085;
      --line: #dfe5ed;
      --surface: #ffffff;
      --surface-alt: #f5f7fa;
      --accent: #e63946;
      --warning: #f2b705;
      --success: #16855b;
      --shadow: 0 12px 32px rgba(24, 33, 47, 0.1);
      --radius: 8px;
      --container: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--surface);
      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(calc(100% - 40px), var(--container));
      margin-inline: auto;
    }

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

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

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

    .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(--primary);
      font-size: 19px;
      font-weight: 800;
    }

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

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

    .main-nav {
      min-width: 0;
      flex: 1;
      align-self: stretch;
    }

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

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

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

    .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%;
      left: 50%;
      z-index: 60;
      visibility: hidden;
      opacity: 0;
      transform: translate(-50%, 8px);
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
      border: 1px solid var(--line);
      border-top: 3px solid var(--primary);
      background: #ffffff;
      box-shadow: var(--shadow);
      pointer-events: none;
    }

    .dropdown-panel {
      width: min(380px, calc(100vw - 40px));
      padding: 12px;
    }

    .dropdown-panel > a {
      padding: 10px 12px;
      display: block;
      border-bottom: 1px solid #edf0f4;
      font-size: 14px;
    }

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

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

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

    .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: translate(-50%, 0);
      pointer-events: auto;
    }

    .mega-heading {
      margin: 0 0 14px;
      color: var(--primary);
      font-size: 17px;
    }

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

    .mega-categories a {
      padding: 6px 12px;
      border: 1px solid var(--line);
      border-radius: 4px;
      color: #354052;
      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;
      min-height: 92px;
      padding: 12px;
      display: grid;
      grid-template-columns: 50px minmax(0, 1fr);
      align-content: start;
      gap: 4px 10px;
      border: 1px solid var(--line);
      border-radius: 6px;
    }

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

    .mega-card strong,
    .mega-card p {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mega-card strong {
      white-space: nowrap;
      font-size: 14px;
    }

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

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

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

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

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

    .member-entry {
      white-space: nowrap;
      font-size: 14px;
    }

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

    .account-btn:hover,
    .account-btn:focus-visible {
      background: var(--primary-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: 5px;
      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;
      opacity: 0;
      background: rgba(12, 20, 33, 0.62);
      transition: opacity 0.2s ease, visibility 0.2s;
    }

    .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: -16px 0 40px 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: 12px;
      border-bottom: 1px solid var(--line);
      background: var(--surface-alt);
    }

    .drawer-head > a {
      color: var(--primary);
      font-weight: 800;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      margin-left: auto;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: #ffffff;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
    }

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

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

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

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

    .drawer-submenu {
      display: none;
      padding: 7px 0 10px 14px;
      border-bottom: 1px solid var(--line);
    }

    .drawer-submenu.open {
      display: block;
    }

    .drawer-submenu a {
      padding: 8px 5px;
      display: block;
      color: var(--muted);
      font-size: 14px;
    }

    .category-page {
      min-height: 60vh;
      background: var(--surface-alt);
    }

    .category-page .category-intro {
      padding: 56px 0 48px;
      color: #ffffff;
      background:
        linear-gradient(135deg, rgba(11, 61, 145, 0.98), rgba(7, 43, 103, 0.96)),
        #0B3D91;
    }

    .category-page .breadcrumb {
      margin: 0 0 14px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      color: rgba(255, 255, 255, 0.78);
      font-size: 14px;
    }

    .category-page .breadcrumb a:hover {
      color: #ffffff;
      text-decoration: underline;
    }

    .category-page .category-intro h1 {
      margin: 0;
      max-width: 800px;
      font-size: clamp(34px, 5vw, 56px);
      line-height: 1.16;
      letter-spacing: 0;
    }

    .category-page .category-intro p {
      max-width: 760px;
      margin: 18px 0 0;
      color: rgba(255, 255, 255, 0.85);
      font-size: 17px;
    }

    .category-page .category-summary {
      margin-top: 30px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .category-page .category-summary span {
      padding: 7px 12px;
      border: 1px solid rgba(255, 255, 255, 0.32);
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.1);
      font-size: 13px;
      font-weight: 700;
    }

    .category-page .article-section {
      padding: 52px 0 72px;
    }

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

    .category-page .section-head h2 {
      margin: 0;
      color: var(--ink);
      font-size: 27px;
      line-height: 1.3;
    }

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

    .category-page .article-list {
      display: grid;
      gap: 18px;
    }

    .category-page .article-card {
      min-width: 0;
      display: grid;
      grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #ffffff;
      box-shadow: 0 6px 20px rgba(24, 33, 47, 0.06);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .category-page .article-card:hover {
      border-color: #a9bce0;
      box-shadow: var(--shadow);
      transform: translateY(-2px);
    }

    .category-page .article-cover {
      min-height: 260px;
      overflow: hidden;
      background: #e7ebf1;
    }

    .category-page .article-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
    }

    .category-page .article-card:hover .article-cover img {
      transform: scale(1.025);
    }

    .category-page .article-body {
      min-width: 0;
      padding: 25px 28px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .category-page .category-badge {
      margin-bottom: 10px;
      padding: 4px 9px;
      border-radius: 3px;
      color: var(--primary);
      background: var(--primary-soft);
      font-size: 12px;
      font-weight: 800;
    }

    .category-page .article-title {
      margin: 0;
      color: var(--ink);
      font-size: 23px;
      line-height: 1.35;
    }

    .category-page .article-title a:hover,
    .category-page .article-title a:focus-visible {
      color: var(--primary);
    }

    .category-page .article-summary {
      margin: 12px 0 14px;
      color: #4e5b6d;
      line-height: 1.75;
      display: -webkit-box;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .category-page .article-meta {
      width: 100%;
      margin: 0 0 12px;
      padding: 11px 0;
      display: flex;
      flex-wrap: wrap;
      gap: 7px 17px;
      border-top: 1px solid #edf0f4;
      border-bottom: 1px solid #edf0f4;
      color: var(--muted);
      font-size: 13px;
    }

    .category-page .article-tags {
      margin-bottom: 18px;
      color: var(--muted);
      font-size: 13px;
      overflow-wrap: anywhere;
    }

    .category-page .article-tags strong {
      color: #344054;
    }

    .category-page .read-more {
      margin-top: auto;
      min-height: 40px;
      padding: 8px 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--primary);
      border-radius: 5px;
      color: var(--primary);
      font-size: 14px;
      font-weight: 800;
    }

    .category-page .read-more:hover,
    .category-page .read-more:focus-visible {
      color: #ffffff;
      background: var(--primary);
    }

    .category-page .pagination {
      margin-top: 34px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }

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

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

    .footer {
      color: #d8e0ec;
      background: #111a28;
    }

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

    .footer .logo {
      color: #ffffff;
    }

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

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

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

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

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

    .footer-bottom {
      min-height: 68px;
      padding: 16px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid #2a3545;
      color: #99a6b7;
      font-size: 13px;
    }

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

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

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

      .hamburger {
        display: flex;
      }

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

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

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

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

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

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

      .category-page .category-intro {
        padding: 38px 0 35px;
      }

      .category-page .category-intro h1 {
        font-size: 36px;
      }

      .category-page .category-intro p {
        font-size: 15px;
      }

      .category-page .article-section {
        padding: 36px 0 52px;
      }

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

      .category-page .article-card {
        grid-template-columns: minmax(0, 1fr);
      }

      .category-page .article-cover {
        min-height: 0;
        aspect-ratio: 16 / 9;
      }

      .category-page .article-body {
        padding: 21px 19px;
      }

      .category-page .article-title {
        font-size: 20px;
      }

      .category-page .article-summary {
        -webkit-line-clamp: 3;
      }

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

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

    @media (max-width: 420px) {
      .logo img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
      }

      .logo span {
        max-width: 120px;
        font-size: 16px;
      }

      .category-page .category-intro h1 {
        font-size: 31px;
      }

      .category-page .article-meta {
        flex-direction: column;
        gap: 4px;
      }
    }