:root {
      --theme: #0B3D91;
      --theme-dark: #06265e;
      --theme-soft: #e9f1ff;
      --accent: #19d3c5;
      --ink: #101828;
      --muted: #667085;
      --line: #e4e7ec;
      --surface: #ffffff;
      --soft-surface: #f6f8fc;
      --night: #071327;
      --radius: 18px;
      --shadow: 0 18px 48px rgba(11, 61, 145, 0.12);
      --container: 1200px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body,
    button,
    input {
      font: inherit;
    }

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

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

    button {
      color: inherit;
    }

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

    .topbar {
      color: #d7e4ff;
      background: var(--night);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      font-size: 13px;
    }

    .topbar-inner {
      min-height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

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

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

    .topbar a:hover {
      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 20px rgba(16, 24, 40, 0.04);
    }

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

    .logo {
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 11px;
      color: var(--theme-dark);
      font-size: 20px;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .logo img {
      width: 42px;
      height: 42px;
      flex: 0 0 42px;
      border-radius: 12px;
      object-fit: contain;
      background: #ffffff;
    }

    .logo span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

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

    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      padding: 0 12px;
      color: #344054;
      font-size: 15px;
      font-weight: 700;
      white-space: nowrap;
      transition: color 0.2s ease;
    }

    .nav-link::after {
      position: absolute;
      right: 12px;
      bottom: 0;
      left: 12px;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: var(--theme);
      content: "";
      opacity: 0;
      transform: scaleX(0.5);
      transition: 0.2s ease;
    }

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

    .nav-link.has-arrow::before {
      position: absolute;
      top: 50%;
      right: 10px;
      width: 6px;
      height: 6px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      content: "";
      transform: translateY(-65%) 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 {
      opacity: 1;
      transform: scaleX(1);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      right: 0;
      visibility: hidden;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 0 0 18px 18px;
      background: #ffffff;
      box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16);
      opacity: 0;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .dropdown-panel {
      left: 0;
      right: auto;
      width: 340px;
    }

    .mega-menu {
      width: min(760px, 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: translateY(0);
      pointer-events: auto;
    }

    .panel-title {
      margin: 0 0 14px;
      color: var(--theme-dark);
      font-size: 14px;
      font-weight: 800;
    }

    .panel-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .panel-list a {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 7px 11px;
      color: #344054;
      background: var(--soft-surface);
      border: 1px solid #edf0f5;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      transition: 0.2s ease;
    }

    .panel-list a:hover {
      color: var(--theme);
      border-color: #bfd2f4;
      background: var(--theme-soft);
    }

    .dropdown-panel .panel-list {
      display: grid;
    }

    .dropdown-panel .panel-list a {
      display: block;
    }

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

    .mega-card {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 76px;
      padding: 11px;
      border: 1px solid #edf0f5;
      border-radius: 13px;
      background: #ffffff;
      transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }

    .mega-card:hover {
      border-color: #b9cdf1;
      background: #f7faff;
      transform: translateY(-2px);
    }

    .mega-card img {
      width: 48px;
      height: 48px;
      flex: 0 0 48px;
      border-radius: 11px;
      object-fit: cover;
      background: var(--theme-soft);
    }

    .mega-card span {
      min-width: 0;
      display: grid;
      gap: 3px;
    }

    .mega-card strong,
    .mega-card small {
      overflow: hidden;
      text-overflow: ellipsis;
    }

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

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

    .mega-footer {
      margin-top: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      color: #ffffff;
      background: var(--theme);
      border-radius: 11px;
      font-size: 14px;
      font-weight: 800;
      transition: 0.2s ease;
    }

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

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

    .member-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 0 17px;
      color: #ffffff;
      background: var(--theme);
      border: 1px solid var(--theme);
      border-radius: 11px;
      font-size: 14px;
      font-weight: 800;
      box-shadow: 0 8px 20px rgba(11, 61, 145, 0.18);
      transition: 0.2s ease;
    }

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

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

    .hamburger span {
      width: 20px;
      height: 2px;
      display: block;
      border-radius: 2px;
      background: var(--ink);
      transition: 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;
      z-index: 90;
      inset: 0;
      visibility: hidden;
      background: rgba(3, 12, 27, 0.62);
      opacity: 0;
      backdrop-filter: blur(4px);
      transition: 0.25s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      z-index: 100;
      top: 0;
      right: 0;
      width: min(390px, 92vw);
      height: 100dvh;
      overflow-y: auto;
      color: #1d2939;
      background: #ffffff;
      box-shadow: -24px 0 60px rgba(0, 0, 0, 0.2);
      transform: translateX(105%);
      transition: transform 0.3s ease;
    }

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

    .drawer-head {
      position: sticky;
      z-index: 2;
      top: 0;
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 18px;
      color: #ffffff;
      background: var(--night);
    }

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

    .drawer-close {
      width: 38px;
      height: 38px;
      margin-left: auto;
      padding: 0;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.22);
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.08);
      font-size: 25px;
      line-height: 1;
      cursor: pointer;
    }

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

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

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

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

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

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

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

    .drawer-submenu a {
      padding: 9px 10px;
      color: var(--muted);
      border-left: 2px solid #dce7fa;
      font-size: 14px;
    }

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

    .tag-index-page {
      min-height: 620px;
    }

    .tag-index-page .tag-hero {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      padding: 86px 0 82px;
      color: #ffffff;
      background:
        radial-gradient(circle at 18% 20%, rgba(25, 211, 197, 0.24), transparent 25%),
        radial-gradient(circle at 86% 72%, rgba(72, 126, 255, 0.28), transparent 28%),
        linear-gradient(135deg, #06142c 0%, #0b3d91 52%, #071b3d 100%);
    }

    .tag-index-page .tag-hero::before,
    .tag-index-page .tag-hero::after {
      position: absolute;
      z-index: -1;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 50%;
      content: "";
    }

    .tag-index-page .tag-hero::before {
      width: 420px;
      height: 420px;
      top: -225px;
      right: 7%;
    }

    .tag-index-page .tag-hero::after {
      width: 250px;
      height: 250px;
      bottom: -150px;
      left: 9%;
    }

    .tag-index-page .tag-hero-inner {
      max-width: 850px;
      text-align: center;
    }

    .tag-index-page .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 18px;
      padding: 7px 13px;
      color: #dcfffb;
      border: 1px solid rgba(92, 245, 228, 0.38);
      border-radius: 999px;
      background: rgba(25, 211, 197, 0.11);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

    .tag-index-page .eyebrow::before {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 16px var(--accent);
      content: "";
    }

    .tag-index-page .tag-hero h1 {
      margin: 0;
      font-size: clamp(38px, 6vw, 68px);
      line-height: 1.12;
      letter-spacing: -0.045em;
    }

    .tag-index-page .tag-hero p {
      max-width: 690px;
      margin: 20px auto 0;
      color: #d9e6ff;
      font-size: clamp(16px, 2vw, 19px);
    }

    .tag-index-page .hero-actions {
      margin-top: 30px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
    }

    .tag-index-page .hero-actions a {
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 19px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 800;
      transition: 0.2s ease;
    }

    .tag-index-page .hero-actions .primary-action {
      color: var(--night);
      background: var(--accent);
    }

    .tag-index-page .hero-actions .secondary-action {
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.34);
      background: rgba(255, 255, 255, 0.08);
    }

    .tag-index-page .hero-actions a:hover {
      transform: translateY(-2px);
    }

    .tag-index-page .tag-section {
      position: relative;
      z-index: 2;
      padding: 0 0 90px;
    }

    .tag-index-page .tag-panel {
      margin-top: -38px;
      padding: clamp(25px, 5vw, 48px);
      border: 1px solid rgba(11, 61, 145, 0.1);
      border-radius: 26px;
      background: rgba(255, 255, 255, 0.96);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
    }

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

    .tag-index-page .section-head h2 {
      margin: 0;
      color: var(--theme-dark);
      font-size: clamp(26px, 4vw, 38px);
      line-height: 1.2;
      letter-spacing: -0.025em;
    }

    .tag-index-page .section-head p {
      max-width: 580px;
      margin: 8px 0 0;
      color: var(--muted);
    }

    .tag-index-page .tag-count-label {
      flex: 0 0 auto;
      padding: 8px 13px;
      color: var(--theme);
      border: 1px solid #c9d9f5;
      border-radius: 999px;
      background: var(--theme-soft);
      font-size: 13px;
      font-weight: 800;
    }

    .tag-index-page .tag-cloud {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      padding: 30px;
      border: 1px solid #e3eaf6;
      border-radius: 20px;
      background:
        linear-gradient(rgba(11, 61, 145, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 61, 145, 0.025) 1px, transparent 1px),
        #f9fbff;
      background-size: 28px 28px;
    }

    .tag-index-page .tag-chip {
      --chip-color: var(--theme);
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 10px 16px;
      color: var(--chip-color);
      border: 1px solid color-mix(in srgb, var(--chip-color) 24%, white);
      border-radius: 13px;
      background: #ffffff;
      box-shadow: 0 7px 20px rgba(11, 61, 145, 0.07);
      font-weight: 800;
      transition: 0.22s ease;
    }

    .tag-index-page .tag-chip:nth-child(4n + 2) {
      --chip-color: #087d75;
      font-size: 17px;
    }

    .tag-index-page .tag-chip:nth-child(4n + 3) {
      --chip-color: #7653c7;
    }

    .tag-index-page .tag-chip:nth-child(5n) {
      --chip-color: #b45309;
      font-size: 18px;
    }

    .tag-index-page .tag-chip::before {
      color: currentColor;
      content: "#";
      opacity: 0.62;
    }

    .tag-index-page .tag-chip small {
      min-width: 24px;
      padding: 2px 7px;
      color: var(--muted);
      border-radius: 999px;
      background: #f0f3f8;
      font-size: 11px;
      font-weight: 800;
      text-align: center;
    }

    .tag-index-page .tag-chip:hover {
      color: #ffffff;
      border-color: var(--chip-color);
      background: var(--chip-color);
      box-shadow: 0 12px 28px color-mix(in srgb, var(--chip-color) 24%, transparent);
      transform: translateY(-3px);
    }

    .tag-index-page .tag-chip:hover small {
      color: var(--chip-color);
      background: #ffffff;
    }

    .tag-index-page .discovery-grid {
      margin-top: 26px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .tag-index-page .discovery-card {
      padding: 23px;
      border: 1px solid var(--line);
      border-radius: 17px;
      background: #ffffff;
    }

    .tag-index-page .discovery-card span {
      width: 42px;
      height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #ffffff;
      border-radius: 12px;
      background: var(--theme);
      font-size: 17px;
      font-weight: 900;
    }

    .tag-index-page .discovery-card h3 {
      margin: 15px 0 7px;
      color: #1d2939;
      font-size: 18px;
    }

    .tag-index-page .discovery-card p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .tag-index-page .tag-note {
      margin-top: 25px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 22px;
      padding: 22px 24px;
      color: #dce8ff;
      border-radius: 17px;
      background: var(--night);
    }

    .tag-index-page .tag-note strong {
      display: block;
      margin-bottom: 2px;
      color: #ffffff;
    }

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

    .tag-index-page .tag-note a {
      flex: 0 0 auto;
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      padding: 0 16px;
      color: var(--night);
      border-radius: 10px;
      background: var(--accent);
      font-weight: 800;
    }

    .footer {
      color: #cbd5e1;
      background: var(--night);
    }

    .footer .container {
      padding-top: 64px;
      padding-bottom: 24px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.45fr repeat(3, 1fr);
      gap: 42px;
    }

    .footer .logo {
      color: #ffffff;
    }

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

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

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

    .footer-links a,
    .footer-links span {
      color: #9eacc2;
      font-size: 14px;
      overflow-wrap: anywhere;
    }

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

    .footer-links a:hover {
      color: #ffffff;
    }

    .footer-bottom {
      margin-top: 46px;
      padding-top: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      color: #8492a8;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 13px;
    }

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

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

      .hamburger {
        display: flex;
      }
    }

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

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

      .topbar-links {
        align-items: flex-end;
        flex-direction: column;
        gap: 1px;
      }

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

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

      .tag-index-page .tag-hero {
        padding: 68px 0 72px;
      }

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

      .tag-index-page .discovery-grid {
        grid-template-columns: 1fr;
      }

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

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

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

    @media (max-width: 560px) {
      .topbar-inner > span {
        display: none;
      }

      .topbar-links {
        width: 100%;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 12px;
      }

      .topbar-links a {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .header .logo {
        max-width: calc(100vw - 115px);
        font-size: 17px;
      }

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

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

      .tag-index-page .tag-panel {
        padding: 22px 16px;
        border-radius: 20px;
      }

      .tag-index-page .tag-cloud {
        justify-content: flex-start;
        padding: 20px 14px;
      }

      .tag-index-page .tag-chip,
      .tag-index-page .tag-chip:nth-child(4n + 2),
      .tag-index-page .tag-chip:nth-child(5n) {
        min-height: 42px;
        padding: 8px 12px;
        font-size: 14px;
      }

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