/* ==========================================================================
   DailyCraft — storefront stylesheet
   设计基调：暖白纸感底色 + 墨绿文字 + 赤陶强调色；移动端优先。
   ========================================================================== */

:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --surface-soft: #f3eee4;
  --ink: #16201c;
  --ink-soft: #3c453f;
  --muted: #6d7368;
  --line: #e2dccf;
  --line-strong: #cfc7b6;
  --accent: #b4432c;
  --accent-dark: #93341f;
  --accent-soft: #f6e7e0;
  --sage: #2f4a3e;
  --sage-soft: #e7eee9;
  --gold: #b9892f;
  --success: #2f6a4a;
  --warning: #9a6a12;
  --danger: #a5332a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 32, 28, 0.06);
  --shadow-md: 0 12px 30px rgba(22, 32, 28, 0.08);
  --font: "Segoe UI", "Helvetica Neue", "Noto Sans SC", Arial, sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; }

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

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

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

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

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- 公告条 + 页头 ---------- */
.announce {
  background: var(--ink);
  color: #f4efe4;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 9px 20px;
}
.announce strong { color: #f3c9a6; font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo .logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.main-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  flex: 1;
}
.main-nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--accent); color: var(--ink); }

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

.lang-toggle {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lang-toggle:hover { background: var(--surface); border-color: var(--ink); }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  background: var(--ink);
  color: #f7f3ea;
  transition: background 0.15s ease;
}
.cart-link:hover { background: var(--sage); color: #fff; }
.cart-count {
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #f6f1e7; }
.btn-dark:hover { background: var(--sage); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-text { background: transparent; color: var(--ink-soft); padding: 8px 12px; }
.btn-text:hover { color: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- 首页 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 70px 0 64px;
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  max-width: 12ch;
}
.hero p {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 16.5px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-media {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-meta strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }

/* ---------- 信任条 ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 34px 0;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--sage);
}
.trust-item h3 { font-size: 14px; margin-bottom: 4px; }
.trust-item p { font-size: 12.8px; color: var(--muted); line-height: 1.5; }

/* ---------- 区块标题 ---------- */
.section { padding: 72px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head .eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.section-head .link-more {
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-head .link-more:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 分类卡 ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 4 / 3;
  display: block;
}
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-tile:hover img { transform: scale(1.035); }
.category-tile .tile-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(250, 247, 241, 0.94);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tile-label strong { font-size: 14.5px; }
.tile-label span { font-size: 11.5px; color: var(--muted); }

/* ---------- 商品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.product-card { position: relative; display: flex; flex-direction: column; }
.product-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 4 / 5;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.badge.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.product-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; }
.product-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-title { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.product-title a:hover { color: var(--accent); }
.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}
.price-compare { font-size: 12.5px; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.product-rating { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.stars { color: var(--gold); letter-spacing: 1px; }
.stock-low { color: var(--warning); font-size: 12px; }

/* ---------- 列表页 ---------- */
.page-head {
  padding: 54px 0 28px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #f6f1e7; }

.sort-select {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 34px 8px 16px;
  font-size: 13px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236d7368'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.result-count { font-size: 13px; color: var(--muted); }

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 48px 0 8px;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.page-btn:hover { border-color: var(--ink); }
.page-btn.active { background: var(--ink); color: #f6f1e7; border-color: var(--ink); }
.page-btn[disabled] { opacity: 0.35; cursor: default; }

.empty-state {
  text-align: center;
  padding: 72px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

/* ---------- 商品详情 ---------- */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 24px 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }

.pdp {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 56px;
  padding-bottom: 24px;
}
.gallery-main {
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 4 / 5;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--accent); }

.pdp-info { padding-top: 6px; }
.pdp-info .product-meta { margin-bottom: 10px; }
.pdp-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
.pdp-rating { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.pdp-price .price { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.pdp-price .price-compare { font-size: 14px; }
.pdp-save { font-size: 12px; background: var(--accent-soft); color: var(--accent-dark); padding: 3px 9px; border-radius: 999px; }

.pdp-blurb { margin-top: 18px; color: var(--ink-soft); max-width: 50ch; }

.option-group { margin-top: 24px; }
.option-label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
}
.option-label strong { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 12.5px; }
.option-values { display: flex; gap: 8px; flex-wrap: wrap; }
.option-pill {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
}
.option-pill:hover { border-color: var(--ink); }
.option-pill.active { border-color: var(--ink); background: var(--ink); color: #f6f1e7; }

.qty-row { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.stepper button {
  width: 38px;
  height: 42px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink-soft);
}
.stepper button:hover { background: var(--surface-soft); color: var(--ink); }
.stepper input {
  width: 44px;
  height: 42px;
  border: 0;
  text-align: center;
  background: transparent;
  font-size: 14px;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.purchase-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; max-width: 380px; }
.cta-note { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }

.info-panel {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.info-row { border-bottom: 1px solid var(--line); }
.info-row summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.info-row summary::-webkit-details-marker { display: none; }
.info-row summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 17px; }
.info-row[open] summary::after { content: "−"; }
.info-body { padding: 0 0 18px; font-size: 13.5px; color: var(--ink-soft); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th { text-align: left; font-weight: 600; color: var(--muted); width: 38%; padding: 6px 0; vertical-align: top; }
.spec-table td { padding: 6px 0; }

/* ---------- 购物车 ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 14px 0 40px;
}
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-line img { width: 96px; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; background: var(--surface-soft); }
.cart-line-info h3 { font-size: 15px; margin-bottom: 4px; }
.cart-line-info .variant { font-size: 12.5px; color: var(--muted); }
.cart-line-controls { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.cart-line-controls .stepper button { width: 32px; height: 36px; }
.cart-line-controls .stepper input { width: 36px; height: 36px; }
.link-danger { border: 0; background: transparent; font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link-danger:hover { color: var(--danger); }
.cart-line-price { font-weight: 600; font-size: 15px; text-align: right; }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 98px;
}
.summary-card h2 { font-size: 16px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; padding: 7px 0; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-size: 16px; font-weight: 650; color: var(--ink); }
.summary-row.discount { color: var(--success); }
.ship-meter { margin: 14px 0 4px; }
.meter-track { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter-fill { height: 100%; background: var(--sage); width: 0; transition: width 0.4s ease; }
.meter-text { font-size: 12px; color: var(--muted); margin-top: 8px; }

.discount-form { display: flex; gap: 8px; margin: 18px 0 6px; }
.discount-form input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  background: var(--bg);
  min-width: 0;
}
.discount-form input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.discount-hint { font-size: 11.5px; color: var(--muted); }
.discount-applied { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--success); margin-top: 6px; }

/* ---------- 结算 ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding: 16px 0 40px;
  align-items: start;
}
.checkout-section { padding: 24px 0 8px; border-bottom: 1px solid var(--line); }
.checkout-section:last-of-type { border-bottom: 0; }
.checkout-section h2 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.step-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  background: var(--surface);
  width: 100%;
  min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 84px; }
.field-error { font-size: 11.5px; color: var(--danger); min-height: 0; }

.ship-options { display: flex; flex-direction: column; gap: 10px; }
.ship-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--surface);
  cursor: pointer;
}
.ship-option:has(input:checked) { border-color: var(--ink); background: var(--surface-soft); }
.ship-option input { accent-color: var(--accent); }
.ship-option-text { flex: 1; }
.ship-option-text strong { display: block; font-size: 13.5px; }
.ship-option-text span { font-size: 12px; color: var(--muted); }
.ship-price { font-size: 13.5px; font-weight: 600; white-space: nowrap; }

.pay-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--sage-soft);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 12.8px;
  color: var(--ink-soft);
}
.pay-note strong { display: block; color: var(--ink); font-size: 13px; }
.pay-note.pay-blocked { background: #fdeeea; color: #7a2d1c; }
.pay-note.pay-blocked strong { color: #7a2d1c; }

/* ---------- PayPal 支付 ---------- */
.pp-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  background: #fff;
  border: 1px solid #e3dcd2;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12.5px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  color: #003087;
  white-space: nowrap;
}
.pp-badge span { color: #009cde; }
.pay-secure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11.8px;
  color: var(--muted);
}
.pay-secure a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pay-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pay-badge-row a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pay-panel .pay-secure { margin-top: 10px; }

/* 站内支付页 */
.pay-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 34px 0 60px;
}
.pay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.pay-card h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 6px 0 18px; }
.pay-lead { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.paypal-buttons { max-width: 420px; min-height: 52px; margin-bottom: 14px; }
.pp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffc439;
  color: #14202b;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  padding: 14px 22px;
}
.pp-button:hover { background: #f2b52c; }
.pp-button .pp-badge { border-color: transparent; }
.pay-fine { font-size: 11.8px; color: var(--muted); line-height: 1.6; margin: 16px 0 8px; }
.pay-status { font-size: 13px; color: var(--sage); margin: 4px 0 10px; }

/* 支付与收款说明页 */
.payinfo-wrap { max-width: 900px; padding: 30px 0 70px; }
.payinfo-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.payinfo-chip {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--muted);
}
.payinfo-wrap h2 { font-size: 17px; margin: 34px 0 14px; }
.payinfo-steps { list-style: none; margin: 0; padding: 0; }
.payinfo-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.payinfo-num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; padding-top: 2px; }
.payinfo-step strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.payinfo-step p { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
.payinfo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.payinfo-list { padding-left: 18px; }
.payinfo-list li { font-size: 13px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 8px; }
.payinfo-cta {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.payinfo-cta p { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.line-mini {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  align-items: center;
}
.line-mini img { width: 46px; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; background: var(--surface-soft); }
.line-mini-info { flex: 1; min-width: 0; }
.line-mini-info strong { display: block; font-weight: 600; font-size: 13px; line-height: 1.35; }
.line-mini-info span { color: var(--muted); font-size: 11.5px; }

.form-error {
  display: none;
  background: #fbecea;
  border: 1px solid #e8c2bb;
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  margin: 16px 0;
}
.form-error.show { display: block; }

/* ---------- 订单确认 ---------- */
.order-hero {
  text-align: center;
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
}
.status-mark {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 30px;
  background: var(--sage-soft);
  color: var(--success);
}
.status-mark.warn { background: #fdf1dd; color: var(--warning); }
.status-mark.bad { background: #fbecea; color: var(--danger); }
.order-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.order-hero p { color: var(--muted); margin-top: 12px; }
.order-no { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-soft); margin-top: 10px; }

.order-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 44px;
  padding: 40px 0 60px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 15px; margin-bottom: 16px; }
.order-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.order-item:last-child { border-bottom: 0; }
.order-item img { width: 56px; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; background: var(--surface-soft); }
.order-item .oi-name { flex: 1; font-size: 13.5px; line-height: 1.4; }
.order-item .oi-name span { display: block; color: var(--muted); font-size: 11.5px; }
.order-item .oi-price { font-size: 13.5px; font-weight: 600; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}
.status-badge.paid { background: var(--sage-soft); color: var(--success); }
.status-badge.pending_payment, .status-badge.created { background: #fdf1dd; color: var(--warning); }
.status-badge.failed, .status-badge.canceled { background: #fbecea; color: var(--danger); }
.status-badge.refunded { background: #eef0f3; color: #4a5568; }

.address-block { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.address-block strong { color: var(--ink); display: block; }

.timeline { margin-top: 6px; }
.timeline-item { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-top: 7px; flex: none; }
.timeline-item.active .timeline-dot { background: var(--accent); }
.timeline-item.active { color: var(--ink); }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }

/* ---------- 订单查询 / 联系 ---------- */
.lookup-wrap { max-width: 620px; margin: 0 auto; padding: 48px 0 72px; }
.lookup-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.lookup-card h2 { font-size: 18px; margin-bottom: 8px; }
.lookup-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.lookup-form { display: grid; gap: 14px; }
.lookup-result { margin-top: 26px; }

/* ---------- 政策页 ---------- */
.policy-layout { display: grid; grid-template-columns: 220px 1fr; gap: 60px; padding: 46px 0 80px; align-items: start; }
.policy-nav { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.policy-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); }
.policy-nav a:hover { background: var(--surface); color: var(--ink); }
.policy-nav a.active { background: var(--ink); color: #f6f1e7; }
.policy-content { max-width: 76ch; }
.policy-content h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.policy-content .updated { font-size: 12px; color: var(--muted); margin-bottom: 30px; letter-spacing: 0.04em; }
.policy-content h2 { font-size: 17px; margin: 34px 0 10px; }
.policy-content p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.policy-content ul { font-size: 14.5px; color: var(--ink-soft); padding-left: 20px; margin: 0 0 16px; }
.policy-content li { margin-bottom: 6px; }
.policy-content .callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 13.5px;
  margin: 20px 0;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-bottom: 18px; font-size: 14px; color: var(--ink-soft); max-width: 70ch; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0 72px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-list { display: grid; gap: 18px; margin-top: 18px; }
.contact-list div span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list div strong { font-size: 14.5px; font-weight: 600; }
.contact-note { margin-top: 20px; font-size: 12px; color: var(--muted); line-height: 1.65; }
.form-ok {
  font-size: 13px;
  color: var(--success);
  background: var(--sage-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.muted { color: var(--muted); }
.btn-small { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

/* ---------- 常见问题 / 404 / 后台补充 ---------- */
.faq-wrap { max-width: 800px; padding: 34px 0 72px; }
.faq-more { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.faq-more p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }

.notfound { padding: 90px 0 100px; max-width: 640px; text-align: center; }
.notfound-code { font-size: clamp(3rem, 8vw, 5rem); letter-spacing: 0.1em; color: var(--accent); font-weight: 700; line-height: 1; }
.notfound h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 14px; }
.notfound p { color: var(--muted); margin-top: 10px; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-actions { white-space: nowrap; }
.admin-actions .btn + .btn { margin-left: 6px; }
.admin-empty { text-align: center; color: var(--muted); padding: 24px 0; }
.admin-hint { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.admin-summary { font-size: 12px; color: var(--muted); }
.admin-detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; margin-top: 18px; }
.gateway-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.editorial-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd4cc;
  margin-top: 40px;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .logo { color: #f6f1e7; }
.footer-brand p { font-size: 13px; margin-top: 14px; max-width: 32ch; color: #a8b1a9; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f6f1e7;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a { display: block; font-size: 12.8px; padding: 5px 0; color: #a8b1a9; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-size: 11.5px;
  color: #868f87;
  flex-wrap: wrap;
  align-items: center;
}
.pay-chips { display: flex; gap: 8px; }
.pay-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #dfe4dd;
}

/* ---------- 管理页 ---------- */
.admin-page { padding: 40px 0 72px; }
.admin-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.admin-bar input {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  min-width: 220px;
  background: var(--surface);
}
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 12.5px; }
.admin-table th { text-align: left; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: #fcf9f3; }
.admin-table .mono { font-size: 12px; }
.admin-detail { margin-top: 24px; }
.admin-messages { margin-top: 34px; }
.msg-row { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.msg-row span { color: var(--muted); font-size: 11.5px; }

/* ---------- mock 支付页 ---------- */
.gateway-body { background: #eef0ea; display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.gateway { width: 100%; max-width: 460px; }
.gateway-card { background: var(--surface); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-md); }
.gateway-brand { font-size: 12px; letter-spacing: 0.14em; font-weight: 700; }
.gateway-brand span { color: var(--muted); font-weight: 400; }
.gateway-kicker { font-size: 10.5px; letter-spacing: 0.14em; color: var(--accent); margin-top: 18px; }
.gateway-card h1 { font-size: 24px; margin-top: 8px; }
.gateway-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.gateway-summary { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 22px 0; padding: 14px 0; }
.gateway-summary div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding: 4px 0; }
.gateway-summary div span { color: var(--muted); }
.gateway-total strong { font-size: 18px; }
.gateway-actions { display: grid; gap: 10px; }
.gateway-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 18px; line-height: 1.7; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #f7f3ea;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { gap: 36px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 2 / 4; }
}

@media (max-width: 860px) {
  .container { padding: 0 20px; }
  .header-inner { height: 64px; gap: 14px; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 40px 0 36px; gap: 28px; }
  .hero h1 { max-width: none; font-size: clamp(2rem, 7vw, 2.9rem); }
  .hero-media { order: -1; aspect-ratio: 4 / 3; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 22px; padding: 26px 0; }
  .category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .section { padding: 48px 0; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .cart-layout, .checkout-layout, .order-layout, .pay-layout { grid-template-columns: 1fr; gap: 28px; }
  .payinfo-grid { grid-template-columns: 1fr; gap: 6px; }
  .summary-card { position: static; }
  .policy-layout { grid-template-columns: 1fr; gap: 24px; }
  .policy-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; gap: 26px; }
  .admin-detail-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .product-grid { gap: 22px 12px; }
  .product-title { font-size: 14px; }
  .hero-actions .btn { flex: 1; }
  .cart-line { grid-template-columns: 74px 1fr; }
  .cart-line img { width: 74px; }
  .cart-line-price { grid-column: 2; text-align: left; }
  .trust-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .admin-table { font-size: 11.5px; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
}
