/* 旧き至宝の集い · FURUKI SHIHŌ NO TSUDOI */

:root {
  --ink: #2b2620;
  --ink-deep: #201d19;
  --ink-soft: #6b6257;
  --gold: #a5813f;
  --gold-soft: #c9ab6d;
  --paper: #f7f4ee;
  --card: #ffffff;
  --line: #e5ded2;
  --danger: #b03a2e;
  --shadow: 0 18px 48px rgba(32, 29, 25, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", "Noto Serif SC", "SimSun", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); font-size: 14px; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; }
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 头部 ---------- */
.site-header {
  background: rgba(253, 252, 249, .94);
  border-bottom: 1px solid rgba(165, 129, 63, .2);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-deep); flex-shrink: 0; }
.brand:hover { color: var(--ink-deep); }
.brand-mark {
  display: block; width: 44px; height: 44px; flex: 0 0 44px;
  border: 1px solid rgba(165, 129, 63, .55); border-radius: 50%;
  object-fit: cover; background: var(--ink-deep);
  box-shadow: 0 4px 14px rgba(32, 29, 25, .16);
  transition: transform .24s ease, box-shadow .24s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(32, 29, 25, .2); }
.brand-lockup { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.brand-ja { font-size: 21px; letter-spacing: .08em; white-space: nowrap; }
.brand-roman { margin-top: 7px; font: 600 7px/1 Arial, Helvetica, sans-serif; letter-spacing: .16em; color: var(--ink-soft); white-space: nowrap; }
.primary-nav { display: flex; align-items: center; margin-left: 24px; }
.primary-nav > a {
  position: relative; margin-left: 24px; padding: 8px 0;
  font-size: 14px; color: var(--ink-soft); white-space: nowrap;
}
.primary-nav > a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1px; background: var(--gold); transition: right .25s ease;
}
.primary-nav > a:hover { color: var(--ink); }
.primary-nav > a:hover::after { right: 0; }
.nav-toggle { display: none; }
.lang-switch { margin-left: 24px; padding-left: 18px; border-left: 1px solid var(--line); }
.lang-select {
  min-height: 38px; padding: 5px 30px 5px 10px; font-size: 13px; font-family: inherit;
  color: var(--ink-soft); background: #fdfcfa;
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
}
.lang-select:focus { outline: none; border-color: var(--gold); }

/* ---------- LINE 在线客服 ---------- */
.cs-float-shell {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 99; display: flex; align-items: stretch;
  min-height: 60px; overflow: hidden;
  border: 1px solid rgba(201, 171, 109, .58); border-radius: 3px;
  background: rgba(32, 29, 25, .97); color: #f7f4ee;
  box-shadow: 0 14px 34px rgba(32, 29, 25, .26);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: cs-float-arrive .42s cubic-bezier(.2, .75, .25, 1) both;
}
.cs-float-shell[hidden] { display: none !important; }
.cs-float-shell.is-closing { animation: cs-float-dismiss .18s ease-in both; pointer-events: none; }
.cs-float {
  display: flex; align-items: center; gap: 11px; min-width: 160px;
  padding: 9px 13px; color: #f7f4ee;
  transition: background .2s ease, color .2s ease;
}
.cs-float:hover { color: #fff; background: rgba(165, 129, 63, .18); }
.cs-float-mark { width: 40px; height: 40px; flex: 0 0 40px; transition: transform .2s ease; }
.cs-float:hover .cs-float-mark { transform: scale(1.05); }
.cs-float-mark svg { width: 40px; height: 40px; display: block; }
.cs-float-mark rect { fill: #06c755; }
.cs-float-mark text {
  fill: #fff; font: 700 9px/1 Arial, Helvetica, sans-serif;
}
.cs-float-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.cs-float-copy strong { font-size: 14px; letter-spacing: .06em; white-space: nowrap; }
.cs-float-copy small {
  margin-top: 5px; color: rgba(247, 244, 238, .68);
  font: 500 10px/1.2 Arial, Helvetica, sans-serif; white-space: nowrap;
}
.cs-float-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; min-height: 60px; padding: 0;
  border: 0; border-left: 1px solid rgba(201, 171, 109, .24);
  background: transparent; color: rgba(247, 244, 238, .7); cursor: pointer;
  font: 300 24px/1 Arial, Helvetica, sans-serif;
  transition: color .2s ease, background .2s ease;
}
.cs-float-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.cs-float:focus-visible,
.cs-float-close:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@keyframes cs-float-arrive {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes cs-float-dismiss {
  to { opacity: 0; transform: translate3d(14px, 0, 0); }
}

/* ---------- 首页横幅 ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 600px; display: flex; align-items: center;
  background: var(--ink-deep);
  color: #f3ede2;
  padding: 76px 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(25, 22, 18, .98) 0%, rgba(25, 22, 18, .9) 42%, rgba(25, 22, 18, .54) 70%, rgba(25, 22, 18, .44) 100%);
}
.hero-media {
  position: absolute; inset: -3%; z-index: -2;
  background: url('/uploads/1760406113115073.jpg') 72% 43% / cover no-repeat;
  filter: saturate(.72) sepia(.14) brightness(.8);
  animation: hero-settle 1.4s cubic-bezier(.2, .65, .2, 1) both;
}
.hero-inner { width: 100%; }
.hero-kicker {
  letter-spacing: .34em; font: 600 12px/1.2 Arial, Helvetica, sans-serif;
  color: var(--gold-soft); margin-bottom: 24px;
  animation: hero-rise .75s .05s both;
}
.hero h1 {
  max-width: 650px; font-size: clamp(48px, 5.4vw, 72px); font-weight: 500;
  line-height: 1.12; letter-spacing: .08em; margin-bottom: 24px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
  animation: hero-rise .8s .12s both;
}
.hero-statement {
  max-width: 540px; margin-bottom: 16px; font-size: 20px; line-height: 1.55;
  letter-spacing: .08em; color: #f0e8da; animation: hero-rise .8s .2s both;
}
.hero-sub { max-width: 570px; margin: 0 0 30px; color: #cfc5b7; font-size: 14px; animation: hero-rise .8s .28s both; }
.hero .btn { animation: hero-rise .8s .36s both; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-settle {
  from { opacity: 0; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #fff;
  border: none;
  min-height: 44px; padding: 10px 32px;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn:disabled { background: #b7aea0; cursor: not-allowed; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.ghost { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: #fff; }
.btn.danger { background: var(--danger); }

/* ---------- 购买流程 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 64px 24px 44px;
}
.step {
  border-left: 1px solid var(--line);
  padding: 8px 34px 10px;
}
.step:first-child { border-left: 0; padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-no { color: var(--gold); font-size: 22px; font-weight: 700; }
.step h3 { margin: 8px 0; font-size: 18px; letter-spacing: 2px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 商品 ---------- */
.products-section { padding: 32px 24px 72px; }
.section-title {
  font-size: 26px; letter-spacing: 4px; margin-bottom: 28px;
  padding-bottom: 12px; border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.product-card {
  display: block;
  background: var(--card);
  border: 0;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s, transform .3s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #efe9df; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .65s cubic-bezier(.2, .65, .2, 1); }
.product-card:hover .product-thumb img { transform: scale(1.035); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--gold); color: #fff;
  font-size: 12px; letter-spacing: 2px;
  padding: 3px 10px; border-radius: 2px;
}
.badge.status-sold, .status-sold .badge { background: #8a8175; }
.badge.status-coming, .status-coming .badge { background: #4a6b8a; }
.product-info { padding: 16px 18px 20px; }
.product-name {
  min-height: 3.4em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; font-size: 16px; color: var(--ink); margin-bottom: 8px;
}
.product-price { color: var(--gold); font-size: 18px; font-weight: 700; }
.product-price.big { font-size: 28px; margin: 8px 0; }
.product-stock { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- 详情页 ---------- */
.product-detail { padding: 56px 24px; }
.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.detail-thumb { position: relative; min-width: 0; background: #efe9df; }
.detail-thumb > img {
  width: 100%; max-height: 720px; aspect-ratio: 1 / 1;
  object-fit: contain; display: block;
}
.detail-info { min-width: 0; }
.detail-info h1 { font-size: 28px; margin-bottom: 8px; }

.attr-table { margin: 24px 0 20px; border-top: 1px solid var(--line); }
.attr-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.attr-label { color: var(--ink-soft); }
.attr-value { min-width: 0; text-align: right; }
.attr-row.stock.empty .attr-label,
.attr-row.stock.empty .attr-value { color: var(--danger); }

.stock-badge {
  display: inline-block;
  background: #e6f4ea; color: #2e7d46;
  padding: 6px 20px; font-size: 14px; letter-spacing: 2px; border-radius: 3px;
}
.stock-badge.unavailable { background: #f0ede7; color: #8a8175; }
.detail-info .btn { margin: 16px 0 8px; }

.meta-list { margin-top: 20px; font-size: 14px; }
.meta-row { display: flex; align-items: center; gap: 24px; padding: 5px 0; }
.meta-row dt { width: 48px; color: var(--ink-soft); flex-shrink: 0; }
.meta-row dd { min-width: 0; margin: 0; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #8a8175; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.share-btn:hover { background: var(--gold); color: #fff; }

.detail-desc { margin-top: 40px; padding: 20px; background: var(--card); border: 1px solid var(--line); }
.detail-desc h3 { font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; color: var(--gold); }
.detail-desc p { font-size: 14px; color: var(--ink-soft); white-space: pre-wrap; }
.back-link { display: inline-block; margin-top: 20px; font-size: 14px; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 120px 24px; }
.not-found h1 { font-size: 64px; color: var(--gold); margin-bottom: 12px; }
.not-found p { margin-bottom: 24px; }

/* ---------- 后台 ---------- */
.admin-login {
  min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px;
  width: 100%; max-width: 420px;
}
.admin-card h1 { font-size: 20px; letter-spacing: 2px; margin-bottom: 24px; text-align: center; }
.admin-card label { display: block; font-size: 14px; margin-bottom: 16px; color: var(--ink-soft); }
.admin-card input, .admin-card select, .admin-card textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 2px; background: #fdfcfa;
}
.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus {
  outline: none; border-color: var(--gold);
}
.admin-card .btn { width: 100%; margin-top: 8px; }
.admin-card .muted { text-align: center; margin-top: 16px; }

.admin-main { padding: 40px 24px 72px; }
.admin-main h1 { font-size: 24px; letter-spacing: 3px; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
}
.admin-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.inline-form { display: inline; }

.form-error {
  background: #f9e8e6; color: var(--danger);
  border: 1px solid #e5b8b2; padding: 10px 14px;
  font-size: 14px; margin-bottom: 16px;
}
.form-flash {
  background: #eef5e9; color: #4a7a3a;
  border: 1px solid #c4dcb4; padding: 10px 14px;
  font-size: 14px; margin-bottom: 16px;
}

.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px;
}
.admin-table th, .admin-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.admin-table th { background: #efe9df; letter-spacing: 2px; font-size: 13px; }
.admin-table .badge { position: static; }
.admin-thumb { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); }
.admin-thumb.large { width: 200px; height: auto; margin: 8px 0; }
.admin-ops { white-space: nowrap; }
.admin-ops .btn { margin-right: 6px; }
.display-stats-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  min-width: 320px;
}
.display-stats-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted, #7a7268);
}
.display-stats-form input {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  font-size: 14px;
}
.display-stats-form .btn { width: auto; margin: 0; }
.display-stats-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted, #7a7268);
}

/* 手机端表格横向滚动 */
.table-scroll { overflow-x: auto; }
.table-scroll .admin-table { min-width: 980px; }

.password-card { max-width: 520px; margin-top: 40px; padding: 24px 32px; }
.password-card h2 { font-size: 17px; letter-spacing: 2px; margin-bottom: 16px; }
.password-form .btn { width: auto; }

.edit-form { max-width: 720px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-actions .btn { width: auto; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink-deep); color: #b7aea0;
  text-align: center; padding: 46px 24px 42px;
  font-size: 14px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 13px;
  color: #f3ede2; font-size: 22px; letter-spacing: .12em; line-height: 1.2;
}
.footer-brand-mark {
  display: block; width: 46px; height: 46px; flex: 0 0 46px;
  border: 1px solid rgba(201, 171, 109, .45); border-radius: 50%; object-fit: cover;
}
.footer-roman {
  margin: 9px 0 18px; color: var(--gold-soft);
  font: 600 9px/1 Arial, Helvetica, sans-serif; letter-spacing: .3em;
}
.footer-promise { margin-bottom: 6px; color: #d3c9bb; letter-spacing: .08em; }
.site-footer .muted { color: #8a8175; }

/* ---------- 分类筛选 ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 6px 18px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink-soft);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- 详情页相册 ---------- */
.thumb-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb-item {
  width: 72px; height: 72px; object-fit: cover;
  border: 2px solid var(--line); border-radius: 3px; cursor: pointer;
}
.thumb-item:hover, .thumb-item.active { border-color: var(--gold); }

/* ---------- 后台相册管理 ---------- */
.gallery-card { max-width: 720px; margin-top: 24px; }
.gallery-card h2 { font-size: 17px; letter-spacing: 2px; margin-bottom: 16px; }
.gallery-manage { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery-item { text-align: center; }
.gallery-item img {
  width: 120px; height: 120px; object-fit: cover;
  border: 1px solid var(--line); display: block; margin-bottom: 8px;
}

/* ---------- 申购 ---------- */
.apply-box {
  margin: 20px 0; padding: 20px;
  background: var(--card); border: 1px solid var(--gold); border-radius: 3px;
}
.apply-rows { margin-bottom: 14px; }
.apply-rows .attr-row { border-bottom: none; padding: 5px 0; font-size: 14px; }
.apply-btn { width: 100%; text-align: center; }
.apply-notice { margin-top: 12px; font-size: 13px; color: var(--ink-soft); white-space: pre-wrap; }
.apply-query-link { display: inline-block; margin-top: 10px; font-size: 13px; }

.apply-form-card { max-width: 520px; margin: 48px auto; }
.center-card { text-align: center; }
.center-actions { justify-content: center; }
.apply-code { font-size: 26px; letter-spacing: 3px; color: var(--gold); font-weight: 700; margin: 8px 0 20px; }

.pay-modal {
  position: fixed;
  inset: 0;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: fit-content;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.pay-modal[open] { display: block; }
.pay-modal::backdrop {
  background: rgba(32, 29, 25, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pay-modal-card {
  padding: 36px 28px 28px;
  background: #fffdf8;
  border: 1px solid rgba(165, 129, 63, .28);
  box-shadow: var(--shadow);
  text-align: center;
}
.pay-modal-kicker {
  color: var(--gold);
  font: 600 10px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
}
.pay-modal-card h2 {
  margin: 12px 0 10px;
  color: var(--ink-deep);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .08em;
}
.pay-modal-card > p { color: var(--ink-soft); font-size: 15px; }
.pay-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.pay-modal-actions .btn { width: 100%; margin-top: 0; }
.apply-target { margin-bottom: 20px; font-size: 15px; }
.apply-target .product-price { margin-left: 10px; }
.quantity-field { margin-bottom: 18px; }
.admin-card .quantity-label {
  display: block; margin-bottom: 6px;
  color: var(--ink-soft); font-size: 14px;
}
.quantity-control {
  display: grid; grid-template-columns: 44px minmax(72px, 132px) 44px;
  width: max-content; max-width: 100%;
}
.quantity-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); background: #f6f1e8; color: var(--ink);
  font: 600 22px/1 Arial, Helvetica, sans-serif; cursor: pointer;
  touch-action: manipulation; transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.quantity-step:first-child { border-radius: 3px 0 0 3px; }
.quantity-step:last-child { border-radius: 0 3px 3px 0; }
.quantity-step:hover:not(:disabled) { border-color: var(--gold); background: var(--gold); color: #fff; }
.quantity-step:disabled { color: #aaa196; background: #eee9e0; cursor: not-allowed; }
.admin-card .quantity-control .quantity-input {
  height: 44px; min-width: 0; margin: 0; padding: 8px;
  border-left: 0; border-right: 0; border-radius: 0;
  text-align: center; font-variant-numeric: tabular-nums; appearance: textfield;
}
.admin-card .quantity-control .quantity-input:focus-visible {
  position: relative; z-index: 1;
  outline: 2px solid var(--gold); outline-offset: -2px;
}
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.form-help {
  display: block; margin-top: 7px;
  color: var(--ink-soft); font-size: 12px; font-weight: 400; line-height: 1.55;
}
.apply-done-quantity {
  display: inline-block; margin-top: 16px; padding: 7px 14px;
  border: 1px solid var(--line); color: var(--ink); font-size: 14px;
}
.apply-notice-box {
  background: #faf6ee; border: 1px solid var(--line);
  padding: 14px 16px; margin-bottom: 20px; font-size: 13px; color: var(--ink-soft);
}
.apply-notice-box h3 { font-size: 14px; color: var(--gold); letter-spacing: 2px; margin-bottom: 6px; }
.apply-notice-box p { white-space: pre-wrap; }
label.agree { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
label.agree input { width: auto; margin: 0; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.apply-state { font-weight: 700; }
.apply-state.pending { color: #b8860b; }
.apply-state.approved { color: #2e7d46; }
.apply-state.rejected { color: var(--danger); }
.apply-hint { margin-top: 14px; font-size: 14px; }
.apply-hint.approved { color: #2e7d46; }
.apply-hint.rejected { color: var(--danger); }
.note-cell { max-width: 160px; font-size: 13px; }
.quantity-cell { white-space: nowrap; text-align: center !important; font-variant-numeric: tabular-nums; }
.table-scroll .applications-table { min-width: 960px; }

.form-section {
  font-size: 17px; letter-spacing: 2px; margin: 24px 0 16px;
  padding-top: 20px; border-top: 1px solid var(--line);
}

/* ---------- 申购专区 ---------- */
.zone-section { background: #241f19; padding: 56px 0; }
.zone-title { color: #f3ede2; border-bottom-color: var(--gold-soft); }
.zone-badge-open { background: #b03a2e; }
.zone-badge-notStarted { background: #4a6b8a; }
.zone-badge-soldOut { background: #8a8175; }
.zone-badge-ended { background: #8a8175; }
.zone-deadline { font-size: 12px; color: var(--danger); margin-top: 4px; font-weight: 700; }

/* ---------- 倒计时 / 公示墙 / 成交 ---------- */
.apply-countdown {
  color: var(--danger); font-weight: 700; font-size: 15px;
  margin-bottom: 12px; font-variant-numeric: tabular-nums;
}
.apply-state.completed, .apply-hint.completed { color: #2e7d46; }
.apply-state.shipped, .apply-hint.shipped { color: #4a6b8a; }
.apply-state.confirmed, .apply-hint.confirmed { color: #4a6b8a; }
.apply-state.cancelled, .apply-hint.cancelled { color: #8a8175; }
.apply-ship-title { font-size: 15px; letter-spacing: 2px; color: var(--gold); margin: 24px 0 4px; }

/* 物流跟踪时间线 */
.trace-list { list-style: none; margin-top: 12px; }
.trace-list li {
  position: relative; padding: 0 0 14px 22px;
  font-size: 14px; color: var(--ink-soft);
  border-left: 2px solid var(--line); margin-left: 5px;
}
.trace-list li::before {
  content: ''; position: absolute; left: -6px; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
}
.trace-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.trace-time { display: block; color: var(--gold); font-size: 13px; letter-spacing: .04em; }
.trace-text { display: block; color: var(--ink); }
.account-record-ship {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.account-record-ship p { margin: 0 0 6px; color: var(--ink-soft); font-size: 13px; }
.account-record-ship p span { margin-right: 10px; }
.account-record-ship strong { color: var(--ink-deep); font-weight: 500; }
.container.winners-page { padding: 48px 24px 72px; }
.winners-board { margin: 28px 0 40px; border: 1px solid var(--line); background: #fff; }
.winners-board-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--ink-deep); color: var(--paper); border-top: 2px solid var(--gold);
}
.winners-board-toolbar h3 { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; letter-spacing: 2px; }
.winners-board-mark { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.winners-pause { font: inherit; font-size: 12px; letter-spacing: .3px; color: #e5d2a4; border: 1px solid #75694e; background: transparent; padding: 8px 12px; cursor: pointer; flex-shrink: 0; }
.winners-pause[hidden] { display: none; }
.winners-pause:hover { background: #3b3429; }
.winners-pause:focus-visible { outline: 2px solid #e5d2a4; outline-offset: 4px; }
.winners-column-head, .winner-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .8fr) minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 18px 24px; }
.winners-column-head { font-size: 12px; letter-spacing: 1px; background: #eeeae1; color: var(--ink-deep); }
.winners-list { list-style: none; padding: 0; margin: 0; }
.winner-row { border-bottom: 1px solid var(--line); align-items: center; min-height: 74px; font-size: 14px; }
.winner-row > div { min-width: 0; overflow-wrap: anywhere; }
.winner-product { display: flex; gap: 8px; align-items: flex-start; }
.winner-product a { color: var(--gold); }
.winner-product a:hover { color: var(--ink-deep); text-decoration: underline; }
.winner-time { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.winner-field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.winners-viewport.is-rolling { overflow: hidden; }
.winners-demo-notice { padding: 16px 24px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: #faf8f2; }
.winners-demo-badge { padding: 2px 5px; font-size: 10px; line-height: 1.6; border: 1px solid #c6b68d; color: #75603a; flex-shrink: 0; }
.winners-empty { padding: 30px 0; }
.broadcast-settings { margin: 24px 0; padding: 24px; max-width: none; border-top: 2px solid var(--gold); scroll-margin-top: 100px; }
.broadcast-settings-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.broadcast-settings-heading h2 { margin: 0; font-size: 20px; }
.broadcast-settings-heading a { font-size: 13px; }
.broadcast-settings-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.broadcast-settings .btn { width: auto; margin-top: 0; }
.broadcast-generation-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.broadcast-generation-form label { margin-bottom: 0; }
.broadcast-generation-form input[type="number"] { width: 180px; max-width: 100%; min-height: 44px; }
.broadcast-generation-form .btn { min-height: 44px; }
.broadcast-settings-note { font-size: 13px; color: var(--ink-soft); line-height: 1.8; }
@media (max-width: 760px) {
  .container.winners-page { padding: 30px 16px 48px; }
  .winners-board { margin: 24px 0 32px; }
  .winners-board-toolbar { padding: 16px; gap: 8px; }
  .winners-board-toolbar h3 { font-size: 15px; letter-spacing: 1px; gap: 8px; }
  .winners-pause { font-size: 11px; padding: 8px; }
  .winners-column-head { display: none; }
  .winner-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; padding: 20px 16px; font-size: 14px; }
  .winner-product { grid-column: 1 / -1; font-size: 16px; }
  .winner-field-label:not(.sr-only) { position: static; display: block; width: auto; height: auto; margin: 0 0 3px; overflow: visible; clip-path: none; white-space: normal; font-size: 10px; color: var(--ink-soft); }
  .winner-time { font-size: 12px; }
  .winners-demo-notice { padding: 14px 16px; font-size: 12px; }
  .broadcast-settings { padding: 20px 16px; }
  .broadcast-settings-actions .btn { min-height: 44px; }
}

/* ---------- 账户与本人信息 ---------- */
.account-main {
  position: relative; min-height: calc(100svh - 76px); overflow: hidden;
  padding: 74px 24px 110px; background:
    linear-gradient(180deg, #201d19 0 176px, var(--paper) 176px 100%);
}
.account-main::before {
  content: ''; position: absolute; width: 420px; height: 420px; top: -260px; right: -90px;
  border: 1px solid rgba(201, 171, 109, .18); border-radius: 50%; pointer-events: none;
}
.auth-sheet,
.identity-sheet,
.account-page-heading,
.account-section,
.account-logout { position: relative; z-index: 1; width: min(100%, 720px); margin-left: auto; margin-right: auto; }
.auth-sheet,
.identity-sheet {
  padding: 48px clamp(26px, 5vw, 62px) 56px; background: #fdfbf7;
  border-top: 3px solid var(--gold); box-shadow: 0 26px 70px rgba(32, 29, 25, .14);
  animation: account-sheet-in .62s cubic-bezier(.2, .72, .25, 1) both;
}
.identity-sheet { width: min(100%, 780px); }
.account-heading { margin-bottom: 38px; }
.account-eyebrow,
.account-section-kicker {
  color: var(--gold); font: 700 10px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .28em; text-transform: uppercase;
}
.account-heading h1 {
  margin-top: 14px; color: var(--ink-deep); font-size: clamp(30px, 4vw, 44px);
  font-weight: 500; line-height: 1.3; letter-spacing: .07em;
}
.account-intro { max-width: 580px; margin-top: 14px; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.auth-form { display: grid; gap: 22px; }
.account-field { min-width: 0; }
.account-field > label,
.account-field > span:first-child {
  display: block; margin-bottom: 7px; color: #514a42; font-size: 13px; letter-spacing: .06em;
}
.account-field input,
.account-field select,
.account-field textarea {
  display: block; width: 100%; min-height: 50px; padding: 11px 13px;
  border: 1px solid #d9d0c2; border-radius: 2px; background: #fffefa;
  color: var(--ink-deep); font-family: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.account-field textarea { min-height: 104px; resize: vertical; }
.account-field input:focus,
.account-field select:focus,
.account-field textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(165, 129, 63, .1);
}
.account-field.has-error input,
.account-field.has-error select,
.account-field.has-error textarea { border-color: var(--danger); }
.field-error { margin-top: 7px; color: var(--danger); font-size: 12px; line-height: 1.55; }
.account-error-summary { margin-bottom: 28px; }
.account-error-summary strong { display: block; }
.account-error-summary p { margin-top: 4px; }
.account-consent,
.identity-declaration { padding-top: 4px; }
.account-field label.agree { display: flex; align-items: flex-start; gap: 11px; margin: 0; line-height: 1.65; }
.account-field label.agree input { width: 18px; min-height: 18px; height: 18px; margin-top: 3px; flex: 0 0 18px; }
.auth-submit { width: 100%; min-height: 50px; margin-top: 4px; }
.auth-switch { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--ink-soft); }
.auth-switch a { margin-left: 10px; text-decoration: underline; text-underline-offset: 4px; }

.identity-section { margin: 0; padding: 32px 0; border: 0; border-top: 1px solid var(--line); }
.identity-section:first-of-type { border-top-color: var(--gold); }
.identity-section legend {
  margin-bottom: 20px; padding-right: 16px; color: var(--ink-deep);
  font-size: 17px; font-weight: 600; letter-spacing: .12em;
}
.identity-field-grid { display: grid; gap: 20px; }
.identity-field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.identity-address-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 20px; }
.identity-full { grid-column: 1 / -1; }
.identity-actions { display: flex; align-items: center; gap: 26px; margin-top: 30px; }
.identity-actions .btn { min-width: 210px; }
.account-secondary-link { font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }

.account-page-heading { color: #f5efe5; margin-bottom: 50px; }
.account-page-heading h1 { color: #fffaf0; }
.account-identity-line { display: flex; gap: 18px; margin-top: 18px; color: #c8bfb2; font-size: 13px; }
.account-identity-line dt { color: var(--gold-soft); }
.account-section { padding: 38px 0; border-top: 1px solid #d8cebe; }
.identity-overview { border-top: 2px solid var(--gold); }
.account-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; }
.account-section-heading h2 { margin-top: 9px; font-size: 24px; font-weight: 500; letter-spacing: .06em; }
.identity-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.identity-status > span { width: 8px; height: 8px; border-radius: 50%; background: #a69d90; }
.identity-status.is-complete > span { background: #2e7d46; box-shadow: 0 0 0 4px rgba(46, 125, 70, .1); }
.identity-summary { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; color: var(--ink-soft); font-size: 14px; }
.account-section-action { margin-top: 26px; }
.account-empty { margin-top: 24px; color: var(--ink-soft); font-size: 14px; }
.account-record-list { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.account-record { display: grid; grid-template-columns: minmax(210px, 1.1fr) minmax(310px, 1fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.account-record-code { color: var(--ink-soft); font-size: 11px; letter-spacing: .1em; }
.account-record-code strong { display: block; margin-top: 4px; color: var(--gold); font: 600 14px/1.4 Arial, sans-serif; letter-spacing: .06em; }
.account-record h3 { margin-top: 9px; font-size: 16px; font-weight: 500; }
.account-record h3 a { color: var(--ink-deep); }
.account-record-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-record-meta dt { margin-bottom: 5px; color: var(--ink-soft); font-size: 10px; letter-spacing: .1em; }
.account-record-meta dd { font-size: 13px; }
.account-logout { padding-top: 34px; border-top: 1px solid var(--line); }
.account-text-button { border: 0; background: none; color: var(--ink-soft); font: 13px/1.4 inherit; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.account-text-button:hover { color: var(--danger); }

.applicant-summary { margin: 22px 0; padding: 20px 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); }
.applicant-summary-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.applicant-summary-heading h2 { font-size: 15px; letter-spacing: .1em; }
.applicant-summary-heading a { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.applicant-summary dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 7px 0; }
.applicant-summary dt { color: var(--ink-soft); font-size: 12px; }
.applicant-summary dd { min-width: 0; font-size: 13px; }
.applicant-summary dd small { display: block; color: var(--ink-soft); }
.applicant-summary > p { margin-top: 12px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }

@keyframes account-sheet-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 品牌与鉴定 ---------- */
.heritage-page { overflow: hidden; background: var(--paper); }
.heritage-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 76px); display: flex; align-items: center;
  padding: 72px 0; background: #1b1916; color: #f5efe5;
}
.heritage-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 78% 24%, rgba(201, 171, 109, .12), transparent 31%),
    linear-gradient(118deg, #171512 0%, #211e19 58%, #151411 100%);
}
.heritage-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}
.heritage-orbit {
  position: absolute; width: 520px; height: 520px; right: -150px; top: -170px;
  border: 1px solid rgba(201, 171, 109, .16); border-radius: 50%; pointer-events: none;
}
.heritage-orbit::before,
.heritage-orbit::after {
  content: ''; position: absolute; border: 1px solid rgba(201, 171, 109, .1); border-radius: 50%;
}
.heritage-orbit::before { inset: 58px; }
.heritage-orbit::after { inset: 116px; }
.heritage-hero-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: center; gap: clamp(56px, 8vw, 112px); width: 100%;
}
.heritage-intro { max-width: 610px; }
.heritage-eyebrow,
.heritage-section-label {
  color: var(--gold-soft); font: 700 10px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: .32em;
}
.heritage-eyebrow { margin-bottom: 24px; animation: heritage-copy-in .7s .04s both; }
.heritage-brandline {
  margin-bottom: 15px; color: rgba(245, 239, 229, .7);
  font-size: 15px; letter-spacing: .18em; animation: heritage-copy-in .72s .1s both;
}
.heritage-intro h1 {
  max-width: 650px; margin-bottom: 26px; color: #fffaf0;
  font-size: clamp(50px, 5.3vw, 74px); font-weight: 500;
  line-height: 1.18; letter-spacing: .06em; word-break: keep-all; overflow-wrap: normal;
  text-shadow: 0 12px 38px rgba(0, 0, 0, .32); animation: heritage-copy-in .78s .16s both;
}
.heritage-lede {
  max-width: 510px; color: #c9c0b3; font-size: 15px; line-height: 1.9;
  letter-spacing: .06em; animation: heritage-copy-in .76s .24s both;
}
.heritage-portrait {
  width: min(100%, 430px); justify-self: end; margin: 0;
  animation: heritage-portrait-in 1s .14s cubic-bezier(.2, .72, .25, 1) both;
}
.heritage-photo-frame {
  position: relative; padding: 13px; border: 1px solid rgba(201, 171, 109, .46);
  background: rgba(247, 244, 238, .04); box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}
.heritage-photo-frame::before,
.heritage-photo-frame::after {
  content: ''; position: absolute; width: 42px; height: 42px; pointer-events: none;
}
.heritage-photo-frame::before {
  left: -1px; top: -1px; border-left: 2px solid var(--gold-soft); border-top: 2px solid var(--gold-soft);
}
.heritage-photo-frame::after {
  right: -1px; bottom: -1px; border-right: 2px solid var(--gold-soft); border-bottom: 2px solid var(--gold-soft);
}
.heritage-photo-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 400 / 358; object-fit: contain;
  filter: saturate(.88) contrast(1.02); transition: transform .55s cubic-bezier(.2, .65, .2, 1), filter .4s ease;
}
.heritage-portrait:hover .heritage-photo-frame img { transform: scale(1.018); filter: saturate(.98) contrast(1.03); }
.heritage-portrait figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding-top: 14px; color: #f2eadc;
}
.heritage-portrait figcaption span {
  color: var(--gold-soft); font: 700 9px/1 Arial, Helvetica, sans-serif; letter-spacing: .3em;
}
.heritage-portrait figcaption strong { font-size: 16px; font-weight: 500; letter-spacing: .16em; }

.heritage-proof { border-top: 1px solid #ddd3c2; border-bottom: 1px solid #ddd3c2; background: #f0eadf; }
.heritage-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 40px; padding-bottom: 40px; }
.heritage-proof-item { padding: 0 38px; border-left: 1px solid #d6cab8; }
.heritage-proof-item:first-child { padding-left: 0; border-left: 0; }
.heritage-proof-item:last-child { padding-right: 0; }
.heritage-proof-item > strong {
  display: block; margin-bottom: 8px; color: var(--ink-deep);
  font: 500 clamp(38px, 4vw, 54px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.025em;
}
.heritage-proof-item > strong > span { margin-left: 2px; color: var(--gold); font-size: .48em; }
.heritage-proof-item > span { color: var(--ink-soft); font-size: 13px; letter-spacing: .09em; }

.heritage-story { padding: 112px 0 120px; }
.heritage-story-grid {
  display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.35fr);
  align-items: start; gap: clamp(64px, 9vw, 126px);
}
.heritage-story-heading { position: sticky; top: 128px; }
.heritage-story-heading h2 {
  margin-top: 22px; color: var(--ink-deep); font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 500; line-height: 1.45; letter-spacing: .06em; word-break: keep-all; overflow-wrap: normal;
}
.heritage-heading-rule { display: block; width: 76px; height: 1px; margin-top: 32px; background: var(--gold); }
.heritage-prose { max-width: 680px; }
.heritage-prose p {
  color: #514a42; font-size: 17px; line-height: 2.06; letter-spacing: .025em;
}
.heritage-prose p + p { margin-top: 38px; padding-top: 38px; border-top: 1px solid var(--line); }
.heritage-prose .heritage-prose-conclusion { color: var(--ink-deep); font-size: 18px; }

.heritage-cta { padding: 0 0 118px; }
.heritage-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 42px;
  padding: 44px 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line);
}
.heritage-cta h2 { margin-top: 14px; color: var(--ink-deep); font-size: clamp(27px, 3vw, 38px); font-weight: 500; letter-spacing: .06em; }
.heritage-cta-link {
  position: relative; display: inline-flex; align-items: center; gap: 24px; flex: 0 0 auto;
  padding: 14px 0; color: var(--ink-deep); font-size: 15px; letter-spacing: .12em;
}
.heritage-cta-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px;
  background: var(--gold); transform: scaleX(.32); transform-origin: left; transition: transform .28s ease;
}
.heritage-cta-link:hover { color: var(--gold); }
.heritage-cta-link:hover::after { transform: scaleX(1); }
.heritage-cta-link span { color: var(--gold); font-size: 22px; transition: transform .28s ease; }
.heritage-cta-link:hover span { transform: translateX(6px); }

.about-motion .about-reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s cubic-bezier(.2, .7, .2, 1); }
.about-motion .about-reveal.is-visible { opacity: 1; transform: translateY(0); }
.about-motion .heritage-proof .heritage-proof-item { opacity: 0; transform: translateY(14px); transition: opacity .58s ease, transform .58s ease; }
.about-motion .heritage-proof.is-visible .heritage-proof-item {
  opacity: 1; transform: translateY(0); transition-delay: calc(var(--reveal-order) * 90ms + 80ms);
}
@keyframes heritage-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heritage-portrait-in {
  from { opacity: 0; transform: translateY(24px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  body.nav-open { overflow: hidden; }

  /* 较窄桌面与平板：只折叠头部导航，正文继续使用桌面布局 */
  .nav { height: 68px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-ja { font-size: 18px; letter-spacing: .055em; }
  .brand-roman { margin-top: 5px; font-size: 6px; letter-spacing: .11em; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 44px; height: 44px; flex: 0 0 44px; margin-left: 10px;
    border: 1px solid rgba(165, 129, 63, .38); border-radius: 2px;
    background: #fbf8f1; color: var(--ink); cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor;
    transform-origin: center; transition: transform .24s ease, opacity .2s ease;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; margin-left: 0;
    padding: 14px 18px 20px; background: rgba(253, 252, 249, .99);
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(32, 29, 25, .1);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .primary-nav > a {
    display: flex; align-items: center; min-height: 48px; margin-left: 0;
    border-bottom: 1px solid var(--line); font-size: 15px;
  }
  .primary-nav > a::after { display: none; }
  .lang-switch { margin: 12px 0 0; padding-left: 0; border-left: 0; }
  .lang-select { width: 100%; min-height: 44px; }
  #products, #apply-zone { scroll-margin-top: 68px; }
  .account-main { min-height: calc(100svh - 68px); }

  .heritage-hero { min-height: calc(100svh - 68px); }
  .heritage-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 48px; }
  .heritage-intro h1 { font-size: clamp(46px, 5.8vw, 62px); }
}

@media (max-width: 760px) {
  .container { padding: 0 14px; }

  /* 首页 */
  .hero { min-height: 590px; padding: 64px 0 58px; }
  .hero::after {
    background: linear-gradient(90deg, rgba(25, 22, 18, .97) 0%, rgba(25, 22, 18, .88) 56%, rgba(25, 22, 18, .55) 100%);
  }
  .hero-media { background-position: 62% 42%; }
  .hero-kicker { margin-bottom: 20px; font-size: 10px; letter-spacing: .26em; }
  .hero h1 { max-width: 100%; margin-bottom: 22px; font-size: clamp(34px, 10.5vw, 46px); letter-spacing: .055em; }
  .hero-statement { max-width: 340px; font-size: 18px; letter-spacing: .04em; }
  .hero-sub { max-width: 340px; font-size: 13px; }

  /* 品牌与鉴定 */
  .heritage-hero { min-height: auto; padding: 58px 0 66px; }
  .heritage-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  .heritage-intro { max-width: 620px; }
  .heritage-intro h1 { font-size: clamp(40px, 11vw, 56px); letter-spacing: .045em; }
  .heritage-lede { max-width: 560px; }
  .heritage-portrait { width: min(100%, 400px); justify-self: start; }
  .heritage-orbit { width: 380px; height: 380px; right: -180px; top: -130px; }
  .heritage-proof-grid { grid-template-columns: minmax(0, 1fr); padding-top: 14px; padding-bottom: 14px; }
  .heritage-proof-item { padding: 23px 0; border-top: 1px solid #d6cab8; border-left: 0; }
  .heritage-proof-item:first-child { padding-top: 20px; border-top: 0; }
  .heritage-proof-item:last-child { padding-bottom: 20px; }
  .heritage-proof-item > strong { margin-bottom: 6px; font-size: 42px; }
  .heritage-story { padding: 76px 0 84px; }
  .heritage-story-grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .heritage-story-heading { position: static; }
  .heritage-story-heading h2 { margin-top: 18px; font-size: clamp(31px, 8.5vw, 42px); }
  .heritage-heading-rule { margin-top: 24px; }
  .heritage-prose p { font-size: 16px; line-height: 2; }
  .heritage-prose p + p { margin-top: 30px; padding-top: 30px; }
  .heritage-prose .heritage-prose-conclusion { font-size: 17px; }
  .heritage-cta { padding-bottom: 104px; }
  .heritage-cta-inner { align-items: flex-start; flex-direction: column; gap: 26px; padding: 36px 0; }
  .heritage-cta h2 { line-height: 1.45; }
  .heritage-cta-link { min-height: 48px; }

  .steps { grid-template-columns: 1fr; gap: 0; padding: 34px 14px 16px; }
  .step { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .step:first-child { border-top: 0; padding: 24px 0; }
  .step:last-child { padding: 24px 0; }
  .section-title { margin-bottom: 20px; font-size: 21px; }
  .products-section { padding: 24px 14px 48px; }
  .zone-section { padding: 36px 0; }
  #products, #apply-zone { scroll-margin-top: 68px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-info { padding: 10px 12px 14px; }
  .product-name { min-height: 3.5em; font-size: 13px; }
  .product-price { font-size: 15px; }
  .product-price.big { font-size: 22px; }
  .product-stock { font-size: 12px; }
  .badge { top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; }
  .cat-filter {
    flex-wrap: nowrap; gap: 8px; margin: 14px -14px 12px; padding: 0 14px 6px;
    overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none;
  }
  .cat-filter::-webkit-scrollbar { display: none; }
  .chip { min-height: 44px; flex: 0 0 auto; }

  /* 详情页 */
  .product-detail { padding: 28px 14px; }
  .detail-top { grid-template-columns: 1fr; gap: 24px; }
  .detail-thumb > img { max-height: 68svh; }
  .detail-info h1 { font-size: 22px; }
  .attr-row { align-items: flex-start; gap: 14px; }
  .meta-row { align-items: flex-start; gap: 14px; }
  .meta-row dt { width: 42px; }
  .share-btns { justify-content: flex-start; }

  /* 表单 / 后台 */
  .form-row, .form-row.two { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-wrap: wrap; }
  .admin-card input, .admin-card select, .admin-card textarea { font-size: 16px; }
  .apply-form-card { margin: 28px auto; }
  .quantity-control { grid-template-columns: 44px minmax(72px, 1fr) 44px; width: 100%; }
  .apply-code { font-size: 22px; letter-spacing: .14em; overflow-wrap: anywhere; }
  .admin-main { padding: 24px 14px 48px; }
  .admin-actions { width: 100%; }

  /* 账户 / 本人信息 */
  .account-main {
    padding: 38px 14px 96px;
    background: linear-gradient(180deg, #201d19 0 126px, var(--paper) 126px 100%);
  }
  .account-main::before { width: 300px; height: 300px; top: -210px; right: -130px; }
  .auth-sheet, .identity-sheet { padding: 32px 22px 42px; }
  .account-heading { margin-bottom: 30px; }
  .account-heading h1 { font-size: 30px; }
  .identity-field-grid.two, .identity-address-grid { grid-template-columns: minmax(0, 1fr); }
  .identity-full { grid-column: auto; }
  .identity-actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .identity-actions .btn { width: 100%; min-width: 0; }
  .account-page-heading { margin-bottom: 42px; }
  .account-identity-line { display: block; }
  .account-identity-line dd { margin-top: 4px; overflow-wrap: anywhere; }
  .account-section-heading { flex-direction: column; gap: 14px; }
  .account-record { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .account-record-meta { gap: 10px; }
  .applicant-summary dl > div { grid-template-columns: 78px minmax(0, 1fr); }

  /* 悬浮客服 */
  .cs-float-shell {
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .cs-float { justify-content: center; width: 56px; min-width: 56px; padding: 8px; }
  .cs-float-copy { display: none; }
  body.nav-open .cs-float-shell { visibility: hidden; opacity: 0; pointer-events: none; }
  body:has(.cs-float-shell:not([hidden])) .site-footer {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .admin-card { padding: 22px; }
  .hero-statement { font-size: 17px; }
  .heritage-hero { padding-top: 48px; }
  .heritage-eyebrow { margin-bottom: 19px; font-size: 9px; letter-spacing: .24em; }
  .heritage-brandline { font-size: 13px; letter-spacing: .13em; }
  .heritage-intro h1 { font-size: clamp(36px, 11.5vw, 46px); line-height: 1.22; }
  .heritage-lede { font-size: 14px; }
  .heritage-portrait figcaption { gap: 12px; }
  .heritage-portrait figcaption strong { font-size: 14px; }
  .heritage-story-heading h2 { font-size: 30px; }
  .heritage-cta h2 { font-size: 26px; }
  .footer-brand { gap: 10px; font-size: 19px; letter-spacing: .08em; }
  .footer-brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .product-stock { min-height: 1.7em; }
}

@media (max-width: 340px) {
  .brand-roman { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-name { font-size: 14px; }
}

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