:root {
      --theme: #0B3D91;
      --theme-dark: #082b67;
      --teal: #0891B2;
      --ink: #172033;
      --muted: #667085;
      --line: #dce4ef;
      --soft: #f4f8fc;
      --white: #ffffff;
      --shadow: 0 18px 50px rgba(11, 61, 145, .10);
      --radius: 8px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: #fff;
      font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
      line-height: 1.7;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    button, input { font: inherit; }
    .container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

    .topbar {
      background: var(--ink);
      color: #dce7f5;
      font-size: 13px;
    }
    .topbar .container {
      min-height: 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .topbar-links {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
    }
    .topbar a:hover { color: #fff; }

    .header {
      position: relative;
      z-index: 20;
      background: #fff;
      border-bottom: 1px solid var(--line);
    }
    .header-inner {
      min-height: 76px;
      display: flex;
      align-items: center;
      gap: 28px;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      flex: 0 0 auto;
      color: var(--theme);
      font-size: 19px;
      font-weight: 800;
      letter-spacing: .02em;
    }
    .logo img {
      width: 36px;
      height: 36px;
      object-fit: contain;
    }
    .main-nav { margin-left: auto; }
    .nav-list {
      list-style: none;
      display: flex;
      align-items: stretch;
      gap: 2px;
      padding: 0;
      margin: 0;
    }
    .nav-item { position: relative; }
    .nav-link {
      min-height: 76px;
      display: inline-flex;
      align-items: center;
      padding: 0 13px;
      color: #27344a;
      font-size: 14px;
      white-space: nowrap;
    }
    .nav-link:hover,
    .nav-item:focus-within > .nav-link { color: var(--theme); }
    .has-arrow::after {
      content: "";
      width: 6px;
      height: 6px;
      margin: -3px 0 0 8px;
      border-right: 1px solid currentColor;
      border-bottom: 1px solid currentColor;
      transform: rotate(45deg);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: calc(100% - 1px);
      left: 50%;
      width: 310px;
      padding: 18px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      opacity: 0;
      visibility: hidden;
      transform: translate(-50%, 8px);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }
    .mega-menu { width: 580px; }
    .dropdown-panel::before,
    .mega-menu::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: -12px;
      height: 12px;
    }
    .nav-item:hover > .dropdown-panel,
    .nav-item:focus-within > .dropdown-panel,
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .mega-menu {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, 0);
    }
    .dropdown-panel a:not(.mega-footer) {
      display: block;
      padding: 9px 4px;
      border-bottom: 1px solid #edf1f6;
      font-size: 14px;
    }
    .mega-title {
      margin: 0 0 11px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 800;
    }
    .mega-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
    }
    .mega-card {
      min-height: 70px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 3px;
      padding: 10px;
      background: var(--soft);
      border: 1px solid #e6edf6;
      border-radius: 6px;
    }
    .mega-card:hover { border-color: var(--teal); }
    .mega-card img {
      width: 22px;
      height: 22px;
      object-fit: contain;
      margin-bottom: 2px;
    }
    .mega-card strong {
      overflow: hidden;
      color: var(--ink);
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mega-card small {
      overflow: hidden;
      color: var(--muted);
      font-size: 11px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mega-footer {
      display: inline-flex;
      margin-top: 14px;
      color: var(--theme);
      font-size: 13px;
      font-weight: 700;
    }

    .header-btns {
      display: flex;
      align-items: center;
      gap: 9px;
      flex: 0 0 auto;
    }
    .member-btn,
    .open-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 0 13px;
      border-radius: 5px;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }
    .member-btn {
      color: var(--theme);
      border: 1px solid #bfd0e8;
    }
    .open-btn {
      color: #fff;
      background: var(--theme);
    }
    .member-btn:hover { background: var(--soft); }
    .open-btn:hover { background: var(--theme-dark); }

    .hamburger {
      display: none;
      width: 42px;
      height: 38px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 5px;
      background: #fff;
      cursor: pointer;
    }
    .hamburger span {
      display: block;
      width: 20px;
      height: 2px;
      margin: 4px auto;
      background: var(--ink);
      transition: transform .2s ease, opacity .2s ease;
    }
    .hamburger.active span:first-child { transform: translateY(6px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:last-child { transform: translateY(-6px) rotate(-45deg); }

    .drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 29;
      background: rgba(10, 24, 46, .48);
      opacity: 0;
      visibility: hidden;
      transition: opacity .2s ease, visibility .2s ease;
    }
    .drawer-overlay.open { opacity: 1; visibility: visible; }
    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 30;
      width: min(380px, 88vw);
      overflow-y: auto;
      background: #fff;
      box-shadow: -15px 0 38px rgba(10, 31, 61, .18);
      transform: translateX(100%);
      transition: transform .25s ease;
    }
    .mobile-drawer.open { transform: translateX(0); }
    .drawer-head {
      min-height: 70px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 15px 20px;
      color: var(--theme);
      border-bottom: 1px solid var(--line);
      font-weight: 800;
    }
    .drawer-head > a {
      margin-left: auto;
      color: #fff;
      background: var(--theme);
      border-radius: 4px;
      padding: 5px 10px;
      font-size: 13px;
    }
    .drawer-close {
      width: 34px;
      height: 34px;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      font-size: 27px;
      line-height: 1;
    }
    .drawer-menu { padding: 12px 20px 30px; }
    .drawer-link,
    .drawer-toggle {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 13px 0;
      border: 0;
      border-bottom: 1px solid #edf1f6;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      text-align: left;
      font-size: 15px;
    }
    .drawer-toggle::after {
      content: "+";
      color: var(--muted);
      font-size: 20px;
    }
    .drawer-toggle.active::after { content: "−"; }
    .drawer-submenu {
      display: none;
      padding: 4px 0 7px 14px;
      border-bottom: 1px solid #edf1f6;
    }
    .drawer-submenu.open { display: block; }
    .drawer-submenu a {
      display: block;
      padding: 8px 0;
      color: var(--muted);
      font-size: 14px;
    }

    .productlist-main {
      background: #f6f9fc;
      padding: 64px 0 80px;
    }
    .productlist-hero {
      margin-bottom: 38px;
      text-align: center;
    }
    .productlist-hero .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      color: var(--teal);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .08em;
    }
    .productlist-hero .eyebrow::before {
      content: "";
      width: 24px;
      height: 2px;
      background: var(--teal);
    }
    .productlist-hero h1 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.2;
    }
    .productlist-hero p {
      max-width: 680px;
      margin: 16px auto 0;
      color: var(--muted);
      font-size: 16px;
    }

    .product-category-nav {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 9px;
      margin: 0 auto 34px;
    }
    .product-category-nav a {
      padding: 7px 14px;
      color: var(--theme);
      background: #fff;
      border: 1px solid #ccdaec;
      border-radius: 999px;
      font-size: 13px;
    }
    .product-category-nav a:hover {
      color: #fff;
      background: var(--theme);
      border-color: var(--theme);
    }

    .product-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
    }
    .product-card {
      display: flex;
      flex-direction: column;
      min-width: 0;
      overflow: hidden;
      background: #fff;
      border: 1px solid #e2e9f2;
      border-radius: var(--radius);
      box-shadow: 0 8px 25px rgba(21, 47, 82, .05);
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .product-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 32px rgba(21, 47, 82, .11);
    }
    .product-card-media {
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #eaf2f8;
    }
    .product-card-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .product-card-body {
      display: flex;
      flex: 1;
      flex-direction: column;
      padding: 21px;
    }
    .product-card-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 9px;
      color: var(--teal);
      font-size: 12px;
    }
    .product-card h2 {
      margin: 0;
      color: var(--ink);
      font-size: 19px;
      line-height: 1.35;
    }
    .product-card-summary {
      display: -webkit-box;
      overflow: hidden;
      margin: 11px 0 18px;
      color: var(--muted);
      font-size: 14px;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }
    .product-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: auto;
      padding-top: 14px;
      border-top: 1px solid #edf1f6;
      color: var(--muted);
      font-size: 12px;
    }
    .product-card-footer a {
      color: var(--theme);
      font-weight: 800;
    }
    .product-card-footer a:hover { color: var(--teal); }

    .pagination {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 42px;
    }
    .pagination a {
      min-width: 38px;
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
      color: var(--theme);
      background: #fff;
      border: 1px solid #d3dfed;
      border-radius: 4px;
      font-size: 13px;
    }
    .pagination a:hover,
    .pagination a.current,
    .pagination a.active {
      color: #fff;
      background: var(--theme);
      border-color: var(--theme);
    }

    .footer {
      padding: 54px 0 22px;
      color: #d7e1ef;
      background: #101b2d;
    }
    .footer-grid {
      display: grid;
      grid-template-columns: 1.45fr 1fr 1fr 1fr;
      gap: 34px;
    }
    .footer-brand strong {
      display: block;
      margin-bottom: 12px;
      color: #fff;
      font-size: 20px;
    }
    .footer p {
      margin: 0 0 13px;
      color: #aebdd0;
      font-size: 13px;
    }
    .footer h3 {
      margin: 0 0 13px;
      color: #fff;
      font-size: 14px;
    }
    .footer-grid > div:not(.footer-brand) a,
    .footer-grid > div:not(.footer-brand) span {
      display: block;
      margin: 7px 0;
      color: #aebdd0;
      font-size: 13px;
    }
    .footer a:hover { color: #fff; }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin-top: 36px;
      padding-top: 18px;
      border-top: 1px solid rgba(220, 231, 245, .16);
      color: #8fa2ba;
      font-size: 12px;
    }

    @media (max-width: 1050px) {
      .main-nav { display: none; }
      .hamburger { display: block; }
      .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 680px) {
      .container { width: min(100% - 28px, 560px); }
      .topbar .container,
      .footer-bottom { align-items: flex-start; flex-direction: column; }
      .topbar .container { padding: 8px 0; }
      .header-inner { min-height: 66px; gap: 12px; }
      .logo { font-size: 16px; }
      .logo img { width: 31px; height: 31px; }
      .header-btns { margin-left: auto; }
      .member-btn { display: none; }
      .open-btn { min-height: 34px; padding: 0 10px; }
      .productlist-main { padding: 44px 0 58px; }
      .product-grid { grid-template-columns: 1fr; }
      .productlist-hero h1 { font-size: 32px; }
      .productlist-hero p { font-size: 14px; }
      .footer { padding-top: 40px; }
      .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
      .footer-brand { grid-column: 1 / -1; }
    }
    @media (max-width: 420px) {
      .footer-grid { grid-template-columns: 1fr; }
      .footer-brand { grid-column: auto; }
      .footer-bottom { gap: 8px; }
    }