:root {
  --bg: #ffffff;
  --panel: #f5f5f7;
  --panel-soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-light: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

h1,
h2,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* nav */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  display: flex;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.wordmark {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a,
.nav-links button {
  padding: 4px 0;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.01em;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links button:hover {
  opacity: 1;
}

/* hero */
main {
  padding-top: 48px;
}

.hero {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  padding: 82px 24px 62px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.hero h1 {
  margin-top: 12px;
  font-size: clamp(46px, 6.6vw, 76px);
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero-lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted-light);
  font-size: 12px;
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}

/* search toolbar */
.toolbar {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 10px;
  align-items: center;
  gap: 16px;
}

.search-field {
  display: flex;
  width: min(440px, 100%);
  height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.search-field svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-field input::placeholder {
  color: var(--muted-light);
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-field button {
  flex: none;
  padding: 3px 0 3px 6px;
  color: var(--muted);
  font-size: 11px;
}

.search-field button:hover {
  color: var(--ink);
}

.search-count {
  margin-left: auto;
  color: var(--muted-light);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* catalog */
.catalog {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 96px;
}

.catalog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 20px;
}

.catalog-head h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.catalog-caption {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.transit-head {
  margin-top: 50px;
  padding-top: 38px;
  border-top: 1px solid var(--line-soft);
}

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

.product-grid:empty {
  display: none;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  animation: card-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.product-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: 84%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.product-card:hover .product-image img {
  transform: translate(-50%, -50%) scale(1.018);
}

.product-image img.blend-image {
  mix-blend-mode: multiply;
}

.image-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 78%;
  height: 78%;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #e8e8ed;
  color: var(--muted-light);
  font-size: 13px;
  letter-spacing: 0.08em;
  transform: translate(-50%, -50%);
}

.download-button {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, opacity 0.2s;
}

.download-button:hover {
  background: #fff;
}

.download-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.download-button svg {
  width: 12px;
  height: 12px;
}

.transit-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2px 24px 24px;
}

.product-collection {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.product-ref {
  margin-top: 0;
  color: var(--ink);
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.35;
}

.copy-model {
  display: inline-flex;
  height: 21px;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.copy-model:hover {
  border-color: var(--blue);
  background: #f5f9ff;
  color: var(--blue);
}

.copy-model svg {
  width: 11px;
  height: 11px;
}

.product-variant {
  margin-top: 7px;
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 0;
  margin-top: 7px;
}

.product-tag {
  padding: 3px 6px;
  border-radius: 5px;
  background: #e8e8ed;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.25;
}

.prices {
  display: grid;
  margin-top: auto;
  padding-top: 18px;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.price-block {
  min-width: 0;
}

.price-block + .price-block {
  padding-left: 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.price-label {
  display: block;
  color: var(--muted-light);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.price-value {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "kern" 1;
}

.price-value.is-cny {
  color: var(--ink);
}

.empty-state {
  padding: 90px 20px;
  color: var(--muted);
  text-align: center;
}

/* skeleton */
.skeleton-card {
  min-height: 480px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #f5f5f7 20%, #fbfbfd 40%, #f5f5f7 60%);
  background-size: 220% 100%;
  animation: skeleton 1.5s linear infinite;
}

@keyframes skeleton {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

/* mobile one-screen stage */
.mobile-stage {
  display: none;
}

.mobile-pager {
  flex: none;
  padding-top: 8px;
  color: var(--muted-light);
  font-size: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.mobile-divider {
  padding: 0 4px;
  color: var(--line);
}

.mobile-empty {
  display: grid;
  flex: 1;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* footer */
.site-footer {
  background: var(--panel);
}

.footer-inner {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 44px 24px 54px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.footer-inner p + p {
  margin-top: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted-light);
  font-size: 11px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

/* AI dialog */
.ai-dialog {
  width: min(520px, calc(100vw - 32px));
  max-width: 100%;
  max-height: min(720px, calc(100dvh - 48px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 100px -20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.ai-dialog::backdrop {
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(4px);
}

.ai-dialog[open] {
  animation: dialog-in 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ai-panel {
  display: flex;
  max-height: min(720px, calc(100dvh - 48px));
  flex-direction: column;
}

.ai-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.ai-kicker {
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.ai-head h2 {
  margin-top: 3px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ai-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
}

.ai-close:hover {
  background: #e8e8ed;
  color: var(--ink);
}

.ai-close svg {
  width: 14px;
  height: 14px;
}

.ai-messages {
  display: flex;
  min-height: 260px;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 20px 22px;
  scrollbar-width: thin;
}

.ai-message {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-message-bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: var(--panel);
  color: var(--ink);
}

.ai-message-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--blue);
  color: #fff;
}

.ai-message-loading {
  display: flex;
  width: 52px;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.ai-message-loading span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-light);
  animation: typing 1.2s ease-in-out infinite;
}

.ai-message-loading span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-message-loading span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.ai-suggestions button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  transition: border-color 0.2s, color 0.2s;
}

.ai-suggestions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.ai-form {
  display: flex;
  flex: none;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line-soft);
}

.ai-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  flex: 1;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  outline: 0;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}

.ai-form input:focus {
  border-color: var(--blue);
  background: #fff;
}

.ai-form button {
  height: 42px;
  flex: none;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.ai-form button:hover {
  background: var(--blue-hover);
}

.ai-form button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* responsive */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 700px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body {
    padding-top: 48px;
  }

  .site-nav {
    height: 48px;
  }

  .nav-inner {
    padding: 0 18px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a,
  .nav-links button {
    font-size: 11px;
  }

  main {
    display: flex;
    height: calc(100dvh - 48px);
    padding-top: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .hero {
    flex: none;
    padding: 20px 20px 12px;
    text-align: left;
    align-items: flex-start;
    max-width: none;
  }

  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    margin-top: 6px;
    font-size: clamp(32px, 9vw, 40px);
    letter-spacing: -0.035em;
  }

  .hero-lede {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  .hero-meta {
    margin-top: 8px;
    font-size: 10px;
  }

  .toolbar {
    flex: none;
    padding: 0 14px 8px;
    gap: 8px;
  }

  .search-field {
    height: 40px;
    padding: 0 12px;
  }

  .search-field input {
    font-size: 12px;
  }

  .search-count {
    display: none;
  }

  .catalog,
  .site-footer {
    display: none;
  }

  .mobile-stage {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0 14px 10px;
  }

  .mobile-carousel {
    display: flex;
    min-height: 0;
    flex: 1;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-carousel::-webkit-scrollbar {
    display: none;
  }

  .mobile-carousel .product-card {
    display: flex;
    height: 100%;
    flex: 0 0 100%;
    flex-direction: column;
    scroll-snap-align: center;
    border-radius: 22px;
  }

  .mobile-carousel .product-image {
    min-height: 0;
    flex: 1 1 auto;
    aspect-ratio: auto;
  }

  .mobile-carousel .product-image img {
    width: 80%;
    height: 86%;
  }

  .mobile-carousel .product-body {
    flex: 0 0 auto;
    padding: 0 18px 16px;
  }

  .mobile-carousel .product-collection {
    font-size: 10px;
  }

  .mobile-carousel .model-row {
    margin-top: 2px;
  }

  .mobile-carousel .product-ref {
    font-size: 12px;
  }

  .mobile-carousel .copy-model {
    height: 20px;
    padding: 0 5px;
    font-size: 8.5px;
  }

  .mobile-carousel .product-variant {
    margin-top: 3px;
    min-height: 0;
    font-size: 12px;
  }

  .mobile-carousel .product-tags {
    margin-top: 5px;
    gap: 4px;
  }

  .mobile-carousel .product-tag {
    padding: 2px 5px;
    font-size: 9px;
  }

  .mobile-carousel .prices {
    margin-top: 10px;
    padding-top: 10px;
  }

  .mobile-carousel .price-value {
    font-size: 18px;
  }

  .mobile-carousel .price-label {
    font-size: 9px;
  }

  .download-button {
    top: 10px;
    left: 10px;
    height: 26px;
    padding: 0 8px;
    font-size: 9px;
  }

  .download-button svg {
    width: 11px;
    height: 11px;
  }

  .mobile-pager {
    padding-top: 6px;
  }

  .mobile-empty {
    font-size: 12px;
  }

  .ai-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  .ai-panel {
    max-height: calc(100dvh - 16px);
  }

  .ai-messages {
    min-height: 200px;
  }

  .toast {
    bottom: 16px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   Category menu, Chinese names, and vertical mobile list
   -------------------------------------------------------------------------- */
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.menu-toggle {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: none;
  border-radius: 7px;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.menu-toggle:hover {
  background: #f0f0f2;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.category-backdrop {
  position: fixed;
  top: 48px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.category-drawer {
  position: fixed;
  top: 48px;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  width: 310px;
  flex-direction: column;
  overflow-y: auto;
  padding: 26px 16px 30px;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.07);
}

.category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 8px;
}

.category-kicker {
  margin: 0;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.category-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.category-close {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #f5f5f7;
}

.category-close svg {
  width: 15px;
  height: 15px;
}

.category-list {
  display: grid;
  gap: 3px;
  margin-top: 24px;
}

.category-item {
  display: flex;
  width: 100%;
  min-height: 41px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  transition: background 0.18s, color 0.18s;
}

.category-item:hover {
  background: #f5f5f7;
  color: var(--ink);
}

.category-item.is-active {
  background: #f0f0f2;
  color: var(--ink);
  font-weight: 600;
}

.category-count {
  color: var(--muted-light);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.category-item.is-active .category-count {
  color: var(--muted);
}

.category-note {
  margin: auto 8px 0;
  padding-top: 24px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

.active-filter-row {
  width: 100%;
  scroll-margin-top: 62px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 10px;
}

.active-filter {
  display: inline-flex;
  height: 29px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  transition: border-color 0.2s, color 0.2s;
}

.active-filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.active-filter-x {
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1;
}

.product-name-zh {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.product-variant {
  margin-top: 3px;
  min-height: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.product-spec {
  margin: 3px 0 0;
  color: var(--muted-light);
  font-size: 10px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

#prices {
  scroll-margin-top: 62px;
}

@media (max-width: 700px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow: visible;
    overscroll-behavior-y: auto;
  }

  body {
    padding-top: 48px;
  }

  main {
    display: block;
    height: auto;
    min-height: 0;
    padding-top: 0;
    overflow: visible;
  }

  .nav-inner {
    padding: 0 14px;
  }

  .nav-left {
    gap: 7px;
  }

  .wordmark {
    font-size: 15.5px;
    letter-spacing: 0.015em;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 26px;
    height: 26px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a,
  .nav-links button {
    font-size: 11px;
  }

  .hero {
    display: block;
    padding: 25px 18px 14px;
    text-align: left;
  }

  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    margin-top: 7px;
    font-size: clamp(32px, 9vw, 38px);
    letter-spacing: -0.04em;
  }

  .hero-lede {
    max-width: 310px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  .hero-meta {
    margin-top: 9px;
    font-size: 10px;
  }

  .toolbar {
    display: flex;
    padding: 0 14px 10px;
    gap: 8px;
  }

  .search-field {
    height: 42px;
    padding: 0 12px;
  }

  .search-field input {
    font-size: 12px;
  }

  .search-count {
    display: block;
    flex: none;
    font-size: 9px;
    white-space: nowrap;
  }

  .active-filter-row {
    padding: 0 14px 9px;
  }

  .catalog {
    display: block;
    padding: 0 14px 48px;
  }

  .site-footer {
    display: block;
    padding-bottom: 32px;
  }

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

  .product-card {
    border-radius: 22px;
  }

  .product-image {
    aspect-ratio: 1 / 1;
  }

  .product-image img {
    width: 82%;
    height: 84%;
  }

  .product-body {
    padding: 13px 17px 18px;
  }

  .product-collection {
    font-size: 10px;
  }

  .product-name-zh {
    margin-top: 7px;
    font-size: 14px;
  }

  .product-variant {
    margin-top: 2px;
    font-size: 11px;
  }

  .product-spec {
    font-size: 9.5px;
  }

  .product-tags {
    margin-top: 6px;
    gap: 4px;
  }

  .product-tag {
    padding: 2px 5px;
    font-size: 9px;
  }

  .prices {
    margin-top: 11px;
    padding-top: 11px;
  }

  .price-value {
    font-size: 19px;
  }

  .price-label {
    font-size: 9px;
  }

  .download-button {
    top: 10px;
    left: 10px;
    height: 26px;
    padding: 0 8px;
    font-size: 9px;
  }

  .download-button svg {
    width: 11px;
    height: 11px;
  }

  .catalog-head {
    padding-top: 4px;
  }

  .transit-head {
    margin-top: 34px;
    padding-top: 26px;
  }

  .mobile-stage {
    display: none !important;
  }

  .category-drawer {
    width: 84vw;
    max-width: 320px;
    top: 48px;
    padding: 22px 13px 28px;
  }

  .category-head {
    padding: 0 7px;
  }

  .category-head h2 {
    font-size: 23px;
  }

  .category-item {
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .category-note {
    margin: auto 7px 0;
    padding-top: 20px;
  }

  .ai-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  .ai-panel {
    max-height: calc(100dvh - 16px);
  }

  .ai-messages {
    min-height: 200px;
  }

  .toast {
    bottom: 16px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
  }
}

/* quick facet tags under the 现货 heading */
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px;
}

.quick-filter {
  display: inline-flex;
  height: 27px;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.quick-filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.quick-filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.quick-filter.is-empty {
  opacity: 0.42;
}

.quick-filter-count {
  color: var(--muted-light);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.quick-filter.is-active .quick-filter-count {
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 700px) {
  .quick-filters {
    flex-wrap: nowrap;
    margin: 10px -14px 16px;
    padding: 0 14px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .quick-filter {
    height: 28px;
    flex: none;
    padding: 0 10px;
    font-size: 10px;
  }
}

/* desktop label for the category button and quick filter strip */
.menu-toggle {
  display: inline-flex;
  width: auto;
  padding: 0 6px;
  gap: 4px;
  align-items: center;
}

.menu-label {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.quick-filter-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 18px;
}

.quick-filter-label {
  flex: none;
  padding-top: 8px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.quick-filter-bar .quick-filters {
  flex: 1;
  margin: 0;
}

@media (max-width: 700px) {
  .menu-toggle {
    width: 26px;
    padding: 0;
    justify-content: center;
  }

  .menu-label {
    display: none;
  }

  .quick-filter-bar {
    display: block;
    margin: 10px 0 16px;
  }

  .quick-filter-label {
    display: none;
  }

  .quick-filter-bar .quick-filters {
    margin: 0 -14px;
    padding: 0 14px 2px;
  }
}

/* Readability pass: stronger contrast and larger type, especially on phones. */
.quick-filter {
  height: 29px;
  padding: 0 11px;
  font-size: 11px;
}

.quick-filter-count {
  color: #6e6e73;
  font-size: 10px;
}

.quick-filter-label {
  color: #6e6e73;
  font-size: 10px;
}

.active-filter {
  height: 31px;
  font-size: 11px;
}

.search-field input {
  font-size: 14px;
}

.search-count {
  color: #6e6e73;
  font-size: 10px;
}

.product-collection {
  color: #6e6e73;
  font-size: 11.5px;
}

.product-ref {
  font-size: 13px;
}

.copy-model {
  height: 23px;
  font-size: 10px;
}

.product-name-zh {
  font-size: 15px;
}

.product-variant {
  color: #6e6e73;
  font-size: 12.5px;
}

.product-spec {
  color: #6e6e73;
  font-size: 11px;
}

.product-tag {
  font-size: 10.5px;
}

.price-label {
  color: #6e6e73;
  font-size: 10.5px;
}

.price-value {
  font-size: 21px;
}

.category-item {
  min-height: 44px;
  font-size: 14px;
}

.category-count {
  color: #6e6e73;
  font-size: 11px;
}

.category-note {
  color: #6e6e73;
  font-size: 11px;
}

@media (max-width: 700px) {
  .nav-links a,
  .nav-links button {
    font-size: 12px;
  }

  .wordmark {
    font-size: 16px;
  }

  .hero-kicker {
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(36px, 9.8vw, 42px);
    line-height: 1.06;
  }

  .hero-lede {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-meta {
    color: #6e6e73;
    font-size: 11px;
  }

  .search-field {
    height: 48px;
    padding: 0 13px;
  }

  .search-field input {
    font-size: 14px;
  }

  .search-field input::placeholder {
    color: #6e6e73;
  }

  .search-count {
    color: #6e6e73;
    font-size: 10px;
  }

  .quick-filter {
    height: 33px;
    padding: 0 12px;
    font-size: 12px;
  }

  .quick-filter-count {
    font-size: 10.5px;
  }

  .catalog-head h2 {
    font-size: 29px;
  }

  .catalog-caption {
    color: #6e6e73;
    font-size: 11px;
  }

  .product-body {
    padding: 14px 18px 20px;
  }

  .product-collection {
    font-size: 11.5px;
  }

  .product-ref {
    font-size: 14.5px;
  }

  .copy-model {
    height: 24px;
    font-size: 10.5px;
  }

  .product-name-zh {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.45;
  }

  .product-variant {
    margin-top: 3px;
    font-size: 13px;
  }

  .product-spec {
    margin-top: 4px;
    color: #6e6e73;
    font-size: 11.5px;
  }

  .product-tag {
    padding: 3px 7px;
    font-size: 10.5px;
  }

  .prices {
    margin-top: 13px;
    padding-top: 13px;
  }

  .price-label {
    color: #6e6e73;
    font-size: 10.5px;
  }

  .price-value {
    margin-top: 5px;
    font-size: 22px;
  }

  .download-button {
    height: 29px;
    font-size: 10px;
  }

  .category-item {
    min-height: 47px;
    font-size: 15px;
  }

  .category-count {
    font-size: 11px;
  }

  .category-note {
    font-size: 11px;
  }

  .active-filter {
    height: 32px;
    font-size: 11.5px;
  }

  .site-footer {
    color: #6e6e73;
    font-size: 12px;
  }
}

.product-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.hot-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #c93400;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-badges .transit-badge {
  position: static;
  top: auto;
  right: auto;
}
