:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #1d1d1f;
  --surface: rgba(255, 255, 255, 0.72);
  --blue: #0071e3;
  --font: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Instrument Serif", "Songti SC", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(700px 480px at 15% 80%, rgba(210, 220, 230, 0.55), transparent 55%),
    radial-gradient(640px 420px at 90% 70%, rgba(190, 200, 210, 0.4), transparent 50%),
    linear-gradient(180deg, #e8eaee 0%, var(--bg) 45%, #eceef2 100%);
}

/* —— Home / Apple-like first viewport —— */
.page-home { min-height: 100vh; }
.hero-plane {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 64px;
}

.brand-mark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 12vw, 7.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--ink);
}

.brand-with-tm {
  position: relative;
  display: inline-block;
}
.brand-tm {
  position: absolute;
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}
.brand-with-tm--hero {
  position: relative;
  display: inline-block;
}
.brand-with-tm--hero .brand-hero-name {
  display: inline-block;
}
.brand-with-tm--hero .brand-tm {
  position: absolute;
  left: 100%;
  top: 0.1em;
  margin-left: 0.14em;
  font-size: clamp(0.62rem, 1.45vw, 0.88rem);
  font-weight: 600;
  color: #6b6b6f;
}
.page-home .brand-with-tm--hero .brand-tm {
  font-size: clamp(1.24rem, 2.9vw, 1.76rem);
}
.brand-with-tm--inline {
  padding-right: 1.35em;
}
.brand-with-tm--inline .brand-tm {
  top: -0.1em;
  right: 0.02em;
  font-size: 0.62em;
  font-weight: 600;
  color: #6b6b6f;
}
.brand-with-tm--footer {
  padding-right: 1.25em;
  color: inherit;
}
.brand-with-tm--footer .brand-tm {
  top: -0.32em;
  right: 0;
  font-size: 0.78em;
  font-weight: 600;
  color: inherit;
  opacity: 0.72;
}
.footer-brand a {
  color: inherit;
  text-decoration: none;
}

.hero-line {
  margin: 18px 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.hero-sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
}
.hero-pitch {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.cta-group {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: min(360px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 32px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 113, 227, 0.22);
}
.btn-primary:hover {
  background: #0077ed;
  transform: scale(1.03);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 32px;
  border-radius: 980px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.seller-rules {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.65;
}
.seller-rules ul {
  margin: 8px 0 12px;
  padding-left: 1.2em;
}
.seller-upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.seller-upload-form input[type="file"] {
  flex: 1;
  min-width: 200px;
}
.seller-upload-form .btn-order {
  width: auto;
  min-width: 160px;
  margin: 0;
  grid-column: auto;
}

/* —— Shared stage —— */
.top-slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid var(--line);
}
.back {
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.top-meta { color: var(--muted); font-size: 13px; }
.buyer-nav {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.buyer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.72;
  padding: 4px 2px;
}
.buyer-nav a:hover,
.buyer-nav a.is-on,
.seller-nav a:hover,
.seller-nav a.is-on {
  opacity: 1;
  color: var(--blue);
}
.seller-nav {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.seller-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.72;
  padding: 4px 2px;
}
.seller-nav .linkish {
  font-size: 14px;
  font-weight: 500;
}
.buyer-nav .nav-cart em {
  display: inline-block;
  min-width: 1.2em;
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
}
.buyer-nav .nav-cart em.has-n {
  padding: 0 6px;
  border-radius: 980px;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
}
.buyer-nav .nav-me {
  font-weight: 600;
}
.buyer-nav .nav-me-tail {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.65;
}
.account-stat-cards a.stat-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}
.account-stat-cards a.stat-card:hover {
  transform: translateY(-2px);
}
.account-profile-list {
  max-width: 420px;
}
.promise-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 8px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  font-size: 14px;
  color: var(--ink);
}
.promise-strip strong {
  font-weight: 650;
}
.savings-box {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.savings-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink);
}
.savings-row.savings-pay {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.savings-row.savings-pay strong {
  color: var(--blue);
  font-size: 1.15em;
}
.save-off {
  color: #c41e3a !important;
}
.savings-box.has-save .save-off {
  font-weight: 700;
}
.savings-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.save-row td {
  color: var(--muted);
  font-size: 13px;
  padding-top: 4px;
}

.stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.stage.wide { max-width: 1360px; }
.page-products .stage.wide,
.page-search .stage.wide {
  max-width: 1440px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stage-title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.stage-tagline {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.stage-pitch {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.stage-desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 36em;
}

/* Stock search */
.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;
}
.stock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 28px;
  max-width: 560px;
}
.stock-search input[type="search"] {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: 16px;
  line-height: 44px;
  color: var(--ink);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.stock-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
.stock-search input[type="search"]:focus {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}
.stock-search-go {
  flex-shrink: 0;
  box-sizing: border-box;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 44px;
  cursor: pointer;
}
.stock-search-go:hover { filter: brightness(1.05); }
.stock-search-form {
  display: grid;
  grid-template-columns: 16rem max-content;
  grid-template-areas:
    "q go"
    "tools tools";
  gap: 10px 8px;
  align-items: center;
  justify-content: start;
  margin: 22px 0 28px;
  width: max-content;
  max-width: 100%;
}
.stock-search-bar {
  display: contents;
}
.stock-search-form .stock-search {
  grid-area: q;
  margin: 0;
  width: 16rem;
  max-width: 16rem;
  min-width: 0;
}
.stock-search-form .stock-search-go {
  grid-area: go;
  margin: 0;
  justify-self: start;
  width: auto;
}
.stock-search-form .stock-search-tools {
  grid-area: tools;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.stock-filter-field {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 0 0 auto;
}
.stock-filter-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}
.stock-search-filter select,
.stock-search-tools select,
.stock-search-filter input[type="number"],
.stock-search-tools input[type="number"],
.stock-search-tools input[type="text"] {
  box-sizing: border-box;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  flex: 0 0 auto;
}
.stock-search-filter select,
.stock-search-tools select {
  width: 7.25em;
  min-width: 0;
}
.stock-search-filter input[type="number"],
.stock-search-tools input[type="number"],
.stock-filter-price input[type="text"] {
  width: 4.6em;
  min-width: 0;
}
.stock-search-tools input[type="number"]::-webkit-outer-spin-button,
.stock-search-tools input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stock-search-tools input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.stock-filter-price {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.stock-filter-dash {
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}
.stock-filter-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.pcat {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.goto-cat {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
}
.goto-cat:hover { text-decoration: underline; }
.empty {
  margin: 28px 0;
  color: var(--muted);
  font-size: 16px;
}

/* Overview — search aligned with copy block */
.page-overview .overview-search {
  width: 100%;
  max-width: 36em;
  margin: 14px 0 0;
}
.page-overview .overview-search .stock-search {
  margin: 0 0 14px;
  width: 100%;
  max-width: none;
  animation: none;
  opacity: 1;
  transform: none;
}
.stat-enter {
  display: block;
  margin-top: 48px;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.stat-enter:hover { opacity: 0.85; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
}
.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.stat-cta {
  display: inline-block;
  margin-top: 28px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 500;
}

/* Merged pick home (/buyer + /categories) */
.page-pick .stage-title {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  margin-top: 6px;
}
.page-pick .stage-tagline {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.page-pick .pick-search {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 0;
}
.page-pick .pick-search .stock-search-form {
  animation: none;
  opacity: 1;
  transform: none;
}
.page-pick .pick-search .stock-search {
  margin: 0;
  width: auto;
  min-width: 0;
  max-width: none;
}
.page-pick .stock-filter-hint {
  display: none;
}
.page-pick .pick-stats {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.page-pick .pick-stats .dot {
  margin: 0 6px;
  opacity: 0.5;
}
.page-pick .stage-desc {
  margin-top: 20px;
  font-size: 15px;
}
.page-pick .contact-line {
  margin-top: 8px;
  font-size: 15px;
}
.page-pick .cat-toolbar {
  margin: 20px 0 0;
}
.page-pick .cat-list {
  margin-top: 24px;
}

/* Categories — rows, not cards */
.cat-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cat-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, padding-left 0.25s ease;
}
.cat-row:hover {
  background: rgba(255, 255, 255, 0.45);
  padding-left: 8px;
}
.cat-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.cat-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}
.cat-meta em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}
.dot { margin: 0 6px; opacity: 0.5; }
.chev { color: var(--blue); font-size: 18px; }

/* Products */
.product-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px 12px;
}
.product { min-width: 0; }
.product .thumb {
  position: relative;
}
.product.stock-half .thumb::after {
  content: var(--half-badge, "半价");
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(228, 57, 60, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}
.thumb {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.thumb-empty {
  color: var(--muted);
  font-size: 13px;
}
.pinfo { padding: 8px 6px 0; }
.pname-wrap { margin-bottom: 2px; }
.pname {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.pname-clamp {
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pname-clamp.pname-expanded {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  min-height: 0;
}
.pname-toggle {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent, #2563eb);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.pname-toggle:hover { opacity: 0.85; }
.prow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  gap: 8px;
}
.price {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qty { color: var(--muted); font-size: 13px; }
.psku {
  margin-top: 4px;
  color: #a1a1a6;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  color: var(--muted);
}
.pager a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}
.empty { color: var(--muted); margin-top: 40px; }

.contact-line {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--ink);
}
.contact-line strong {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.stage-desc.soft { margin-top: 10px; font-size: 15px; }

.has-cart { padding-bottom: 140px; }

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
}
.buy-qty {
  display: block;
  width: 100%;
}
.buy-qty-label {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.buy-qty input,
.cart-qty-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 6px;
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}
.auto-price {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  text-align: right;
  min-height: 28px;
}
.product.has-qty .auto-price {
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.06);
}
.js-full-wrap {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.js-full-price {
  text-decoration: line-through;
  margin-left: 6px;
}
.auto-price .js-line-total {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.auto-price .js-line-total.is-half {
  color: #0a7a3e;
}

.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--line);
  padding: 12px 20px 14px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.06);
}
.cart-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 14px;
  color: var(--muted);
}
.cart-stats strong { color: var(--ink); font-weight: 600; }
.cart-sum strong { color: var(--blue); font-size: 18px; }
.cart-actions { display: flex; gap: 10px; align-items: center; }
.cart-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.cart-clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.cart-note {
  max-width: 1120px;
  margin: 8px auto 0;
  font-size: 12px;
  color: var(--muted);
}

.cart-table-wrap { margin-top: 28px; overflow-x: auto; }
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  overflow: hidden;
}
.cart-table th,
.cart-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.cart-table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
}
.name-cell { max-width: 280px; line-height: 1.4; }
.stock-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.half-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  font-size: 11px;
}
.foot-total { text-align: right; font-size: 16px; }
.pack-row td {
  color: var(--muted);
  font-size: 13px;
  border-bottom: 0;
}
.linkish {
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 22px;
}
.bulk-catalog-hint {
  flex: 1 1 220px;
  margin: 0;
  font-size: 13px;
  color: var(--muted, #666);
  line-height: 1.45;
}
.btn-select-all,
.btn-clear-cat,
.btn-bulk-pack {
  border: 1px solid var(--line);
  border-radius: 980px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
}
.btn-bulk-pack {
  background: #1a3a5c;
  border-color: #1a3a5c;
  color: #fff;
}
.btn-bulk-pack:disabled {
  opacity: 0.65;
  cursor: wait;
}
.btn-select-all {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-select-all:disabled {
  opacity: 0.65;
  cursor: wait;
}
.btn-clear-cat:hover { border-color: rgba(0,0,0,0.2); }
.select-all-sum {
  font-size: 14px;
  color: var(--muted);
}
.select-all-sum strong { color: var(--ink); font-weight: 600; }
.pack-tip {
  color: var(--blue);
  font-weight: 600;
}

.checkout {
  margin-top: 36px;
  max-width: 560px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.checkout-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
}
.checkout-hint {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.checkout-hint.checkout-err {
  color: #c41e3a;
}
.checkout-hint.checkout-err a {
  color: var(--blue);
  text-decoration: underline;
}
.reg-exists-tip {
  margin: 6px 0 0;
  font-size: 13px;
}
.reg-exists-tip a {
  color: var(--blue);
  text-decoration: underline;
}
.checkout-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.checkout-form label.full { grid-column: 1 / -1; }
.checkout-form .legal-agree.full { grid-column: 1 / -1; }
.checkout-form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
}
.checkout-form .checkout-hint {
  grid-column: 1 / -1;
  margin: -4px 0 0;
}
.account-form {
  grid-template-columns: 1fr;
}
.account-form label {
  width: 100%;
}
.account-form .sms-row {
  width: 100%;
}
.account-form .btn-order {
  width: 100%;
}
.checkout-err {
  grid-column: 1 / -1;
  margin: 0;
  color: #c41e3a;
  font-size: 14px;
}
.btn-order {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 14px 20px;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.btn-order:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.legal-agree {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}
.legal-agree input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  accent-color: var(--blue);
  cursor: pointer;
}
.checkout-form label.legal-agree-text {
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
  cursor: pointer;
}
.legal-agree-text {
  flex: 1;
  min-width: 0;
}
.legal-agree-text a,
.legal-page-link {
  color: var(--blue);
  text-decoration: none;
}
.legal-agree-text a:hover,
.legal-page-link:hover {
  text-decoration: underline;
}
.stage.narrow {
  width: 100%;
  max-width: min(480px, 100%);
}
.sms-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.sms-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.account-form .sms-row .btn-sms,
.account-form .sms-row .btn-select-all {
  flex: 0 0 auto;
  min-width: 112px;
  max-width: none;
}
.btn-sms {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 10%, #fff);
  color: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sms:hover:not(:disabled) {
  background: color-mix(in srgb, var(--blue) 16%, #fff);
}
.btn-sms:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--muted);
  background: var(--surface);
}
.pwd-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}
.checkout-form .pwd-wrap > input:not([type="checkbox"]):not([type="radio"]),
.gate-form .pwd-wrap > input {
  padding-right: 52px;
}
.pwd-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.pwd-toggle:hover,
.pwd-toggle[aria-pressed="true"] {
  color: var(--blue);
}
.pwd-toggle:hover {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}
.pwd-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--blue) 35%, transparent);
  outline-offset: -2px;
}
.pwd-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pwd-toggle[aria-pressed="false"] .pwd-icon-hide,
.pwd-toggle[aria-pressed="true"] .pwd-icon-show {
  display: none;
}
.gate-form .pwd-wrap > input {
  border-radius: 980px;
  padding-right: 48px;
}
.gate-form .pwd-toggle {
  border-radius: 0 980px 980px 0;
  width: 44px;
}
.account-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.account-gate-actions .btn-order,
.account-gate-actions .btn-select-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 140px;
}
.account-gate-banner {
  margin: 8px 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
}
.account-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.inline-form {
  display: inline;
  margin: 0;
}
.pay-guide {
  margin-top: 22px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  max-width: 640px;
}
.pay-amount {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.pay-amount strong {
  font-size: 1.6rem;
  font-weight: 600;
}
.pay-pcs { color: var(--muted); font-size: 14px; }
.pay-order-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.btn-copy {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 980px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--blue);
}
.pay-countdown {
  margin: 8px 0 12px;
  color: #b45309;
  font-weight: 500;
}
.pay-countdown.is-expired { color: #c41e3a; }
.pay-steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
}
.pay-steps li { margin: 6px 0; }
.pay-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.cancel-order-form {
  margin-top: 16px;
}
.btn-cancel-order {
  width: 100%;
  max-width: 320px;
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, #c41e3a 45%, var(--line));
  border-radius: 980px;
  background: #fff;
  color: #c41e3a;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.btn-cancel-order:hover {
  background: color-mix(in srgb, #c41e3a 8%, #fff);
}
.danger-link {
  color: #c41e3a !important;
}
.manage-ops .linkish {
  margin-right: 8px;
}

.order-box { margin-top: 28px; }

.gate-plane .gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, 100%);
  margin: 28px auto 0;
}
.gate-form input {
  padding: 14px 18px;
  border-radius: 980px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 16px;
  text-align: center;
  background: var(--surface);
}
.gate-error { color: #c41e3a; margin-top: 14px; }
.gate-plane a { color: var(--muted); }

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.manage-block { margin-top: 36px; }
.manage-block h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 0 0 14px;
}
.manage-sub {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 600;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.stat-card {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.stat-card-num {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.1;
}
.stat-card-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.stats-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.stats-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-list em {
  font-style: normal;
  color: var(--muted);
  flex-shrink: 0;
}
.stats-list .muted { color: var(--muted); border: 0; }
.cart-table.compact td,
.cart-table.compact th { padding: 8px 10px; font-size: 13px; }

@media (max-width: 900px) {
  .stats-split { grid-template-columns: 1fr; }
}

.stock-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}
.stock-form input {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
}
.stock-form button {
  padding: 10px 18px;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.manage-ops form { margin-right: 8px; }

body.page-manage .lang-switch--global,
body.page-manage-login .lang-switch--global {
  display: none;
}
body.page-manage {
  scroll-padding-top: 72px;
}
.manage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 28px;
  position: sticky;
  top: 56px;
  z-index: 19;
  background: rgba(245, 245, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
}
.manage-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.manage-nav a:hover { color: var(--blue); }
.top-meta a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.top-meta a:hover { color: var(--blue); }
.manage-flash {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line));
  font-size: 14px;
}
.manage-flash.is-err {
  background: color-mix(in srgb, #c41e3a 8%, #fff);
  border-color: color-mix(in srgb, #c41e3a 28%, var(--line));
  color: #c41e3a;
}
.manage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.manage-tab {
  padding: 6px 12px;
  border-radius: 980px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.manage-tab.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.manage-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  max-width: 520px;
}
.manage-search input {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
}
.manage-search button,
.btn-manage-ok,
.btn-manage-danger {
  padding: 8px 14px;
  border: 0;
  border-radius: 980px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.manage-search button {
  background: var(--blue);
  color: #fff;
}
.btn-manage-ok {
  background: var(--blue);
  color: #fff;
}
.btn-manage-danger {
  background: #fff;
  color: #c41e3a;
  box-shadow: inset 0 0 0 1px #c41e3a;
}
.manage-note {
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0 0 12px;
}
@media (max-width: 900px) {
  .manage-nav { padding: 10px 16px; top: 52px; }
  .manage-ops { display: flex; flex-wrap: wrap; gap: 6px; }
}

.product.selected {
  outline: 1px solid rgba(0, 113, 227, 0.25);
  border-radius: 12px;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.cat-list .reveal,
.product-grid .reveal {
  animation-delay: calc(var(--i, 0) * 0.03s);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* 全选确认弹层 */
.jp-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 24, 32, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.jp-confirm-box {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.jp-confirm-msg {
  margin: 0;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.jp-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.jp-confirm-cancel,
.jp-confirm-ok {
  border: 0;
  border-radius: 980px;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
}
.jp-confirm-cancel {
  background: #eef1f5;
  color: var(--ink);
}
.jp-confirm-ok {
  background: var(--blue);
  color: #fff;
}

.lang-switch {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 40;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 980px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  white-space: nowrap;
}
body:has(.buyer-nav) .lang-switch--global,
body:has(.seller-nav) .lang-switch--global {
  display: none;
}
.buyer-nav .lang-switch--inline,
.seller-nav .lang-switch--inline {
  position: static;
  z-index: auto;
  flex-shrink: 0;
  margin-left: 6px;
  padding: 6px 10px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.65);
}
.lang-switch .lang-sep {
  margin: 0 4px;
  opacity: 0.35;
}
.lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.55;
  padding: 0 2px;
}
.lang-switch a.is-on,
.lang-switch a:hover {
  opacity: 1;
  color: var(--blue);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px 40px;
  font-size: 12px;
  color: var(--muted);
}
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-list { line-height: 1.7; color: var(--ink); padding-left: 1.2em; }
.legal-doc .stage-desc { margin-bottom: 16px; }
.legal-doc.stage {
  max-width: 720px;
  padding-bottom: 48px;
}
.legal-doc .legal-meta {
  margin: -8px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.legal-doc h2 {
  margin: 32px 0 14px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}
.legal-doc h3 {
  margin: 20px 0 10px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}
.legal-doc p {
  margin: 0 0 12px;
  line-height: 1.75;
  color: var(--ink);
  font-size: 14px;
}
.legal-doc .legal-tip {
  margin: 0 0 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--blue);
}
.legal-doc .legal-tip p:last-child { margin-bottom: 0; }
.legal-doc .legal-em {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc .legal-rule {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}
.legal-doc ol.legal-list > li,
.legal-doc ul.legal-sub > li {
  margin-bottom: 8px;
}
.legal-doc ul.legal-sub {
  margin: 8px 0 14px;
  padding-left: 1.4em;
  line-height: 1.7;
  list-style: disc;
}
.legal-doc a {
  color: var(--blue);
  text-decoration: none;
}
.legal-doc a:hover { text-decoration: underline; }
.legal-doc .legal-contact {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.legal-doc h4 {
  margin: 14px 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.legal-doc .legal-toc {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}
.sms-row { display: flex; gap: 8px; align-items: center; }
.sms-row input { flex: 1; }
.sms-hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.checkout-form select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}

@media (min-width: 721px) {
  .page-products .product-grid,
  .page-search .product-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px 10px;
  }
  .page-products .product,
  .page-search .product {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    padding-bottom: 8px;
  }
  .page-products .thumb,
  .page-search .thumb {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }
  .page-products .pinfo,
  .page-search .pinfo {
    padding: 8px 10px 0;
  }
  .page-products .psku,
  .page-search .psku {
    font-size: 10px;
    margin-top: 2px;
  }
  .page-products .buy-row,
  .page-search .buy-row {
    margin-top: 6px;
  }
  .page-products .buy-qty input,
  .page-search .buy-qty input {
    padding: 7px 2px;
    font-size: 13px;
  }
  .page-products .buy-qty input::placeholder,
  .page-search .buy-qty input::placeholder {
    font-size: 11px;
    color: #86868b;
  }
  .page-products .auto-price:empty,
  .page-search .auto-price:empty {
    display: none;
  }
  .page-products .auto-price:not(:has(.js-line-total:not(:empty))),
  .page-search .auto-price:not(:has(.js-line-total:not(:empty))) {
    min-height: 0;
    padding: 0;
    margin-top: 4px;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 720px) {
  .hero-plane {
    padding: 40px 20px max(72px, env(safe-area-inset-bottom, 0px));
  }
  .cta-group {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, calc(100% - 8px));
  }
  .page-home .cta-group .btn-primary,
  .page-home .cta-group .btn-secondary {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .stat-grid { grid-template-columns: 1fr; gap: 20px; }
  .cat-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name chev"
      "meta chev";
    align-items: center;
    gap: 4px 10px;
    padding: 14px 2px;
  }
  .cat-name {
    grid-area: name;
    font-size: 17px;
    line-height: 1.3;
  }
  .cat-meta {
    grid-area: meta;
    grid-column: auto;
    font-size: 12px;
  }
  .chev {
    grid-area: chev;
    grid-row: auto;
    align-self: center;
    font-size: 16px;
  }
  .top-slim { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .buyer-nav,
  .seller-nav {
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 13px;
    width: 100%;
    justify-content: flex-start;
  }
  .buyer-nav .lang-switch--inline,
  .seller-nav .lang-switch--inline {
    margin-left: auto;
  }
  .stage { padding: 32px 16px 64px; }
  .stock-search-form,
  .page-pick .pick-search,
  .page-overview .overview-search {
    max-width: none;
    width: 100%;
    margin: 12px 0 14px;
  }
  .stock-search-form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(29, 29, 31, 0.04);
    grid-template-columns: none;
    grid-template-areas: none;
  }
  .stock-search-bar {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 980px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
  }
  .stock-search-bar:focus-within {
    box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.45), 0 0 0 4px rgba(0, 113, 227, 0.12);
  }
  .stock-search,
  .page-pick .pick-search .stock-search,
  .page-overview .overview-search .stock-search,
  .stock-search-form .stock-search,
  .page-pick .pick-search .stock-search-form .stock-search {
    grid-area: auto;
    display: flex;
    flex: 1 1 0%;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    order: unset;
  }
  .stock-search input[type="search"],
  .page-pick .pick-search .stock-search input[type="search"],
  .page-overview .overview-search .stock-search input[type="search"],
  .stock-search-form .stock-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 16px;
    line-height: 44px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .stock-search input[type="search"]:focus {
    border: 0;
    box-shadow: none;
  }
  .stock-search input[type="search"]::placeholder,
  .page-pick .pick-search .stock-search input[type="search"]::placeholder,
  .page-overview .overview-search .stock-search input[type="search"]::placeholder {
    font-size: 14px;
  }
  .stock-search-go,
  .stock-search-form .stock-search-go {
    grid-area: auto;
    flex: 0 0 auto;
    width: auto;
    min-width: 4.2em;
    height: auto;
    align-self: stretch;
    line-height: 44px;
    font-size: 15px;
    padding: 0 16px;
    margin: 0;
    order: unset;
    border: 0;
    border-radius: 0;
  }
  .stock-search-tools,
  .stock-search-form .stock-search-tools {
    grid-area: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    flex: none;
    order: unset;
  }
  .stock-filter-field {
    width: 100%;
    flex: none;
    flex-wrap: nowrap;
  }
  .stock-filter-label {
    flex-shrink: 0;
    width: 2.2em;
  }
  .stock-search-tools select,
  .stock-search-tools input[type="number"],
  .stock-filter-price input[type="text"] {
    height: 40px;
    font-size: 16px;
  }
  .stock-search-tools select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .stock-search-tools input[type="number"],
  .stock-filter-price input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .stock-filter-price {
    padding-left: 0;
    border-left: 0;
  }
  .page-pick .stage-title {
    font-size: 1.45rem;
    margin-top: 2px;
  }
  .page-pick .stage-tagline {
    font-size: 13px;
  }
  .page-pick .pick-stats {
    font-size: 12px;
    margin-top: 8px;
  }
  .page-pick .stage-desc,
  .page-pick .contact-line {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 12px;
  }
  .page-pick .contact-line {
    margin-top: 6px;
  }
  .page-pick .cat-toolbar {
    margin-top: 14px;
  }
  .page-pick .cat-list {
    margin-top: 16px;
  }
  .page-pick .cat-toolbar .btn-bulk-pack {
    width: 100%;
    justify-content: center;
  }
  .page-search .search-intro {
    display: none;
  }
  .checkout-form { grid-template-columns: 1fr; }
  .page-account .stage.narrow,
  .page-seller .stage.narrow {
    max-width: none;
  }
  .account-form input:not([type="checkbox"]):not([type="radio"]),
  .account-form select {
    font-size: 16px;
  }
  .account-form .sms-row .btn-sms,
  .account-form .sms-row .btn-select-all {
    min-width: 104px;
    padding: 0 12px;
    font-size: 14px;
    min-height: 44px;
  }
  .page-account .legal-agree,
  .page-seller .legal-agree {
    margin: 10px 0 6px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
  }
  .page-account .legal-agree input[type="checkbox"],
  .page-seller .legal-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
  }
  .page-account .btn-order,
  .page-seller .btn-order {
    margin-top: 10px;
  }
  .cart-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-cart .cart-table thead { display: none; }
  .page-cart .cart-table,
  .page-cart .cart-table tbody,
  .page-cart .cart-table tr,
  .page-cart .cart-table td {
    display: block;
    width: 100%;
  }
  .page-cart .cart-table tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.55);
  }
  .page-cart .cart-table tfoot tr {
    border: 0;
    background: transparent;
    padding: 6px 0;
  }
  .page-cart .cart-table td {
    padding: 4px 0;
    border: 0;
  }
  .page-cart .cart-table td.name-cell {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
  }
  .page-cart .cart-table td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 4.5em;
    color: var(--muted);
    font-size: 12px;
  }
  .promise-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* 商品列表 · 手机两列（类似淘宝） */
  .page-products .stage,
  .page-search .stage {
    padding: 16px 10px 72px;
  }
  .page-products .stage-title,
  .page-search .stage-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }
  .page-products .stage-desc,
  .page-search .stage-desc {
    font-size: 12px;
    line-height: 1.45;
  }
  .page-products .stage-desc.soft {
    display: none;
  }
  .page-products .cat-toolbar,
  .page-search .cat-toolbar {
    margin-bottom: 8px;
    gap: 8px;
  }
  .page-products .cat-toolbar .btn-select-all,
  .page-products .cat-toolbar .btn-clear-cat,
  .page-search .cat-toolbar .btn-select-all,
  .page-search .cat-toolbar .btn-clear-cat {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }
  .page-products .select-all-sum,
  .page-search .select-all-sum {
    width: 100%;
    font-size: 11px;
    line-height: 1.4;
  }
  .page-search .search-bulk-hint {
    width: 100%;
    font-size: 12px;
    line-height: 1.45;
  }
  .page-products .product-grid,
  .page-search .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }
  .page-products .product,
  .page-search .product {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  .page-products .thumb,
  .page-search .thumb {
    aspect-ratio: 1;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .page-products .pinfo,
  .page-search .pinfo {
    padding: 8px 8px 10px;
  }
  .page-products .pcat,
  .page-search .pcat {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-products .pname-clamp,
  .page-search .pname-clamp {
    font-size: 12px;
    line-height: 1.35;
    min-height: 2.7em;
    -webkit-line-clamp: 2;
  }
  .page-products .prow,
  .page-search .prow {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 4px;
  }
  .page-products .price,
  .page-search .price {
    font-size: 15px;
    font-weight: 700;
    color: #e4393c;
  }
  .page-products .qty,
  .page-search .qty {
    font-size: 10px;
  }
  .page-products .psku,
  .page-search .psku {
    display: none;
  }
  .page-products .buy-row,
  .page-search .buy-row {
    margin-top: 6px;
  }
  .page-products .buy-qty input,
  .page-search .buy-qty input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 16px;
    border-radius: 8px;
  }
  .page-products .auto-price,
  .page-search .auto-price {
    margin-top: 6px;
    padding: 6px 8px;
    text-align: left;
    min-height: 0;
  }
  .page-products .auto-price .js-line-total,
  .page-search .auto-price .js-line-total {
    font-size: 13px;
  }
  .page-products .js-full-wrap,
  .page-search .js-full-wrap {
    font-size: 10px;
  }
  .page-products .pager,
  .page-search .pager {
    margin-top: 24px;
    gap: 12px;
    font-size: 14px;
  }
}

/* 滑块拼图人机验证 */
.hp-captcha-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}
.hp-captcha-box {
  position: relative;
  width: min(360px, calc(100vw - 40px));
  max-width: 360px;
  margin: 0 auto;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.hp-captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.hp-captcha-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.hp-captcha-body { padding: 16px; }
.hp-captcha-stage {
  position: relative;
  margin: 0 auto 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
}
.hp-captcha-bg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}
.hp-captcha-piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 44px;
  user-select: none;
  pointer-events: none;
}
.hp-captcha-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  min-height: 18px;
}
.hp-captcha-status.is-ok { background: rgba(34, 139, 84, 0.82); }
.hp-captcha-status.is-fail { background: rgba(196, 30, 58, 0.82); }
.hp-captcha-track {
  position: relative;
  height: 44px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  overflow: hidden;
}
.hp-captcha-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(79, 143, 217, 0.18);
  pointer-events: none;
}
.hp-captcha-track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}
.hp-captcha-knob {
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--blue);
  font-size: 18px;
  cursor: grab;
}
.hp-captcha-track.is-ok {
  border-color: #228b54;
  background: rgba(34, 139, 84, 0.08);
}
.hp-captcha-track.is-fail {
  border-color: #c41e3a;
  background: rgba(196, 30, 58, 0.06);
}
.hp-captcha-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.hp-captcha-refresh {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
body.hp-captcha-dragging {
  user-select: none;
  cursor: grabbing;
}
body.hp-captcha-dragging .hp-captcha-knob {
  cursor: grabbing;
}
