/* ==========================================================================
   wehave.uk · shop.outdoor — 全站样式（L1 装配层，模块 18/19 协作）
   设计语言：高端自然风 — 深林绿主色 + 铜金点缀 + 暖米白底，8pt 间距系统。
   响应式断点：1024 / 768 / 480。所有 L2 页面模块类名在此对齐。
   ========================================================================== */

:root {
  /* 色彩系统 */
  --color-bg: #f7f4ee;
  --color-surface: #fffdf9;
  --color-surface-alt: #efe9dc;
  --color-primary: #1a3c34;
  --color-primary-dark: #122b25;
  --color-primary-soft: #2c554a;
  --color-accent: #b0793a;
  --color-accent-soft: #e8d9c3;
  --color-text: #2b2b26;
  --color-text-muted: #6b6a60;
  --color-border: #e2dccd;
  --color-error: #a33a2a;
  --color-error-bg: #f9e9e5;
  --color-success: #2e6b4f;
  --color-success-bg: #e7f0e9;
  --color-overlay: rgba(18, 43, 37, 0.55);

  /* 8pt 间距 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;

  /* 圆角 / 阴影 / 版心 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(27, 43, 38, 0.08);
  --shadow-md: 0 6px 18px rgba(27, 43, 38, 0.12);
  --container: 1200px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

/* ---------- 基础 ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.25;
  margin: 0 0 var(--space-2);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 var(--space-2); }

a {
  color: var(--color-primary-soft);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

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

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

/* 表单基元（漏斗 / 筛选器 / 账户 / 后台共用） */

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

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

/* ---------- 通用组件 ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-primary);
  color: #f4efe4;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-primary);
  color: #f4efe4;
}

button[type="button"] {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

button[type="button"]:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-accent);
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.section-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.section-desc {
  max-width: 640px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.lazy-skeleton {
  background: linear-gradient(100deg, var(--color-surface-alt) 40%, #f8f5ee 50%, var(--color-surface-alt) 60%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.4s ease infinite;
}

@keyframes skeleton-wave {
  to { background-position: -200% 0; }
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-text);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

.nav-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-lang {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  min-width: 64px;
}

.nav-account {
  position: relative;
  color: var(--color-primary);
  font-weight: 600;
}

.nav-badge {
  display: inline-block;
  min-width: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
}

/* ---------- 版心 ---------- */

#app {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3) var(--space-8);
  min-height: 60vh;
}

.boot-error {
  color: var(--color-error);
  font-weight: 600;
}

/* ---------- 全站背景与鼠标焦点光斑（background-focus.js 协作） ---------- */

/* 静态底图层：增强处理后的 hero 背景（z-index -2，位于内容之下，index.html 预置） */
.site-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/res/background/background-hero.jpg') center / cover no-repeat var(--color-primary-dark);
}

/* 焦点层：仅承载光斑，永不拦截交互 */
.background-focus-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* 光斑：底图的羽化圆形副本，亮度/饱和度静态增强（filter 烘焙，不逐帧变化）；
   mask 渐变羽化：closest-side 使 100% 恰为可见圆边（circle 默认 farthest-corner
   会导致渐变半径越过元素、边缘 alpha 未衰减完而呈硬边），多停靠点形成长尾羽化 */
.background-focus-spot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  overflow: hidden;
  opacity: 1;
  filter: brightness(1.28) saturate(1.5);
  transition: opacity 0.45s ease;
  will-change: transform;
  -webkit-mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.95) 38%, rgba(0, 0, 0, 0.6) 62%, rgba(0, 0, 0, 0.22) 82%, transparent 100%);
  mask-image: radial-gradient(closest-side, rgba(0, 0, 0, 0.95) 38%, rgba(0, 0, 0, 0.6) 62%, rgba(0, 0, 0, 0.22) 82%, transparent 100%);
}

/* 空闲/离场态：光斑淡出（opacity 合成器动画） */
.background-focus-idle {
  opacity: 0;
}

/* 底图副本：与 .site-background 同尺寸同定位，反向平移保持像素对齐 */
.background-focus-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('/res/background/background-hero.jpg') center / cover no-repeat;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {

  .background-focus-layer,
  .background-focus-spot {
    display: none;
  }
}

/* ---------- 首页（FR-001 五分区） ---------- */

.home-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-7);
  background: rgba(18, 43, 37, 0.5);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-overlay {
  position: relative;
  max-width: 720px;
  padding: var(--space-7) var(--space-3);
  background: linear-gradient(180deg, rgba(18, 43, 37, 0.25), var(--color-overlay));
  color: #f4efe4;
}

.hero-title {
  color: #fff;
  font-size: 2.6rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #e8e0cf;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-ghost {
  color: #f4efe4;
  border-color: #f4efe4;
}

.hero-actions .btn-ghost:hover {
  background: rgba(244, 239, 228, 0.15);
}

.category-section,
.custom-section,
.content-section,
.testimonial-section {
  margin-bottom: var(--space-7);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.category-card {
  display: block;
  padding: var(--space-4) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.category-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
}

.category-title { margin-bottom: var(--space-1); }

.category-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* 首页白色面板 50% 透明：透出全站背景图（仅限首页作用域，不影响其他页面的 content-card） */
.home-page .category-card,
.home-page .step,
.home-page .content-card {
  background: rgba(255, 253, 249, 0.5);
  backdrop-filter: blur(4px);
}

.steps {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  counter-reset: step;
}

.step {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.step h3 { font-size: 1.05rem; margin-bottom: var(--space-1); }
.step p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

.step-index {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #f4efe4;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 首页页脚（联系邮箱） ---------- */

.home-footer {
  padding: var(--space-4) 0 var(--space-2);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.home-footer-contact {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.home-footer-mail {
  color: var(--color-primary);
  font-weight: 600;
}

.home-footer-mail:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ---------- 装备列表（模块 11） ---------- */

.gear-browser { display: block; }

.gear-page-title { margin-bottom: var(--space-2); }

.gear-compare-hint {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

.gear-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: end;
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.gear-filters label,
.gear-filters legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.gear-filters fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: end;
}

.gear-filters fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
  color: var(--color-text);
}

.gear-filters fieldset label span {
  font-size: 0.95rem;
}

.gear-filters select { width: auto; min-width: 160px; }

.gear-grid {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.gear-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gear-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gear-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-alt);
}

.gear-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gear-badge {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.gear-card-name { margin: var(--space-2) var(--space-2) var(--space-1); font-size: 1.15rem; }

.gear-card-price,
.gear-price {
  margin: 0 var(--space-2) var(--space-2);
  font-weight: 700;
  color: var(--color-primary);
}

.gear-price-custom {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.gear-card-actions {
  margin-top: auto;
  display: flex;
  gap: var(--space-1);
  padding: 0 var(--space-2) var(--space-2);
}

.gear-card-actions button {
  flex: 1;
  font-size: 0.85rem;
}

.gear-card-actions button[aria-pressed="true"] {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

.gear-loading,
.gear-empty,
.gear-error,
.compare-empty,
.compare-error,
.compare-loading,
.content-error,
.account-error,
.admin-error,
.detail-loading,
.detail-error,
.detail-notfound {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-text-muted);
}

.gear-error,
.compare-error,
.content-error,
.account-error,
.admin-error,
.detail-error,
.funnel-error,
.funnel-submit-error {
  border-color: var(--color-error);
  background: var(--color-error-bg);
  color: var(--color-error);
}

.gear-pagination,
.content-pagination,
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* ---------- 装备详情（模块 12） ---------- */

.gear-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
}

.detail-gallery { display: block; }

.detail-gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-alt);
  margin-bottom: var(--space-2);
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-gallery-thumbs {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.detail-thumb {
  width: 72px;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
}

.detail-thumb[aria-current="true"] {
  border-color: var(--color-accent);
}

.detail-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.detail-category {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.detail-name { font-size: 2.2rem; }

.detail-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}

.detail-price-custom .detail-custom-from {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.detail-price-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.detail-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-3) 0;
}

.detail-cta {
  background: var(--color-primary);
  color: #f4efe4;
  border-color: var(--color-primary);
}

.detail-cta:hover {
  background: var(--color-primary-dark);
}

.detail-specs,
.detail-custom-options,
.detail-related,
.content-related {
  grid-column: 1 / -1;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.detail-specs-table,
.account-leads-table,
.admin-leads-table,
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-specs-table th,
.detail-specs-table td,
.account-leads-table th,
.account-leads-table td,
.admin-leads-table th,
.admin-leads-table td,
.compare-table th,
.compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.detail-specs-table th { width: 32%; color: var(--color-text-muted); }

.detail-custom-options dl,
.detail-option {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-1) var(--space-3);
  margin: 0;
}

.detail-option dt { font-weight: 600; color: var(--color-text-muted); }

.detail-related-list,
.content-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- 对比工具（模块 13） ---------- */

#compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
}

.compare-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary);
  color: #f4efe4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.compare-bar button { background: rgba(244, 239, 228, 0.12); border-color: rgba(244, 239, 228, 0.4); color: #f4efe4; }

.compare-table { background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; }

.compare-dimension-col { width: 24%; color: var(--color-text-muted); font-weight: 600; }

.compare-item-name { font-family: var(--font-display); font-size: 1.05rem; }

.compare-item-price { color: var(--color-primary); font-weight: 700; }

.compare-cell-missing { color: var(--color-text-muted); font-style: italic; }

/* ---------- 定制漏斗（模块 14） ---------- */

.funnel-form {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.funnel-field { margin-bottom: var(--space-3); }

.funnel-field label,
.funnel-field legend {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.funnel-field fieldset,
.funnel-field fieldset legend { padding: 0; }

.funnel-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 var(--space-2) var(--space-1) 0;
  font-weight: 400;
  cursor: pointer;
}

.funnel-option input { width: auto; }

.funnel-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.funnel-actions button[type="button"] { min-width: 120px; }

.funnel-notice,
.funnel-sla,
.account-notice,
.account-hint {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.funnel-success {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-success-bg);
  color: var(--color-success);
  text-align: center;
}

.funnel-error,
.funnel-submit-error {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

/* ---------- 内容中心（模块 15） ---------- */

.content-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.content-card {
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.content-card h2 { font-size: 1.25rem; }

.content-summary { color: var(--color-text-muted); }

.content-meta {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.content-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
}

.content-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.content-body { margin: var(--space-3) 0; }

.content-body img { border-radius: var(--radius-md); margin: var(--space-2) 0; }

.content-body h2, .content-body h3 { margin-top: var(--space-4); }

.content-cta { margin-top: var(--space-4); }

.content-related h2 { font-size: 1.2rem; }

.content-carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.carousel-track { position: relative; }

.carousel-slide blockquote {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
}

.carousel-slide figcaption { color: var(--color-text-muted); }

.content-carousel > button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.content-carousel > button:first-of-type { left: var(--space-1); }
.content-carousel > button:not(:first-of-type):not(.carousel-dot) { right: var(--space-1); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-border);
}

.carousel-dot[aria-current="true"] { background: var(--color-accent); }

/* ---------- 账户中心（模块 16） ---------- */

.account-auth,
.account-center {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.account-switch {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.account-switch button[aria-current="page"],
.admin-menu button[aria-current="page"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #f4efe4;
}

.account-section {
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.account-wishlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.account-leads-table,
.admin-leads-table { background: var(--color-surface); }

.lead-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* ---------- 管理后台（模块 17） ---------- */

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.admin-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: var(--space-3);
}

.admin-filters label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.admin-filters select { width: auto; }

.admin-leads { overflow-x: auto; }

/* ---------- 静态页（定制服务 / 404） ---------- */

.custom-page,
.not-found {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.custom-page .steps { text-align: left; }

/* ---------- toast ---------- */

.toast-root {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-6);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.toast {
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary-dark);
  color: #f4efe4;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  animation: toast-in 0.25s ease;
}

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

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .gear-detail { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .content-list { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-menu { flex-direction: row; flex-wrap: wrap; }
  .detail-custom-options dl,
  .detail-option { grid-template-columns: 1fr; }
  .site-nav { justify-content: center; }
  .nav-tools { margin-left: 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .detail-name { font-size: 1.6rem; }
  .hero-title { font-size: 1.7rem; }
  .hero-overlay { padding: var(--space-5) var(--space-2); }
  .category-grid,
  .gear-grid { grid-template-columns: 1fr; }
  #app { padding-left: var(--space-2); padding-right: var(--space-2); }
  .funnel-actions { flex-direction: column-reverse; }
  .funnel-actions button { width: 100%; }
}

/* ---------- 动效降级 ---------- */

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