/* 墨禧春联 · 样式 */
:root {
  --paper: #F6F0E4;
  --paper-2: #EFE6D4;
  --card: #FFFDF8;
  --ink: #2A1C16;
  --ink-2: #6B5A4E;
  --ink-3: #9A8A7C;
  --red: #B8141C;
  --red-bright: #D4222A;
  --red-deep: #8C0D14;
  --gold: #B98A3A;
  --gold-soft: #E7CF9A;
  --line: #E2D6C0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(74, 38, 16, .28);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --brush: "Ma Shan Zheng", "STKaiti", "KaiTi", "楷体", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
small { font-size: .8em; color: var(--ink-3); font-weight: 400; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #FFF4DF;
  box-shadow: 0 8px 18px -8px rgba(184, 20, 28, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover { background: linear-gradient(180deg, #DD2B33, #C2171F); }
.btn--ghost { border-color: #CDBB9C; background: transparent; color: var(--ink); }
.btn--ghost:hover { border-color: var(--red); color: var(--red-deep); background: rgba(184, 20, 28, .04); }
.btn--soft { background: var(--paper-2); color: var(--ink); }
.btn--soft:hover { background: #E8DCC4; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(246, 240, 228, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-seal {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 9px; background: var(--red); color: #F3D27A;
  font-family: var(--brush); font-size: 26px; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(243, 210, 122, .55);
}
.brand-name { font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: .08em; line-height: 1.2; }
.brand-name small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .32em; color: var(--ink-3); }
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--red-deep); background: rgba(184, 20, 28, .06); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 680px) auto;
  justify-content: center; align-items: center;
  gap: clamp(24px, 6vw, 88px);
  padding: clamp(48px, 8vw, 96px) 24px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(212, 34, 42, .10), transparent 70%),
    linear-gradient(180deg, #FAF5EA, var(--paper));
}
.hero::before {
  content: "春"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--brush); font-size: min(70vw, 760px); line-height: 1;
  color: var(--red); opacity: .045; pointer-events: none;
}
.hero-strip {
  position: relative;
  writing-mode: vertical-rl; text-orientation: upright;
  padding: 30px 16px;
  font-family: var(--brush); font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: .2em;
  color: #17100D;
  background:
    radial-gradient(circle at 20% 12%, rgba(243, 210, 122, .9) 0 1.4px, transparent 1.8px),
    radial-gradient(circle at 72% 31%, rgba(243, 210, 122, .8) 0 1px, transparent 1.4px),
    radial-gradient(circle at 34% 57%, rgba(243, 210, 122, .85) 0 1.6px, transparent 2px),
    radial-gradient(circle at 80% 78%, rgba(243, 210, 122, .8) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 14% 90%, rgba(243, 210, 122, .8) 0 1px, transparent 1.4px),
    linear-gradient(160deg, var(--red-bright), #B5131B);
  background-size: 61px 97px, 83px 71px, 67px 113px, 91px 89px, 73px 131px, auto;
  box-shadow: 0 22px 40px -18px rgba(120, 12, 18, .65);
}
.hero-center { position: relative; text-align: center; }
.eyebrow {
  display: inline-block; padding: 5px 16px; margin-bottom: 22px;
  border: 1px solid #D9C7A3; border-radius: 999px;
  font-size: 14px; letter-spacing: .12em; color: var(--ink-2); background: rgba(255, 253, 248, .7);
}
.eyebrow b { color: var(--red); font-size: 1.15em; font-weight: 700; padding: 0 2px; }
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.2; letter-spacing: .06em;
}
.hero-lead { margin: 22px auto 0; max-width: 34em; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 17px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 36px;
  font-size: 14px; color: var(--ink-2);
}
.hero-facts b { font-family: var(--serif); font-size: 22px; color: var(--red-deep); margin-right: 4px; }
.br-sm { display: none; }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.section > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.section--tint { background: var(--paper-2); }
.section-head { position: relative; text-align: center; margin-bottom: clamp(32px, 5vw, 52px); }
.section-no {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border: 1.5px solid var(--red); border-radius: 7px;
  font-family: var(--serif); font-weight: 700; color: var(--red); font-size: 17px; line-height: 1;
}
.section-head h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: .1em; }
.section-head p { margin-top: 8px; color: var(--ink-2); }

/* ---------- 工作台 ---------- */
.studio {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px); align-items: start;
}
.preview-pane { position: sticky; top: 84px; }
.preview-frame {
  display: flex; justify-content: center;
  padding: clamp(10px, 1.6vw, 18px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.preview-frame canvas {
  display: block; height: auto; border-radius: 8px;
  width: min(100%, calc((100vh - 210px) * 0.8065));
  min-width: min(100%, 300px);
}
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.chip--check > span { gap: 5px; }
.chip--check input:checked + span::before { content: "✓"; font-weight: 700; }

/* 成品尺寸清单 */
.size-sheet {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px 16px;
  margin: 12px 0 0; padding: 12px 16px; border-radius: 11px; background: var(--paper);
}
.size-sheet dt { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.size-sheet dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.5; }

.controls { display: grid; gap: 20px; }
.panel {
  padding: 22px clamp(16px, 2.2vw, 28px) 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.panel legend {
  float: left; width: 100%; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .08em;
}
.panel legend + * { clear: both; }
.panel legend span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #FBE9C0; font-size: 15px; line-height: 1;
}

.field { display: grid; grid-template-columns: 3.2em 1fr; align-items: center; gap: 10px; margin-bottom: 12px; }
.field label { font-size: 15px; color: var(--ink-2); }
.field input, .input-sm {
  width: 100%; min-height: 48px; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .input-sm:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(184, 20, 28, .12); }
.panel .field input { font-family: var(--brush); font-size: 22px; letter-spacing: .12em; }
.field input::placeholder, .input-sm::placeholder { color: #C5B8A6; font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.input-sm { min-height: 44px; font-family: var(--brush); font-size: 19px; letter-spacing: .1em; }

.hint { font-size: 13.5px; color: var(--ink-3); min-height: 1.7em; }
.hint--ok { color: #3F7A4B; }
.hint--warn { color: #B4531A; }
.hint--warn:empty { display: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.group { margin-bottom: 20px; }
.group:last-child { margin-bottom: 0; }
.group h3 { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: .08em; margin-bottom: 9px; }
.group--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span {
  display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: 15px; line-height: 1.3;
  transition: border-color .2s, background .2s, box-shadow .2s, color .2s;
}
.chip:hover > span { border-color: #CDBB9C; }
.chip input:checked + span {
  border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red);
  background: #FFF5EE; color: var(--red-deep);
}
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip small { display: block; font-size: 12px; }
.chips--sm .chip > span { min-height: 38px; padding: 5px 13px; font-size: 14px; border-radius: 999px; }

.chips--font { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.chips--font .chip > span { flex-direction: column; gap: 2px; padding: 10px 6px 8px; text-align: center; }
.chips--font b { font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--ink); }
.chips--font .chip input:checked + span b { color: var(--red-deep); }

.chips--stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.chips--stack .chip > span { flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 14px; }
.chips--stack strong { font-weight: 600; }

/* 纸样小样 */
.sw {
  flex: none; width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(160deg, var(--red-bright), #B5131B);
}
.sw-fleck {
  background:
    radial-gradient(circle at 22% 28%, #F3D27A 0 1.3px, transparent 1.7px),
    radial-gradient(circle at 68% 18%, #F3D27A 0 1px, transparent 1.4px),
    radial-gradient(circle at 46% 62%, #F3D27A 0 1.5px, transparent 1.9px),
    radial-gradient(circle at 80% 76%, #F3D27A 0 1px, transparent 1.4px),
    radial-gradient(circle at 16% 84%, #F3D27A 0 1px, transparent 1.4px),
    linear-gradient(160deg, var(--red-bright), #B5131B);
}
.sw-cloud {
  background:
    radial-gradient(circle at 35% 40%, transparent 0 3px, rgba(255, 214, 140, .55) 3px 4px, transparent 4px),
    radial-gradient(circle at 70% 70%, transparent 0 3px, rgba(255, 214, 140, .55) 3px 4px, transparent 4px),
    linear-gradient(160deg, var(--red-bright), #B5131B);
}
.sw-border { box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 4px #E7BE62; }
.sw-ink { background: #17100D; border-radius: 50%; }
.sw-gold { background: linear-gradient(180deg, #FCEBB0, #E6BC5E 50%, #BA8A2E); border-radius: 50%; }
.sw-velvet {
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 4px),
    linear-gradient(160deg, #B5131B, #8C0D14);
}
.sw-hand { background: #F3EAD8; }

/* AI 写联 */
.panel--ai { border-color: #E3C9A0; background: linear-gradient(180deg, #FFF9EE, var(--card) 140px); }
.panel--ai legend span { background: linear-gradient(160deg, #E6BC5E, #B98A3A); color: #3A2408; }
.ai-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: var(--paper-2); }
.ai-tab {
  min-height: 40px; border: 0; border-radius: 9px; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s;
}
.ai-tab[aria-selected="true"] { background: #fff; color: var(--red-deep); box-shadow: 0 2px 6px -2px rgba(74, 38, 16, .3); }
.textarea {
  display: block; width: 100%; min-height: 64px; padding: 10px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 15px; line-height: 1.6; color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(184, 20, 28, .12); }
.textarea::placeholder { color: #C5B8A6; font-size: 14px; }
.ai-current { margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; background: var(--paper); font-size: 14px; color: var(--ink-2); }
.ai-current b { font-family: var(--brush); font-weight: 400; font-size: 18px; letter-spacing: .08em; color: var(--ink); }
.ai-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.ai-quick button {
  min-height: 32px; padding: 0 12px; border: 1px dashed #CDBB9C; border-radius: 999px; background: transparent;
  font-size: 13.5px; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s;
}
.ai-quick button:hover { border-color: var(--red); color: var(--red-deep); background: #FFF5EE; }
.ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.ai-actions .hint { flex: 1; min-width: 180px; min-height: 0; }
.btn[disabled] { opacity: .6; cursor: progress; box-shadow: none; }
.btn.is-loading::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 244, 223, .45); border-top-color: #FFF4DF; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-results { display: grid; gap: 12px; }
.ai-results:not(:empty) { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.ai-card {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.ai-card:hover { border-color: #D3B98C; box-shadow: var(--shadow); }
.ai-card.is-used { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #FFF8F3; }
.ai-lines { font-family: var(--brush); font-size: 21px; line-height: 1.5; letter-spacing: .1em; overflow-wrap: anywhere; }
.ai-lines em { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: 0; color: var(--ink-3); margin-right: 8px; }
.ai-note, .ai-warn { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }
.ai-warn { color: #B4531A; }

/* 数量 */
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper button {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: 22px; line-height: 1; transition: border-color .2s, background .2s;
}
.stepper button:hover { border-color: var(--red); background: #FFF5EE; }
.stepper input {
  width: 76px; height: 44px; text-align: center; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: 18px; font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(184, 20, 28, .12); }
.stepper span { color: var(--ink-2); }

.checkout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line);
}
.checkout-sum { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; }
.checkout-label { font-size: 14px; color: var(--ink-2); }
.checkout-sum strong { font-family: var(--serif); font-size: 34px; font-weight: 900; color: var(--red-deep); line-height: 1.2; }
.checkout-sum small { grid-column: 1 / -1; font-size: 13px; }

/* ---------- 联库 ---------- */
.lib-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.lib-tab {
  min-height: 40px; padding: 0 18px; border: 1px solid #D5C5A6; border-radius: 999px;
  background: transparent; font-size: 15px; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.lib-tab:hover { border-color: var(--red); color: var(--red-deep); }
.lib-tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #FFF4DF; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.lib-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 14px 16px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lib-card:hover, .lib-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D3B98C; }
.lib-hz, .lib-strip {
  font-family: var(--brush); color: #17100D; line-height: 1;
  background: linear-gradient(160deg, var(--red-bright), #B5131B);
  box-shadow: 0 6px 12px -8px rgba(120, 12, 18, .8);
}
.lib-hz { padding: 7px 14px; font-size: 19px; letter-spacing: .28em; text-indent: .28em; }
.lib-pair { display: flex; align-items: stretch; justify-content: center; gap: 14px; width: 100%; flex: 1; }
.lib-strip { writing-mode: vertical-rl; text-orientation: upright; padding: 11px 7px; font-size: 19px; letter-spacing: .2em; align-self: flex-start; }
.lib-mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-width: 64px; font-size: 12.5px; color: var(--ink-3); line-height: 1.5;
}
.lib-use { font-size: 13px; font-weight: 600; color: var(--red); opacity: 0; transition: opacity .2s; }
.lib-card:hover .lib-use, .lib-card:focus-visible .lib-use { opacity: 1; }
@media (hover: none) { .lib-use { opacity: 1; } }

/* ---------- 工艺 ---------- */
.craft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.craft-card { padding: 16px 16px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.craft-swatch {
  height: 132px; border-radius: 10px; margin-bottom: 18px;
  background-color: var(--red);
}
.craft-swatch.sw-plain { background: linear-gradient(160deg, var(--red-bright), #B5131B); }
.craft-swatch.sw-fleck { background-size: 46px 52px, 58px 44px, 40px 64px, 66px 50px, 52px 70px, auto; }
.craft-swatch.sw-velvet {
  background:
    linear-gradient(100deg, transparent 30%, rgba(252, 235, 176, .35) 45%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 4px),
    linear-gradient(160deg, #B5131B, #8C0D14);
}
.craft-swatch.sw-hand {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--red-bright), #B5131B);
}
.craft-swatch.sw-hand span { font-family: "Liu Jian Mao Cao", var(--brush); font-size: 88px; line-height: 1; color: #17100D; }
.craft-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .06em; }
.craft-card p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.craft-meta {
  display: inline-block; margin-top: 12px; padding: 2px 10px;
  border: 1px solid #D9C7A3; border-radius: 999px; font-size: 12.5px; color: var(--gold);
}

.flow {
  counter-reset: flow;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px;
  margin-top: 36px;
}
.flow li {
  counter-increment: flow; position: relative;
  padding: 16px 16px 16px 60px; border-radius: 12px; background: var(--paper-2);
}
.flow li::before {
  content: counter(flow); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 1px solid #D9C7A3;
  font-family: var(--serif); font-weight: 700; color: var(--red);
}
.flow b { display: block; font-family: var(--serif); font-size: 16px; }
.flow span { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 贴法 ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.guide-card { position: relative; padding: 26px 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.guide-no {
  position: absolute; right: 10px; top: -14px;
  font-family: var(--brush); font-size: 92px; line-height: 1; color: var(--red); opacity: .09;
}
.guide-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.guide-card p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- 页脚 ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 30px clamp(16px, 4vw, 40px);
  background: #2A1C16; color: #CDBFAF; font-size: 13.5px;
}
.site-footer .brand-name { color: #F6EBD6; }
.site-footer .brand-name small { color: #9A8A7C; }

/* ---------- 弹窗 ---------- */
.dialog {
  width: min(560px, calc(100vw - 28px)); max-height: calc(100vh - 40px);
  padding: 0; border: 0; border-radius: 18px; background: var(--card); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(30, 10, 4, .6);
}
.dialog::backdrop { background: rgba(42, 20, 12, .55); backdrop-filter: blur(3px); }
.dialog-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: var(--card); border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .08em; }
.dialog-close {
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent;
  font-size: 26px; line-height: 1; color: var(--ink-2);
}
.dialog-close:hover { background: var(--paper-2); }
.dialog-body { padding: 20px 22px 24px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 18px; }
.form-grid .field { grid-template-columns: 1fr; gap: 4px; }
.field--wide { grid-column: 1 / -1; }

.order-summary { padding: 16px 18px; border-radius: 12px; background: var(--paper); }
.order-couplet { font-family: var(--brush); font-size: 22px; line-height: 1.5; letter-spacing: .1em; }
.order-couplet em { font-style: normal; font-family: var(--sans); font-size: 12px; letter-spacing: 0; color: var(--ink-3); margin-right: 8px; }
.order-meta { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.order-total { margin-top: 8px; display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.order-total b { font-family: var(--serif); font-size: 24px; color: var(--red-deep); }

.dialog-done { text-align: center; padding-top: 34px; }
.done-seal {
  display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 14px;
  border-radius: 14px; background: var(--red); color: #F3D27A;
  font-family: var(--brush); font-size: 48px; line-height: 1; transform: rotate(-6deg);
  box-shadow: inset 0 0 0 3px rgba(243, 210, 122, .55);
}
.dialog-done h3 { font-family: var(--serif); font-size: 22px; }
.dialog-done .dialog-actions { justify-content: center; }

.order-item { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.order-item:first-child { padding-top: 0; }
.order-item:last-child { border-bottom: 0; padding-bottom: 0; }
.order-item-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.order-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.empty { text-align: center; color: var(--ink-3); padding: 28px 0; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 22px; border-radius: 999px; background: #2A1C16; color: #F6EBD6; font-size: 14.5px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .studio { grid-template-columns: 1fr; }
  .preview-pane { position: static; }
  .preview-frame canvas { width: min(100%, 460px); }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; }
  .hero-strip { display: none; }
  .br-sm { display: inline; }
  .br-lg { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
