﻿/* ============================================================
 * 春联小铺 · 国风样式系统
 * 宣纸米白 × 朱砂红 × 鎏金 × 黛青
 * ============================================================ */
:root {
  --paper: #f6efe0;
  --paper-2: #fcf8ee;
  --paper-3: #efe6d2;
  --ink: #322d27;
  --ink-soft: #6d6455;
  --ink-faint: #9a8f7c;
  --red: #a63228;
  --red-deep: #87201a;
  --red-ink: #c0392b;
  --gold: #b08d3e;
  --gold-light: #d8bc78;
  --gold-pale: #ecd9a8;
  --jade: #46625c;
  --line: #e0d2b4;
  --shadow: 0 18px 40px -22px rgba(70, 50, 30, .45);
  --radius: 14px;
  --font-call: "Ma Shan Zheng", "ZCOOL XiaoWei", "STKaiti", "KaiTi", "楷体", serif;
  --font-head: "ZCOOL XiaoWei", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-body: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--red); color: #fff; }

/* 宣纸纹理 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(176, 141, 62, .10), transparent 60%),
    radial-gradient(900px 500px at 8% 30%, rgba(166, 50, 40, .06), transparent 55%),
    repeating-linear-gradient(0deg, rgba(120, 90, 40, .018) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120, 90, 40, .014) 0 1px, transparent 1px 3px);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 排版 ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.3; }
.section { padding: 96px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-kicker {
  display: inline-block;
  font-family: var(--font-call);
  color: var(--red);
  letter-spacing: .5em;
  font-size: 15px;
  padding-left: .5em;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: .12em; }
.section-title .t-seal {
  display: inline-block;
  color: #fff;
  background: var(--red);
  font-size: .55em;
  letter-spacing: 0;
  padding: .18em .5em;
  margin-right: .4em;
  vertical-align: .18em;
  transform: rotate(-3deg);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(135, 32, 26, .35);
}
.section-sub { color: var(--ink-soft); margin-top: 14px; font-size: 15px; letter-spacing: .06em; }
.orn-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px auto 0; color: var(--gold);
}
.orn-divider::before, .orn-divider::after {
  content: ""; width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.orn-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.orn-divider span { font-size: 18px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 26px;
  font-size: 15px;
  letter-spacing: .18em;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-red {
  background: linear-gradient(180deg, #b6402f, var(--red-deep));
  color: #fdf6e3;
  box-shadow: 0 10px 22px -10px rgba(135, 32, 26, .7);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(135, 32, 26, .8); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #4a3410;
  box-shadow: 0 10px 22px -12px rgba(120, 90, 30, .8);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn-ghost:hover { background: rgba(166, 50, 40, .06); }
.btn-sm { padding: 8px 16px; font-size: 13px; letter-spacing: .12em; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(246, 239, 224, .92), rgba(246, 239, 224, .72));
  border-bottom: 1px solid rgba(176, 141, 62, .28);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(70, 50, 30, .5); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(180deg, #b6402f, var(--red-deep));
  color: #f7e7c2;
  display: grid; place-items: center;
  font-family: var(--font-call); font-size: 22px;
  box-shadow: 0 4px 10px -4px rgba(135, 32, 26, .6);
  transform: rotate(-4deg);
}
.brand-name { font-family: var(--font-call); font-size: 24px; letter-spacing: .12em; color: var(--red-deep); }
.brand-sub { font-size: 11px; color: var(--ink-faint); letter-spacing: .3em; margin-top: -4px; }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 14px; font-size: 14px; letter-spacing: .14em; color: var(--ink-soft);
  border-radius: 6px; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--red); background: rgba(166, 50, 40, .06); }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--gold);
  background: var(--paper-2);
  color: var(--red-deep);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px; letter-spacing: .1em;
  transition: transform .2s, box-shadow .2s;
}
.cart-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.cart-badge {
  position: absolute; top: -7px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--red-ink); color: #fff;
  font-size: 12px; line-height: 20px; text-align: center;
  transform: scale(0); transition: transform .25s;
}
.cart-badge.show { transform: scale(1); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(176, 141, 62, .16), transparent 60%),
    radial-gradient(700px 500px at 12% 80%, rgba(166, 50, 40, .08), transparent 55%),
    linear-gradient(180deg, #f9f4e8 0%, var(--paper) 70%, #efe5cf 100%);
}
.hero-inner {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.hero-copy { max-width: 640px; }
.hero-year {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--red);
  color: var(--red-deep);
  background: rgba(246, 239, 224, .75);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 14px; letter-spacing: .28em;
  margin-bottom: 26px;
}
.hero-year::before {
  content: "羊"; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #f7e7c2; font-size: 15px; letter-spacing: 0;
}
.hero-title {
  font-family: var(--font-call);
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.18;
  color: var(--red-deep);
  letter-spacing: .08em;
}
.hero-title .h-dim { color: var(--ink); }
.hero-sub {
  margin-top: 22px; font-size: 16px; color: var(--ink-soft);
  letter-spacing: .1em; max-width: 480px;
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--ink-faint); letter-spacing: .06em; }

/* 首屏右侧：竖排对联 + 印章 */
.hero-board {
  position: relative; display: flex; justify-content: center; align-items: center; gap: 0;
  min-height: 460px;
}
.hero-couplet {
  display: flex; gap: 0;
  filter: drop-shadow(0 24px 30px rgba(90, 40, 20, .28));
}
.hero-couplet .hcol {
  width: 96px; padding: 34px 0;
  background: linear-gradient(180deg, #b6402f 0%, var(--red) 30%, var(--red-deep) 100%);
  border: 2px solid rgba(255, 225, 170, .55);
  border-radius: 12px;
  color: #f7e7c2;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-call);
  font-size: 26px;
  letter-spacing: .5em;
  text-align: center;
  line-height: 1;
  padding-left: .5em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 34px rgba(60, 10, 5, .35);
}
.hero-couplet .hcol.right { margin-right: 14px; }
.hero-couplet .hcol.left { margin-left: 14px; }
.hero-ping {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #d8bc78, var(--gold));
  color: #5a3c0c;
  font-family: var(--font-call);
  font-size: 24px; letter-spacing: .4em; padding-left: .4em;
  padding: 8px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(120, 90, 30, .7);
  white-space: nowrap;
}
.hero-seal {
  position: absolute; right: 4%; bottom: 6%;
  width: 92px; height: 92px;
  background: var(--red);
  color: #f7e7c2;
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-call); font-size: 52px;
  transform: rotate(-10deg);
  box-shadow: 0 12px 24px -10px rgba(135, 32, 26, .6);
  opacity: .94;
}

/* 首屏装饰：山水、云、梅 */
.hero-mountains { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; line-height: 0; }
.hero-mountains svg { width: 100%; height: auto; display: block; }
.hero-clouds { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.cloud {
  position: absolute;
  width: 260px; height: 74px;
  background: rgba(255, 252, 243, .8);
  border-radius: 999px;
  filter: blur(6px);
  animation: drift 46s linear infinite;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: inherit; border-radius: 50%;
}
.cloud::before { width: 90px; height: 90px; top: -38px; left: 52px; }
.cloud::after { width: 64px; height: 64px; top: -24px; left: 140px; }
.cloud.c2 { top: 18%; animation-duration: 64s; animation-delay: -20s; transform: scale(.7); opacity: .7; }
.cloud.c3 { top: 52%; animation-duration: 80s; animation-delay: -40s; transform: scale(.55); opacity: .55; }
.cloud.c1 { top: 8%; animation-duration: 52s; animation-delay: -10s; }
@keyframes drift {
  from { transform: translateX(-340px); }
  to { transform: translateX(calc(100vw + 340px)); }
}
.hero-plum { position: absolute; right: 1%; top: 14%; z-index: 2; opacity: .85; pointer-events: none; }
.hero-plum svg { width: 190px; height: auto; }

/* ---------- 文化起源 ---------- */
.culture-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.culture-lead {
  position: sticky; top: 100px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.culture-lead h3 { font-size: 26px; color: var(--red-deep); letter-spacing: .1em; margin-bottom: 18px; }
.culture-lead h3::after {
  content: ""; display: block; width: 52px; height: 3px; margin-top: 12px;
  background: linear-gradient(90deg, var(--red), transparent);
  border-radius: 2px;
}
.culture-lead p { font-size: 15px; color: var(--ink-soft); text-indent: 2em; margin-bottom: 14px; }
.tielaw {
  margin-top: 22px; padding: 18px 20px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  background: rgba(176, 141, 62, .07);
  font-size: 14px; color: var(--ink-soft);
}
.tielaw b { color: var(--red-deep); }

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--gold), var(--red), var(--gold));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--red);
}
.tl-item .tl-year {
  display: inline-block;
  font-family: var(--font-call);
  color: #fff; background: var(--red);
  font-size: 14px; letter-spacing: .2em;
  padding: 3px 14px; border-radius: 999px;
  margin-bottom: 10px;
}
.tl-item h4 { font-size: 19px; letter-spacing: .08em; margin-bottom: 6px; }
.tl-item p { font-size: 14.5px; color: var(--ink-soft); }

.rules { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rule-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.rule-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rule-card .r-char {
  width: 54px; height: 54px; margin: 0 auto 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold));
  color: #4a3410;
  font-family: var(--font-call); font-size: 26px;
  display: grid; place-items: center;
  box-shadow: 0 8px 16px -8px rgba(120, 90, 30, .7);
}
.rule-card h5 { font-size: 17px; letter-spacing: .2em; margin-bottom: 8px; }
.rule-card p { font-size: 13.5px; color: var(--ink-soft); }
/* ---------- 分类与对联展区 ---------- */

.spec-wrap {
  max-width: 720px; margin: 0 auto 26px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2);
  box-shadow: var(--shadow);
}
.spec-row { display: flex; align-items: center; gap: 14px; }
.spec-row + .spec-row { margin-top: 12px; }
.spec-label {
  flex: 0 0 44px; font-size: 14px; letter-spacing: .18em; color: var(--red);
  border: 1px solid var(--gold); border-radius: 999px; padding: 4px 0;
  text-align: center; background: rgba(255, 240, 205, .3);
}
.spec-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-tab {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 7px 16px; font-size: 14px;
  letter-spacing: .06em; color: var(--ink); cursor: pointer;
  transition: all .2s ease;
}
.spec-tab i { font-style: normal; font-size: 12px; color: var(--ink-soft); margin-left: 6px; }
.spec-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); }
.spec-tab.is-active {
  background: linear-gradient(180deg, #b6402f, var(--red-deep));
  border-color: var(--red-deep); color: #fdf6e3;
  box-shadow: 0 10px 20px -10px rgba(135, 32, 26, .65);
}
.spec-tab.is-active i { color: #ffe9b0; }
.spec-note {
  margin-top: 12px; text-align: center; font-size: 13px;
  color: var(--ink-soft); letter-spacing: .05em;
}
.cl-spec {
  margin-top: 6px; font-size: 12px; letter-spacing: .1em;
  color: var(--gold-deep, #a67c2e); text-align: center;
}
.cart-spec, .oi-spec { font-style: normal; color: var(--gold-deep, #a67c2e); font-size: 12px; letter-spacing: .05em; }
.oi-spec { margin-left: 6px; }
.cat-wrap { margin-bottom: 40px; }
.cat-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 14px;
}
.cat-tab {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  font-size: 14px; letter-spacing: .1em; color: var(--ink-soft);
  transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
}
.cat-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold); }
.cat-tab.is-active {
  background: linear-gradient(180deg, #b6402f, var(--red-deep));
  border-color: var(--red-deep);
  color: #fdf6e3;
  box-shadow: 0 10px 20px -10px rgba(135, 32, 26, .65);
}
.cat-seal {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(166, 50, 40, .1);
  color: var(--red-deep);
  font-family: var(--font-call); font-size: 17px;
}
.cat-tab.is-active .cat-seal { background: rgba(255, 240, 205, .22); color: #ffe9b0; }
.cat-count { font-size: 12px; opacity: .75; }
.cat-desc {
  text-align: center; color: var(--ink-soft); font-size: 14px; letter-spacing: .06em;
  min-height: 28px;
}
.cat-desc b { color: var(--red); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}
.cl-card {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.cl-card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(70, 45, 20, .5); }

.cl-paper {
  position: relative;
  padding: 34px 22px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  background:
    radial-gradient(320px 140px at 50% -10%, rgba(176, 141, 62, .14), transparent 70%),
    linear-gradient(180deg, var(--paper-3), var(--paper));
  border-bottom: 1px solid var(--line);
}
.cl-paper::before {
  content: "福";
  position: absolute; right: 12px; bottom: 8px;
  font-family: var(--font-call); font-size: 54px;
  color: rgba(166, 50, 40, .07);
  line-height: 1;
  pointer-events: none;
}
.cl-ping {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #54380e;
  font-family: var(--font-call);
  font-size: 21px; letter-spacing: .3em; padding-left: .3em;
  padding: 7px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(120, 90, 30, .6);
}
.cl-lines { display: flex; justify-content: center; gap: 18px; }
.cl-line {
  width: 62px;
  background: linear-gradient(180deg, #b6402f, var(--red) 35%, var(--red-deep));
  border: 1.5px solid rgba(255, 224, 165, .5);
  border-radius: 9px;
  color: #f7e7c2;
  font-family: var(--font-call);
  font-size: 18px;
  letter-spacing: .44em;
  text-align: center;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 20px 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 22px rgba(60, 10, 5, .32), 0 10px 18px -12px rgba(120, 40, 20, .6);
}
.cl-meta { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cl-meaning { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; flex: 1; }
.cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cl-price { font-size: 21px; font-weight: 700; color: var(--red-deep); font-family: var(--font-head); }
.cl-price i { font-style: normal; font-size: 12px; color: var(--ink-faint); font-weight: 400; margin-left: 2px; }
.empty { text-align: center; color: var(--ink-faint); padding: 60px 0; grid-column: 1 / -1; letter-spacing: .2em; }

/* ---------- 选购指南 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 28px 30px;
  transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: -24px; left: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(180deg, #b6402f, var(--red-deep));
  color: #ffe9b0;
  font-family: var(--font-call); font-size: 24px;
  display: grid; place-items: center;
  box-shadow: 0 10px 18px -8px rgba(135, 32, 26, .6);
  border: 3px solid var(--paper);
}
.step h4 { font-size: 20px; letter-spacing: .12em; margin-bottom: 10px; color: var(--red-deep); }
.step p { font-size: 14.5px; color: var(--ink-soft); }
.step .step-icon { font-size: 34px; margin-bottom: 12px; display: block; }

/* ---------- 结算区 ---------- */
.checkout-band {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(176, 141, 62, .12), transparent 60%),
    linear-gradient(180deg, var(--paper-3), var(--paper-2));
}
.checkout-panel {
  max-width: 860px; margin: 0 auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.checkout-head {
  background: linear-gradient(180deg, #b6402f, var(--red-deep));
  color: #fdf6e3;
  padding: 26px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.checkout-head h3 { font-size: 24px; letter-spacing: .2em; font-family: var(--font-call); }
.checkout-head p { font-size: 13px; opacity: .85; letter-spacing: .06em; }
.checkout-body { padding: 34px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.order-summary { min-width: 0; }
.order-summary h4, .pay-box h4 {
  font-size: 16px; letter-spacing: .16em; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
#orderItems li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.oi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oi-qty { color: var(--ink-faint); font-size: 13px; }
.oi-price { color: var(--red-deep); font-weight: 600; white-space: nowrap; }
.order-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 16px; margin-top: 4px;
}
.order-total span { font-size: 14px; color: var(--ink-soft); letter-spacing: .1em; }
.order-total b { font-family: var(--font-head); font-size: 30px; color: var(--red-deep); }
.order-no { margin-top: 8px; font-size: 13px; color: var(--ink-faint); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-no code {
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 10px; font-size: 13px; color: var(--ink);
  letter-spacing: .08em;
}
#checkoutEmpty {
  color: var(--ink-faint); text-align: center; padding: 40px 0; letter-spacing: .2em;
  grid-column: 1 / -1;
}
.pay-box { text-align: center; }
.pay-qr-frame {
  position: relative;
  width: 216px; height: 216px; margin: 0 auto 14px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 8px;
  background: #fffdf6;
  box-shadow: 0 14px 26px -16px rgba(120, 90, 30, .55);
}
.pay-qr-frame::before, .pay-qr-frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2.5px solid var(--red);
}
.pay-qr-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.pay-qr-frame::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
#payQrImg { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.pay-amount { font-size: 15px; color: var(--ink-soft); letter-spacing: .1em; margin-bottom: 4px; }
.pay-amount b { font-family: var(--font-head); font-size: 40px; color: var(--red-deep); }
.pay-tip { font-size: 13px; color: var(--ink-faint); line-height: 1.9; margin-top: 10px; }
.pay-tip b { color: var(--red); font-weight: 600; }
.pay-btns { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ---------- 购物车抽屉 ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(46, 34, 18, .45);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(430px, 92vw);
  background: var(--paper-2);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px rgba(70, 45, 20, .5);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.32, .72, .3, 1);
}
.cart-panel.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
  background: linear-gradient(180deg, #b6402f, var(--red-deep));
  color: #fdf6e3;
}
.cart-head h3 { font-family: var(--font-call); font-size: 24px; letter-spacing: .2em; }
.cart-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 235, 190, .6);
  background: transparent; color: #ffe9b0; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s;
}
.cart-close:hover { background: rgba(255, 235, 190, .18); }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 26px; }
.cart-item {
  padding: 14px 0; border-bottom: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.cart-item-text b { display: block; font-size: 15px; letter-spacing: .1em; color: var(--red-deep); }
.cart-item-text span { font-size: 12.5px; color: var(--ink-faint); }
.cart-item-op { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font-size: 15px; line-height: 1;
  display: grid; place-items: center;
  transition: border-color .2s, color .2s;
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty { min-width: 30px; text-align: center; font-size: 15px; }
.qty-del {
  margin-left: auto;
  border: 0; background: transparent; color: var(--ink-faint);
  font-size: 18px; line-height: 1; padding: 4px;
}
.qty-del:hover { color: var(--red-ink); }
.cart-item-price { margin-left: auto; font-weight: 700; color: var(--red-deep); font-family: var(--font-head); font-size: 16px; }
.cart-empty { text-align: center; padding: 70px 0; color: var(--ink-faint); }
.cart-empty .ce-char {
  width: 74px; height: 74px; margin: 0 auto 18px;
  border: 2px dashed var(--line); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-call); font-size: 38px; color: var(--gold);
}
.cart-empty p { letter-spacing: .2em; font-size: 14px; margin-bottom: 20px; }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 26px 24px; background: var(--paper); }
.cart-total-row {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px;
}
.cart-total-row span { font-size: 14px; color: var(--ink-soft); letter-spacing: .12em; }
.cart-total-row b { font-family: var(--font-head); font-size: 30px; color: var(--red-deep); }
.cart-actions { display: flex; flex-direction: column; gap: 10px; }
.cart-actions .btn { width: 100%; }

/* ---------- 二维码弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(46, 34, 18, .5);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(360px, 94vw);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  text-align: center;
  transform: translateY(16px) scale(.97);
  transition: transform .3s;
  box-shadow: 0 40px 80px -40px rgba(46, 30, 12, .7);
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-card h3 { font-family: var(--font-call); font-size: 26px; color: var(--red-deep); letter-spacing: .18em; margin-bottom: 6px; }
.modal-card .m-sub { font-size: 13px; color: var(--ink-faint); letter-spacing: .14em; margin-bottom: 20px; }
.qr-box {
  width: 216px; height: 216px; margin: 0 auto 18px;
  border: 2px solid var(--gold); border-radius: 12px; padding: 8px;
  background: #fffdf6;
}
#qrImg, #footerQr, #heroQr { width: 100%; height: 100%; object-fit: contain; }
.modal-card .m-hint {
  font-size: 12px; color: var(--ink-faint);
  word-break: break-all; line-height: 1.7;
  background: var(--paper-3); border-radius: 8px; padding: 8px 12px;
  margin-bottom: 18px;
}
.modal-close {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  border-radius: 999px; padding: 9px 30px; font-size: 14px; letter-spacing: .2em;
  transition: border-color .2s, color .2s;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 42px; z-index: 120;
  transform: translate(-50%, 20px);
  background: rgba(50, 40, 28, .92); color: #f7e7c2;
  padding: 12px 26px; border-radius: 999px;
  font-size: 14px; letter-spacing: .08em;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
  box-shadow: 0 16px 30px -14px rgba(30, 20, 10, .6);
  max-width: 88vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, #2f2a22, #26211a);
  color: #c9bda4;
  padding: 64px 0 30px;
  overflow: hidden;
}
.site-footer::before {
  content: "春联小铺";
  position: absolute; right: -2%; bottom: -6%;
  font-family: var(--font-call); font-size: clamp(90px, 16vw, 200px);
  color: rgba(255, 235, 190, .05);
  line-height: 1; pointer-events: none;
  white-space: nowrap;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.footer-brand h3 { font-family: var(--font-call); font-size: 32px; color: var(--gold-light); letter-spacing: .14em; margin-bottom: 10px; }
.footer-brand p { font-size: 13.5px; line-height: 2; opacity: .8; max-width: 460px; }
.footer-brand .f-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.f-tag {
  font-size: 12px; letter-spacing: .12em;
  border: 1px solid rgba(216, 188, 120, .4);
  color: var(--gold-light);
  padding: 4px 12px; border-radius: 999px;
}
.footer-qr { text-align: center; }
.footer-qr .fq-frame {
  width: 132px; height: 132px; margin: 0 auto 12px;
  border: 1px solid rgba(216, 188, 120, .5);
  border-radius: 12px; padding: 7px;
  background: #fffdf6;
}
.footer-qr p { font-size: 13px; letter-spacing: .24em; color: var(--gold-light); }
.footer-bar {
  border-top: 1px solid rgba(255, 235, 190, .12);
  margin-top: 48px; padding-top: 22px;
  text-align: center; font-size: 12.5px; opacity: .55; letter-spacing: .08em;
}

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cloud { animation: none; display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-board { min-height: 400px; margin-top: 10px; }
  .culture-grid { grid-template-columns: 1fr; }
  .culture-lead { position: static; }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-body { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero { padding-top: 120px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .hero-couplet .hcol { width: 72px; font-size: 20px; }
  .hero-ping { font-size: 18px; padding: 6px 14px; }
  .hero-seal { width: 74px; height: 74px; font-size: 42px; }
  .checkout-head { padding: 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .checkout-body { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .f-tags { justify-content: center; }
  .brand-sub { display: none; }
}

/* ---------- 定制对联 ---------- */
.custom-card { max-width: 480px; }
.custom-card .spec-row { margin-bottom: 10px; }
.c-field { display: block; margin-top: 12px; text-align: left; }
.c-field span { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .1em; }
.c-field input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink);
  padding: 10px 12px; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .2s;
}
.c-field input:focus { border-color: var(--gold); }
.c-tip { margin-top: 12px; font-size: 13px; color: var(--ink-soft); text-align: center; letter-spacing: .05em; }
.custom-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.custom-actions .modal-close { position: static; }

.pay-badge {
  font-style: normal; font-size: 12px; font-weight: 400;
  color: var(--red); border: 1px solid var(--red);
  border-radius: 999px; padding: 2px 10px; margin-left: 8px;
  vertical-align: middle; letter-spacing: .05em;
}
