:root {
      --theme: #0B3D91;
      --theme-dark: #072b67;
      --theme-soft: #eaf1fc;
      --ink: #17202b;
      --muted: #657080;
      --line: #dce2e8;
      --surface: #ffffff;
      --surface-soft: #f5f7f9;
      --success: #55705b;
      --rock: #59636c;
      --mist: #f4f6f5;
      --shadow: 0 12px 30px rgba(16, 31, 47, 0.08);
      --container: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body,
    button,
    input {
      font: inherit;
    }

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

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

    button {
      color: inherit;
    }

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

    .topbar {
      min-height: 36px;
      color: #eaf2ff;
      background: #102238;
      font-size: 13px;
    }

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

    .topbar-links {
      display: flex;
      align-items: center;
      gap: 22px;
    }

    .topbar a:hover {
      color: #ffffff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .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: 180px;
      display: inline-flex;
      align-items: center;
      gap: 11px;
      color: var(--theme-dark);
      font-size: 19px;
      font-weight: 800;
    }

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

    .main-nav {
      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: relative;
      display: flex;
      align-items: stretch;
    }

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

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

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

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

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

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

    .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 160ms ease, transform 160ms ease, visibility 160ms ease;
    }

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

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

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

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

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

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

    .dropdown-panel > a:not(.mega-footer) {
      padding: 10px 11px;
      display: block;
      border-radius: 5px;
      color: #36414d;
      font-size: 14px;
    }

    .dropdown-panel > a:not(.mega-footer):hover {
      color: var(--theme);
      background: var(--theme-soft);
    }

    .mega-heading {
      margin-bottom: 13px;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

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

    .mega-card {
      min-width: 0;
      min-height: 86px;
      padding: 13px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: #ffffff;
      transition: border-color 160ms ease, box-shadow 160ms ease;
    }

    .mega-card:hover {
      border-color: #9bb3d6;
      box-shadow: 0 8px 18px rgba(11, 61, 145, 0.09);
    }

    .mega-card img {
      width: 26px;
      height: 26px;
      margin-bottom: 3px;
      object-fit: contain;
    }

    .mega-card strong {
      overflow: hidden;
      color: #26313d;
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-card small {
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-footer {
      margin-top: 12px;
      padding: 10px 12px;
      display: block;
      border-radius: 5px;
      color: #ffffff;
      background: var(--theme);
      font-size: 13px;
      font-weight: 800;
      text-align: center;
    }

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

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

    .member-link,
    .account-link {
      min-height: 38px;
      padding: 8px 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--theme);
      border-radius: 5px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 800;
    }

    .account-link {
      color: #ffffff;
      background: var(--theme);
    }

    .member-link:hover {
      background: var(--theme-soft);
    }

    .account-link:hover {
      border-color: var(--theme-dark);
      background: var(--theme-dark);
    }

    .hamburger {
      width: 42px;
      height: 42px;
      padding: 9px;
      display: none;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: #ffffff;
      cursor: pointer;
    }

    .hamburger span {
      width: 100%;
      height: 2px;
      margin: 5px 0;
      display: block;
      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: 90;
      visibility: hidden;
      background: rgba(11, 20, 29, 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: 100;
      width: min(390px, 92vw);
      height: 100dvh;
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -14px 0 35px rgba(10, 24, 39, 0.18);
      transform: translateX(105%);
      transition: transform 220ms ease;
    }

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

    .drawer-head {
      min-height: 70px;
      padding: 13px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid var(--line);
      background: var(--surface-soft);
    }

    .drawer-head > span {
      min-width: 0;
      flex: 1;
      color: var(--theme-dark);
      font-weight: 800;
    }

    .drawer-head > a {
      padding: 7px 12px;
      border-radius: 4px;
      color: #ffffff;
      background: var(--theme);
      font-size: 13px;
      font-weight: 800;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      padding: 0;
      border: 0;
      background: transparent;
      font-size: 29px;
      line-height: 1;
      cursor: pointer;
    }

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

    .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: #28333f;
      font-weight: 800;
      text-align: left;
      cursor: pointer;
    }

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

    .drawer-toggle::after {
      content: "+";
      position: absolute;
      right: 6px;
      color: var(--theme);
      font-size: 21px;
      font-weight: 500;
    }

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

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

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

    .drawer-submenu a {
      padding: 10px 14px;
      display: block;
      border-bottom: 1px solid #e6eaee;
      color: var(--muted);
      font-size: 14px;
    }

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

    .tag-index-page {
      min-height: 620px;
      background: var(--mist);
    }

    .tag-index-page .tag-intro {
      position: relative;
      overflow: hidden;
      padding: 76px 0 66px;
      color: #ffffff;
      background: #293740;
    }

    .tag-index-page .tag-intro::before,
    .tag-index-page .tag-intro::after {
      content: "";
      position: absolute;
      pointer-events: none;
      border: 1px solid rgba(230, 239, 231, 0.18);
      border-radius: 50%;
    }

    .tag-index-page .tag-intro::before {
      width: 720px;
      height: 270px;
      right: -130px;
      bottom: -145px;
      transform: rotate(-6deg);
    }

    .tag-index-page .tag-intro::after {
      width: 520px;
      height: 180px;
      right: 40px;
      bottom: -105px;
      border-color: rgba(140, 169, 145, 0.28);
      transform: rotate(4deg);
    }

    .tag-index-page .intro-inner {
      position: relative;
      z-index: 1;
      max-width: 790px;
    }

    .tag-index-page .eyebrow {
      margin: 0 0 12px;
      color: #c4d7c7;
      font-size: 13px;
      font-weight: 800;
    }

    .tag-index-page h1 {
      margin: 0;
      font-size: clamp(34px, 5vw, 58px);
      line-height: 1.16;
      letter-spacing: 0;
    }

    .tag-index-page .tag-intro p {
      max-width: 680px;
      margin: 18px 0 0;
      color: #e2e8e5;
      font-size: 17px;
    }

    .tag-index-page .tag-section {
      padding: 62px 0 76px;
    }

    .tag-index-page .section-heading {
      max-width: 760px;
      margin-bottom: 30px;
    }

    .tag-index-page .section-heading h2 {
      margin: 0 0 8px;
      color: #26342d;
      font-size: 28px;
      line-height: 1.3;
      letter-spacing: 0;
    }

    .tag-index-page .section-heading p {
      margin: 0;
      color: var(--muted);
    }

    .tag-index-page .tag-cloud {
      padding: 26px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
      border: 1px solid #d8dfda;
      border-radius: 8px;
      background: #ffffff;
      box-shadow: var(--shadow);
    }

    .tag-index-page .tag-link {
      min-height: 44px;
      padding: 9px 15px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      border: 1px solid #ccd6cf;
      border-radius: 5px;
      color: #34443a;
      background: #f9fbf9;
      font-weight: 750;
      transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
    }

    .tag-index-page .tag-link::before {
      content: "#";
      color: #728d77;
      font-weight: 900;
    }

    .tag-index-page .tag-link:hover,
    .tag-index-page .tag-link:focus-visible {
      color: #ffffff;
      border-color: var(--theme);
      background: var(--theme);
      outline: none;
      transform: translateY(-2px);
    }

    .tag-index-page .tag-link:hover::before,
    .tag-index-page .tag-link:focus-visible::before {
      color: #dbe7fb;
    }

    .tag-index-page .tag-note {
      margin-top: 22px;
      padding: 18px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border-left: 4px solid var(--success);
      background: #e8eee9;
      color: #3f5144;
    }

    .tag-index-page .tag-note p {
      margin: 0;
    }

    .tag-index-page .tag-note a {
      flex: 0 0 auto;
      color: var(--theme);
      font-weight: 800;
    }

    .tag-index-page .tag-note a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .footer {
      padding: 56px 0 20px;
      color: #dce4ec;
      background: #17232d;
    }

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

    .footer h2,
    .footer h3 {
      margin: 0 0 14px;
      color: #ffffff;
      letter-spacing: 0;
    }

    .footer h2 {
      font-size: 22px;
    }

    .footer h3 {
      font-size: 15px;
    }

    .footer p {
      max-width: 360px;
      margin: 0;
      color: #aebbc7;
      font-size: 14px;
    }

    .footer-links {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .footer-links li {
      margin: 8px 0;
      color: #b9c4ce;
      font-size: 14px;
      overflow-wrap: anywhere;
    }

    .footer-links a:hover {
      color: #ffffff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .footer-bottom {
      margin-top: 38px;
      padding-top: 18px;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid #34424e;
      color: #94a4b2;
      font-size: 13px;
    }

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

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

      .logo {
        margin-right: auto;
      }

      .hamburger {
        display: block;
      }
    }

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

      .tag-index-page .tag-intro {
        padding: 60px 0 56px;
      }
    }

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

      .topbar {
        padding: 7px 0;
      }

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

      .topbar-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
      }

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

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

      .member-link {
        display: none;
      }

      .account-link {
        min-height: 36px;
        padding: 7px 11px;
      }

      .tag-index-page .tag-intro {
        padding: 48px 0;
      }

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

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

      .tag-index-page .tag-section {
        padding: 42px 0 54px;
      }

      .tag-index-page .section-heading h2 {
        font-size: 23px;
      }

      .tag-index-page .tag-cloud {
        padding: 18px;
        gap: 9px;
      }

      .tag-index-page .tag-link {
        min-height: 40px;
        padding: 7px 11px;
        font-size: 14px;
      }

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

      .footer {
        padding-top: 44px;
      }

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

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