:root {
      --theme: #0B3D91;
      --theme-dark: #072a66;
      --theme-soft: #eaf1fc;
      --accent: #d71978;
      --accent-soft: #fff0f7;
      --ink: #172033;
      --muted: #667085;
      --line: #e5e9f0;
      --surface: #ffffff;
      --background: #f6f7fa;
      --radius: 18px;
      --shadow: 0 16px 44px rgba(15, 39, 78, 0.09);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body,
    button,
    input {
      font: inherit;
    }

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

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

    button {
      color: inherit;
    }

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

    .topbar {
      color: #dce8ff;
      background: #071d42;
      font-size: 13px;
    }

    .topbar .container {
      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;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.97);
      box-shadow: 0 5px 18px rgba(12, 34, 67, 0.04);
    }

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

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

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

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

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

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

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

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

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

    .nav-link.has-arrow::before {
      position: absolute;
      top: 50%;
      right: 12px;
      width: 6px;
      height: 6px;
      content: "";
      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(--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%;
      left: 50%;
      width: 340px;
      padding: 22px;
      visibility: hidden;
      opacity: 0;
      border: 1px solid var(--line);
      border-radius: 0 0 16px 16px;
      background: #ffffff;
      box-shadow: 0 20px 50px rgba(18, 38, 72, 0.15);
      transform: translate(-50%, 10px);
      transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .mega-menu {
      width: min(760px, 88vw);
    }

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

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

    .panel-title {
      margin: 0 0 14px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

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

    .dropdown-panel .panel-list {
      grid-template-columns: 1fr;
    }

    .panel-list a {
      padding: 9px 11px;
      overflow: hidden;
      border-radius: 9px;
      color: #344054;
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
      transition: color 0.2s ease, background 0.2s ease;
    }

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

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

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

    .mega-card:hover {
      border-color: #b8c9e8;
      box-shadow: 0 9px 22px rgba(11, 61, 145, 0.1);
      transform: translateY(-2px);
    }

    .mega-card img {
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
      border-radius: 10px;
      object-fit: cover;
      background: #f1f4f8;
    }

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

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

    .mega-card strong {
      margin-bottom: 2px;
      color: #202939;
      font-size: 14px;
      white-space: nowrap;
    }

    .mega-card small {
      color: var(--muted);
      font-size: 11px;
      line-height: 1.45;
      white-space: nowrap;
    }

    .mega-footer {
      margin: 16px -22px -22px;
      padding: 13px 22px;
      display: block;
      border-top: 1px solid var(--line);
      border-radius: 0 0 15px 15px;
      color: var(--theme);
      background: #f8faff;
      font-size: 13px;
      font-weight: 750;
      text-align: right;
    }

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

    .member-link,
    .account-link {
      padding: 9px 14px;
      border-radius: 9px;
      font-size: 14px;
      font-weight: 750;
      white-space: nowrap;
    }

    .member-link {
      color: var(--theme);
      border: 1px solid #c7d5ed;
      background: #ffffff;
    }

    .account-link {
      color: #ffffff;
      border: 1px solid var(--theme);
      background: var(--theme);
      box-shadow: 0 8px 18px rgba(11, 61, 145, 0.18);
    }

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

    .hamburger span {
      width: 100%;
      height: 2px;
      margin: 5px 0;
      display: block;
      border-radius: 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;
      z-index: 90;
      inset: 0;
      visibility: hidden;
      opacity: 0;
      background: rgba(5, 15, 34, 0.58);
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      z-index: 100;
      top: 0;
      right: 0;
      width: min(390px, 90vw);
      height: 100dvh;
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -20px 0 50px rgba(4, 18, 43, 0.2);
      transform: translateX(105%);
      transition: transform 0.27s ease;
    }

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

    .drawer-head {
      min-height: 72px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 12px;
      color: #ffffff;
      background: var(--theme);
    }

    .drawer-head strong {
      flex: 1;
    }

    .drawer-head a {
      padding: 7px 12px;
      border: 1px solid rgba(255, 255, 255, 0.35);
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
    }

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

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

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

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

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

    .drawer-submenu {
      max-height: 0;
      padding: 0 10px;
      overflow: hidden;
      background: #f8faff;
      transition: max-height 0.3s ease, padding 0.3s ease;
    }

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

    .drawer-submenu a {
      padding: 10px 8px;
      display: block;
      border-bottom: 1px dashed #dfe5ef;
      color: #475467;
      font-size: 14px;
    }

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

    .tag-index-page .tag-hero {
      position: relative;
      padding: 76px 0 62px;
      overflow: hidden;
      color: #ffffff;
      background:
        radial-gradient(circle at 12% 25%, rgba(215, 25, 120, 0.35), transparent 30%),
        radial-gradient(circle at 88% 20%, rgba(83, 142, 235, 0.35), transparent 28%),
        linear-gradient(135deg, #061c41 0%, #0B3D91 58%, #082d6b 100%);
    }

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

    .tag-index-page .tag-hero::before {
      top: -160px;
      right: -80px;
      width: 430px;
      height: 430px;
    }

    .tag-index-page .tag-hero::after {
      bottom: -180px;
      left: -100px;
      width: 360px;
      height: 360px;
    }

    .tag-index-page .tag-hero-inner {
      position: relative;
      z-index: 1;
      max-width: 820px;
      margin: 0 auto;
      text-align: center;
    }

    .tag-index-page .eyebrow {
      margin: 0 0 12px;
      color: #ffc7e3;
      font-size: 13px;
      font-weight: 850;
      letter-spacing: 0.14em;
    }

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

    .tag-index-page .tag-intro {
      max-width: 690px;
      margin: 20px auto 0;
      color: #dbe8ff;
      font-size: 17px;
    }

    .tag-index-page .hero-pills {
      margin-top: 28px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 9px;
    }

    .tag-index-page .hero-pills span {
      padding: 7px 13px;
      border: 1px solid rgba(255, 255, 255, 0.23);
      border-radius: 999px;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.09);
      font-size: 13px;
      backdrop-filter: blur(8px);
    }

    .tag-index-page .tag-directory {
      padding: 70px 0 88px;
    }

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

    .tag-index-page .section-heading h2 {
      margin: 0;
      color: #101828;
      font-size: clamp(27px, 4vw, 40px);
      line-height: 1.2;
      letter-spacing: -0.035em;
    }

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

    .tag-index-page .directory-badge {
      padding: 8px 13px;
      flex: 0 0 auto;
      border: 1px solid #f0b8d4;
      border-radius: 999px;
      color: #a5125b;
      background: var(--accent-soft);
      font-size: 13px;
      font-weight: 750;
    }

    .tag-index-page .tag-cloud {
      padding: clamp(24px, 5vw, 48px);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 13px;
      border: 1px solid var(--line);
      border-radius: 26px;
      background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(11, 61, 145, 0.25), rgba(215, 25, 120, 0.25)) border-box;
      box-shadow: var(--shadow);
    }

    .tag-index-page .tag-chip {
      padding: 11px 17px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid #dde4ef;
      border-radius: 999px;
      color: #263449;
      background: #ffffff;
      font-weight: 700;
      box-shadow: 0 5px 14px rgba(20, 42, 79, 0.05);
      transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .tag-index-page .tag-chip:nth-child(3n + 1) {
      padding: 13px 21px;
      color: var(--theme);
      font-size: 18px;
    }

    .tag-index-page .tag-chip:nth-child(4n + 2) {
      color: #a5125b;
      background: #fff7fb;
    }

    .tag-index-page .tag-chip:nth-child(5n) {
      font-size: 15px;
      background: #f4f7fd;
    }

    .tag-index-page .tag-chip:hover {
      color: #ffffff;
      border-color: var(--theme);
      background: var(--theme);
      box-shadow: 0 12px 24px rgba(11, 61, 145, 0.2);
      transform: translateY(-3px);
    }

    .tag-index-page .tag-count {
      min-width: 25px;
      height: 25px;
      padding: 0 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      color: var(--theme);
      background: var(--theme-soft);
      font-size: 11px;
      font-weight: 850;
    }

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

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

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

    .tag-index-page .guide-number {
      width: 38px;
      height: 38px;
      margin-bottom: 17px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 11px;
      color: #ffffff;
      background: linear-gradient(135deg, var(--theme), #3474d5);
      font-weight: 850;
    }

    .tag-index-page .guide-card h3 {
      margin: 0 0 7px;
      font-size: 18px;
    }

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

    .tag-index-page .tag-cta {
      margin-top: 30px;
      padding: 27px 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      border-radius: 19px;
      color: #ffffff;
      background: linear-gradient(120deg, #96104f, var(--accent));
    }

    .tag-index-page .tag-cta h2 {
      margin: 0 0 5px;
      font-size: 23px;
    }

    .tag-index-page .tag-cta p {
      margin: 0;
      color: #ffe0ef;
    }

    .tag-index-page .tag-cta a {
      padding: 11px 18px;
      flex: 0 0 auto;
      border-radius: 10px;
      color: #97104f;
      background: #ffffff;
      font-weight: 800;
    }

    .footer {
      padding: 60px 0 0;
      color: #cad5e8;
      background: #07182f;
    }

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

    .footer h3,
    .footer-brand strong {
      margin: 0 0 16px;
      display: block;
      color: #ffffff;
      font-size: 16px;
    }

    .footer-brand strong {
      font-size: 22px;
    }

    .footer p {
      margin: 7px 0;
      color: #aab8cf;
      font-size: 14px;
    }

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

    .footer-links a {
      color: #aab8cf;
      font-size: 14px;
      transition: color 0.2s ease, transform 0.2s ease;
    }

    .footer-links a:hover {
      color: #ffffff;
      transform: translateX(3px);
    }

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

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

      .hamburger {
        display: block;
      }

      .header-inner {
        justify-content: space-between;
      }
    }

    @media (max-width: 820px) {
      .tag-index-page .tag-guide {
        grid-template-columns: 1fr;
      }

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

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

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

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

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

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

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

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

      .member-link {
        display: none;
      }

      .account-link {
        padding: 8px 11px;
      }

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

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

      .tag-index-page .tag-directory {
        padding: 50px 0 65px;
      }

      .tag-index-page .section-heading {
        align-items: flex-start;
      }

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

      .tag-index-page .tag-chip,
      .tag-index-page .tag-chip:nth-child(3n + 1) {
        padding: 9px 13px;
        font-size: 14px;
      }

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

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