:root {
      --primary: #0B3D91;
      --primary-dark: #082c69;
      --ink: #172033;
      --muted: #667085;
      --line: #e3e8f0;
      --surface: #ffffff;
      --soft: #f4f7fb;
      --accent: #b78328;
      --shadow: 0 18px 45px rgba(20, 43, 82, 0.09);
      --radius: 8px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

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

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

    button,
    input {
      font: inherit;
    }

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

    .topbar {
      color: #dbe7fb;
      background: #091a38;
      font-size: 13px;
    }

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

    .topbar-links {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
    }

    .topbar a {
      color: #dbe7fb;
    }

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

    .header {
      position: relative;
      z-index: 20;
      background: var(--surface);
      border-bottom: 1px solid var(--line);
    }

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

    .logo {
      display: inline-flex;
      min-width: 190px;
      align-items: center;
      gap: 10px;
      color: var(--primary-dark);
      font-size: 18px;
      font-weight: 800;
      letter-spacing: 0;
    }

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

    .main-nav {
      flex: 1;
    }

    .nav-list {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      display: inline-flex;
      min-height: 44px;
      align-items: center;
      padding: 0 13px;
      color: #344054;
      font-size: 15px;
      font-weight: 600;
      white-space: nowrap;
    }

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

    .has-arrow::after {
      width: 7px;
      height: 7px;
      margin: -4px 0 0 8px;
      border-right: 1px solid currentColor;
      border-bottom: 1px solid currentColor;
      content: "";
      transform: rotate(45deg);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: calc(100% + 1px);
      left: 50%;
      z-index: 30;
      width: 290px;
      padding: 16px;
      visibility: hidden;
      opacity: 0;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 0 0 var(--radius) var(--radius);
      box-shadow: var(--shadow);
      transform: translate(-50%, 8px);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

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

    .dropdown-panel::before,
    .mega-menu::before {
      position: absolute;
      top: -12px;
      right: 0;
      left: 0;
      height: 12px;
      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);
    }

    .dropdown-panel > a:not(.mega-footer) {
      display: block;
      padding: 9px 10px;
      border-bottom: 1px solid #edf1f6;
      color: #344054;
      font-size: 14px;
    }

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

    .mega-heading {
      display: flex;
      justify-content: space-between;
      padding-bottom: 12px;
      color: var(--primary-dark);
      border-bottom: 1px solid var(--line);
      font-size: 13px;
      font-weight: 800;
    }

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

    .mega-card {
      min-height: 92px;
      padding: 12px;
      background: #f8faff;
      border: 1px solid #e4ebf5;
      border-radius: 6px;
    }

    .mega-card:hover {
      border-color: #a9bee1;
      background: #eef4ff;
    }

    .mega-card img {
      width: 24px;
      height: 24px;
      margin-bottom: 5px;
      object-fit: contain;
    }

    .mega-card strong,
    .mega-card small {
      display: block;
    }

    .mega-card strong {
      overflow: hidden;
      color: var(--primary-dark);
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

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

    .mega-footer {
      display: block;
      padding-top: 11px;
      color: var(--primary);
      border-top: 1px solid var(--line);
      font-size: 13px;
      font-weight: 700;
    }

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

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

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

    .member-link:hover {
      background: #f0f5fd;
    }

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

    .account-link:hover {
      background: var(--primary-dark);
    }

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

    .hamburger span {
      display: block;
      height: 2px;
      margin: 4px 0;
      background: var(--primary-dark);
      transition: transform .2s ease, opacity .2s ease;
    }

    .hamburger.active span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
    }

    .drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 40;
      visibility: hidden;
      background: rgba(9, 26, 56, .46);
      opacity: 0;
      transition: opacity .2s ease, visibility .2s ease;
    }

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

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 50;
      width: min(360px, 88vw);
      overflow-y: auto;
      visibility: hidden;
      background: #ffffff;
      box-shadow: -18px 0 42px rgba(9, 26, 56, .18);
      transform: translateX(100%);
      transition: transform .25s ease, visibility .25s ease;
    }

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

    .drawer-head {
      display: flex;
      min-height: 70px;
      align-items: center;
      gap: 14px;
      padding: 0 20px;
      color: var(--primary-dark);
      border-bottom: 1px solid var(--line);
      font-weight: 800;
    }

    .drawer-head span {
      flex: 1;
    }

    .drawer-head a {
      color: var(--primary);
      font-size: 14px;
    }

    .drawer-close {
      width: 34px;
      height: 34px;
      padding: 0;
      color: var(--primary-dark);
      cursor: pointer;
      background: #f0f4fa;
      border: 0;
      border-radius: 50%;
      font-size: 24px;
      line-height: 1;
    }

    .drawer-menu {
      padding: 12px 20px 28px;
    }

    .drawer-link,
    .drawer-toggle {
      display: flex;
      width: 100%;
      min-height: 48px;
      align-items: center;
      justify-content: space-between;
      padding: 0;
      color: #344054;
      background: transparent;
      border: 0;
      border-bottom: 1px solid #edf1f6;
      font-size: 15px;
      text-align: left;
    }

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

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

    .drawer-submenu {
      display: none;
      padding: 6px 0 8px 16px;
      border-bottom: 1px solid #edf1f6;
    }

    .drawer-submenu.open {
      display: block;
    }

    .drawer-submenu a {
      display: block;
      padding: 7px 0;
      color: var(--muted);
      font-size: 14px;
    }

    .drawer-submenu a:hover,
    .drawer-link:hover {
      color: var(--primary);
    }

    .productlist-main {
      padding-bottom: 80px;
    }

    .page-hero {
      padding: 68px 0 54px;
      color: #ffffff;
      background:
        linear-gradient(120deg, rgba(8, 44, 105, .97), rgba(11, 61, 145, .88)),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 32%);
    }

    .page-hero-inner {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 32px;
    }

    .page-kicker {
      margin: 0 0 10px;
      color: #b9d0f5;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .08em;
    }

    .page-hero h1 {
      max-width: 720px;
      margin: 0;
      font-size: clamp(30px, 5vw, 54px);
      line-height: 1.2;
    }

    .page-hero p {
      max-width: 650px;
      margin: 18px 0 0;
      color: #dce8fb;
      font-size: 16px;
    }

    .hero-mark {
      display: grid;
      width: 168px;
      height: 168px;
      flex: 0 0 168px;
      place-items: center;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, .32);
      border-radius: 50%;
      box-shadow: inset 0 0 0 18px rgba(255, 255, 255, .05), inset 0 0 0 19px rgba(255, 255, 255, .18);
      font-size: 42px;
      font-weight: 800;
    }

    .category-strip {
      padding: 30px 0 4px;
    }

    .category-strip h2 {
      margin: 0 0 16px;
      color: var(--primary-dark);
      font-size: 21px;
    }

    .category-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .category-list a {
      display: inline-flex;
      min-height: 38px;
      align-items: center;
      padding: 0 14px;
      color: #455468;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 4px;
      font-size: 14px;
      font-weight: 700;
    }

    .category-list a:hover {
      color: var(--primary);
      border-color: #9bb4dc;
      background: #f0f5fd;
    }

    .product-section {
      padding: 38px 0 0;
    }

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

    .section-heading h2 {
      margin: 0;
      color: var(--ink);
      font-size: 25px;
    }

    .section-heading p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }

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

    .product-card {
      display: flex;
      min-width: 0;
      flex-direction: column;
      overflow: hidden;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 8px 26px rgba(20, 43, 82, .05);
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    .product-card:hover {
      border-color: #abc0e1;
      box-shadow: var(--shadow);
      transform: translateY(-3px);
    }

    .product-image {
      display: grid;
      height: 190px;
      place-items: center;
      overflow: hidden;
      background: #eef3fa;
    }

    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .product-image img[src=""] {
      display: none;
    }

    .product-body {
      display: flex;
      min-width: 0;
      flex: 1;
      flex-direction: column;
      padding: 20px;
    }

    .product-label {
      margin: 0 0 8px;
      color: var(--primary);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .04em;
    }

    .product-card h3 {
      min-height: 29px;
      margin: 0;
      color: var(--primary-dark);
      font-size: 19px;
      line-height: 1.45;
    }

    .product-summary {
      display: -webkit-box;
      min-height: 72px;
      margin: 11px 0 16px;
      overflow: hidden;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.7;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }

    .product-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      padding-top: 13px;
      margin-top: auto;
      color: #7a8699;
      border-top: 1px solid #edf1f6;
      font-size: 12px;
    }

    .product-meta strong {
      color: #455468;
      font-weight: 700;
    }

    .product-link {
      display: inline-flex;
      min-height: 40px;
      align-items: center;
      justify-content: center;
      margin-top: 17px;
      color: #ffffff;
      background: var(--primary);
      border-radius: 4px;
      font-size: 14px;
      font-weight: 800;
    }

    .product-link:hover {
      background: var(--primary-dark);
    }

    .pagination {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 7px;
      padding-top: 42px;
    }

    .pagination a {
      display: inline-flex;
      min-width: 38px;
      height: 38px;
      align-items: center;
      justify-content: center;
      padding: 0 11px;
      color: #455468;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 4px;
      font-size: 13px;
    }

    .pagination a:hover,
    .pagination a.active {
      color: #ffffff;
      background: var(--primary);
      border-color: var(--primary);
    }

    .footer {
      color: #c4d1e5;
      background: #091a38;
    }

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

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

    .footer h2,
    .footer h3 {
      margin: 0 0 14px;
      color: #ffffff;
    }

    .footer h2 {
      font-size: 20px;
    }

    .footer h3 {
      font-size: 15px;
    }

    .footer p {
      max-width: 320px;
      margin: 0;
      color: #aebed7;
      font-size: 14px;
    }

    .footer-links {
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .footer-links li {
      margin: 7px 0;
      color: #aebed7;
      font-size: 13px;
    }

    .footer-links a {
      color: #aebed7;
    }

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

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      padding-top: 22px;
      margin-top: 38px;
      color: #8ea4c4;
      border-top: 1px solid rgba(255, 255, 255, .14);
      font-size: 12px;
    }

    @media (max-width: 1040px) {
      .header-inner {
        gap: 14px;
      }

      .logo {
        min-width: 160px;
      }

      .nav-link {
        padding: 0 8px;
        font-size: 14px;
      }

      .member-link {
        display: none;
      }

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

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

      .topbar .container {
        min-height: 54px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
      }

      .topbar-links {
        gap: 12px;
      }

      .main-nav {
        display: none;
      }

      .hamburger {
        display: block;
      }

      .page-hero {
        padding: 48px 0 42px;
      }

      .page-hero-inner {
        align-items: flex-start;
        flex-direction: column;
      }

      .hero-mark {
        width: 112px;
        height: 112px;
        flex-basis: 112px;
        font-size: 30px;
      }

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

    @media (max-width: 560px) {
      .container {
        width: calc(100% - 28px);
      }

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

      .logo {
        min-width: 0;
        flex: 1;
      }

      .logo span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .account-link {
        display: none;
      }

      .page-hero h1 {
        font-size: 32px;
      }

      .page-hero p {
        font-size: 14px;
      }

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

      .product-image {
        height: 176px;
      }

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

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

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