:root {
      --primary: #0B3D91;
      --template-theme: {主题色};
      --magenta: #c2185b;
      --magenta-dark: #941148;
      --magenta-soft: #fff0f6;
      --ink: #152033;
      --muted: #667085;
      --line: #e4e7ec;
      --surface: #ffffff;
      --canvas: #f5f6f8;
      --success: #147d64;
      --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
      --container: 1180px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--canvas);
      font-family: Arial, "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(var(--container), calc(100% - 40px));
      margin: 0 auto;
    }

    .topbar {
      color: #dfe8f8;
      background: #082e70;
      font-size: 13px;
    }

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

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

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

    .header {
      position: relative;
      z-index: 50;
      background: rgba(255, 255, 255, 0.98);
      border-bottom: 1px solid var(--line);
    }

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

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

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

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

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

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

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

    .nav-link {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 0 12px;
      color: #344054;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

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

    .has-arrow::after {
      width: 6px;
      height: 6px;
      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%;
      left: 50%;
      width: 330px;
      padding: 22px;
      visibility: hidden;
      opacity: 0;
      background: #ffffff;
      border: 1px solid var(--line);
      border-top: 3px solid var(--magenta);
      box-shadow: var(--shadow);
      transform: translate(-50%, 10px);
      transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    }

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

    .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 {
      visibility: visible;
      opacity: 1;
      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);
    }

    .panel-title {
      margin: 0 0 14px;
      color: #101828;
      font-size: 15px;
      font-weight: 800;
    }

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

    .panel-list a {
      padding: 7px 11px;
      color: #475467;
      background: #f2f4f7;
      border-radius: 4px;
      font-size: 13px;
    }

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

    .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;
      padding: 11px;
      border: 1px solid #eaecf0;
      border-radius: 6px;
    }

    .mega-card:hover {
      border-color: #e5a1bf;
      background: #fff8fb;
    }

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

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

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

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

    .mega-card small {
      margin-top: 2px;
      color: #667085;
      font-size: 12px;
      white-space: nowrap;
    }

    .mega-footer {
      display: block;
      margin-top: 16px;
      padding-top: 13px;
      color: var(--primary);
      border-top: 1px solid var(--line);
      font-size: 13px;
      font-weight: 800;
      text-align: right;
    }

    .mega-footer:hover {
      color: var(--magenta);
    }

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

    .member-link,
    .account-link {
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 14px;
      border-radius: 5px;
      font-size: 13px;
      font-weight: 800;
      white-space: nowrap;
    }

    .member-link {
      color: var(--primary);
      border: 1px solid #b8c7e3;
    }

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

    .member-link:hover {
      border-color: var(--primary);
    }

    .account-link:hover {
      background: #082e70;
    }

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

    .hamburger span {
      width: 100%;
      height: 2px;
      display: block;
      margin: 5px 0;
      background: #1d2939;
      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;
      z-index: 90;
      inset: 0;
      visibility: hidden;
      opacity: 0;
      background: rgba(16, 24, 40, 0.56);
      transition: opacity 180ms ease, visibility 180ms ease;
    }

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

    .mobile-drawer {
      position: fixed;
      z-index: 100;
      top: 0;
      right: 0;
      width: min(390px, 92vw);
      height: 100vh;
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -18px 0 50px rgba(16, 24, 40, 0.2);
      transform: translateX(105%);
      transition: transform 220ms ease;
    }

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

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

    .drawer-head strong {
      min-width: 0;
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
    }

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

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

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

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

    .drawer-toggle {
      justify-content: space-between;
      cursor: pointer;
    }

    .drawer-toggle::after {
      content: "+";
      color: var(--magenta);
      font-size: 21px;
      font-weight: 400;
    }

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

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: #f8fafc;
      transition: max-height 240ms ease;
    }

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

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

    .drawer-submenu a:hover {
      color: var(--magenta);
    }

    .tools-page {
      min-height: 640px;
    }

    .tools-page .tools-intro {
      padding: 58px 0 46px;
      color: #ffffff;
      background:
        linear-gradient(rgba(11, 61, 145, 0.93), rgba(11, 61, 145, 0.93)),
        radial-gradient(circle at 80% 20%, #c2185b 0, transparent 34%);
    }

    .tools-page .breadcrumb {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 24px;
      color: #cfdbef;
      font-size: 13px;
    }

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

    .tools-page .intro-kicker {
      margin: 0 0 10px;
      color: #ffd0e4;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0;
    }

    .tools-page .tools-intro h1 {
      max-width: 780px;
      margin: 0;
      font-size: clamp(32px, 5vw, 54px);
      line-height: 1.14;
      letter-spacing: 0;
    }

    .tools-page .tools-intro p {
      max-width: 720px;
      margin: 18px 0 0;
      color: #e6edf8;
      font-size: 17px;
    }

    .tools-page .tool-controls {
      position: relative;
      z-index: 2;
      margin-top: -24px;
    }

    .tools-page .control-bar {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      align-items: center;
      gap: 20px;
      padding: 18px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 7px;
      box-shadow: var(--shadow);
    }

    .tools-page .tool-search {
      position: relative;
    }

    .tools-page .tool-search input {
      width: 100%;
      height: 46px;
      padding: 10px 46px 10px 14px;
      color: #1d2939;
      background: #f8fafc;
      border: 1px solid #d0d5dd;
      border-radius: 5px;
      outline: none;
    }

    .tools-page .tool-search input:focus {
      background: #ffffff;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
    }

    .tools-page .search-symbol {
      position: absolute;
      top: 50%;
      right: 15px;
      color: var(--primary);
      font-size: 20px;
      transform: translateY(-50%);
    }

    .tools-page .filter-tags {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }

    .tools-page .filter-tag {
      min-height: 38px;
      padding: 7px 13px;
      color: #475467;
      cursor: pointer;
      background: #ffffff;
      border: 1px solid #d0d5dd;
      border-radius: 5px;
      font-size: 13px;
      font-weight: 700;
    }

    .tools-page .filter-tag:hover,
    .tools-page .filter-tag.active {
      color: #ffffff;
      background: var(--magenta);
      border-color: var(--magenta);
    }

    .tools-page .tools-directory {
      padding: 54px 0 76px;
    }

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

    .tools-page .section-heading h2 {
      margin: 0;
      color: #101828;
      font-size: 27px;
      line-height: 1.25;
    }

    .tools-page .section-heading p {
      margin: 7px 0 0;
      color: var(--muted);
    }

    .tools-page .section-count {
      flex: 0 0 auto;
      padding: 7px 11px;
      color: var(--magenta-dark);
      background: var(--magenta-soft);
      border-radius: 4px;
      font-size: 13px;
      font-weight: 800;
    }

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

    .tools-page .tool-card {
      min-width: 0;
      min-height: 255px;
      display: flex;
      flex-direction: column;
      padding: 22px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-top: 3px solid transparent;
      border-radius: 7px;
      box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
      transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    .tools-page .tool-card:hover {
      border-top-color: var(--magenta);
      box-shadow: var(--shadow);
      transform: translateY(-3px);
    }

    .tools-page .tool-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 18px;
    }

    .tools-page .tool-icon {
      width: 54px;
      height: 54px;
      display: grid;
      flex: 0 0 54px;
      place-items: center;
      overflow: hidden;
      background: #eef4ff;
      border: 1px solid #dbe6f8;
      border-radius: 6px;
    }

    .tools-page .tool-icon img {
      width: 34px;
      height: 34px;
      object-fit: contain;
    }

    .tools-page .tool-status {
      padding: 5px 9px;
      color: var(--success);
      background: #ecfdf3;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 800;
    }

    .tools-page .tool-card h3 {
      margin: 0 0 9px;
      color: #101828;
      font-size: 19px;
      line-height: 1.35;
    }

    .tools-page .tool-card p {
      margin: 0 0 22px;
      color: var(--muted);
      font-size: 14px;
    }

    .tools-page .tool-link {
      min-height: 39px;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: auto;
      padding-top: 13px;
      color: var(--primary);
      border-top: 1px solid var(--line);
      font-size: 14px;
      font-weight: 800;
    }

    .tools-page .tool-link::after {
      content: "→";
      color: var(--magenta);
      font-size: 18px;
    }

    .tools-page .tool-card:hover .tool-link {
      color: var(--magenta-dark);
    }

    .tools-page .tool-guide {
      padding: 58px 0;
      background: #ffffff;
      border-top: 1px solid var(--line);
    }

    .tools-page .guide-layout {
      display: grid;
      grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
      gap: 56px;
      align-items: start;
    }

    .tools-page .guide-copy h2 {
      margin: 0 0 14px;
      color: #101828;
      font-size: 29px;
      line-height: 1.25;
    }

    .tools-page .guide-copy p {
      margin: 0;
      color: var(--muted);
    }

    .tools-page .guide-steps {
      display: grid;
      gap: 12px;
    }

    .tools-page .guide-step {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      gap: 15px;
      padding: 17px;
      background: #f8fafc;
      border-left: 3px solid var(--primary);
      border-radius: 5px;
    }

    .tools-page .step-number {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      color: #ffffff;
      background: var(--magenta);
      border-radius: 50%;
      font-size: 14px;
      font-weight: 800;
    }

    .tools-page .guide-step h3 {
      margin: 0 0 3px;
      font-size: 16px;
    }

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

    .tools-page .risk-note {
      padding: 42px 0 70px;
      background: #ffffff;
    }

    .tools-page .risk-panel {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      padding: 28px 30px;
      color: #ffffff;
      background: #19243a;
      border-left: 5px solid var(--magenta);
      border-radius: 6px;
    }

    .tools-page .risk-panel h2 {
      margin: 0 0 6px;
      font-size: 21px;
    }

    .tools-page .risk-panel p {
      max-width: 760px;
      margin: 0;
      color: #d0d5dd;
      font-size: 14px;
    }

    .tools-page .risk-panel a {
      min-height: 42px;
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
      justify-content: center;
      padding: 9px 16px;
      color: #ffffff;
      background: var(--magenta);
      border-radius: 5px;
      font-weight: 800;
    }

    .footer {
      color: #d0d5dd;
      background: #101828;
    }

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

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

    .footer-brand strong {
      display: block;
      margin-bottom: 14px;
      color: #ffffff;
      font-size: 21px;
    }

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

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

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

    .footer-links a {
      color: #d0d5dd;
      font-size: 14px;
    }

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

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin-top: 42px;
      padding-top: 18px;
      color: #98a2b3;
      border-top: 1px solid #344054;
      font-size: 13px;
    }

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

      .hamburger {
        display: block;
      }

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

      .logo {
        flex: 1;
      }

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

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

      .topbar .container {
        min-height: 42px;
      }

      .topbar-links {
        gap: 10px;
      }

      .topbar-links a:first-child {
        display: none;
      }

      .member-link {
        display: none;
      }

      .tools-page .tools-intro {
        padding: 42px 0 44px;
      }

      .tools-page .tools-intro h1 {
        font-size: 35px;
      }

      .tools-page .control-bar {
        grid-template-columns: 1fr;
      }

      .tools-page .filter-tags {
        justify-content: flex-start;
      }

      .tools-page .guide-layout {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .tools-page .risk-panel {
        align-items: flex-start;
        flex-direction: column;
      }

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

    @media (max-width: 580px) {
      .logo {
        min-width: 0;
      }

      .logo span {
        max-width: 135px;
      }

      .account-link {
        display: none;
      }

      .tools-page .tools-intro h1 {
        font-size: 31px;
      }

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

      .tools-page .tools-grid {
        grid-template-columns: 1fr;
      }

      .tools-page .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
      }

      .tools-page .tool-card {
        min-height: 235px;
      }

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

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