/* ==========================================================================
   彦季生活 · 前台样式
   配色：墨绿 / 纸白 / 陶土红
   ========================================================================== */

:root {
  --ink: #1c2722;
  --ink-soft: #3d4b44;
  --muted: #7d8579;
  --paper: #f7f4ed;
  --paper-2: #efe8da;
  --card: #fffdf8;
  --line: #e3dccd;
  --line-2: #d2c8b6;
  --accent: #9c4a2f;
  --accent-dark: #7f3a24;
  --accent-soft: #f2e0d6;
  --green: #2e4a3f;
  --green-soft: #e4eae2;
  --ok: #2f6b4f;
  --warn: #a2621a;
  --blue: #1677ff;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

::selection { background: var(--green); color: var(--paper); }

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

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  background: var(--green);
  color: #d8ded6;
  font-size: 12px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 34px;
  letter-spacing: .02em;
}

.topbar-right { color: #aab7ac; }
.topbar-right a { color: #e4e9e1; border-bottom: 1px solid rgba(228, 233, 225, .35); }
.topbar-right a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------- 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 237, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #f4efe4;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  border-radius: 2px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .12em;
}
.brand-text small {
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .18s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav a:hover,
.nav a.is-active { color: var(--accent); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-search {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  width: 168px;
  padding-bottom: 4px;
  transition: border-color .18s ease, width .22s ease;
}

.header-search:focus-within { border-color: var(--ink); width: 200px; }

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  padding: 3px 0;
}

.header-search input::placeholder { color: #a3aa9f; }
.header-search input:focus { outline: none; }

.header-search button {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
}

.tool-link {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.tool-link:hover { color: var(--accent); }

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cart-link:hover { color: var(--accent); }

.cart-count {
  position: absolute;
  top: -7px;
  left: 12px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--ink);
  transition: transform .2s ease;
}

body.nav-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------------------------------------------------------------- 提示 */

.flash-stack { padding-top: 16px; }

.flash {
  padding: 11px 16px;
  margin-bottom: 8px;
  background: var(--card);
  border-left: 3px solid var(--ink);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.flash-success { border-color: var(--ok); background: #f2f7f1; }
.flash-error { border-color: var(--accent); background: #fbf1ec; }
.flash-info { border-color: var(--line-2); }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .04em;
  cursor: pointer;
  background: none;
  color: var(--ink);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #f6f1e6;
}
.btn-primary:hover { background: var(--green); border-color: var(--green); }

.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(28, 39, 34, .04); }

.btn-alipay {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-alipay:hover { background: #0f66e0; border-color: #0f66e0; }

.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-sm { padding: 8px 15px; font-size: 12.5px; }
.btn-block { width: 100%; }

.btn[disabled],
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  color: var(--accent);
  font-size: 13.5px;
  border-bottom: 1px solid rgba(156, 74, 47, .35);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--accent); }
.link-muted { color: var(--muted); }

/* ---------------------------------------------------------------- 首页主视觉 */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(156, 74, 47, .07), transparent 42%),
    linear-gradient(180deg, #f7f4ed 0%, #f1ebdf 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 78px;
}

.eyebrow {
  display: block;
  font-size: 11.5px;
  letter-spacing: .26em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 500px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
  margin-bottom: 2px;
}

.hero-art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.hero-art img { width: 100%; height: auto; }

.hero-stamp {
  position: absolute;
  left: -14px;
  bottom: 16px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .14em;
  color: var(--accent);
  background: rgba(247, 244, 237, .92);
  transform: rotate(-9deg);
}

/* ---------------------------------------------------------------- 区块通用 */

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.section-cats { border-top: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 38px;
}

.section-index {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
}

.section-more {
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-more span { margin-left: 4px; }
.section-more:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- 品类 */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cat-card {
  position: relative;
  min-height: 152px;
  padding: 22px 24px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  transition: background .22s ease, color .22s ease;
}

.cat-card:hover { background: var(--green); color: #f2eee3; }

.cat-num {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .1em;
}
.cat-card:hover .cat-num { color: #c9a58c; }

.cat-name {
  font-family: var(--serif);
  font-size: 21px;
  margin: auto 0 4px;
  letter-spacing: .04em;
}

.cat-count { font-size: 12px; color: var(--muted); }
.cat-card:hover .cat-count { color: #aab7ac; }

/* ---------------------------------------------------------------- 商品卡 */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 26px;
}

.product-card { display: flex; flex-direction: column; }

.card-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .6, .2, 1);
}

.product-card:hover .card-media img { transform: scale(1.035); }

.card-body { padding-top: 15px; }

.card-cat {
  display: block;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
}

.card-name {
  font-family: var(--serif);
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: 6px 0 5px;
}
.card-name a:hover { color: var(--accent); }

.card-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  min-height: 2.6em;
}

.card-foot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.card-sold {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.grid-note {
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--muted);
}

.price {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: .01em;
}

.price small {
  font-size: .58em;
  font-weight: 400;
  margin-right: 2px;
  color: var(--accent);
}

.price-old {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ---------------------------------------------------------------- 选品原则 */

.section-how {
  background: var(--green);
  color: #efeadc;
  border-top: 0;
}

.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 72px;
  align-items: start;
}

.split-title h2 {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: .03em;
}

.split-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  color: #b9c4ba;
  max-width: 300px;
}

.section-how .section-index { color: #c9a58c; }

.principles li {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 8px;
  padding: 24px 0;
  border-top: 1px solid rgba(239, 234, 220, .18);
}
.principles li:first-child { padding-top: 0; border-top: 0; }
.principles li:last-child { padding-bottom: 0; }

.principle-num {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 14px;
  color: #c9a58c;
  padding-top: 4px;
}

.principles h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.principles p {
  font-size: 13.5px;
  line-height: 1.95;
  color: #b9c4ba;
}

/* ---------------------------------------------------------------- 公司故事 */

.story-inner {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 64px;
  align-items: start;
}

.story-copy h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.story-copy > p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 560px;
}

.story-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.story-facts dt {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.story-facts dd { font-size: 13.5px; line-height: 1.75; }

.assurance-list { border-top: 1px solid var(--line-2); }

.assurance {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.assurance strong {
  display: block;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: .03em;
}

.assurance span {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------------------------------------------------------------- 页脚 */

.site-footer {
  background: var(--ink);
  color: #c9cec4;
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .brand { margin-bottom: 18px; }

.brand-footer .brand-mark {
  background: transparent;
  border: 1px solid rgba(239, 234, 220, .4);
  color: #efeade;
}

.brand-footer .brand-text strong { color: #efeade; }
.brand-footer .brand-text small { color: #8d978f; }

.footer-col p {
  font-size: 12.5px;
  line-height: 1.9;
  color: #9aa398;
  margin-bottom: 8px;
}

.footer-col h4 {
  font-size: 11.5px;
  letter-spacing: .22em;
  color: #7f8a80;
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  width: fit-content;
  font-size: 13px;
  color: #c2c9be;
  margin-bottom: 9px;
  transition: color .18s ease;
}
.footer-col a:hover { color: #f0ebdf; }

.footer-col p a,
.footer-mini a {
  display: inline;
  margin-bottom: 0;
}

.footer-mini { font-size: 11.5px !important; color: #77817a !important; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(239, 234, 220, .13);
  font-size: 11.5px;
  color: #828d84;
}

.footer-bottom a:hover { color: #e7e2d6; }
.footer-note { margin-left: auto; color: #6d776f; }

/* ---------------------------------------------------------------- 面包屑 / 页头 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 6px 0;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: #a8afa4; }

.page-head { padding-top: 36px; padding-bottom: 22px; }

.page-head h1 {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .03em;
  margin-top: 10px;
}

.page-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.page-sub {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.sort-form select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237d8579' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 11px center;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------------------------------------------------------------- 商品列表 */

.shop-filters { padding-bottom: 26px; }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12.5px;
  color: var(--ink-soft);
  border-radius: 2px;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.chip span {
  font-size: 10.5px;
  color: var(--muted);
}

.chip:hover { border-color: var(--ink); }

.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4efe4;
}
.chip.is-on span { color: #aab7ac; }

.shop-body { padding-bottom: 88px; }

.product-grid-wide { row-gap: 42px; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 54px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--card);
}

.pagination a:hover { border-color: var(--ink); }

.pagination .is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4efe4;
}

.empty-state {
  padding: 70px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  background: rgba(255, 253, 248, .5);
}

.empty-state p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------- 商品详情 */

.pdp {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 60px;
  align-items: start;
  padding-top: 26px;
  padding-bottom: 20px;
}

.pdp-media {
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.pdp-media img { width: 100%; height: auto; }

.pdp-media-note {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.pdp-info { padding-top: 10px; }

.pdp-cat {
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--accent);
}

.pdp-title {
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: .02em;
  margin: 13px 0 8px;
}

.pdp-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.pdp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-top: 24px;
  padding: 20px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-lg { font-size: 36px; color: var(--accent); }
.price-lg small { font-size: 16px; }

.pdp-save {
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 2px;
}

.pdp-ship {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
}

.pdp-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}

.pdp-form { margin-top: 26px; }

.spec-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 20px;
}

.spec-label {
  width: 62px;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-chip { position: relative; display: inline-flex; }

.spec-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.spec-chip span {
  display: inline-block;
  padding: 8px 17px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.spec-chip span:hover { border-color: var(--ink); }

.spec-chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4efe4;
}

.spec-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.qty {
  display: inline-flex;
  border: 1px solid var(--line-2);
  background: var(--card);
}

.qty-btn {
  width: 38px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 17px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}
.qty-btn:hover { background: rgba(28, 39, 34, .05); }

.qty input {
  width: 54px;
  height: 40px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }

.qty-sm .qty-btn { width: 30px; height: 32px; font-size: 15px; }
.qty-sm input { width: 42px; height: 32px; font-size: 13px; }

.spec-stock { font-size: 11.5px; color: var(--muted); }

.pdp-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.pdp-actions .btn-primary { flex: 1.35; }
.pdp-actions .btn-ghost { flex: 1; }

.pdp-highlights {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pdp-highlights li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.tick { color: var(--ok); flex-shrink: 0; }

.pdp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted);
}

.pdp-trust li { position: relative; padding-left: 13px; }
.pdp-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-2);
}

.pdp-mobilebar { display: none; }

/* ---------------------------------------------------------------- 详情正文 */

.section-detail {
  background: var(--card);
  padding-top: 64px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.55fr .8fr;
  gap: 64px;
  align-items: start;
}

.detail-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-main .detail-title:not(:first-child) { margin-top: 42px; }

.prose {
  font-size: 14.5px;
  line-height: 2.05;
  color: var(--ink-soft);
  word-break: break-word;
}

.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }

.prose-fig { margin: 22px 0; }
.prose-fig:first-child { margin-top: 0; }

.prose-fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.prose-fig figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.license-fig img {
  max-width: 560px;
  margin: 0 auto;
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.param-table th,
.param-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.param-table th {
  width: 132px;
  font-weight: 400;
  color: var(--muted);
  background: rgba(239, 232, 218, .45);
}

.detail-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px 26px 24px;
  position: sticky;
  top: 100px;
}

.detail-aside h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-aside p {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 11px;
}

.detail-aside strong {
  color: var(--ink-soft);
  font-weight: 600;
  margin-right: 4px;
}

.section-related { padding-top: 64px; }

/* ---------------------------------------------------------------- 购物车 */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: start;
  padding-bottom: 90px;
}

.cart-list { min-width: 0; }

.cart-item {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 88px 132px 92px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.cart-list > .cart-item:first-child { border-top: 1px solid var(--line); }

.cart-thumb img {
  width: 94px;
  height: 94px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.cart-name {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
}
.cart-name:hover { color: var(--accent); }

.cart-spec {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.cart-stock {
  margin-top: 3px;
  font-size: 11.5px;
  color: #9aa394;
}

.cart-price .price { font-size: 16.5px; }

.cart-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.qty-form { display: flex; align-items: center; gap: 8px; }

.cart-subtotal { text-align: right; }
.cart-subtotal span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .08em;
}
.cart-subtotal strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.cart-summary {
  position: sticky;
  top: 100px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px;
}

.cart-summary h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 16px;
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 13px;
}

.summary-list dt { color: var(--muted); }
.summary-list dd { font-variant-numeric: tabular-nums; }

.summary-total {
  margin-top: 8px;
  padding-top: 14px !important;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.summary-total dt { color: var(--ink) !important; font-size: 13.5px; }
.summary-total dd {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--accent);
}

.summary-hint {
  margin: 12px 0;
  padding: 8px 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11.5px;
}

.summary-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------------------------------------------------------- 结算 */

.checkout-head { padding-top: 32px; padding-bottom: 24px; }

.steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.steps li:not(:first-child)::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-2);
  margin-right: 4px;
}

.steps li span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-size: 11px;
}

.steps .is-done { color: var(--ok); }
.steps .is-done span { border-color: var(--ok); background: var(--green-soft); }
.steps .is-current { color: var(--ink); }
.steps .is-current span { border-color: var(--ink); background: var(--ink); color: #f4efe4; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 40px;
  align-items: start;
  padding-bottom: 90px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 13px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
}

.panel-head span { font-size: 11.5px; color: var(--muted); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}

.field em { color: var(--accent); font-style: normal; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field textarea { resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #b0b6ac; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(46, 74, 63, .08);
}

.field small { font-size: 11px; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }

.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.pay-option.is-on { border-color: var(--ink); background: rgba(239, 232, 218, .35); }

.pay-option input { accent-color: var(--green); }

.pay-logo {
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.pay-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.pay-check { margin-left: auto; color: var(--ok); font-size: 15px; }

.pay-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-item:last-child { border-bottom: 0; padding-bottom: 0; }

.checkout-item img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper-2);
  flex-shrink: 0;
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-item-info a { font-size: 14px; }
.checkout-item-info a:hover { color: var(--accent); }
.checkout-item-info span { font-size: 11.5px; color: var(--muted); }

.checkout-item-price { text-align: right; white-space: nowrap; }
.checkout-item-price span { display: block; font-size: 11.5px; color: var(--muted); }
.checkout-item-price strong { font-size: 14px; font-weight: 600; }

.checkout-aside { position: sticky; top: 100px; }

.summary-card h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}

.agree {
  display: flex;
  gap: 9px;
  margin: 16px 0 18px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
  cursor: pointer;
}

.agree input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.summary-trust {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.summary-trust li {
  position: relative;
  padding-left: 13px;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--muted);
}

.summary-trust li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .8em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-2);
}

/* ---------------------------------------------------------------- 订单页 */

.order-page { padding-top: 32px; padding-bottom: 90px; }

.order-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 34px 38px;
  margin-top: 20px;
}

.order-hero.is-paid { border-top-color: var(--ok); }
.order-hero.is-closed { border-top-color: var(--line-2); }

.order-hero-main h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  margin: 14px 0 10px;
}

.order-hero-main > p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 460px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11.5px;
  letter-spacing: .12em;
  border-radius: 2px;
}

.status-badge.is-ok { background: var(--green-soft); color: var(--ok); }

.countdown {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.order-hero-pay {
  border-left: 1px solid var(--line);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.order-amount {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.order-amount small { font-size: 18px; margin-right: 3px; }

.pay-tip {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}

.pay-refresh {
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.order-aside { min-width: 0; }

.order-totals {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  font-size: 12.5px;
}
.order-totals dt { color: var(--muted); }
.order-totals .summary-total dd { font-size: 20px; }

.order-item-name { font-size: 13.5px !important; color: var(--ink) !important; }

.info-list > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  font-size: 12.5px;
  line-height: 1.75;
}

.info-list dt { color: var(--muted); }
.info-list dd { word-break: break-word; }

.timeline li {
  position: relative;
  padding: 0 0 18px 22px;
}
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--card);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 18px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }

.timeline li.is-done::before { background: var(--ok); border-color: var(--ok); }

.timeline strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.timeline span { font-size: 11.5px; color: var(--muted); }

.order-help {
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
  padding: 0 4px;
}

/* ---------------------------------------------------------------- 订单查询 */

.page-single { padding-top: 30px; padding-bottom: 90px; }

.track-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 26px;
}

.track-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 8px;
}

.track-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin-top: 26px;
}

.track-form .btn { align-self: flex-start; }

.track-error {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--accent);
}

.track-result .panel { margin-bottom: 0; }

.track-placeholder {
  border: 1px dashed var(--line-2);
  padding: 34px 30px;
  font-size: 13px;
  line-height: 1.95;
  color: var(--muted);
  background: rgba(255, 253, 248, .5);
}

.track-hint { font-size: 11.5px; margin-top: 10px; color: #9aa394; }

/* ---------------------------------------------------------------- 单页 */

.page-article {
  max-width: 760px;
  margin: 34px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 48px 56px 42px;
}

.page-article-head {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-article-head h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
  margin-bottom: 10px;
}

.page-updated { font-size: 11.5px; color: var(--muted); }

.page-article .prose { font-size: 14.5px; }

.page-article-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}

.page-article-foot a { color: var(--accent); }

/* ---------------------------------------------------------------- 错误页 */

.error-page {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
}

.error-code {
  display: block;
  font-family: var(--serif);
  font-size: 92px;
  line-height: 1;
  color: var(--line-2);
  letter-spacing: .04em;
}

.error-page h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin: 18px 0 10px;
}

.error-page p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
}

.error-page .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------- 轻提示 */

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 12px);
  z-index: 200;
  padding: 11px 20px;
  background: var(--ink);
  color: #f4efe4;
  font-size: 13px;
  border-radius: 3px;
  box-shadow: 0 18px 40px -18px rgba(28, 39, 34, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.site-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.site-toast.is-error { background: var(--accent-dark); }

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

@media (max-width: 1120px) {
  .nav { gap: 18px; font-size: 13.5px; }
  .header-search { width: 140px; }
  .hero-copy h1 { font-size: 46px; }
  .pdp { gap: 40px; }
  .product-grid { gap: 30px 20px; }
}

@media (max-width: 1024px) {
  .nav,
  .header-search { display: none; }

  .nav-toggle { display: flex; }

  body.nav-open .nav {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    box-shadow: 0 24px 32px -28px rgba(28, 39, 34, .4);
  }

  body.nav-open .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .nav a::after { display: none; }

  .cart-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
  .order-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-copy h1 { font-size: 40px; }
  .hero-art { max-width: 430px; margin: 0 auto; }
  .hero-stamp { left: 4px; bottom: 0; width: 86px; height: 86px; font-size: 11px; }

  .section { padding: 64px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  .split { grid-template-columns: 1fr; gap: 38px; }
  .split-note { max-width: none; }

  .story-inner { grid-template-columns: 1fr; gap: 40px; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .footer-note { margin-left: 0; width: 100%; }

  .pdp { grid-template-columns: 1fr; gap: 30px; }
  .pdp-info { padding-top: 0; }
  .pdp-media { max-width: 560px; margin: 0 auto; }

  .detail-grid { grid-template-columns: 1fr; gap: 34px; }
  .detail-aside { position: static; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-aside { position: static; }

  .order-hero { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .order-hero-pay { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }

  .order-grid { grid-template-columns: 1fr; }

  .track-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .wrap { padding-left: 16px; padding-right: 16px; }

  .topbar { display: none; }
  .header-inner { height: 62px; gap: 14px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .brand-text strong { font-size: 16.5px; }
  .brand-text small { font-size: 8px; letter-spacing: .24em; }
  .tool-link { display: none; }
  .cart-link span { display: none; }
  .header-tools { gap: 14px; }

  .hero-copy h1 { font-size: 33px; line-height: 1.3; }
  .hero-lead { font-size: 14px; line-height: 1.9; }
  .hero-actions .btn { flex: 1; }
  .hero-meta { gap: 22px; margin-top: 30px; }
  .hero-meta strong { font-size: 17px; }
  .hero-art { max-width: 340px; }

  .section { padding: 52px 0; }
  .section-title { font-size: 25px; }
  .section-head { align-items: center; margin-bottom: 26px; }
  .section-more { font-size: 12px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { min-height: 118px; padding: 16px; }
  .cat-name { font-size: 18px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .card-name { font-size: 15px; }
  .card-sub { font-size: 11.5px; }
  .card-cat { font-size: 10px; }
  .card-sold { display: none; }
  .price { font-size: 18px; }
  .grid-note { margin-top: 22px; }

  .split-title h2 { font-size: 28px; }
  .principles li { grid-template-columns: 32px 1fr; }

  .story-copy h2 { font-size: 26px; }
  .story-facts { grid-template-columns: 1fr; gap: 14px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer { padding-top: 44px; }

  .page-head { padding-top: 24px; }
  .page-head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-head h1 { font-size: 28px; }
  .sort-form { width: 100%; justify-content: space-between; }

  .pdp { padding-top: 16px; }
  .pdp-title { font-size: 25px; }
  .price-lg { font-size: 30px; }
  .pdp-ship { margin-left: 0; width: 100%; }
  .spec-label { width: 100%; }
  .spec-stock { width: 100%; margin-left: 0; }
  .pdp-actions { flex-direction: column-reverse; }
  .pdp-actions .btn { width: 100%; }

  .pdp-mobilebar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, .97);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .pdp-mobilebar > div { display: flex; align-items: baseline; gap: 6px; }
  .pdp-mobilebar .price { font-size: 24px; }
  .pdp-mobilebar .btn { padding: 12px 26px; }

  body:has(.pdp-mobilebar) { padding-bottom: 74px; }

  .section-detail { padding-top: 44px; }
  .detail-title { font-size: 19px; }

  .cart-item {
    grid-template-columns: 74px minmax(0, 1fr) 62px;
    grid-template-areas:
      "thumb info price"
      "thumb qty subtotal";
    gap: 10px 12px;
    padding: 16px 0;
  }
  .cart-thumb { grid-area: thumb; }
  .cart-thumb img { width: 74px; height: 74px; }
  .cart-info { grid-area: info; }
  .cart-price { grid-area: price; text-align: right; }
  .cart-qty { grid-area: qty; flex-direction: row; align-items: center; gap: 10px; }
  .cart-subtotal { grid-area: subtotal; }
  .cart-name { font-size: 14.5px; }
  .cart-actions { flex-direction: column-reverse; align-items: stretch; }
  .cart-actions form .btn { width: 100%; }

  .steps { gap: 8px; font-size: 11.5px; }
  .steps li:not(:first-child)::before { width: 12px; margin-right: 0; }

  .panel { padding: 20px 18px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 3px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .pay-option { flex-wrap: wrap; gap: 9px 12px; }
  .pay-desc { width: 100%; order: 3; }

  .checkout-item img { width: 52px; height: 52px; }

  .order-hero { padding: 22px 20px; }
  .order-hero-main h1 { font-size: 23px; }
  .order-amount { font-size: 32px; }

  .page-article { padding: 28px 20px; margin-top: 22px; }
  .page-article-head h1 { font-size: 25px; }
  .page-article .prose { font-size: 13.5px; }

  .track-title { font-size: 27px; }

  .breadcrumb { font-size: 11.5px; }

  .param-table th { width: 96px; padding: 9px 10px; }
  .param-table td { padding: 9px 10px; }

  .error-code { font-size: 68px; }
  .error-page { margin: 30px auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- 会员中心 */

.account-auth {
  max-width: 520px;
  padding-top: 30px;
  padding-bottom: 90px;
}

.auth-head { margin: 18px 0 24px; }

.auth-head h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.3;
}

.auth-head p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.auth-card { padding: 30px 32px 26px; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .btn { margin-top: 4px; }

.auth-alt {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.auth-alt a { color: var(--accent); border-bottom: 1px solid currentColor; }

.auth-hint {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.8;
  color: #9aa394;
  text-align: center;
}

.account-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 30px;
  padding-bottom: 90px;
}

.account-nav {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}

.account-nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
}

.account-nav-user strong { display: block; font-size: 13.5px; font-weight: 600; }
.account-nav-user small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.account-nav-links { display: flex; flex-direction: column; padding: 8px 0; }

.account-nav-links a {
  padding: 10px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
}

.account-nav-links a:hover { color: var(--accent); background: rgba(28, 39, 34, .02); }

.account-nav-links a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(156, 74, 47, .05);
  font-weight: 600;
}

.account-logout { border-top: 1px solid var(--line); padding: 12px 18px; }

.account-logout button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}

.account-logout button:hover { color: var(--accent); }

.account-main { min-width: 0; }

.account-head { margin-bottom: 22px; }

.account-head h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.35;
}

.account-head p { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.account-stats > div {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px 18px;
}

.account-stats span { display: block; font-size: 11.5px; color: var(--muted); }

.account-stats strong {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.account-orders { display: flex; flex-direction: column; }

.account-order {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.account-order:last-child { border-bottom: 0; }
.account-order:hover .account-order-name { color: var(--accent); }

.account-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}

.account-order-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
}

.account-order-name { color: var(--ink-soft); transition: color .2s ease; }
.account-order-body time { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

.account-order-body strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.account-order-go { font-size: 11.5px; color: var(--accent); white-space: nowrap; }

.status-badge.status-pending { background: #fbf1e8; color: var(--warn); }
.status-badge.status-paid { background: var(--green-soft); color: var(--ok); }
.status-badge.status-shipped { background: #e8eef4; color: #2f5d7c; }
.status-badge.status-cancelled { background: var(--paper-2); color: var(--muted); }

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.account-tabs a {
  padding: 8px 14px;
  margin-bottom: -1px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.account-tabs a:hover { color: var(--ink); }

.account-tabs a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.account-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted);
}

.account-pagination a { color: var(--accent); border-bottom: 1px solid currentColor; }

.account-empty {
  padding: 30px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.account-empty .btn { margin-top: 14px; }

.account-help {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted);
}

@media (max-width: 960px) {
  .account-shell { grid-template-columns: 1fr; gap: 22px; padding-bottom: 70px; }
  .account-nav { position: static; }
  .account-nav-links { flex-direction: row; flex-wrap: wrap; padding: 6px; }
  .account-nav-links a { padding: 7px 12px; border-left: 0; border-bottom: 2px solid transparent; }
  .account-nav-links a.is-active { border-bottom-color: var(--accent); }
  .account-logout { display: flex; justify-content: flex-end; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .member-link { display: inline-flex; font-size: 12px; }
  .account-auth { padding-top: 22px; padding-bottom: 64px; }
  .auth-head h1 { font-size: 27px; }
  .auth-card { padding: 24px 20px 20px; }
  .account-head h1 { font-size: 24px; }
  .account-stats { gap: 8px; }
  .account-stats > div { padding: 13px 14px; }
  .account-stats strong { font-size: 20px; }
  .account-order-body { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .account-order-name { grid-column: 1 / -1; }
  .account-order-body time { font-size: 11px; }
  .account-order-go { display: none; }
}
