/* 京墅 · 设计系统 v1.1 · 米色系（paper & bronze） */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 米色系：纸、墨、金棕 */
  --ink: #2C2620;          /* 主文字 · 暖墨褐 */
  --muted: #6F6250;        /* 次级文字 · 5.3:1（原 #7B6E5D 在 --soft 底上只有 4.19） */
  /* ⚠️ 米色系在 4.5:1 下只装得下两级文字：--faint 现已并入 --muted。
     层次的差异靠字号/字距/字重表达，不再靠"再浅一档灰"——
     原来的 #A89A86 在米底上只有 2.3:1，全站 52% 的文字读不清。
     别为了"看起来更轻"把这个值改浅回去。 */
  --faint: #6F6250;        /* 三级文字 = 次级，见上 */
  --line: #E6DBC8;         /* 边框 */
  --line2: #F0E8DA;        /* 分隔线 */
  --bg: #F7F2E7;           /* 页面底 · 米白 */
  --card: #FFFDF8;         /* 卡片 · 象牙白 */
  --brand: #5E4B33;        /* 主色 · 暖褐 */
  --brandD: #3E3121;       /* 主色深 */
  --soft: #EDE4D3;         /* 主色浅底 */
  --soft2: #F7F1E6;        /* 主色更浅底 */
  --gold: #A9834A;         /* 金棕 · 强调 —— 只作背景/边框/描边 */
  /* ⚠️ --gold 当文字只有 3.12:1，不达 AA。要"金色的字"一律用 --goldink；
     要"金色的块"（按钮底、左侧条、描边）继续用 --gold。 */
  --goldink: #7F5F2B;      /* 金棕文字专用 · 5.2:1 */
  --goldsoft: #F7EEDC;
  --red: #A6483A;          /* 陶土红 · 5.2:1 */
  --redsoft: #F9ECE7;
  --warn: #845F10;         /* 警示 · 4.8:1（原 #A2761E 3.65 不达 AA） */
  --warnsoft: #FAF1DD;
  --blue: #4A6076;         /* 灰蓝 · 信息 */
  --bluesoft: #EDF0F4;
  --paper: #F0E5D5;        /* 徽标纸底 */
  --r: 10px;
  --rl: 14px;
  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, system-ui, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 13px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 19px; font-weight: 500; letter-spacing: .2px; }
h2 { font-size: 14px; font-weight: 500; }
h3 { font-size: 13px; font-weight: 500; }
p { color: var(--muted); }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; }

/* ---------- 表单 ---------- */
input, select, textarea {
  font: inherit; font-size: 12.5px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; width: 100%; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #C9B48F; box-shadow: 0 0 0 3px rgba(94,75,51,.08); }
textarea { resize: vertical; line-height: 1.85; }
input[readonly] { background: var(--soft2); color: var(--muted); }
label.lb { font-size: 12px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, opacity .15s;
}
.btn-p { background: var(--brand); color: #FFFDF8; }
.btn-p:hover { background: var(--brandD); }
.btn-g { background: var(--gold); color: #FFFDF8; }
.btn-g:hover { filter: brightness(.94); }
.btn-o { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-o:hover { background: var(--soft2); border-color: #D5C7AE; }
.btn-d { background: var(--card); border-color: #E3C9C0; color: var(--red); }
.btn-d:hover { background: var(--redsoft); }
.btn-s { padding: 5px 11px; font-size: 11.5px; border-radius: 7px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
/* 触屏点击区（2026-11-07）：WCAG 2.5.5 与 Apple HIG 都是 44×44。
   只在「真的用手指点」的场景加高 —— 窄屏与粗指针设备；
   后台宽屏表格里的按钮维持 31px，否则一屏看不到几行。 */
@media (max-width: 760px), (pointer: coarse) {
  .btn { min-height: 44px; padding: 10px 16px; }
  .btn-s { min-height: 44px; padding: 8px 13px; }
  /* ⚠️ 必须排除 checkbox/radio：min-height 会把勾选框撑成 40px 高 */
  input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 40px; }
}

/* 品牌徽记：各处统一渲染为矢量徽标，尺寸由容器决定 */
.mk > img, .mark > img { width: 100%; height: 100%; display: block; }

/* ---------- 徽标 ---------- */
.b { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; white-space: nowrap; }
.b-g { background: var(--soft); color: var(--brandD); }
.b-o { background: var(--goldsoft); color: var(--goldink); }
.b-r { background: var(--redsoft); color: var(--red); }
.b-w { background: var(--warnsoft); color: var(--warn); }
.b-b { background: var(--bluesoft); color: var(--blue); }
.b-n { background: #F3EDE1; color: var(--muted); }

/* ---------- 面板 ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ph { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.ph .r { margin-left: auto; font-size: 11px; color: var(--faint); }
.pb { padding: 16px; }
.hr { height: 1px; background: var(--line2); margin: 14px 0; }
.note { font-size: 11.5px; color: var(--faint); line-height: 1.75; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FCF8F0; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--soft2); }
td .sub { font-size: 11px; color: var(--faint); display: block; }
.rowclick { cursor: pointer; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.side { width: 216px; flex: 0 0 216px; background: var(--card); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; border-bottom: 1px solid var(--line2); }
.brand .mk { width: 30px; height: 30px; flex: 0 0 30px; display: flex; align-items: center; justify-content: center; }
.brand .mk img, .brand .mk svg { width: 30px; height: 30px; display: block; }
.brand b { font-size: 14px; font-weight: 500; display: block; line-height: 1.3; font-family: var(--serif); letter-spacing: 1px; }
.brand span { font-size: 11px; color: var(--faint); }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.nav button { all: unset; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: #4A4038; font-size: 13px; }
.nav button svg { flex: 0 0 16px; opacity: .62; }
.nav button:hover { background: var(--soft2); }
.nav button.on { background: var(--soft); color: var(--brandD); font-weight: 500; }
.nav button.on svg { opacity: 1; }
.nav button .cnt { margin-left: auto; font-size: 11px; color: var(--faint); }
.sidefoot { margin-top: 18px; padding: 12px; border-radius: var(--r); background: var(--goldsoft); font-size: 11px; color: #7A6033; line-height: 1.7; }
.main { flex: 1; min-width: 0; }
.topbar { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 26px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 9; }
.topbar h1 { font-size: 15px; font-weight: 500; }
.who { display: flex; align-items: center; gap: 9px; padding-left: 16px; border-left: 1px solid var(--line); margin-left: 4px; }
.who .av { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--brandD); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.who b { font-size: 12px; font-weight: 500; display: block; line-height: 1.3; }
.who span { font-size: 11px; color: var(--faint); }
.viewport { padding: 24px 26px 70px; }
.page { display: none; }
.page.on { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }
.pagehead { margin-bottom: 18px; }
.pagehead p { font-size: 12.5px; margin-top: 3px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; }
.kpi .kl { font-size: 12px; color: var(--muted); display: block; }
.kpi b { font-size: 25px; font-weight: 500; letter-spacing: -.5px; display: block; line-height: 1.35; font-variant-numeric: tabular-nums; }
.kpi .kd { font-size: 11px; color: var(--faint); }
.kpi .kd.up { color: var(--brand); }
.kpi .kd.bad { color: var(--red); }
.cols { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.mgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.kcol .kh { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 2px 8px; }
.kcol .kh b { color: var(--ink); font-weight: 500; }
.kcol .kh i { margin-left: auto; font-style: normal; color: var(--faint); font-size: 11px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--faint); border-radius: 8px; padding: 10px 11px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.kcard:hover { border-color: #D8CBB2; box-shadow: 0 1px 6px rgba(60,48,32,.07); }
.kcard.s1 { border-left-color: var(--blue); } .kcard.s2 { border-left-color: var(--gold); }
.kcard.s3 { border-left-color: var(--warn); } .kcard.s4 { border-left-color: var(--brand); }
.kcard .kt { font-size: 12.5px; line-height: 1.55; margin-bottom: 6px; }
.kcard .km { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: var(--faint); }

.listrow { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.listrow:last-child { border-bottom: none; }
.listrow:hover { background: var(--soft2); }
.listrow.on { background: var(--soft); }
.listrow .av { width: 34px; height: 34px; border-radius: 9px; background: var(--soft); color: var(--brandD); display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 34px; }
.listrow b { font-size: 12.5px; font-weight: 500; display: block; }
.listrow span { font-size: 11px; color: var(--faint); }
.listrow .sc { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--brand); }

.tl { list-style: none; position: relative; padding-left: 16px; }
.tl:before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl li { position: relative; padding: 0 0 14px; }
.tl li:before { content: ""; position: absolute; left: -16px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand); }
.tl li:last-child { padding-bottom: 0; }
.tl .tt { font-size: 12px; color: var(--faint); }

.steps { display: flex; align-items: center; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow: auto; }
.step { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.step i { width: 20px; height: 20px; border-radius: 50%; background: #F3EDE1; color: var(--muted); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; flex: 0 0 20px; }
.step.done { color: var(--brand); }
.step.done i { background: var(--soft); color: var(--brandD); }
.step.on { color: var(--brandD); font-weight: 500; }
.step.on i { background: var(--brand); color: #FFFDF8; }
.step .sep { width: 34px; height: 1px; background: var(--line); margin: 0 10px; flex: 0 0 34px; }

.capview { display: none; }
.capview.on { display: block; animation: fade .2s ease; }
.consent { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; background: var(--warnsoft); border: 1px solid #E7D6B4; border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; font-size: 12px; color: #7A5A1E; }
.consent > div { flex: 1 1 320px; min-width: 0; }
.consent b { font-weight: 500; display: block; margin-bottom: 2px; }
.consent .ck { margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; white-space: nowrap; align-self: center; cursor: pointer; }
.fieldrow { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.fieldrow label { font-size: 12px; color: var(--muted); flex: 0 0 78px; }

.rec { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; background: #FCF8F0; }
.recbtn { width: 92px; height: 92px; border-radius: 50%; border: none; cursor: pointer; background: var(--brand); color: #FFFDF8; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; transition: transform .12s, background .15s; }
.recbtn:hover { transform: scale(1.03); }
.recbtn.rec-on { background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(166,72,58,.30) } 50% { box-shadow: 0 0 0 14px rgba(166,72,58,0) } }
.recbtn small { font-size: 10px; opacity: .85; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 34px; margin-top: 16px; }
.wave i { display: block; width: 3px; border-radius: 2px; background: #D6C8AE; height: 6px; }
.wave.on i { background: var(--brand); animation: bar .9s ease-in-out infinite; }
@keyframes bar { 0%,100% { height: 6px } 50% { height: 28px } }
.timer { font-size: 26px; font-weight: 500; letter-spacing: 1px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.timer small { font-size: 11px; color: var(--faint); letter-spacing: 0; font-weight: 400; display: block; margin-top: 4px; }

.tx { background: #FCF8F0; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 12.5px; line-height: 2; min-height: 120px; white-space: pre-wrap; color: #3A322A; }
.tx:empty:before { content: "等待转写或录入…"; color: var(--faint); }

.items { display: flex; flex-direction: column; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--card); }
.item .ih { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.item .ih b { font-size: 12.5px; font-weight: 500; }
.item .kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.item .kv div { background: var(--soft2); border-radius: 7px; padding: 7px 9px; min-width: 0; }
.item .kv span { display: block; font-size: 10.5px; color: var(--faint); }
.item .kv b { font-size: 12px; font-weight: 500; word-break: break-word; }

.mrow { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 13px; margin-bottom: 10px; background: var(--card); }
.mrow .mh { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.mrow .mh b { font-size: 12.5px; font-weight: 500; }
.mrow .mh em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 500; color: var(--brand); }
.mrow .why { font-size: 11.5px; color: var(--muted); line-height: 1.75; }
.bar { height: 4px; border-radius: 2px; background: #EFE6D6; margin: 8px 0 7px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.bar i.low { background: var(--gold); }

.tree { font-size: 12.5px; }
.tree .n { display: inline-flex; align-items: center; gap: 6px; background: var(--soft2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.tree .n.root { background: var(--soft); border-color: #DCCEB2; color: var(--brandD); }
/* 关系链改成可折叠（2026-11-06）：以前 24 个人一路右缩进全铺开，
   滚到底也看不出「谁的推荐质量好」。现在第二层以下默认收起，点箭头展开。 */
.tree .tn { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.tree .tn.d1 { padding-left: 20px; }
.tree .tn.d2 { padding-left: 40px; }
.tree .tn.d3 { padding-left: 60px; }
.tree .tw { all: unset; width: 16px; flex: 0 0 16px; text-align: center; color: var(--goldink); cursor: pointer; font-size: 11px; line-height: 1; }
.tree .tw.none { color: transparent; cursor: default; }
.tree .kids.off { display: none; }
.tree .kc { font-size: 11px; color: var(--faint); margin-left: 2px; white-space: nowrap; }
.tree .l1 { margin-left: 22px; } .tree .l2 { margin-left: 44px; } .tree .l3 { margin-left: 66px; }
.tree em { font-style: normal; color: var(--faint); font-size: 11px; margin-left: 6px; }
/* 窄列不换行：会员编号被挤成 M-\n0137、处理人竖排「何\n静」都很难看 */
td.nw, th.nw { white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: 38px; transform: translate(-50%, 20px); background: #3A322A; color: #FFFDF8; font-size: 12.5px; padding: 10px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 99; max-width: 70vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #7A3A2E; }

.mask { position: fixed; inset: 0; background: rgba(48,40,30,.42); display: none; align-items: center; justify-content: center; z-index: 60; padding: 24px; }
.mask.on { display: flex; }
.modal { background: var(--card); border-radius: var(--rl); width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; padding: 22px; }
.modal h2 { font-size: 15px; margin-bottom: 12px; }
.modal .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
/* 抽屉式弹层（2026-11-06）
   ⚠️ .sheet 的样式以前只写在 member.html 的内联 <style> 里，而 merchant.html 也用了这个类 ——
   商户端的「编辑商品」「订单详情」一直是白底内边距全无的一坨内容浮在页面上。
   这里给一份通用外观；member.html 的内联规则更靠后会覆盖成底部抽屉的样子。 */
.sheet { background: var(--card); border-radius: var(--rl); width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; padding: 22px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.empty { padding: 30px 16px; text-align: center; color: var(--faint); font-size: 12.5px; }
.lock { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-size: 11px; }

@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .cols, .mgrid, .split { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { width: 180px; flex: 0 0 180px; }
}
@media (max-width: 760px) {
  .side { display: none; }
  .viewport { padding: 16px 14px 60px; }
  .topbar { padding: 0 14px; }
}

/* =====================================================================
   手绘（sketch）组件 —— 纸笔感，用于公开首页与关键 CTA
   ===================================================================== */

/* 纸纹：一层极淡的手工纸颗粒，铺在任何米色底上 */
.paper-grain { position: relative; }
.paper-grain:before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* 手绘按钮：两遍描边（第二遍轻微错位、微旋转），模仿手写不闭合的笔迹 */
.hdb {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 30px; font-size: 14px; letter-spacing: .5px; cursor: pointer;
  background: transparent; color: var(--brandD);
  border: 1.6px solid var(--brandD);
  border-radius: 18px 7px 20px 8px / 8px 19px 7px 18px;
  transition: background .18s, color .18s, transform .18s;
}
.hdb:after {
  content: ""; position: absolute; inset: -4.5px; pointer-events: none;
  border: 1.2px solid currentColor; opacity: .3;
  border-radius: 22px 9px 24px 10px / 10px 23px 9px 22px;
  transform: rotate(-.5deg);
  transition: opacity .18s, transform .18s;
}
.hdb:hover { background: var(--brandD); color: #FFFDF8; transform: translateY(-1px); }
.hdb:hover:after { opacity: .45; transform: rotate(.6deg) scale(1.012); }
.hdb.solid { background: var(--brand); border-color: var(--brand); color: #FFFDF8; }
.hdb.solid:hover { background: var(--brandD); border-color: var(--brandD); }
.hdb.gold { border-color: var(--gold); color: var(--goldink); }
.hdb.gold:hover { background: var(--gold); color: #FFFDF8; }
.hdb.sm { padding: 8px 20px; font-size: 12.5px; }
.hdb.block { display: flex; width: 100%; }

/* 手绘下划线（关键词强调）：一笔带过的粗笔 */
.hd-u { position: relative; display: inline-block; white-space: nowrap; }
.hd-u:after {
  content: ""; position: absolute; left: -1.5%; right: -1.5%; bottom: -.16em; height: .38em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.6C22 4.1 44 2.9 66 4.4c18 1.2 34 3.3 52 .9' fill='none' stroke='%23A9834A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

/* 手绘圈选：一笔绕一圈且不完全闭合 */
.hd-c { position: relative; display: inline-block; }
.hd-c > svg { position: absolute; left: -9%; top: -36%; width: 118%; height: 180%; overflow: visible; pointer-events: none; }
.hd-c path { fill: none; stroke: var(--gold); stroke-width: 4.6; stroke-linecap: round; opacity: .55; }

/* 手绘分隔：一条起伏的横线 */
.hd-hr { height: 10px; border: none; margin: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6c60-3.4 118-2.6 176-1.2s116 3 174 1.4S474 3 597 5.6' fill='none' stroke='%23DCCEB2' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

/* 手绘卡片：纸片感 + 轻微不规则圆角 + 极淡投影 */
.hd-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px 6px 18px 7px / 7px 17px 6px 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 22px -18px rgba(60,48,32,.35);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hd-card:hover { transform: translateY(-3px); border-color: #DCCEB2; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 16px 30px -20px rgba(60,48,32,.45); }

/* 竖排小印章（品牌辅助元素） */
.hd-seal {
  display: inline-flex; align-items: center; justify-content: center; writing-mode: vertical-rl;
  width: 30px; padding: 7px 0; border-radius: 5px; background: var(--red); color: #FBF1EC;
  font-family: var(--serif); font-size: 12px; letter-spacing: 3px; line-height: 1;
}
