/* =========================================================
   MAISON LUXE · 前台样式（移动优先）
   ========================================================= */
:root {
  --ink: #0c0c0d;
  --ink-soft: #19191c;
  --paper: #ffffff;
  --sand: #f7f4ee;
  --sand-2: #efe8dc;
  --gold: #c2a26a;
  --gold-deep: #9d7f3f;
  --line: #e6dfd3;
  --muted: #8b8377;
  --danger: #b0433a;
  --ok: #2f7a58;
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Inter", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
  --header-h: 58px;
  --tab-h: 64px;
  --r: 16px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; }
.ok { color: var(--ok); }
.text-warn { color: #b07818; font-weight: 600; }
.ta-right { text-align: right; }

.eyebrow {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 6px;
}

.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 12, 13, .96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}
.h-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  margin-right: auto;
}
.brand-main {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .2em;
  line-height: 1;
}
.brand-line { width: 14px; height: 1px; background: var(--gold); }
.brand-sub {
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--gold);
  line-height: 1;
  padding-top: 2px;
}
.h-nav { display: none; }
.h-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}
.icon-btn:hover { color: var(--gold); }
.h-search-toggle { margin-left: -8px; }
.badge-dot {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--gold);
  color: #14100a;
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}
.m-search {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 10px 16px 14px;
}
.m-search[hidden] { display: none; }
.m-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
  color: rgba(255, 255, 255, .7);
}
.m-search-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  height: 36px;
}
.m-search-form input::placeholder { color: rgba(255, 255, 255, .5); }
.m-search-form button {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #14100a;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn:hover { background: #2a2a2e; border-color: #2a2a2e; }
.btn .ico { width: 17px; height: 17px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #191307; }
.btn-gold:hover { background: #cbb07c; border-color: #cbb07c; }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); color: #fff; backdrop-filter: blur(6px); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--sand); border-color: var(--line); color: var(--ink); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.link-danger, .link-muted {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-muted { color: var(--muted); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: .04em;
}
.text-link .ico { width: 15px; height: 15px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  height: clamp(440px, 72vh, 620px);
  overflow: hidden;
  background: #111;
}
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.1s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .72) 100%);
}
.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46px;
  padding: 0 24px;
  color: #fff;
}
.hero-content .eyebrow { color: var(--gold); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 9vw, 56px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.05;
  margin: 4px 0 10px;
}
.hero-sub {
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 22px;
}
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 3;
}
.hero-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .45);
  transition: all .3s;
  cursor: pointer;
}
.hero-dots button.is-active { width: 22px; background: var(--gold); }

/* ---------- 搜索 ---------- */
.home-search { padding-top: 16px; }
.search-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 16, 10, .05);
}
.search-hero .ico { color: var(--muted); width: 19px; height: 19px; }
.search-hero input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  height: 38px;
  background: transparent;
  font-size: 13px;
}
.search-hero .btn { height: 38px; padding: 0 20px; }

/* ---------- 区块 ---------- */
.section { margin: 40px auto; }
.section-head { margin-bottom: 18px; }
.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .03em;
}
.section-featured { margin-top: 34px; }

/* ---------- 分类 ---------- */
.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: #4a453d;
  background: #fff;
  transition: all .2s;
}
.cat-chip span { font-size: 10px; color: var(--muted); }
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-chip.is-active span { color: var(--gold); }

/* ---------- 商品卡片 ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
.product-card { display: block; }
.pc-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sand);
}
.pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .6, .2, 1);
}
.product-card:hover .pc-media img { transform: scale(1.045); }
.pc-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 8px;
  background: rgba(12, 12, 13, .82);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .14em;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.pc-sold {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .1em;
  border-radius: 3px;
}
.pc-body { padding: 9px 2px 0; }
.pc-brand {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pc-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  margin: 3px 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.pc-price { display: flex; align-items: baseline; gap: 6px; }
.pc-price .price { font-size: 14px; font-weight: 600; }
.pc-price s { font-size: 11px; color: var(--muted); }

/* ---------- 编辑手记 ---------- */
.editorial { margin-bottom: 24px; }
.editorial-inner {
  background: var(--sand);
  border-radius: 18px;
  padding: 30px 22px;
}
.editorial-inner h2 { font-family: var(--serif); font-size: 25px; font-weight: 500; margin-bottom: 10px; }
.editorial-text { font-size: 13px; line-height: 1.9; color: #565047; }
.editorial-points { display: grid; gap: 16px; margin-top: 20px; }
.editorial-points li { display: flex; gap: 11px; align-items: flex-start; }
.editorial-points .ico { color: var(--gold-deep); width: 21px; height: 21px; margin-top: 2px; }
.editorial-points strong { display: block; font-size: 12px; letter-spacing: .04em; }
.editorial-points span { font-size: 11px; color: var(--muted); }

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-page { padding-top: 80px; padding-bottom: 100px; }
.empty-code {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}
.empty-ico { width: 46px; height: 46px; margin: 0 auto 12px; display: block; color: var(--gold); }
.empty-state h3, .empty-state h1 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 8px;
}
.empty-state .muted { margin-bottom: 20px; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.pager-num, .pager-arrow {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  color: #5c564d;
  background: #fff;
}
.pager-num.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-arrow .ico { width: 16px; height: 16px; }
.pager-gap { color: var(--muted); font-size: 12px; }

/* ---------- 页头 ---------- */
.page { padding: 22px 0 40px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.page-head h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: .02em; }
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  padding: 16px 0 14px;
  flex-wrap: wrap;
}
.crumb em { font-style: normal; color: var(--ink); }

/* ---------- 商品详情 ---------- */
.product-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 5;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.media-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 12, 13, .85);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .16em;
  padding: 5px 9px;
  border-radius: 3px;
}
.product-info { padding-top: 18px; }
.product-brand { font-size: 10px; letter-spacing: .24em; color: var(--gold-deep); text-transform: uppercase; }
.product-name { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.25; margin: 6px 0 6px; }
.product-sub { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; }
.product-price .price { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.product-price s { font-size: 13px; color: var(--muted); }
.stock-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gold-deep); margin-bottom: 4px; }
.stock-hint .ico { width: 15px; height: 15px; }
.stock-hint.is-out { color: var(--danger); }
.stock-hint.is-ok { color: var(--ok); }
.buy-form { display: flex; gap: 10px; margin: 18px 0 16px; }
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  height: 46px;
  flex: none;
  width: 122px;
}
.qty-stepper button {
  width: 38px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #4a453d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-stepper button .ico { width: 15px; height: 15px; }
.qty-stepper button:hover { background: var(--sand); }
.qty-stepper input {
  width: 42px;
  border: 0;
  outline: none;
  text-align: center;
  background: transparent;
  font-size: 14px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-form .btn { flex: 1; }
.assurances { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.assurances li { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.assurances .ico { width: 15px; height: 15px; color: var(--gold-deep); }
.panel { border-top: 1px solid var(--line); margin-top: 14px; }
.panel summary {
  padding: 15px 0;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: "+"; color: var(--muted); font-size: 15px; }
.panel[open] summary::after { content: "−"; }
.panel-body { font-size: 13px; line-height: 1.95; color: #4f4a43; padding-bottom: 14px; }
.related { margin-top: 44px; }

.sticky-buy {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 8px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(20, 16, 10, .16);
  backdrop-filter: blur(10px);
}
.sb-price { display: flex; flex-direction: column; line-height: 1.25; }
.sb-price span { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.sb-price small { font-size: 9px; color: var(--muted); letter-spacing: .1em; }
.sticky-buy .btn { flex: 1; height: 44px; }
.page-product .site-main { padding-bottom: 96px; }

/* ---------- 购物袋 ---------- */
.cart-item {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item.is-dead { opacity: .55; }
.ci-media { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--sand); }
.ci-media img { width: 100%; height: 100%; object-fit: cover; }
.ci-brand { font-size: 9px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.ci-name { display: block; font-size: 13px; font-weight: 500; margin: 3px 0 4px; padding-right: 74px; line-height: 1.4; }
.ci-price { font-size: 12px; color: var(--muted); }
.ci-total { position: absolute; right: 0; top: 18px; font-size: 14px; font-weight: 600; }
.ci-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.ci-dead { font-size: 11px; color: var(--danger); margin-top: 8px; }
.qty-sm { height: 34px; width: 104px; border-radius: 999px; }
.qty-sm button { width: 30px; }
.qty-sm input { width: 40px; font-size: 13px; }
.cart-summary, .order-summary {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.sum-title { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.sum-rows { margin: 8px 0; }
.sum-rows > div { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-rows dt { font-size: 12px; color: var(--muted); }
.sum-rows dd { font-size: 13px; }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 8px 0 14px;
  font-size: 12px;
}
.sum-total strong { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.sum-total + .btn { margin-top: 4px; }
.cart-summary .btn + .btn, .order-summary .btn + .btn { margin-top: 8px; }
.sum-clear { text-align: center; margin-top: 12px; }
.sum-note { font-size: 10px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.6; }

/* ---------- 结算 ---------- */
.checkout-main > .card, .checkout-side .card, .page .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 14px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
}
.card-title .ico { color: var(--gold-deep); width: 18px; height: 18px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-title-row .card-title { margin-bottom: 0; }
.addr-list { display: grid; gap: 10px; }
.addr-item {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.addr-item:has(input:checked) { border-color: var(--gold); background: #fdfaf3; }
.addr-item input { margin: 3px 0 0; accent-color: var(--gold-deep); flex: none; }
.addr-body { flex: 1; min-width: 0; }
.addr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.addr-top span { font-size: 12px; color: var(--muted); }
.tag-default {
  font-style: normal;
  font-size: 9px;
  color: var(--gold-deep);
  background: var(--sand-2);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: .06em;
}
.addr-text { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.new-addr { margin-top: 12px; padding: 14px; background: var(--sand); border-radius: 12px; }
.new-addr[hidden] { display: none; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.addr-grid-3 { grid-template-columns: repeat(3, 1fr); }
.check-circle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #57524a; margin-top: 4px; }
.check-line { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #4c473f; cursor: pointer; }
.check-line input { accent-color: var(--gold-deep); }
.check-group { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 11px; }
.mini-items li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.mini-items img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; background: var(--sand); flex: none; }
.mi-info { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; }
.mi-info p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mi-info small { color: var(--muted); font-size: 10px; }
.mi-total { font-size: 12px; font-weight: 600; }

/* ---------- 表单 ---------- */
.form { margin-top: 18px; }
.field { display: block; margin-bottom: 13px; }
.field > span {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  color: #6d6659;
  margin-bottom: 5px;
}
.field > span i { font-style: normal; color: var(--muted); font-size: 10px; }
.field input, .field select, .textarea {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 162, 106, .16);
}
.field input:disabled { background: var(--sand); color: var(--muted); }
.field.has-error input { border-color: var(--danger); }
.field-error { display: block; font-style: normal; font-size: 11px; color: var(--danger); margin-top: 4px; }
.form .btn-block { margin-top: 6px; height: 48px; }
.form-compact .btn { margin-top: 2px; }

/* ---------- 登录 / 注册 ---------- */
.auth-body {
  background: radial-gradient(circle at 50% 0%, #23232a 0%, #0c0c0d 62%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 40px;
}
.auth-shell { width: 100%; max-width: 410px; }
.auth-brand {
  display: block;
  text-align: center;
  color: #fff;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .26em;
}
.auth-brand i { display: inline-block; width: 22px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 8px; }
.auth-brand small {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: .42em;
  color: var(--gold);
  margin-top: 7px;
}
.auth-card {
  margin-top: 22px;
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.auth-head h1 { font-family: var(--serif); font-size: 27px; font-weight: 500; margin: 4px 0 4px; }
.auth-sub { font-size: 12px; color: var(--muted); }
.auth-switch { text-align: center; margin-top: 16px; font-size: 12px; color: var(--muted); }
.auth-switch a { color: var(--gold-deep); border-bottom: 1px solid rgba(157, 127, 63, .4); }
.demo-tip {
  margin-top: 18px;
  padding: 11px 13px;
  background: var(--sand);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.8;
  color: #595146;
}
.demo-title { font-size: 9px; letter-spacing: .2em; color: var(--gold-deep); text-transform: uppercase; margin-bottom: 2px; }
.demo-tip code { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 10px; }
.demo-tip a { color: var(--gold-deep); text-decoration: underline; }
.auth-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 10px;
  color: rgba(255, 255, 255, .45);
}
.auth-foot a { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .65); }
.auth-foot .ico { width: 13px; height: 13px; }

/* ---------- 订单 ---------- */
.tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-item {
  flex: none;
  padding: 10px 1px;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-item.is-active { color: var(--ink); border-color: var(--gold); font-weight: 600; }
.order-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
}
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.oc-no { font-size: 12px; font-weight: 500; }
.oc-date { font-size: 10px; color: var(--muted); margin-top: 2px; }
.oc-body { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.oc-thumb { width: 62px; height: 62px; border-radius: 8px; overflow: hidden; background: var(--sand); flex: none; }
.oc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.oc-meta { flex: 1; min-width: 0; }
.oc-count { font-size: 12px; }
.oc-addr { font-size: 10px; color: var(--muted); margin-top: 3px; }
.oc-amount { text-align: right; }
.oc-amount .muted { display: block; font-size: 9px; }
.oc-amount strong { font-family: var(--serif); font-size: 17px; }
.oc-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.oc-foot .btn { height: 32px; padding: 0 14px; font-size: 11px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: .04em;
  font-weight: 500;
  white-space: nowrap;
}
.badge-warn { background: #fbf1e0; color: #96660f; }
.badge-info { background: #eaf1fa; color: #2f5f93; }
.badge-ok { background: #e9f4ee; color: var(--ok); }
.badge-muted { background: #f2f0ec; color: var(--muted); }
.badge-gold { background: #f6eeda; color: var(--gold-deep); }

.order-status-card {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.order-status-card.is-cancelled { background: #3a3733; }
.osc-status { font-family: var(--serif); font-size: 26px; color: var(--gold); letter-spacing: .04em; }
.osc-tip { font-size: 12px; color: rgba(255, 255, 255, .68); margin-top: 3px; }
.steps { display: flex; gap: 4px; }
.steps li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: rgba(255, 255, 255, .4);
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}
.steps li:first-child::before { display: none; }
.steps i {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 10px;
  position: relative;
  z-index: 1;
  background: var(--ink);
}
.steps i .ico { width: 12px; height: 12px; }
.steps li.is-done { color: var(--gold); }
.steps li.is-done i { border-color: var(--gold); color: var(--gold); }
.steps li.is-current i { background: var(--gold); border-color: var(--gold); color: #191307; font-weight: 700; }
.order-items li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-items li:last-child { border-bottom: 0; padding-bottom: 0; }
.oi-media { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--sand); flex: none; }
.oi-media img { width: 100%; height: 100%; object-fit: cover; }
.oi-info { flex: 1; min-width: 0; }
.oi-name { font-size: 12px; font-weight: 500; line-height: 1.4; }
.oi-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.oi-total { font-size: 13px; font-weight: 600; }
.kv > div { display: flex; gap: 10px; padding: 7px 0; font-size: 12px; }
.kv dt { width: 82px; flex: none; color: var(--muted); }
.kv dd { flex: 1; word-break: break-all; }
.ship-line { font-size: 13px; }
.ship-line span { color: var(--muted); font-size: 12px; margin-left: 8px; }
.ship-addr { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.7; }

/* ---------- 账户 ---------- */
.account-hero {
  background: var(--ink);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ac-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: #191307;
  font-family: var(--serif);
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ac-main { flex: 1; min-width: 120px; }
.ac-main .eyebrow { color: var(--gold); margin-bottom: 0; }
.ac-main h1 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.ac-main .muted { color: rgba(255, 255, 255, .55); font-size: 11px; }
.ac-stats { display: flex; gap: 24px; }
.ac-stats strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--gold); font-weight: 500; }
.ac-stats span { font-size: 9px; color: rgba(255, 255, 255, .5); letter-spacing: .1em; }
.addr-cards li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; }
.addr-ops { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.addr-form-toggle { margin-top: 14px; }
.addr-form-toggle summary { list-style: none; }
.addr-form-toggle summary::-webkit-details-marker { display: none; }
.addr-form { margin-top: 14px; }
.account-links a, .account-links button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.account-links > :last-child { border-bottom: 0; }
.account-links .ico { color: var(--gold-deep); width: 18px; height: 18px; }
.account-links span { flex: 1; }

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
  border-left: 3px solid var(--gold);
  animation: toastIn .3s ease;
}
.toast-error { border-left-color: #d0625a; }
.toast-info { border-left-color: #8fa9c4; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast.is-out { opacity: 0; transition: opacity .4s; }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab {
  position: relative;
  height: var(--tab-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--muted);
}
.tab .ico { width: 21px; height: 21px; }
.tab.is-active { color: var(--ink); }
.tab.is-active .ico { color: var(--gold-deep); }
.tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}
.tab-badge {
  position: absolute;
  top: 7px;
  left: calc(50% + 4px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-style: normal;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding: 32px 0 calc(var(--tab-h) + 28px);
  margin-top: 40px;
}
.footer-grid { display: grid; gap: 22px; }
.f-brand { font-family: var(--serif); font-size: 19px; letter-spacing: .22em; color: #fff; }
.f-desc { font-size: 11px; line-height: 1.9; margin-top: 8px; color: rgba(255, 255, 255, .48); }
.f-title { font-size: 9px; letter-spacing: .2em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.f-col { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.f-col a:hover { color: var(--gold); }
.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 26px;
  padding-top: 16px;
  font-size: 10px;
  color: rgba(255, 255, 255, .35);
}

/* =========================================================
   平板 / 桌面
   ========================================================= */
@media (min-width: 768px) {
  .wrap { padding: 0 28px; }
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
  .hero { height: 620px; }
  .hero-content { padding: 0 48px; bottom: 70px; }
  .editorial-inner { padding: 40px 36px; }
  .editorial-points { grid-template-columns: repeat(3, 1fr); }
  .product-main { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
  .product-info { padding-top: 0; }
  .product-name { font-size: 30px; }
  .checkout-main, .checkout-side { min-width: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .cart-layout, .order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
  .cart-summary, .order-summary { margin-top: 0; position: sticky; top: 78px; }
  .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
  .checkout-side .card { position: sticky; top: 78px; }
  .order-status-card { flex-direction: row; align-items: center; justify-content: space-between; }
  .steps { width: 46%; }
}

@media (min-width: 1024px) {
  .h-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-right: 18px;
  }
  .h-nav a {
    font-size: 11px;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .72);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
  }
  .h-nav a:hover, .h-nav a.is-active { color: #fff; border-color: var(--gold); }
  .brand { margin-right: 34px; }
  .brand-main { font-size: 19px; }
  .h-search-toggle { display: none; }
  .m-search { display: none !important; }
  .hero { height: 660px; }
  .hero-content { max-width: var(--maxw); margin: 0 auto; left: 0; right: 0; padding: 0 28px; }
  .hero-content > * { max-width: 520px; }
  .hero-title { font-size: 62px; }
  .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
  .tabbar { display: none; }
  .sticky-buy { display: none; }
  .site-main { min-height: 60vh; }
  .site-footer { padding-bottom: 30px; }
  .page-product .site-main { padding-bottom: 0; }
  .product-main { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .product-info { padding-top: 8px; }
  .section { margin: 58px auto; }
  .section-head h2 { font-size: 31px; }
  .home-search { margin-top: -26px; position: relative; z-index: 5; }
  .search-hero { max-width: 640px; margin: 0 auto; background: #fff; }
  .product-name { font-size: 34px; }
  .page-head h1 { font-size: 36px; }
  .ac-stats { gap: 40px; }
}

@media (min-width: 1200px) {
  .hero-title { font-size: 68px; }
}

/* ---------- 多语言 / RTL ---------- */
.language-form {
  display: flex;
  align-items: center;
  flex: none;
  gap: 5px;
}
.language-form select {
  width: 58px;
  height: 34px;
  padding: 0 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  line-height: 34px;
  outline: none;
  cursor: pointer;
}
.language-form select:hover,
.language-form select:focus { color: #fff; background: rgba(255, 255, 255, .1); }
.language-form select:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.language-form option { color: var(--ink); background: #fff; }
.language-form noscript button {
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 10px;
}
.auth-language { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.auth-language .language-form select { width: 96px; text-align: right; }

[dir="rtl"] body { font-family: "Noto Sans Arabic", var(--sans); }
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .h-search-toggle { margin-left: 0; margin-right: -8px; }
[dir="rtl"] .badge-dot { right: auto; left: 3px; }
[dir="rtl"] .ta-right { text-align: left; }
[dir="rtl"] .h-nav a,
[dir="rtl"] .eyebrow,
[dir="rtl"] .f-title { letter-spacing: normal; }
[dir="rtl"] .auth-language .language-form select { text-align: left; }

@media (max-width: 479px) {
  .h-actions .h-account { display: none; }
  .brand { gap: 5px; }
  .brand-main { font-size: 15px; }
  .brand-line { width: 9px; }
  .brand-sub { font-size: 8px; }
}

@media (min-width: 768px) {
  .language-form select { width: 78px; font-size: 11px; }
}

@media (min-width: 1024px) {
  .h-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .h-nav::-webkit-scrollbar { display: none; }
  .h-nav a { flex: none; white-space: nowrap; }
  .language-form select { width: 86px; }
  [dir="rtl"] .brand { margin-right: 0; margin-left: 34px; }
  [dir="rtl"] .h-nav { margin-right: 0; margin-left: 18px; }
}
