:root {
      --primary: #0B3D91;
      --primary-dark: #072b68;
      --primary-soft: #eaf1fc;
      --ink: #172033;
      --muted: #637087;
      --line: #dce3ed;
      --surface: #ffffff;
      --surface-soft: #f5f7fa;
      --positive: #087f5b;
      --warning: #b45309;
      --shadow: 0 16px 40px rgba(23, 32, 51, 0.1);
      --container: 1180px;
    }

    * {
      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", Arial, sans-serif;
      line-height: 1.6;
    }

    body.drawer-locked {
      overflow: hidden;
    }

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

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

    button {
      color: inherit;
      font: 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: 76px;
      display: flex;
      align-items: center;
      gap: 28px;
    }

    .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 {
      overflow: hidden;
      max-width: 190px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

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

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

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

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

    .nav-link:hover,
    .nav-link:focus-visible {
      color: var(--primary);
      background: var(--primary-soft);
      outline: none;
    }

    .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: 60;
      visibility: hidden;
      border: 1px solid var(--line);
      border-top: 3px solid var(--primary);
      background: var(--surface);
      box-shadow: var(--shadow);
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    }

    .dropdown-panel {
      left: 0;
      width: 310px;
      padding: 10px;
    }

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

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

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

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

    .nav-item:nth-last-child(-n+3) .mega-menu {
      right: 0;
      left: auto;
      transform: translateY(8px);
    }

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

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

    .nav-item:nth-last-child(-n+3):hover > .mega-menu,
    .nav-item:nth-last-child(-n+3):focus-within > .mega-menu {
      transform: translateY(0);
    }

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

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

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

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

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

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

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

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

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

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

    .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 {
      display: block;
      margin-top: 15px;
      padding-top: 13px;
      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 {
      font-size: 14px;
      white-space: nowrap;
    }

    .account-btn {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 15px;
      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);
      outline: 3px solid rgba(11, 61, 145, 0.18);
    }

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

    .hamburger span {
      width: 20px;
      height: 2px;
      background: var(--ink);
      transition: transform 160ms ease, opacity 160ms 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, 19, 39, 0.56);
      opacity: 0;
      transition: opacity 180ms ease, visibility 180ms ease;
    }

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

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

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

    .drawer-head {
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
    }

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

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

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

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

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

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

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

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

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

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

    .tag-page {
      min-height: 62vh;
    }

    .tag-page .tag-heading {
      padding: 58px 0 42px;
      color: #ffffff;
      background: var(--primary);
    }

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

    .tag-page .breadcrumb a:hover,
    .tag-page .breadcrumb a:focus-visible {
      color: #ffffff;
      text-decoration: underline;
      outline: none;
    }

    .tag-page .tag-title-row {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 28px;
    }

    .tag-page .tag-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
      font-size: 13px;
      font-weight: 800;
    }

    .tag-page .tag-kicker::before {
      width: 24px;
      height: 3px;
      background: #ffd500;
      content: "";
    }

    .tag-page h1 {
      margin: 0;
      font-size: clamp(32px, 5vw, 54px);
      line-height: 1.15;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

    .tag-page .tag-count {
      flex: 0 0 auto;
      padding: 12px 16px;
      border: 1px solid rgba(255, 255, 255, 0.32);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.1);
      font-weight: 700;
    }

    .tag-page .tag-content {
      padding: 44px 0 64px;
    }

    .tag-page .section-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 20px;
    }

    .tag-page .section-bar h2 {
      margin: 0;
      font-size: 24px;
      letter-spacing: 0;
    }

    .tag-page .tag-index-link {
      color: var(--primary);
      font-size: 14px;
      font-weight: 800;
    }

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

    .tag-page .article-card {
      min-width: 0;
      display: grid;
      grid-template-columns: 270px minmax(0, 1fr);
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: #ffffff;
      box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
    }

    .tag-page .article-media {
      min-height: 210px;
      overflow: hidden;
      background: #e7ecf3;
    }

    .tag-page .article-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 240ms ease;
    }

    .tag-page .article-card:hover .article-media img {
      transform: scale(1.035);
    }

    .tag-page .article-body {
      min-width: 0;
      display: flex;
      flex-direction: column;
      padding: 22px 24px;
    }

    .tag-page .article-label {
      align-self: flex-start;
      margin-bottom: 8px;
      padding: 4px 8px;
      border-radius: 3px;
      color: var(--primary);
      background: var(--primary-soft);
      font-size: 12px;
      font-weight: 800;
    }

    .tag-page .article-title {
      margin: 0;
      font-size: 21px;
      line-height: 1.35;
      letter-spacing: 0;
      overflow-wrap: anywhere;
    }

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

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

    .tag-page .article-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px 16px;
      margin-top: auto;
      color: var(--muted);
      font-size: 13px;
    }

    .tag-page .article-tags {
      margin-top: 10px;
      color: var(--primary);
      font-size: 13px;
      overflow-wrap: anywhere;
    }

    .tag-page .read-more {
      align-self: flex-start;
      margin-top: 14px;
      color: var(--primary);
      font-size: 14px;
      font-weight: 800;
    }

    .tag-page .read-more::after {
      margin-left: 6px;
      content: "›";
    }

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

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

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

    .footer {
      color: #dbe4f2;
      background: #101827;
    }

    .footer-main {
      display: grid;
      grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
      gap: 44px;
      padding-top: 52px;
      padding-bottom: 42px;
    }

    .footer .logo {
      color: #ffffff;
    }

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

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

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

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

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

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

    @media (max-width: 1100px) {
      .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: 760px) {
      .container {
        width: min(calc(100% - 28px), var(--container));
      }

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

      .topbar-contact {
        flex-wrap: wrap;
        gap: 3px 14px;
      }

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

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

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

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

      .tag-page .tag-heading {
        padding: 38px 0 32px;
      }

      .tag-page .tag-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
      }

      .tag-page .tag-count {
        padding: 9px 12px;
      }

      .tag-page .tag-content {
        padding: 32px 0 48px;
      }

      .tag-page .section-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
      }

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

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

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

      .tag-page .article-title {
        font-size: 19px;
      }

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

      .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
      }
    }

    @media (max-width: 420px) {
      .header .logo span {
        max-width: 105px;
      }

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

      .drawer-head {
        padding-inline: 14px;
      }
    }