:root {
      --primary: #0B3D91;
      --primary-dark: #072c6c;
      --primary-soft: #eaf1fb;
      --template-theme: {主题色};
      --ink: #172033;
      --muted: #667085;
      --line: #dce3ed;
      --surface: #ffffff;
      --surface-soft: #f5f7fa;
      --success: #16836f;
      --shadow-sm: 0 4px 14px rgba(16, 36, 68, 0.08);
      --shadow-md: 0 16px 40px rgba(16, 36, 68, 0.12);
      --radius: 8px;
      --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 HK", "Microsoft JhengHei", Arial, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      letter-spacing: 0;
    }

    body.drawer-lock {
      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;
    }

    .skip-link {
      position: fixed;
      top: 12px;
      left: 12px;
      z-index: 3000;
      padding: 10px 14px;
      color: #ffffff;
      background: var(--primary);
      border-radius: 6px;
      transform: translateY(-160%);
      transition: transform 0.2s ease;
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    .topbar {
      color: #e9eff9;
      background: #12223c;
      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: 20px;
    }

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

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

    .header {
      position: relative;
      z-index: 100;
      background: rgba(255, 255, 255, 0.98);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 3px 14px rgba(16, 36, 68, 0.05);
    }

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

    .logo {
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--ink);
      font-weight: 800;
    }

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

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

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

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

    .nav-link::after {
      content: "";
      position: absolute;
      right: 12px;
      bottom: 15px;
      left: 12px;
      height: 2px;
      background: var(--primary);
      transform: scaleX(0);
      transition: transform 0.2s ease;
    }

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

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

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

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

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      left: 50%;
      z-index: 120;
      visibility: hidden;
      opacity: 0;
      transform: translate(-50%, 8px);
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

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

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

    .dropdown-panel {
      width: 310px;
      padding: 10px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
    }

    .dropdown-panel > a:not(.dropdown-footer) {
      display: block;
      padding: 10px 12px;
      overflow: hidden;
      color: #344054;
      border-radius: 6px;
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

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

    .dropdown-footer,
    .mega-footer {
      display: block;
      margin-top: 8px;
      padding: 10px 12px;
      color: var(--primary);
      background: var(--primary-soft);
      border-radius: 6px;
      font-size: 13px;
      font-weight: 800;
      text-align: center;
    }

    .mega-menu {
      width: min(760px, calc(100vw - 40px));
      padding: 18px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
    }

    .mega-menu-wide {
      width: min(880px, calc(100vw - 40px));
    }

    .mega-head {
      margin-bottom: 14px;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 20px;
    }

    .mega-head strong {
      color: var(--ink);
      font-size: 17px;
    }

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

    .mega-categories {
      margin-bottom: 14px;
      padding-bottom: 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      border-bottom: 1px solid var(--line);
    }

    .mega-categories a {
      padding: 6px 10px;
      color: #44516a;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
    }

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

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

    .mega-card {
      min-width: 0;
      min-height: 82px;
      padding: 10px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 7px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .mega-card:hover,
    .mega-card:focus-visible {
      border-color: #9db4d7;
      box-shadow: var(--shadow-sm);
      transform: translateY(-2px);
    }

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

    .mega-card-text {
      min-width: 0;
      display: block;
    }

    .mega-card-text b {
      display: block;
      overflow: hidden;
      color: var(--ink);
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

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

    .mega-card-text small {
      display: block;
      overflow: hidden;
      color: var(--muted);
      font-size: 10px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

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

    .member-entry {
      display: flex;
      align-items: center;
      white-space: nowrap;
    }

    .member-entry a,
    .account-btn {
      min-height: 38px;
      padding: 8px 13px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 800;
    }

    .member-entry a {
      color: var(--primary);
      border: 1px solid #b8c9e2;
    }

    .account-btn {
      color: #ffffff;
      background: var(--primary);
      border: 1px solid var(--primary);
    }

    .member-entry a:hover,
    .member-entry a:focus-visible {
      background: var(--primary-soft);
    }

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

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

    .hamburger span {
      width: 19px;
      height: 2px;
      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: 900;
      visibility: hidden;
      opacity: 0;
      background: rgba(8, 20, 40, 0.55);
      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: 1000;
      width: min(390px, 92vw);
      height: 100dvh;
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -18px 0 45px rgba(8, 20, 40, 0.18);
      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: 10px;
      color: #ffffff;
      background: var(--primary);
    }

    .drawer-head > a,
    .drawer-head .member-entry a {
      padding: 7px 10px;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.45);
      border-radius: 6px;
      font-size: 13px;
      font-weight: 800;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      margin-left: auto;
      padding: 0;
      color: #ffffff;
      background: transparent;
      border: 0;
      font-size: 30px;
      line-height: 1;
      cursor: pointer;
    }

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

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

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

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

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

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

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

    .drawer-submenu a {
      display: block;
      padding: 10px 14px;
      color: #4a5870;
      border-bottom: 1px solid #e7ebf1;
      font-size: 14px;
    }

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

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

    .tag-index-page .tag-hero {
      padding: 68px 0 48px;
      color: #ffffff;
      background:
        linear-gradient(rgba(11, 61, 145, 0.96), rgba(7, 44, 108, 0.96)),
        #0B3D91;
    }

    .tag-index-page .breadcrumb {
      margin-bottom: 20px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      color: #d8e5f8;
      font-size: 14px;
    }

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

    .tag-index-page .tag-hero h1 {
      max-width: 760px;
      margin: 0;
      font-size: clamp(34px, 5vw, 56px);
      line-height: 1.12;
    }

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

    .tag-index-page .tag-directory {
      padding: 54px 0 72px;
    }

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

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

    .tag-index-page .section-head p {
      max-width: 520px;
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      text-align: right;
    }

    .tag-index-page .tag-cloud {
      min-height: 300px;
      padding: 30px;
      display: flex;
      align-content: flex-start;
      align-items: center;
      flex-wrap: wrap;
      gap: 13px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
    }

    .tag-index-page .tag-item {
      min-height: 44px;
      padding: 9px 15px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: #26354d;
      background: #f7f9fc;
      border: 1px solid #d7dfeb;
      border-radius: 7px;
      font-weight: 750;
      transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .tag-index-page .tag-item:nth-child(4n+1) {
      color: #0B3D91;
      background: #edf3fc;
      border-color: #c8d8ef;
      font-size: 18px;
    }

    .tag-index-page .tag-item:nth-child(4n+2) {
      color: #186456;
      background: #edf8f5;
      border-color: #c7e6de;
    }

    .tag-index-page .tag-item:nth-child(4n+3) {
      color: #7a4b16;
      background: #fff7e8;
      border-color: #ecd9b6;
      font-size: 15px;
    }

    .tag-index-page .tag-item:hover,
    .tag-index-page .tag-item:focus-visible {
      color: #ffffff;
      background: var(--primary);
      border-color: var(--primary);
      box-shadow: 0 8px 20px rgba(11, 61, 145, 0.18);
      transform: translateY(-2px);
    }

    .tag-index-page .tag-count {
      min-width: 24px;
      height: 24px;
      padding: 0 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.8);
      border: 1px solid currentColor;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
    }

    .tag-index-page .tag-item:hover .tag-count,
    .tag-index-page .tag-item:focus-visible .tag-count {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.14);
    }

    .tag-index-page .directory-note {
      margin-top: 24px;
      padding: 18px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      color: #40516d;
      background: #edf3fc;
      border-left: 4px solid var(--primary);
      border-radius: 6px;
    }

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

    .tag-index-page .directory-note a {
      flex: 0 0 auto;
      padding: 9px 14px;
      color: #ffffff;
      background: var(--primary);
      border-radius: 6px;
      font-size: 14px;
      font-weight: 800;
    }

    .footer {
      color: #cbd5e4;
      background: #101b2e;
    }

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

    .footer .logo {
      color: #ffffff;
    }

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

    .footer-social {
      color: #ffffff;
    }

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

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

    .footer-links a,
    .footer-contact a {
      width: fit-content;
      color: #b9c5d7;
      font-size: 14px;
    }

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

    .footer-bottom {
      min-height: 64px;
      padding: 18px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      color: #91a0b7;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 13px;
    }

    :focus-visible {
      outline: 3px solid rgba(44, 132, 255, 0.38);
      outline-offset: 2px;
    }

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

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

      .hamburger {
        display: flex;
      }

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

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

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

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

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

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

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

      .header-btns {
        gap: 6px;
      }

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

      .tag-index-page .tag-hero {
        padding: 44px 0 38px;
      }

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

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

      .tag-index-page .tag-directory {
        padding: 38px 0 52px;
      }

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

      .tag-index-page .section-head p {
        text-align: left;
      }

      .tag-index-page .tag-cloud {
        min-height: 240px;
        padding: 19px;
        gap: 9px;
      }

      .tag-index-page .tag-item,
      .tag-index-page .tag-item:nth-child(4n+1),
      .tag-index-page .tag-item:nth-child(4n+3) {
        min-height: 40px;
        padding: 8px 11px;
        font-size: 14px;
      }

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

      .footer-grid {
        padding: 42px 0 34px;
        grid-template-columns: 1fr;
        gap: 28px;
      }

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

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }