:root {
      --primary: #0B3D91;
      --primary-dark: #06285f;
      --primary-soft: #eaf1fc;
      --accent: #36a37d;
      --ink: #172033;
      --muted: #657087;
      --line: #dce3ed;
      --surface: #ffffff;
      --surface-soft: #f5f7fa;
      --shadow: 0 18px 48px rgba(18, 33, 56, 0.12);
      --radius: 18px;
      --container: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

    body,
    button,
    input,
    textarea,
    select {
      font: inherit;
    }

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

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

    button {
      color: inherit;
    }

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

    .topbar {
      color: #dfe9fa;
      background: var(--primary-dark);
      font-size: 13px;
    }

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

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

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

    .topbar a:hover {
      color: #ffffff;
    }

    .header {
      position: relative;
      z-index: 50;
      border-bottom: 1px solid rgba(11, 61, 145, 0.1);
      background: rgba(255, 255, 255, 0.97);
      box-shadow: 0 8px 24px rgba(18, 33, 56, 0.05);
    }

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

    .logo {
      min-width: 170px;
      display: inline-flex;
      align-items: center;
      gap: 11px;
      color: var(--primary);
      font-size: 18px;
      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;
      list-style: none;
    }

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

    .nav-link {
      height: 100%;
      padding: 0 13px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: #263247;
      font-size: 15px;
      font-weight: 700;
      white-space: nowrap;
      transition: color 0.2s ease;
    }

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

    .has-arrow::after {
      width: 7px;
      height: 7px;
      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: 70;
      border: 1px solid var(--line);
      border-radius: 0 0 16px 16px;
      background: var(--surface);
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }

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

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

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

    .dropdown-panel > a:not(.mega-footer) {
      padding: 11px 12px;
      display: block;
      border-radius: 9px;
      color: #364158;
      font-size: 14px;
    }

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

    .mega-menu {
      left: 50%;
      width: min(720px, calc(100vw - 48px));
      padding: 20px;
      transform: translate(-50%, 10px);
    }

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

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

    .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-bottom: 14px;
      padding-bottom: 11px;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      border-bottom: 1px solid var(--line);
      color: var(--primary);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

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

    .mega-card {
      min-width: 0;
      padding: 13px;
      display: grid;
      align-content: start;
      gap: 5px;
      border: 1px solid #e5eaf1;
      border-radius: 12px;
      background: #fafbfd;
      transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

    .mega-card:hover {
      border-color: rgba(11, 61, 145, 0.35);
      background: var(--primary-soft);
      transform: translateY(-2px);
    }

    .mega-card img {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      object-fit: contain;
    }

    .mega-card strong {
      overflow: hidden;
      color: #202b3e;
      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;
    }

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

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

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

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

    .member-link {
      color: var(--primary);
      background: var(--primary-soft);
    }

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

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

    .hamburger span {
      width: 20px;
      height: 2px;
      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;
      inset: 0;
      z-index: 90;
      background: rgba(8, 17, 31, 0.58);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 100;
      width: min(390px, 92vw);
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -18px 0 48px rgba(0, 0, 0, 0.2);
      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: 12px;
      color: #ffffff;
      background: var(--primary);
    }

    .drawer-head > span {
      flex: 1;
      font-weight: 800;
    }

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

    .drawer-close {
      width: 36px;
      height: 36px;
      padding: 0;
      border: 0;
      border-radius: 9px;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.12);
      font-size: 27px;
      line-height: 1;
      cursor: pointer;
    }

    .drawer-menu {
      padding: 14px;
    }

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      padding: 14px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border: 0;
      border-bottom: 1px solid #edf0f4;
      color: #253147;
      background: transparent;
      font-weight: 800;
      text-align: left;
      cursor: pointer;
    }

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

    .drawer-toggle.active {
      color: var(--primary);
    }

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

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: #f6f8fb;
      transition: max-height 0.3s ease;
    }

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

    .drawer-submenu a {
      padding: 10px 18px;
      display: block;
      border-bottom: 1px solid #e8ecf2;
      color: #556177;
      font-size: 14px;
    }

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

    .tool-detail-page {
      min-width: 0;
      padding-bottom: 78px;
    }

    .tool-detail-page .tool-masthead {
      position: relative;
      overflow: hidden;
      padding: 28px 0 62px;
      color: #ffffff;
      background:
        radial-gradient(circle at 15% 15%, rgba(91, 147, 231, 0.4), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(54, 163, 125, 0.3), transparent 26%),
        linear-gradient(145deg, #071d43 0%, #0B3D91 58%, #092d69 100%);
    }

    .tool-detail-page .tool-masthead::before,
    .tool-detail-page .tool-masthead::after {
      position: absolute;
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 50%;
      content: "";
    }

    .tool-detail-page .tool-masthead::before {
      right: -90px;
      bottom: -220px;
      width: 500px;
      height: 500px;
    }

    .tool-detail-page .tool-masthead::after {
      right: 50px;
      bottom: -150px;
      width: 340px;
      height: 340px;
    }

    .tool-detail-page .breadcrumb {
      position: relative;
      z-index: 1;
      margin-bottom: 34px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 9px;
      color: rgba(255, 255, 255, 0.72);
      font-size: 14px;
    }

    .tool-detail-page .breadcrumb a:hover {
      color: #ffffff;
    }

    .tool-detail-page .tool-heading {
      position: relative;
      z-index: 1;
      max-width: 850px;
      margin-inline: auto;
      text-align: center;
    }

    .tool-detail-page .tool-icon-frame {
      width: 86px;
      height: 86px;
      margin: 0 auto 22px;
      padding: 15px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, 0.24);
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.12);
      box-shadow: 0 18px 40px rgba(1, 14, 38, 0.22);
      backdrop-filter: blur(12px);
    }

    .tool-detail-page .tool-icon-frame img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .tool-detail-page .tool-kicker {
      margin: 0 0 8px;
      color: #b9d2fa;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: 0.14em;
    }

    .tool-detail-page .tool-heading h1 {
      margin: 0;
      font-size: clamp(34px, 5vw, 58px);
      line-height: 1.12;
      letter-spacing: -0.035em;
    }

    .tool-detail-page .tool-summary {
      max-width: 740px;
      margin: 19px auto 0;
      color: #e5edf9;
      font-size: 18px;
    }

    .tool-detail-page .tool-meta {
      margin: 26px 0 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 9px;
      list-style: none;
    }

    .tool-detail-page .tool-meta li {
      padding: 7px 12px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 999px;
      color: #eef4ff;
      background: rgba(255, 255, 255, 0.08);
      font-size: 13px;
    }

    .tool-detail-page .detail-shell {
      position: relative;
      z-index: 2;
      margin-top: -30px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 330px;
      align-items: start;
      gap: 26px;
    }

    .tool-detail-page .tool-content-card,
    .tool-detail-page .side-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #ffffff;
      box-shadow: 0 14px 38px rgba(24, 39, 67, 0.08);
    }

    .tool-detail-page .tool-content-card {
      min-width: 0;
      overflow: hidden;
    }

    .tool-detail-page .content-intro {
      padding: 28px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border-bottom: 1px solid var(--line);
      background: linear-gradient(135deg, #ffffff, #f2f6fc);
    }

    .tool-detail-page .content-intro h2 {
      margin: 0 0 4px;
      color: var(--primary);
      font-size: 23px;
    }

    .tool-detail-page .content-intro p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

    .tool-detail-page .tool-status {
      padding: 7px 12px;
      border-radius: 999px;
      color: #126649;
      background: #e4f6ef;
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }

    .tool-detail-page .tool-body {
      min-width: 0;
      max-width: 100%;
      padding: 34px 36px 42px;
      overflow-x: auto;
      color: #334057;
      font-size: 16px;
      line-height: 1.85;
    }

    .tool-detail-page .tool-body > :first-child {
      margin-top: 0;
    }

    .tool-detail-page .tool-body > :last-child {
      margin-bottom: 0;
    }

    .tool-detail-page .tool-body h2,
    .tool-detail-page .tool-body h3,
    .tool-detail-page .tool-body h4 {
      color: #17243a;
      line-height: 1.35;
    }

    .tool-detail-page .tool-body h2 {
      margin-top: 34px;
      padding-bottom: 11px;
      border-bottom: 1px solid var(--line);
      font-size: 26px;
    }

    .tool-detail-page .tool-body h3 {
      margin-top: 28px;
      font-size: 21px;
    }

    .tool-detail-page .tool-body a {
      color: var(--primary);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .tool-detail-page .tool-body img,
    .tool-detail-page .tool-body video,
    .tool-detail-page .tool-body iframe,
    .tool-detail-page .tool-body table,
    .tool-detail-page .tool-body pre {
      max-width: 100%;
    }

    .tool-detail-page .tool-body img {
      height: auto;
      margin: 24px auto;
      border-radius: 14px;
    }

    .tool-detail-page .tool-body table {
      width: 100%;
      border-collapse: collapse;
    }

    .tool-detail-page .tool-body th,
    .tool-detail-page .tool-body td {
      padding: 11px;
      border: 1px solid var(--line);
      text-align: left;
    }

    .tool-detail-page .tool-body blockquote {
      margin: 24px 0;
      padding: 18px 22px;
      border-left: 4px solid var(--primary);
      color: #445169;
      background: var(--primary-soft);
    }

    .tool-detail-page .tool-body pre {
      padding: 18px;
      overflow-x: auto;
      border-radius: 12px;
      color: #d9e7ff;
      background: #10213c;
    }

    .tool-detail-page .side-stack {
      display: grid;
      gap: 20px;
    }

    .tool-detail-page .side-card {
      padding: 22px;
    }

    .tool-detail-page .side-card h2 {
      margin: 0 0 15px;
      color: #1b2940;
      font-size: 19px;
    }

    .tool-detail-page .quick-list {
      margin: 0;
      padding: 0;
      display: grid;
      gap: 11px;
      list-style: none;
    }

    .tool-detail-page .quick-list li {
      padding-bottom: 11px;
      display: flex;
      justify-content: space-between;
      gap: 14px;
      border-bottom: 1px solid #edf0f4;
      color: var(--muted);
      font-size: 14px;
    }

    .tool-detail-page .quick-list li:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .tool-detail-page .quick-list strong {
      color: #26334a;
      text-align: right;
    }

    .tool-detail-page .side-actions {
      display: grid;
      gap: 10px;
    }

    .tool-detail-page .primary-action,
    .tool-detail-page .secondary-action {
      padding: 11px 15px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 900;
      text-align: center;
      transition: transform 0.2s ease, background 0.2s ease;
    }

    .tool-detail-page .primary-action {
      color: #ffffff;
      background: var(--primary);
    }

    .tool-detail-page .secondary-action {
      color: var(--primary);
      border: 1px solid rgba(11, 61, 145, 0.24);
      background: var(--primary-soft);
    }

    .tool-detail-page .primary-action:hover,
    .tool-detail-page .secondary-action:hover {
      transform: translateY(-2px);
    }

    .tool-detail-page .related-tools {
      display: grid;
      gap: 11px;
    }

    .tool-detail-page .related-tool {
      min-width: 0;
      padding: 12px;
      display: grid;
      grid-template-columns: 43px minmax(0, 1fr);
      align-items: center;
      gap: 11px;
      border: 1px solid #e6eaf0;
      border-radius: 12px;
      background: #fafbfd;
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .tool-detail-page .related-tool:hover {
      border-color: rgba(11, 61, 145, 0.35);
      background: var(--primary-soft);
    }

    .tool-detail-page .related-tool img {
      width: 43px;
      height: 43px;
      padding: 6px;
      border-radius: 10px;
      object-fit: contain;
      background: #ffffff;
    }

    .tool-detail-page .related-tool-copy {
      min-width: 0;
    }

    .tool-detail-page .related-tool strong {
      overflow: hidden;
      display: block;
      color: #26334a;
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .tool-detail-page .related-tool p {
      margin: 3px 0 0;
      overflow: hidden;
      color: var(--muted);
      display: -webkit-box;
      font-size: 12px;
      line-height: 1.45;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .tool-detail-page .notice {
      margin-top: 25px;
      padding: 18px 21px;
      border: 1px solid #dce6f5;
      border-radius: 14px;
      color: #4e5e76;
      background: #f1f6fd;
      font-size: 14px;
    }

    .tool-detail-page .notice strong {
      color: var(--primary);
    }

    .footer {
      color: #c9d2e2;
      background: #10192a;
    }

    .footer .container {
      padding-top: 58px;
      padding-bottom: 22px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 36px;
    }

    .footer h2,
    .footer h3 {
      margin-top: 0;
      color: #ffffff;
    }

    .footer h2 {
      margin-bottom: 12px;
      font-size: 24px;
    }

    .footer h3 {
      margin-bottom: 14px;
      font-size: 16px;
    }

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

    .footer-links {
      margin: 0;
      padding: 0;
      display: grid;
      gap: 9px;
      list-style: none;
      font-size: 14px;
    }

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

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

    .footer-bottom {
      margin-top: 42px;
      padding-top: 20px;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.11);
      color: #929fb3;
      font-size: 13px;
    }

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

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

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

      .hamburger {
        display: flex;
      }

      .tool-detail-page .detail-shell {
        grid-template-columns: minmax(0, 1fr) 300px;
      }
    }

    @media (max-width: 820px) {
      .topbar .container {
        padding: 8px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
      }

      .topbar-links {
        flex-wrap: wrap;
        gap: 5px 14px;
      }

      .member-link {
        display: none;
      }

      .tool-detail-page .tool-masthead {
        padding-bottom: 54px;
      }

      .tool-detail-page .detail-shell {
        grid-template-columns: 1fr;
      }

      .tool-detail-page .side-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .tool-detail-page .side-card:last-child {
        grid-column: 1 / -1;
      }

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

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

      .logo {
        min-width: 0;
      }

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

      .account-link {
        display: none;
      }

      .tool-detail-page .tool-masthead {
        padding-top: 20px;
      }

      .tool-detail-page .breadcrumb {
        margin-bottom: 26px;
      }

      .tool-detail-page .tool-icon-frame {
        width: 74px;
        height: 74px;
      }

      .tool-detail-page .tool-summary {
        font-size: 16px;
      }

      .tool-detail-page .detail-shell {
        margin-top: -23px;
      }

      .tool-detail-page .content-intro {
        padding: 22px;
        align-items: flex-start;
        flex-direction: column;
      }

      .tool-detail-page .tool-body {
        padding: 25px 21px 32px;
      }

      .tool-detail-page .side-stack {
        grid-template-columns: 1fr;
      }

      .tool-detail-page .side-card:last-child {
        grid-column: auto;
      }

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

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