/* ============================================================
   通用模板2号 —— Light Editorial（米白墨绿 · 浅色高级编辑风）
   米白/暖白底 + 墨绿主色贯彻到底：清新通透、有呼吸感，
   保留大字号衬线标题、滚动渐入、卡片悬浮等编辑感特效。
   ============================================================ */

:root {
  --bg: #f7f5f0;
  --bg-2: #f0ede5;
  --surface: #ffffff;
  --surface-2: #fbfaf5;
  --line: rgba(31, 77, 62, 0.26);
  --line-soft: rgba(31, 77, 62, 0.10);
  --gold: #1f4d3e;
  --gold-bright: #33775f;
  --brand: #1f4d3e;
  --brand-strong: #33775f;
  --brand-soft: rgba(31, 77, 62, 0.08);
  --text: #22322b;
  --muted: #68766e;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--gold); }
button { font-family: inherit; }

::selection { background: var(--gold); color: #f7f5f0; }

.market-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 480px at 85% -120px, rgba(31, 77, 62, 0.07), transparent 60%),
    radial-gradient(900px 420px at -10% 30%, rgba(31, 77, 62, 0.04), transparent 55%),
    var(--bg);
}

.page-main { flex: 1; }

/* ===================== 顶部导航（固定 · 米白描绿） ===================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 76px;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-nav.nav-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(31, 48, 40, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand small {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-initial {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-bright);
}

.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 9px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--gold); transition: transform .3s var(--ease), opacity .3s; }

/* 语言 / 货币 下拉 */
.commerce-switcher { display: flex; align-items: center; gap: 10px; }
.custom-select { position: relative; }
.custom-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.custom-select-trigger:hover { border-color: var(--line); color: var(--text); background: rgba(31, 77, 62, 0.06); }
.custom-select-tag { color: var(--gold); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; }
.custom-select-caret {
  width: 6px; height: 6px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease);
}
.custom-select[data-open] .custom-select-caret { transform: rotate(-135deg) translateY(-1px); }
.custom-select-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  display: none;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(23, 37, 31, 0.18);
  z-index: 80;
}
.custom-select[data-open] .custom-select-panel { display: flex; animation: panelIn .28s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.custom-select-option {
  background: none;
  border: 0;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.custom-select-option:hover { background: rgba(31, 77, 62, 0.1); color: var(--text); }
.custom-select-option.is-active { color: var(--gold-bright); background: rgba(31, 77, 62, 0.14); }

/* 购物车入口（JS 注入） */
.cart-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.cart-entry:hover { border-color: var(--gold); background: rgba(31, 77, 62, 0.1); transform: translateY(-2px); }
.cart-entry svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #f7f5f0;
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===================== Hero（首页全屏 · 浅绿光晕） ===================== */
.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.hero-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 380px at 78% 30%, rgba(31, 77, 62, 0.10), transparent 65%),
    radial-gradient(420px 320px at 12% 78%, rgba(31, 77, 62, 0.05), transparent 60%);
  animation: auraDrift 14s ease-in-out infinite alternate;
}
@keyframes auraDrift {
  from { opacity: .75; transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 1; transform: translate3d(-24px, 18px, 0) scale(1.06); }
}
.hero-inner {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 110px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-banner--no-image .hero-inner { grid-template-columns: 1fr; max-width: 900px; }

.hero-rule {
  display: block;
  width: 72px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 26px;
}
.hero-copy h1 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--text);
}
.hero-copy h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-bright) 50%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  margin: 0 0 36px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16.5px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media {
  position: relative;
  border: 1px solid var(--line);
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(31, 48, 40, 0.10);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
  z-index: 0;
}
.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  animation: heroBreath 12s ease-in-out infinite alternate;
}
@keyframes heroBreath { from { transform: scale(1); } to { transform: scale(1.045); } }

/* ===================== 按钮 ===================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-dark {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border: 1px solid transparent;
  color: #f7f5f0;
}
.btn-dark::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left .55s var(--ease);
}
.btn-dark:hover { box-shadow: 0 10px 32px rgba(31, 77, 62, 0.35); transform: translateY(-2px); }
.btn-dark:hover::after { left: 120%; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-bright);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(31, 77, 62, 0.08); transform: translateY(-2px); }

.btn-signal {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border: 1px solid transparent;
  color: #f7f5f0;
}
.btn-signal:hover { box-shadow: 0 10px 28px rgba(31, 77, 62, 0.35); transform: translateY(-2px); }

/* ===================== 区块 ===================== */
.section {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 96px) clamp(20px, 4vw, 56px);
}
.section + .section { border-top: 1px solid var(--line-soft); }
.section--lead { padding-top: clamp(64px, 9vh, 120px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.section-head h1, .section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
  color: var(--text);
}
.section-head h1 { font-size: clamp(36px, 4.6vw, 58px); }
.section-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-kicker {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-copy { color: var(--muted); max-width: 64ch; margin: 0; }

/* ===================== 产品网格 / 卡片 ===================== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 50% -60px, rgba(31, 77, 62, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--line);
  box-shadow: 0 30px 60px rgba(23, 37, 31, 0.14);
}
.product-card:hover::before { opacity: 1; }

.product-image { display: block; overflow: hidden; }
.product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition: transform .7s var(--ease), filter .4s var(--ease);
}
.product-card:hover .product-image img { transform: scale(1.07); filter: saturate(1) contrast(1.05); }

.product-body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.product-title h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
  color: var(--text);
}
.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-body .btn { align-self: flex-start; margin-top: auto; min-height: 40px; padding: 0 22px; font-size: 12px; }

.price {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* ===================== 关于板块 ===================== */
.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-panel--flip .about-copy { order: 1; }
.about-panel--flip .about-photo { order: 2; }
.about-panel--single { grid-template-columns: 1fr; max-width: 820px; }
.about-photo {
  border: 1px solid var(--line);
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(31, 48, 40, 0.10);
}
.about-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; filter: saturate(0.92); }
.about-copy h1, .about-copy h2 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}
.about-copy--hero h1 { font-size: clamp(38px, 5vw, 64px); }

.ad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: clamp(36px, 5vh, 56px);
}
.ad-grid--flush { margin-top: 0; }
.ad-card {
  background: var(--bg-2);
  padding: 30px 26px;
  transition: background .35s var(--ease);
}
.ad-card:hover { background: var(--surface); }
.ad-card h4 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--gold-bright);
}
.ad-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===================== 新闻 ===================== */
.news-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 12.5px; letter-spacing: 0.12em; color: var(--gold); }
.news-intro {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list { display: flex; flex-direction: column; }
.news-item-link { text-decoration: none; color: inherit; }
.news-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left .35s var(--ease);
}
.news-item:hover { padding-left: 12px; }
.news-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: saturate(0.9);
}
.news-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 23px;
  color: var(--text);
  transition: color .25s var(--ease);
}
.news-item:hover .news-body h3 { color: var(--gold-bright); }
.news-body .news-intro { margin-top: 8px; }

/* 新闻详情 */
.news-detail { max-width: 820px; }
.news-detail-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
}
.news-detail-meta {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.news-detail-content { color: #43524a; font-size: 16.5px; }
.news-detail-content img { margin: 20px 0; border: 1px solid var(--line-soft); }
.news-detail-empty { color: var(--muted); }

/* ===================== 列表页布局（筛选侧栏） ===================== */
.shop-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.filters { position: sticky; top: 100px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-chip {
  display: block;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.filter-chip:hover { color: var(--text); background: rgba(31, 77, 62, 0.05); }
.filter-chip.active {
  color: var(--gold-bright);
  border-left-color: var(--gold);
  background: rgba(31, 77, 62, 0.08);
}
.list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}
.sort-select .custom-select-panel { min-width: 190px; }

/* ===================== 产品详情 ===================== */
.detail-layout {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 96px) clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.detail-gallery { min-width: 0; }
.main-product-image {
  border: 1px solid var(--line);
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(31, 48, 40, 0.10);
}
.main-product-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}
.thumb-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb-row img {
  width: 74px; height: 74px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.thumb-row img:hover { opacity: 1; transform: translateY(-2px); }
.thumb-row img.is-active { opacity: 1; border-color: var(--gold); }

.detail-info {
  position: sticky;
  top: 100px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.detail-info h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.15;
}
.detail-info > .price { font-size: 30px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.qty-box {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  align-self: flex-start;
}
.qty-box button {
  width: 44px;
  background: transparent;
  border: 0;
  color: var(--gold-bright);
  font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}
.qty-box button:hover { background: rgba(31, 77, 62, 0.12); }
.qty-box input {
  width: 64px;
  min-height: 44px;
  text-align: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  color: var(--text);
  font-size: 15px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rich-text { color: #43524a; }
.rich-text img { max-width: 100%; height: auto; margin: 16px 0; border: 1px solid var(--line-soft); }
.detail-images { display: flex; flex-direction: column; gap: 18px; }
.detail-images img { width: 100%; border: 1px solid var(--line-soft); }

/* 规则公示 tabs */
.rules-tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.rule-tab {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.rule-tab:hover { color: var(--text); border-color: var(--line); }
.rule-tab.active {
  color: #f7f5f0;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-color: transparent;
}
.rule-panel { display: none; }
.rule-panel.active { display: block; animation: panelIn .35s var(--ease); }

/* ===================== 联系页 ===================== */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(28px, 4vh, 44px);
  align-items: start;
}
.contact-info h3 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--gold-bright);
}
.contact-info-list { display: flex; flex-direction: column; }
.contact-info-item, .contact-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info-item small, .contact-item small {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-info-item strong, .contact-item strong { font-weight: 500; color: var(--text); font-size: 15.5px; }
.contact-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }

.social-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.social-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.social-card:hover { transform: translateY(-4px); border-color: var(--line); }
.social-card strong { font-family: var(--font-serif); font-weight: 400; font-size: 18px; color: var(--gold-bright); }
.social-card span {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== 表单 ===================== */
.order-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 2px;
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9aa79e; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(31, 77, 62, 0.14);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

.search-form { max-width: 640px; }
.search-input { min-height: 54px; font-size: 16px; }

/* ===================== 弹窗（下单 / 购物车） ===================== */
.purchase-modal, .cart-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 34, 30, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.purchase-modal.is-open, .cart-modal.is-open { display: flex; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-window {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 40px);
  animation: modalUp .4s var(--ease);
  box-shadow: 0 40px 120px rgba(23, 37, 31, 0.22);
}
@keyframes modalUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-top span {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.modal-top button {
  background: none;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: color .2s, border-color .2s;
}
.modal-top button:hover { color: var(--text); border-color: var(--gold); }
.modal-window h2 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
}
.modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

/* 购物车弹窗 */
.cart-window { width: min(620px, 100%); }
.cart-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item-img { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line-soft); }
.cart-item-name { font-size: 14.5px; color: var(--text); }
.cart-item-price { font-size: 13px; color: var(--muted); }
.cart-qty { transform: scale(0.86); transform-origin: left center; }
.cart-item-subtotal { font-family: var(--font-serif); color: var(--gold-bright); font-size: 15px; white-space: nowrap; }
.cart-item-del {
  background: none; border: 0; color: var(--muted);
  font-size: 18px; cursor: pointer; transition: color .2s;
}
.cart-item-del:hover { color: #e08e79; }
.cart-empty { color: var(--muted); text-align: center; padding: 30px 0; }
.cart-summary {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.cart-total { font-family: var(--font-serif); font-size: 22px; color: var(--gold-bright); }
.cart-form { display: grid; gap: 18px; }

/* 右下角购物车提示条 */
.cart-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 210;
  width: min(340px, calc(100vw - 44px));
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: 0 30px 80px rgba(23, 37, 31, 0.18);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.cart-toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.cart-toast-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: 0; color: var(--muted);
  font-size: 16px; cursor: pointer;
}
.cart-toast-close:hover { color: var(--text); }
.cart-toast-title {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.cart-toast-items { display: flex; flex-direction: column; gap: 10px; max-height: 180px; overflow-y: auto; margin-bottom: 14px; }
.cart-toast-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.cart-toast-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-toast-sub { color: var(--gold-bright); font-family: var(--font-serif); white-space: nowrap; }
.cart-toast-del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; }
.cart-toast-del:hover { color: #e08e79; }
.cart-toast-checkout {
  width: 100%;
  min-height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border: 0;
  color: #f7f5f0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.cart-toast-checkout:hover { box-shadow: 0 8px 24px rgba(31, 77, 62, 0.35); transform: translateY(-1px); }

/* 墨绿 toast */
.live-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  background: #ffffff;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 14px;
  padding: 14px 22px;
  box-shadow: 0 20px 60px rgba(23, 37, 31, 0.18);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.live-toast.is-visible { transform: none; opacity: 1; }

/* 下单成功模态 */
.order-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 34, 30, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.order-success-overlay.is-open { opacity: 1; pointer-events: auto; }
.order-success-modal {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 48px 44px;
  text-align: center;
  max-width: 380px;
  width: calc(100% - 40px);
  animation: modalUp .4s var(--ease);
}
.order-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-success-title {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text);
  margin-bottom: 26px;
}
.order-success-btn {
  min-height: 44px;
  padding: 0 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border: 0;
  color: #f7f5f0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

/* ===================== 页脚（深墨绿 · 浅色文字） ===================== */
.site-footer {
  margin-top: auto;
  background: #16382c;
  padding: clamp(40px, 6vh, 64px) clamp(20px, 4vw, 56px) 28px;
}
.footer-main {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
.footer-brand strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 24px;
  color: #f2efe6;
  display: block;
  margin-bottom: 10px;
}
.footer-brand p { margin: 0; color: rgba(240, 238, 226, 0.62); font-size: 14px; max-width: 46ch; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; color: rgba(240, 238, 226, 0.62); font-size: 14px; }
.footer-bottom {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(240, 238, 226, 0.45);
  font-size: 13px;
}
.footer-cookie-link { color: rgba(240, 238, 226, 0.6); text-decoration: none; transition: color .2s; }
.footer-cookie-link:hover { color: #ffffff; }

/* ===================== 滚动渐入动画 ===================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-inview { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 560px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-group { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .filter-chip { border-left: 0; border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 16px; }
  .filter-chip.active { border-color: var(--gold); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-info { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-nav { height: 64px; gap: 14px; flex-wrap: wrap; padding: 10px clamp(16px, 4vw, 28px); }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line-soft);
  }
  .site-nav.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 15px; }
  .nav-links a::after { left: 4px; right: auto; width: 40px; }
  .commerce-switcher { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .brand { font-size: 17px; }
  .custom-select-tag { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-panel { grid-template-columns: 1fr; }
  .about-panel--flip .about-copy { order: 2; }
  .about-panel--flip .about-photo { order: 1; }
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-cover { max-width: 420px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-banner { min-height: 0; }
  .cart-item { grid-template-columns: 52px 1fr auto; }
  .cart-item-subtotal { grid-column: 2; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 46px); }
  .product-title { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-main { flex-direction: column; }
  .modal-window { padding: 22px 18px; }
}

/* ===================== 降低动效偏好兜底 ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
