/* =====================================================================
   Crystal store — site.css
   移动优先；断点：768px（平板） / 1024px（桌面）
   ===================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink:            #12161c;
  --ink-soft:       #3a424e;
  --muted:          #6b7480;
  --line:           rgba(18, 22, 28, 0.10);
  --line-strong:    rgba(18, 22, 28, 0.18);
  --bg:             #fbfbfa;
  --surface:        #ffffff;
  --tint:           #f4f6fa;
  --accent:         #2f5d8f;
  --accent-soft:    #eaf1f9;
  --ok:             #1f7a4d;
  --warn:           #a05a12;
  --danger:         #b3261e;
  --whatsapp:       #1faa54;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(18, 22, 28, 0.05);
  --shadow:    0 12px 30px -18px rgba(18, 22, 28, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(20, 40, 80, 0.45);

  --container: 1180px;
  --gutter: 20px;
  --header-h: 62px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", sans-serif;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 4.2vw, 2rem); }
h3 { font-size: 1.0625rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.muted { color: var(--muted); }
.small { font-size: 0.8125rem; }
.req { color: var(--danger); }
.eyebrow {
  display: inline-block; margin: 0 0 14px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}

/* ---------- 3. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 52px 0; }
.section--tight { padding: 28px 0 48px; }
.section--tint { background: var(--tint); }

.section-head { margin-bottom: 26px; max-width: 62ch; }
.section-head p { color: var(--muted); margin: 0; }
.section-head--row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sub-title { margin-top: 32px; }

.page-head {
  padding: 34px 0 10px;
  background: linear-gradient(180deg, var(--tint), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-head--compact { padding-bottom: 4px; }
.page-head p { color: var(--muted); max-width: 62ch; }
.page-head--error { text-align: center; padding: 64px 0 80px; }
.error-code { font-size: 3rem; font-weight: 700; color: var(--accent); margin: 0; }

.breadcrumb { padding: 16px 0 0; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb .container { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.result-count { color: var(--muted); font-size: 0.875rem; margin: 0 0 18px; }
.empty-state {
  padding: 44px 20px; text-align: center; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.link-arrow { font-weight: 600; color: var(--accent); white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  text-align: center; transition: transform .15s ease, background .15s ease,
  border-color .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #232a34; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #189045; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn--block { width: 100%; }

/* ---------- 5. 页头与导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 251, 250, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px 3px 9px 3px;
  background: linear-gradient(150deg, #ffffff, #b9d0ea 45%, #8fa8d8);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(30, 60, 110, .8);
  transform: rotate(-6deg);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-text small { font-size: 0.6875rem; color: var(--muted); white-space: nowrap; }

.lang-switch--bar { display: none; gap: 2px; padding: 3px; background: var(--tint); border-radius: 999px; }
.lang-switch a {
  padding: 5px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--muted);
}
.lang-switch a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  width: 42px; height: 42px; display: grid; place-content: center; gap: 5px;
  padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  display: none; flex-direction: column; gap: 2px; padding: 12px var(--gutter) 24px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  padding: 13px 4px; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--line);
}
.site-nav a.is-active { color: var(--accent); }
.site-nav-cta { color: var(--accent); font-weight: 600; }
.lang-switch--inline { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.lang-switch--inline a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- 6. Hero ---------- */
.hero { padding: 36px 0 0; background: linear-gradient(180deg, #f2f6fb 0%, var(--bg) 78%); }
.hero-inner { display: grid; gap: 34px; }
.hero-copy h1 { margin-bottom: 16px; }
.hero-sub { color: var(--ink-soft); font-size: 1.0625rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 auto; min-width: 0; }

.hero-visual { position: relative; aspect-ratio: 4 / 5; max-height: 420px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.crystal-glow {
  position: absolute; inset: -8%; border-radius: 50%;
  background: radial-gradient(55% 45% at 58% 42%, rgba(110, 165, 235, .5), transparent 72%);
  filter: blur(14px);
}
.crystal-block {
  position: absolute; inset: 14% 20% 10%;
  border-radius: 20px 5px 22px 5px;
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(168,199,235,.6) 42%, rgba(128,152,205,.8));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.95);
  transform: rotate(-7deg);
}

.trust-strip {
  display: flex; gap: 10px; margin: 34px 0 0; padding: 0 0 4px;
  list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.trust-strip::-webkit-scrollbar { display: none; }
.trust-strip li {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 9px 16px; font-size: 0.8125rem; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 6px; }

/* ---------- 7. 分类 ---------- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.category-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease;
}
.category-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.category-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; }
.category-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.category-card-body strong { font-size: 0.9375rem; }
.category-card-body small { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }

/* ---------- 8. 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.product-card-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tint); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-card-title { margin: 0; font-size: 1rem; }
.product-card-title a:hover { color: var(--accent); }
.product-card-tagline {
  margin: 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
}
.product-card-foot .price { font-size: 0.8125rem; color: var(--muted); }
.product-card-foot .price strong { font-size: 1.0625rem; color: var(--ink); }

.media-fallback {
  display: block; width: 100%; height: 100%; position: relative;
  background:
    radial-gradient(45% 40% at 50% 42%, rgba(255,255,255,.9), transparent 72%),
    linear-gradient(140deg, #e2e9f4, #c4d3e9 48%, #e9e3f6);
}
.media-fallback::after {
  content: ""; position: absolute; inset: 30% 33%;
  border-radius: 8px 2px 8px 2px; transform: rotate(-6deg);
  background: linear-gradient(150deg, rgba(255,255,255,.95), rgba(150,180,220,.55));
  box-shadow: 0 18px 36px -20px rgba(30, 50, 90, .55);
}
.media-fallback--lg { min-height: 260px; }

/* ---------- 9. 产品详情 ---------- */
.product-layout { display: grid; gap: 26px; padding-top: 20px; padding-bottom: 48px; }
.gallery-main {
  aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
  flex: 0 0 68px; width: 68px; height: 68px; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.product-info h1 { margin-bottom: 8px; }
.product-tagline { color: var(--muted); font-size: 1.0625rem; }
.price-display { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; }
.price-display-value { font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; }
.price-display-note { font-size: 0.8125rem; }

.product-bullets { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 6px; }
.product-bullets li { position: relative; padding-left: 20px; font-size: 0.875rem; color: var(--ink-soft); }
.product-bullets li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px;
  border-radius: 2px; transform: rotate(45deg); background: var(--accent);
}

.spec-form { border-top: 1px solid var(--line); padding-top: 22px; }
.spec-title { font-size: 1.125rem; margin-bottom: 4px; }
.spec-hint { font-size: 0.8125rem; margin-bottom: 16px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 15px; font-size: 0.8125rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--line-strong); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.spec-group { margin: 0 0 20px; padding: 0; border: 0; }
.spec-group legend {
  padding: 0 0 10px; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.spec-options { display: grid; gap: 8px; }
.spec-option { display: block; cursor: pointer; }
.spec-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.spec-option-body {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.spec-option:hover .spec-option-body { border-color: var(--line-strong); }
.spec-option input:checked + .spec-option-body {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.spec-option input:focus-visible + .spec-option-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.spec-option-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.spec-size { font-size: 0.9375rem; }
.spec-base, .spec-sku { font-size: 0.75rem; color: var(--muted); }
.spec-option-side { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.spec-compare { color: var(--muted); font-size: 0.8125rem; }
.spec-price { font-size: 0.9375rem; }

.spec-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.qty-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qty-field span { font-size: 0.875rem; color: var(--muted); }
.qty-field input {
  width: 96px; padding: 11px 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
.spec-selected { margin: 14px 0 0; font-size: 0.875rem; }
.spec-meta {
  display: grid; gap: 0; margin: 20px 0 0; padding: 4px 0 0;
  border-top: 1px solid var(--line); font-size: 0.875rem;
}
.spec-meta div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-meta dt { color: var(--muted); }
.spec-meta dd { margin: 0; text-align: right; font-weight: 500; }

.detail-grid { display: grid; gap: 26px; }
.detail-block h2 { font-size: 1.125rem; margin-bottom: 10px; }
.detail-block p { color: var(--ink-soft); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 0.9375rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}

/* ---------- 10. 表单 ---------- */
.field-grid { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field--narrow { max-width: 150px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="search"], .field select, .field textarea,
.track-form input {
  width: 100%; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none;
}
.field input[type="file"] { padding: 10px; font-size: 0.875rem; }
.field-hint { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.field-error { color: var(--danger); font-size: 0.8125rem; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 0.8125rem; color: var(--ink-soft); }
.checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.form-note { color: var(--muted); font-size: 0.8125rem; margin: 4px 0 14px; }

/* ---------- 11. 下单页 ---------- */
.order-layout { display: grid; gap: 26px; padding-bottom: 56px; }
.form-section {
  padding: 20px 18px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.form-section h2 { font-size: 1.0625rem; margin-bottom: 16px; }
.spec-picked { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.spec-picked-media {
  width: 62px; height: 62px; flex: 0 0 62px; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--tint); border: 1px solid var(--line);
}
.spec-picked-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-picked-body { display: flex; flex-direction: column; gap: 2px; font-size: 0.9375rem; }

.order-summary {
  align-self: start; padding: 20px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.order-summary h2 { font-size: 1.0625rem; margin-bottom: 14px; }
.summary-list { display: grid; gap: 0; margin: 0; font-size: 0.875rem; }
.summary-list > div, .summary-item {
  display: flex; justify-content: space-between; gap: 14px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; font-weight: 500; }
.summary-item dt { display: flex; flex-direction: column; color: var(--ink); }
.summary-item dt small { color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.summary-total { border-bottom: 0 !important; padding-top: 14px !important; font-size: 1rem; }
.summary-total dt { color: var(--ink); font-weight: 600; }
.summary-total dd { font-size: 1.25rem; font-weight: 600; }
.summary-note { margin-top: 14px; font-size: 0.75rem; line-height: 1.6; }
.summary-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-block h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.summary-block p { font-size: 0.875rem; }

/* ---------- 12. 下单成功 ---------- */
.success-layout { display: grid; gap: 30px; }
.success-check {
  display: block; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%;
  background: var(--ok); position: relative;
}
.success-check::after {
  content: ""; position: absolute; left: 15px; top: 12px; width: 14px; height: 8px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
}
.success-main .lead { font-size: 1.0625rem; color: var(--ink-soft); }
.order-no-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 22px 0 8px; padding: 16px 18px;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.order-no-box strong { display: block; font-size: 1.25rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.order-no-box span { display: block; }

.agent-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 26px 0; padding: 18px;
  background: linear-gradient(140deg, #f2f7fb, #eef4f0);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.agent-avatar {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-content: center;
  border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 1.125rem;
}
.agent-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 140px; }
.agent-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.agent-name { font-size: 1.0625rem; }
.agent-number { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.agent-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.step-grid { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step-grid--compact { margin-top: 4px; }
.step-card {
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step-index {
  display: inline-block; margin-bottom: 6px; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.step-card p { margin: 0; font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- 12b. 付款说明（先付款后定制） ---------- */
.pay-block {
  margin: 22px 0 0; padding: 20px 18px;
  background: linear-gradient(140deg, #f7f9fc, #f2f5f9);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.pay-block h2 { font-size: 1.0625rem; margin-bottom: 4px; }
.pay-block-sub { margin: 0 0 14px; font-size: 0.8125rem; color: var(--muted); }

.pay-steps {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: grid; gap: 10px; counter-reset: pay;
}
.pay-steps li {
  position: relative; padding-left: 32px; font-size: 0.875rem; color: var(--ink-soft);
  counter-increment: pay;
}
.pay-steps li::before {
  content: counter(pay); position: absolute; left: 0; top: -1px;
  width: 21px; height: 21px; display: grid; place-content: center;
  font-size: 0.6875rem; font-weight: 700; color: #fff;
  background: var(--ink-soft); border-radius: 50%;
}
.pay-steps li.pay-step--key { color: var(--ink); font-weight: 600; }
.pay-steps li.pay-step--key::before { background: var(--accent); }

.pay-methods { margin-bottom: 14px; }
.pay-methods-label {
  display: block; margin-bottom: 7px; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.pay-methods ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.pay-methods li {
  padding: 5px 12px; font-size: 0.8125rem; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.pay-notice {
  margin: 0; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 0.8125rem; line-height: 1.6; color: var(--muted);
}

.pay-hint {
  margin: 14px 0 0; padding: 11px 14px; font-size: 0.8125rem;
  background: #fdf6ec; border: 1px solid #f0dcbc; border-radius: var(--radius-sm);
  color: #7c4a10;
}
.pay-hint--ok { background: #eef7f1; border-color: #c8e3d3; color: #14532d; }

/* ---------- 12c. PayPal 在线支付（开通时是前台的主角） ---------- */
.pay-online {
  margin: 20px 0 0; padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 45px -34px rgba(20, 40, 80, 0.6);
}
.pay-online-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.pay-online-total { display: flex; flex-direction: column; gap: 2px; }
.pay-online-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.pay-online-amount { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.pay-online-button { width: 100%; max-width: 460px; min-height: 45px; }
.pay-online-button:empty::before {
  content: ""; display: block; height: 45px; border-radius: 999px;
  background: linear-gradient(90deg, #f1f3f6, #e5e9ee, #f1f3f6);
  animation: pay-online-pulse 1.4s ease-in-out infinite;
}
@keyframes pay-online-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.pay-online-status { margin: 10px 0 0; }
.pay-online-error { margin: 10px 0 0; font-size: 0.8125rem; font-weight: 500; color: var(--danger); }
.pay-online-note { margin: 12px 0 0; line-height: 1.6; }
.pay-online-sandbox { color: var(--warn); }
.pay-online-offline { margin: 6px 0 0; }

/* 开通在线支付时，付款说明退居次要：只留流程，去掉卡片感 */
.pay-block--compact {
  margin-top: 16px; padding: 16px 0 0;
  background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0;
}
.pay-block--compact .pay-steps { margin-bottom: 0; }

/* ---------- 12d. 支付成功提示（成功浮层 + 页面横幅） ---------- */
.pay-success {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(12, 20, 34, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.22s ease;
}
.pay-success[hidden] { display: none; }
.pay-success.is-visible { opacity: 1; }

.pay-success-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  max-width: 340px; padding: 30px 28px; text-align: center;
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -30px rgba(10, 25, 55, 0.55);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.pay-success.is-visible .pay-success-card { transform: none; }

.pay-success-check {
  position: relative; width: 46px; height: 46px; margin-bottom: 8px;
  border-radius: 50%; background: var(--ok);
}
.pay-success-check::after {
  content: ""; position: absolute; left: 16px; top: 13px; width: 15px; height: 8px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg);
}
.pay-success-title { font-size: 1.125rem; }
.pay-success-text { font-size: 0.875rem; line-height: 1.6; color: var(--muted); }

.pay-success-banner {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0 0; padding: 16px 18px;
  background: #eef7f1; border: 1px solid #c8e3d3; border-radius: var(--radius);
  animation: pay-banner-in 0.32s ease both;
}
.pay-success-banner-check {
  position: relative; width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%; background: var(--ok);
}
.pay-success-banner-check::after {
  content: ""; position: absolute; left: 12px; top: 9px; width: 11px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.pay-success-banner-body { display: flex; flex-direction: column; gap: 1px; }
.pay-success-banner-body strong { font-size: 1rem; color: #14532d; }
.pay-success-banner-body span { font-size: 0.8125rem; color: #1f7a4d; }

@keyframes pay-banner-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 13. 订单查询 ---------- */
.track-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.track-form input { padding: 14px 16px; }
.order-list { display: grid; gap: 16px; margin-bottom: 40px; }
.order-card {
  padding: 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.order-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.order-card-head > div { display: flex; flex-direction: column; gap: 2px; }
.order-no { font-size: 1.0625rem; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
.order-card-items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.order-card-items li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; }
.item-name { flex: 1; display: flex; flex-direction: column; }
.item-name small { color: var(--muted); font-size: 0.75rem; }
.item-qty { color: var(--muted); white-space: nowrap; }
.item-total { font-weight: 500; white-space: nowrap; }
.order-card-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 0 0 4px; }
.order-card-meta div { display: flex; flex-direction: column; gap: 1px; }
.order-card-meta dt { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.order-card-meta dd { margin: 0; font-size: 0.875rem; font-weight: 500; word-break: break-word; }

.tracking-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  margin-top: 16px; padding: 14px 16px;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.tracking-box div { display: flex; flex-direction: column; gap: 1px; }
.tracking-box strong { font-variant-numeric: tabular-nums; }
.order-card-timeline { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.order-card-timeline summary {
  cursor: pointer; font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.order-card-timeline[open] summary { margin-bottom: 14px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 20px 26px; border-left: 1px solid var(--line); }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-dot {
  position: absolute; left: -5px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--line-strong); border: 2px solid var(--bg);
}
.timeline-dot--ok { background: var(--ok); }
.timeline-dot--info { background: var(--accent); }
.timeline-dot--accent { background: #6b5fd0; }
.timeline-dot--warn { background: var(--warn); }
.timeline-dot--muted { background: var(--muted); }
.timeline-item.is-current .timeline-dot { box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-body { display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; }
.timeline-location { color: var(--ink-soft); font-size: 0.8125rem; }
.timeline-note { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.8125rem; }
.timeline-time { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

/* ---------- 14. 联系 ---------- */
.contact-layout { display: grid; gap: 30px; }
.contact-info {
  padding: 20px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-info h2 { font-size: 1.0625rem; }
.info-list { display: grid; gap: 12px; margin: 0 0 20px; }
.info-list div { display: flex; flex-direction: column; gap: 2px; }
.info-list dt { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.info-list dd { margin: 0; font-size: 0.9375rem; word-break: break-word; }
.info-list a { color: var(--accent); }
.contact-form { display: grid; gap: 16px; }

/* ---------- 15. 提示条 ---------- */
.notice {
  padding: 16px 18px; margin: 0 0 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); font-size: 0.9375rem;
}
.notice p { margin: 0 0 8px; }
.notice--info { border-left: 3px solid var(--accent); }
.notice--ok { border-left: 3px solid var(--ok); }
.notice--warn { border-left: 3px solid var(--warn); }
.flash-stack { display: grid; gap: 10px; padding-top: 18px; }
.flash { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9375rem; border: 1px solid var(--line); }
.flash--success { background: #eef7f1; border-color: #c8e3d3; color: #14532d; }
.flash--error { background: #fdf1f0; border-color: #f0cfcc; color: #7f1d1d; }

.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
  background: var(--tint); color: var(--ink-soft); border: 1px solid var(--line);
}
.badge--ok { background: #eef7f1; border-color: #c8e3d3; color: #14532d; }
.badge--info { background: var(--accent-soft); border-color: #cfe0f1; color: #1d4468; }
.badge--accent { background: #efedfb; border-color: #d9d5f3; color: #3b307a; }
.badge--warn { background: #fdf4e9; border-color: #f0dcbc; color: #7c4a10; }
.badge--muted { background: var(--tint); color: var(--muted); }

/* ---------- 16. CTA / 页脚 ---------- */
.cta-band { padding: 44px 0; background: var(--ink); color: #fff; }
.cta-band-inner { display: flex; flex-direction: column; gap: 20px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .72); margin: 0; max-width: 52ch; }
.cta-band .btn--primary { background: #fff; color: var(--ink); }
.cta-band .btn--primary:hover { background: #eef1f5; }
.about-grid { display: grid; gap: 24px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.why-list li { padding-left: 20px; position: relative; font-size: 0.9375rem; color: var(--ink-soft); }
.why-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }

.site-footer { padding: 44px 0 28px; background: var(--tint); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 28px; }
.brand--footer { margin-bottom: 10px; }
.footer-tagline { font-size: 0.875rem; color: var(--ink-soft); max-width: 34ch; }
.footer-note { font-size: 0.75rem; color: var(--muted); max-width: 36ch; }
.footer-col h3 {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.875rem; }
.footer-col a:hover { text-decoration: underline; }
.social-list { margin-top: 12px !important; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 0.75rem; color: var(--muted);
}

/* ---------- 17. 响应式 ---------- */
@media (min-width: 560px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .track-form { flex-direction: row; }
  .track-form input { flex: 1; }
  .agent-actions { flex-direction: row; width: auto; }
}

@media (min-width: 860px) {
  :root { --gutter: 28px; --header-h: 72px; }
  .section { padding: 72px 0; }
  .section--tight { padding: 36px 0 64px; }
  .page-head { padding: 46px 0 18px; }

  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 4px;
    padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible;
    max-height: none;
  }
  .site-nav a { padding: 8px 12px; font-size: 0.9375rem; border-bottom: 0; border-radius: 999px; }
  .site-nav a:hover { background: var(--tint); }
  .site-nav-cta { margin-left: 6px; padding: 9px 18px !important; background: var(--ink); color: #fff !important; }
  .site-nav-cta:hover { background: #232a34; }
  .lang-switch--inline { display: none; }
  .lang-switch--bar { display: flex; }

  .hero { padding: 64px 0 0; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 50px; }
  .hero-visual { aspect-ratio: 5 / 4; max-height: none; }

  .product-layout { grid-template-columns: 1.05fr 1fr; gap: 46px; padding-top: 28px; padding-bottom: 72px; }
  .product-layout .product-info { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .spec-actions { flex-direction: row; align-items: center; }
  .spec-actions .btn--block { width: auto; flex: 1; }

  .order-layout { grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
  .order-summary { position: sticky; top: calc(var(--header-h) + 20px); }
  .success-layout { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
  .contact-layout { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
  .detail-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
  .order-card-meta { grid-template-columns: repeat(4, 1fr); }
  .step-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
  .footer-bottom { display: flex; justify-content: space-between; }
}

@media (min-width: 1100px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* 打印：隐藏导航与 CTA，方便用户保存订单 */
@media print {
  .site-header, .site-footer, .cta-band, .hero-actions, .btn { display: none !important; }
  body { background: #fff; }
}
