/* 六尺巷 · 设计系统 ds.css（2026-10-10）——全站唯一组件层，在 site.css 之后加载。说明见 ops/design-system-20261010.md */
:root {
  --paper: var(--bg); --paper-2: var(--bg-2); --card: var(--surface); --brick: var(--qing); --accent: var(--cinnabar);
  --fs-display: clamp(34px, 9.4vw, 56px); --fs-h1: clamp(28px, 7.4vw, 42px); --fs-h2: clamp(22px, 5.6vw, 30px); --fs-h3: clamp(18px, 4.6vw, 21px);
  --fs-body: 16px; --fs-small: 14px; --fs-micro: 12.5px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(30,34,38,.05), 0 6px 18px -10px rgba(30,34,38,.22); --sh-2: var(--shadow);
}
body { font-size: var(--fs-body); line-height: 1.8; }
@media (min-width: 1024px) { body { font-size: 17px; } }
h1, h2, h3 { line-height: 1.28; letter-spacing: .03em; }
/* ---- 按钮：主 / 次 / 文字链 ---- */
.btn { min-height: 48px; padding: 11px 22px; border-radius: var(--r-pill); font-size: 15.5px; letter-spacing: .06em; font-weight: 500; justify-content: center; text-align: center; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn:not(.ghost):not(.btn-ghost) { background: var(--accent); border-color: var(--accent); color: var(--seal-ink); }
.btn:not(.ghost):not(.btn-ghost):hover { background: color-mix(in srgb, var(--accent) 86%, #000); border-color: color-mix(in srgb, var(--accent) 86%, #000); color: var(--seal-ink); }
.btn.ghost, .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover, .btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--card); }
.ds-block { width: 100%; }
.ds-link, .kj-text-button { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink-2); font: inherit; font-size: var(--fs-small); text-decoration: underline; text-decoration-color: var(--gold-l); text-underline-offset: 5px; cursor: pointer; }
.ds-link:hover, .kj-text-button:hover { color: var(--accent); }
/* ---- 输入 ---- */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), textarea, select { font-size: 16px; }
.ds-input, .kj-field-grid input, .kj-confirm-panel input:not([type=checkbox]):not([type=radio]), .kj-confirm-panel textarea, .kj-confirm-panel select { min-height: 48px; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); width: 100%; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; }
/* ---- 分区 / 标题 / 卡片 / chip / 空状态 / 骨架 / toast ---- */
.ds-sec { padding: var(--s-7) 0; }
@media (min-width: 900px) { .ds-sec { padding: 88px 0; } }
.ds-sec + .ds-sec { border-top: 1px solid var(--line); }
.ds-head { margin-bottom: var(--s-5); max-width: 40em; }
.ds-head h2 { margin: 0; font-size: var(--fs-h2); }
.ds-head p:not(.kicker) { margin: var(--s-2) 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.ds-card { display: block; padding: var(--s-4) var(--s-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; }
a.ds-card { position: relative; transition: border-color .15s, box-shadow .15s; }
a.ds-card:hover { border-color: var(--line-2); box-shadow: var(--sh-1); color: var(--ink); }
.ds-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 15px; text-decoration: none; }
.ds-chip[aria-pressed=true], .ds-chip.is-on { border-color: var(--accent); color: var(--accent); }
.ds-empty { padding: var(--s-5) var(--s-4); text-align: center; color: var(--ink-2); background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-m); }
.ds-skeleton { background: linear-gradient(90deg, var(--paper-2), var(--card), var(--paper-2)); background-size: 200% 100%; animation: ds-sk 1.4s linear infinite; border-radius: var(--r-s); }
@keyframes ds-sk { to { background-position: -200% 0; } }
.sh-toast, .lcx-account-notice, .ds-toast { border-radius: var(--r-pill); }
/* ---- 入口卡（首页“再看看”） ---- */
.ds-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 900px) { .ds-entries { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); } }
.ds-entry { display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: var(--s-4); }
.ds-entry .seal { width: 32px; height: 32px; font-size: 12px; }
.ds-entry b { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-top: 4px; }
.ds-entry span:last-child { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.ds-entry::after { content: "›"; position: absolute; right: 14px; top: 12px; color: var(--muted); font-size: 18px; }
/* ---- 页脚 ---- */
.site-footer--compact { margin-top: var(--s-7); }
.ft-compact-top { flex-wrap: wrap; gap: 6px 16px; }
.ft-compact-links { flex-wrap: wrap; gap: 0 14px; }
.ft-compact-links a, .ft-compact-links button { min-height: 44px; display: inline-flex; align-items: center; }
/* ---- 触控 ---- */
.lm-card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a.nav-xx { font-weight: 600; }
/* 六尺巷 · AI 共建 统一组件（首页首屏、共建页、关于本站） 2026-10-10 */
.gj-hero { position: relative; padding: 96px 0 34px; background: var(--bg); overflow: hidden; }
.gj-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.gj-hero .wrap { position: relative; z-index: 1; }
.gj-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 13px; letter-spacing: .24em; color: var(--gold); }
.gj-kicker .seal { flex: none; }
.gj-hero h1, .gj-page h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 9vw, 56px); line-height: 1.22; letter-spacing: .04em; color: var(--ink); }
.gj-hero h1 em, .gj-page h1 em { font-style: normal; color: var(--cinnabar); }
.gj-lead { margin: 16px 0 0; max-width: 34em; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.gj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.gj-actions .btn { min-height: 50px; padding: 12px 24px; font-size: 16px; letter-spacing: .06em; }
@media (max-width: 480px) { .gj-actions .btn { flex: 1 1 100%; } }
.gj-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-size: 14px; color: var(--ink-2); text-underline-offset: 4px; }
.gj-progress { margin-top: 22px; max-width: 30em; }
.gj-progress-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.gj-progress-text b { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--cinnabar); letter-spacing: .02em; }
.gj-progress-text b:empty { display: none; }
.gj-bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.gj-bar i { display: block; height: 100%; width: 1.5%; background: var(--cinnabar); border-radius: 99px; transition: width .8s ease; }
.gj-goal { margin: 6px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
@media (min-width: 900px) { .gj-hero { padding: 132px 0 56px; } .gj-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: end; } }
.gj-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: gj; }
.gj-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.gj-steps li b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.gj-steps li::before { counter-increment: gj; content: counter(gj); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cinnabar); color: var(--seal-ink); font-family: var(--serif); font-size: 15px; }
/* 共建页 */
.gj-page { padding-bottom: 12px; }
.gj-page .crumbs { margin-bottom: 18px; }
.gj-page section { margin-top: 36px; }
.gj-page h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.gj-sub { margin: -4px 0 14px; font-size: 14px; color: var(--muted); }
.gj-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gj-topics a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.gj-topics a b { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.gj-topics a span { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.gj-topics a:active { border-color: var(--cinnabar); }
@media (min-width: 760px) { .gj-topics { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.gj-req { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--cinnabar); border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.gj-fold { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.gj-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; cursor: pointer; list-style: none; font-size: 16px; color: var(--ink); }
.gj-fold > summary::-webkit-details-marker { display: none; }
.gj-fold > summary::after { content: "展开"; font-size: 13px; color: var(--cinnabar); }
.gj-fold[open] > summary::after { content: "收起"; }
.gj-fold > div { padding: 0 16px 16px; }
.gj-trust { margin: 14px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
/* 关于本站 */
.gj-about p, .gj-about li { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.gj-about ul { padding-left: 1.2em; }
.gj-about .gj-card { margin-top: 18px; padding: 18px 18px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.gj-about .gj-card h2 { font-size: 19px; }
/* 触控尺寸 */
.gj-about li a { display: inline-block; padding: 10px 0; }
/* 文人雅集：沿用全站朱砂主色 */
.works-page { --ws-accent: var(--cinnabar, #b0412c); }
.works-page .site-header { position: relative; }
.ws-footer-links { max-width: 1520px; margin: 32px auto 0; padding: 0 24px; display: flex; gap: 18px; font-size: 14px; }
.ws-footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: inherit; }
.works-page .ft-compact-links button { padding: 0; border: 0; background: none; font: inherit; color: inherit; min-width: 0; }
.works-page .site-footer { margin-top: 24px; }
.gj-req + p { margin-top: 14px; }
/* ================= 页面层：首页 ================= */
.home .sec.ds-sec { padding: var(--s-7) 0; }
@media (min-width: 900px) { .home .sec.ds-sec { padding: 88px 0; } }
@media (max-width: 759px) {
  .home-lm .lm-grid { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 10px; scrollbar-width: none; }
  .home-lm .lm-grid::-webkit-scrollbar { display: none; }
  .home-lm .lm-card { flex: 0 0 78%; scroll-snap-align: start; padding: 18px 18px 14px; }
}
.home-story-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .home-story-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 72px; } }
.home-story-text p { margin: 0 0 var(--s-3); font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.home-story-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: var(--s-2) 0 0; }
.home-story .poem-card { max-width: 360px; margin: 0 auto; width: 100%; }
.home-tl { margin-top: var(--s-6); }
.home-tl .timeline { margin: 0; }
.home-ask .hchat { max-width: 760px; }
.home-ask .chat-note { margin: var(--s-3) 0 0; font-size: var(--fs-micro); color: var(--muted); }
.home-about-card { padding: var(--s-5); }
.home-about-card h2 { margin: 0 0 var(--s-2); font-size: var(--fs-h3); }
.home-about-card p:not(.kicker) { margin: 0; color: var(--ink-2); font-size: 15px; }
.home-about-links { display: flex; gap: 0 22px; margin-top: var(--s-2) !important; }
.home .notes { margin-top: 0; }
.home-ask .ds-head, .home-more .ds-head { margin-bottom: var(--s-4); }
/* ================= 页面层：共建 ================= */
.kj-card-seat { margin: 6px 0 0; font-family: var(--serif); font-size: 17px; color: var(--accent); letter-spacing: .04em; }
.gj-receipt-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
@media (max-width: 480px) { .gj-receipt-actions .btn { flex: 1 1 100%; } }
.kj-help { padding: 12px 14px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); }
.kj-help p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.kj-receipt { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
#kj-text, #kj-poster-template, .kj-composer textarea { font-size: 16px; }
.q-page-links a, .q-crumb a, nav[aria-label="面包屑"] a { display: inline-flex; align-items: center; min-height: 44px; }
/* ================= 页面层：内页统一（2026-10-10 第 2 批） ================= */
/* 统一页头：面包屑 → 题签 → 标题 → 一句导语 */
body :is(.art-head, .directory-head, .wall-head, .q-intro, .xx-route-head, .mail-compose-head, .wish-head, .xx-hero-txt, .xx-demo-head, .gj-page) h1 {
  font-family: var(--serif); font-weight: 600; font-size: var(--fs-h1); line-height: 1.28; letter-spacing: .04em; text-wrap: balance; margin: 0;
}
body :is(.wall-head.is-sm, .xx-route-head, .mail-compose-head) h1 { font-size: clamp(26px, 6.6vw, 36px); }
body :is(.art-head, .directory-head, .wall-head, .q-intro, .xx-route-head, .wish-head, .xx-hero-txt, .xx-demo-head) > p:not(.kicker):not(.art-meta) { font-size: 16px; line-height: 1.8; color: var(--ink-2); max-width: 36em; }
body :is(.art-head, .directory-head, .wall-head, .q-intro, .xx-route-head, .wish-head, .xx-demo-head) .kicker { margin-bottom: var(--s-3); }
.crumbs, .q-crumb { font-size: 13px; color: var(--muted); }
.crumbs a, .q-crumb a { color: var(--ink-2); text-decoration: none; }
/* 文章页 */
.art h2, .prose h2 { font-size: var(--fs-h2); }
.prose p, .art-body p { line-height: 1.85; }
.art-hero img, .art figure img { border-radius: var(--r-m); }
figcaption { font-size: var(--fs-micro); color: var(--muted); line-height: 1.6; }
figcaption a { display: inline-block; padding: 12px 0; margin: -12px 0; }
/* 统一卡片外观：纸色底 + 1px 线 + 14 圆角，不加重阴影 */
:is(.lm-card, .q-card, .q-panel, .xx-step, .wall-empty, .sg-card, .sg-form, .kj-section, .kj-receipt, .directory-group, .hchat, .wish-card, .xx-note) { border-radius: var(--r-m); }
:is(.q-card, .q-panel, .sg-form, .wish-card) { box-shadow: none; border: 1px solid var(--line); background: var(--card); }
/* 列表式链接（全站导航、相关阅读） */
.directory-group a, .art-related a, .rel-list a { min-height: 44px; display: flex; align-items: center; }
/* 砖墙计数：少于 20 块时不显示数字，换成邀请语 */
.wall-stat[data-few] b, .wall-stat[data-few] span { display: none; }
.wall-stat[data-few]::after { content: "第一批砖正在砌，等你来添一块"; color: var(--ink-2); }
/* 次要入口：统一成描边按钮 */
.q-page-links a { font-size: 14px; }
/* 首页 · 周边方位（OSM 真实比例） */
.home-locator { margin: var(--s-6) 0 0; padding: var(--s-4); --loc-bg: var(--paper-2); }
.loc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: var(--s-3); }
.loc-head b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.loc-head span { font-size: 13.5px; color: var(--ink-2); }
.loc-svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; border-radius: var(--r-s); }
.loc-road { fill: none; stroke: var(--card); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.loc-rl { font-size: 17px; fill: var(--muted); letter-spacing: 2px; }
.loc-poly { fill: color-mix(in srgb, var(--brick) 28%, var(--card)); stroke: var(--brick); stroke-width: 2; transition: fill .3s; }
.loc-alley { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.loc-poly.on { fill: color-mix(in srgb, var(--accent) 30%, var(--card)); stroke: var(--accent); }
.loc-l { font-family: var(--serif); font-size: 26px; fill: var(--ink); font-weight: 600; }
.loc-main { fill: var(--accent); }
.loc-walk { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 9; opacity: .8; }
.loc-s, .loc-scale text, .loc-n text { font-size: 18px; fill: var(--ink-2); }
.loc-scale path { stroke: var(--ink-2); stroke-width: 2.5; fill: none; }
.loc-n path { fill: var(--ink); }
.home-locator figcaption { margin-top: var(--s-3); }
.home-locator figcaption a { padding: 0; margin: 0; display: inline; }
/* 正文内联链接：上下各加 11px 透明点按区（行内元素的上下内边距不影响排版） */
:is(.prose, .art-body, dd, .callout, .home-locator figcaption, .art-src) a:not(.btn):not(.ds-link):not([class*="btn"]) { padding-block: 11px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; }
sup.fn a { display: inline-block; min-width: 22px; padding: 10px 4px; margin: -10px -2px; text-align: center; }
/* ================= 页面层：知识挑战（第 2b 批重做） ================= */
.q-shell { max-width: 760px; margin: 0 auto; }
.q-intro { display: block; padding: var(--s-2) 0 0; }
.q-intro-mark { display: none; }
.q-page-links { margin: var(--s-2) 0 var(--s-4); }
.q-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; border-radius: var(--r-pill); border: 1px solid var(--accent); background: var(--accent); color: var(--seal-ink); font: 500 15.5px/1.4 var(--sans); letter-spacing: .06em; cursor: pointer; }
.q-btn:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.q-btn:disabled { opacity: .55; cursor: default; }
.q-btn.q-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.q-btn.q-btn-ghost:hover { border-color: var(--ink); background: var(--card); }
.q-text-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink-2); font: inherit; font-size: var(--fs-small); text-decoration: underline; text-decoration-color: var(--gold-l); text-underline-offset: 5px; cursor: pointer; }
.q-panel, .q-companions, .q-history { padding: var(--s-5) var(--s-4); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); box-shadow: none; margin-top: var(--s-4); }
.q-setup h2 { margin: 0; font-size: var(--fs-h2); }
.q-round-summary { display: inline-block; margin: var(--s-3) 0 0; padding: 4px 12px; border-radius: var(--r-pill); background: var(--paper-2); font-size: 14px; color: var(--ink-2); }
.q-start-line { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.q-start-line .q-btn { width: 100%; }
@media (min-width: 640px) { .q-start-line { grid-template-columns: 1fr auto; align-items: center; } .q-start-line .q-btn { width: auto; min-width: 200px; } }
.q-identity, .q-hint, .q-sub { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.q-hint { color: var(--muted); font-size: 13px; }
.q-companions h3 { margin: 0; font-size: var(--fs-h3); }
.q-option { border-radius: var(--r-m); background: var(--card); min-height: 56px; }
.q-option[aria-checked=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--card)); box-shadow: inset 0 0 0 1px var(--accent); }
.q-option[aria-checked=true] > span { background: var(--accent); border-color: var(--accent); color: var(--seal-ink); }
.q-option:hover { border-color: var(--accent); }
.q-progress { accent-color: var(--accent); }
.q-result-score { color: var(--accent); font-family: var(--serif); }
.q-rank-row { min-height: 56px; }
.q-bottom-note { font-size: var(--fs-micro); color: var(--muted); margin-top: var(--s-5); }
/* ================= 页面层：书信 / 砖墙 / 心愿 / 讲解员 / 雅集 ================= */
.xx-route-shell, .xx-simple, .xx-demo { max-width: 760px; margin-left: auto; margin-right: auto; }
:is(.xx-step, .xx-note, .mail-compose-card, .xx-env-card) { border-radius: var(--r-m); }
.wall-head .btn, .wish .btn { min-width: 128px; }
.hchat { border-radius: var(--r-l); box-shadow: none; }
.works-page .ws-primary { border-radius: var(--r-pill); }
.works-page :is(input, textarea, select) { font-size: 16px; }
@media (max-width: 639px) { .q-shell .q-start-line .q-btn { width: 100%; justify-self: stretch; } }

/* === merged: mail-simple.css === */
/* A single writing surface, using the existing paper, ink and cinnabar tokens. */
.xx-simple{max-width:1040px;margin:auto}.mail-compose-head{max-width:640px;margin-bottom:28px}.mail-compose-head h1{font-family:var(--serif);font-weight:400;font-size:clamp(28px,4vw,42px);line-height:1.4;margin:10px 0}.mail-compose-head p{color:var(--ink-2);line-height:1.8}.mail-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.mail-fields .xx-field{margin:0;min-width:0}.xx-simple .xx-input{width:100%;box-sizing:border-box;min-height:48px}.xx-simple .lcx-editor-panes{margin-top:16px}.xx-simple .lcx-writing-paper{min-width:0}.xx-simple .xx-ta{min-height:260px}.mail-more{margin:18px 0;border-block:1px solid var(--line);padding:4px 0}.mail-more>summary{cursor:pointer;min-height:48px;display:flex;align-items:center;justify-content:space-between;color:var(--ink-2)}.mail-more>summary:after{content:'＋';font-size:22px}.mail-more[open]>summary:after{content:'－'}.mail-more .lcx-style-tools{padding:12px 0}.mail-more .lcx-format-btn{min-height:44px}.mail-time{display:grid;gap:10px;margin:18px 0}.mail-time label{display:flex;align-items:center;gap:10px;min-height:44px}.mail-time input[type=checkbox]{width:20px;height:20px}.mail-time input[type=datetime-local]{max-width:360px;min-height:48px;background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:10px;box-sizing:border-box}.mail-compose-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.mail-compose-actions .btn{min-height:48px}.mail-compose-note{font-size:13px;color:var(--ink-2);line-height:1.8;margin:14px 0}.mail-login{margin-top:20px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);scroll-margin-top:90px}.mail-login .xx-q{font-size:24px}.mail-login .xx-env{display:none}.mail-status{min-height:24px;margin-top:12px;color:var(--ink-2)}.mail-sent .xx-actions{max-width:520px;margin-inline:auto}.mail-sent .xx-after{text-align:center}.mail-sent .xx-notify{margin-top:18px}.mail-replies{margin-top:30px;border-top:1px solid var(--line);padding-top:22px}.mail-reply-item{padding:18px 0;border-bottom:1px solid var(--line)}.mail-reply-item p{white-space:pre-wrap;overflow-wrap:anywhere}.mail-reply-item small{color:var(--ink-2)}.mail-home-aux{margin-top:35px}.mail-home-aux summary{min-height:48px;cursor:pointer;font-size:18px}.mail-home-aux .section{padding-top:28px}.hero-copy .mail-quiz-entry{font-size:14px;margin-top:15px}.hero-copy .cta{flex-wrap:wrap}.mail-home-short{font-size:16px;line-height:1.8;color:var(--ink-2)}
@media(max-width:700px){.mail-fields{grid-template-columns:1fr;gap:16px}.mail-compose-head{margin-bottom:22px}.mail-compose-actions{gap:10px}.mail-compose-actions .btn{flex:1;min-width:130px}.mail-login{padding:20px 15px}.xx-simple .xx-ta{min-height:220px}.mail-more .lcx-style-tools{flex-wrap:wrap}.mail-time input[type=datetime-local]{width:100%;min-width:0}.mail-sent .xx-actions{width:100%}.mail-compose-note{padding-bottom:env(safe-area-inset-bottom)}}
.hero-copy .cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.hero-copy .cta .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px}.mail-home-aux> .wrap>p a{display:inline-flex;min-height:44px;align-items:center}.mail-home-aux .mail-home-short>.wrap{padding:18px 0}.mail-home-aux .mail-home-short>summary{padding:12px 0}
@media(max-width:759px){.hero-copy .cta .btn{font-size:14px;letter-spacing:.02em}.hero-copy .mail-quiz-entry{margin-top:8px}.hero-copy .cta{gap:8px}}

/* === merged: map-home.css === */
/* finesse · component: geographic-map · register=brand · tokens: inherited LCX palette */
.map-context{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:56px;align-items:center}
.map-context h2{font-size:clamp(25px,3vw,36px);line-height:1.45;letter-spacing:.08em;margin:0 0 20px;overflow-wrap:anywhere}
.map-context p{color:var(--ink-2);max-width:36em}
.map-context .map-context-note{font-size:13px;color:var(--muted)}
.map-context-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.map-context-actions a{white-space:nowrap}
.map-locator{min-width:0;background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:24px 20px 18px}
.map-locator canvas{width:100%;height:240px;display:block}
.map-locator-links{display:flex;flex-wrap:wrap;gap:10px 18px;border-top:1px solid var(--line);padding-top:14px;font-size:13px;color:var(--muted)}
.map-locator-links a{white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
.map-locator-links .is-active{color:var(--cinnabar);text-decoration-thickness:2px}
.map-context:focus{outline:none}
.map-context .map-context-detail{min-height:4em;font-size:14px}
@media(max-width:759px){.map-context{grid-template-columns:minmax(0,1fr);gap:25px}.map-locator{padding:14px}.map-locator canvas{height:220px}.hero .map-scale{max-width:calc(100% - 80px);font-size:10px}.hero-copy .cta,.hero-copy .mail-quiz-entry{display:none}}
@media(prefers-reduced-motion:reduce){.map-context *{scroll-behavior:auto}}

/* Approved map framing and Wen Cheng West Road label. */
@media(min-width:1100px){.hero-mtn{top:3%;height:39%}}
.map-road-label{translate:-50% -50%;padding:3px 9px;font-size:12px;letter-spacing:.14em;color:var(--ink);background:color-mix(in srgb,var(--surface) 88%,transparent);border:1px solid var(--line);box-shadow:0 2px 5px rgb(0 0 0 / .06);border-radius:3px;pointer-events:none}
.map-road-label.on{opacity:1}

/* === merged: ai-progress.css === */
/* finesse · component: ai-progress · register=product
 * states: waiting · loading · success · error · canceled
 * tokens: inherited (site.css); progress is passive, without interactive controls */
.lcx-ai-progress { width: 100%; min-width: 0; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-family: var(--sans); text-align: left; letter-spacing: normal; }
.lcx-ai-progress-label { margin: 0 0 8px !important; min-height: 1.5em; color: var(--ink-2); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.lcx-ai-progress-track { height: 5px; overflow: clip; border-radius: 999px; background: var(--bg-2); }
.lcx-ai-progress-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--qing-d); transform: scaleX(.06); transform-origin: left center; transition: transform .4s ease; }
.lcx-ai-progress-provider { display: block; margin-top: 7px; color: var(--ink-2); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.lcx-ai-progress-provider[hidden] { display: none; }
.lcx-ai-progress[data-state="success"] .lcx-ai-progress-label { color: var(--qing-d); }
.lcx-ai-progress[data-state="error"] .lcx-ai-progress-label { color: var(--cinnabar); }
.lcx-ai-progress[data-state="error"] .lcx-ai-progress-fill { background: var(--cinnabar); }
.chat-log > .lcx-ai-progress-host { width: min(88%, 38rem); margin: 0 0 12px; min-width: 0; }
.chat-log > .lcx-ai-progress-host .lcx-ai-progress { margin: 0; }
.chat-progress-note { display: block; margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 360px) { .lcx-ai-progress { padding: 10px 12px; } .chat-log > .lcx-ai-progress-host { width: 94%; } }
@media (prefers-reduced-motion: reduce) { .lcx-ai-progress-fill { transition: none; } }
.q-save-rank { margin: var(--s-4) 0 0; }
.q-save-rank .q-btn { width: 100%; }
@media (min-width: 640px) { .q-save-rank .q-btn { width: auto; min-width: 240px; } }

.xx-ai-provider, .lcx-ai-progress-provider, .kj-model-label {
  margin: 6px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: .02em;
}
.kj-model-label { margin: 0; white-space: nowrap; }

/* === gj-knows: 六尺巷 AI 现在懂的事 === */
.gj-knows { margin-top: 22px; padding: 16px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; max-width: 36em; }
.gj-knows-title { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.gj-knows-body { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.gj-knows-cta { margin: 12px 0 0; }
.gj-knows-cta .btn { min-height: 48px; }
.gj-knows[data-state="live"] .gj-knows-body { color: var(--ink); font-weight: 500; }
.gj-page .gj-knows { max-width: none; margin-top: 0; }
.gj-hero .gj-knows { margin-top: 18px; }
@media (min-width: 900px) {
  .gj-hero-grid .gj-knows { grid-column: 1 / -1; max-width: none; }
}
.bubble .gj-teach { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.bubble .gj-teach b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.bubble .gj-teach a { color: var(--cinnabar); font-weight: 600; text-underline-offset: 3px; }

/* —— 合作与联系 · 微信二维码（融进同卡，墨线托裱，无嵌套白盒） —— */
.ab-contact-lead { margin: 0 0 12px; }
.ab-contact-body {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 2px 0;
}
.ab-contact-copy { display: contents; }
.ab-contact-lead { order: 1; width: 100%; }
.ab-wx { order: 2; }
.ab-contact-alt { order: 3; width: 100%; }
.ab-contact-actions { order: 4; width: 100%; }

@media (min-width: 720px) {
  .ab-contact-body {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px 40px;
    justify-items: stretch;
    align-items: center;
  }
  .ab-contact-copy {
    display: block;
    grid-column: 1;
    grid-row: 1;
  }
  .ab-contact-lead, .ab-contact-alt, .ab-contact-actions { order: unset; width: auto; }
  .ab-wx { order: unset; grid-column: 2; grid-row: 1; justify-self: end; }
}
.ab-wx {
  margin: 0;
  padding: 0;
  text-align: center;
  background: none;
  border: 0;
  box-shadow: none;
}
.ab-wx-mount {
  position: relative;
  display: inline-block;
  padding: 9px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, var(--line));
  border-radius: 1px;
}
.ab-wx-mount::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid color-mix(in srgb, var(--cinnabar) 26%, transparent);
  pointer-events: none;
  opacity: .4;
}
.ab-wx-mount img {
  position: relative;
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
  background: #fff;
  /* QR 本体需要白底才能扫；外框用墨线托裱融入纸面 */
}
@media (min-width: 720px) {
  .ab-wx-mount img { width: 184px; height: 184px; }
}
.ab-wx figcaption {
  margin: 12px 0 0;
  padding: 0;
  background: none;
  font-family: var(--serif);
  font-size: 13.5px;
  letter-spacing: .22em;
  color: var(--muted);
}
.ab-contact-copy { width: 100%; }
.ab-contact-alt { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px !important; line-height: 1.75 !important; }
.ab-contact-actions { margin: 0; }
.ab-contact .gj-trust { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* 首页关于卡：小印式入口，不抢主文 */
.home-about-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.home-about-wx {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-decoration: none;
}
.home-about-wx:hover { color: var(--ink); }
.home-about-wx:hover span { color: var(--ink); border-bottom-color: color-mix(in srgb, var(--cinnabar) 45%, var(--line-2)); }
.home-about-wx img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--line));
  padding: 3px;
}
.home-about-wx span {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--ink-2);
  border-bottom: 1px solid color-mix(in srgb, var(--gold-l, #c4a574) 55%, transparent);
  padding-bottom: 2px;
}
.home-about-contact .home-about-links { margin-top: 0 !important; }

/* —— 首页 · AI 共建（非首屏区块） —— */
.home-gj { background: var(--bg); }
.home-gj-grid { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) {
  .home-gj-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
}
.home-gj .ds-head h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .04em; }
.home-gj .ds-head h2 em { font-style: normal; color: var(--cinnabar); }
.home-gj .ds-head .kicker { display: inline-flex; align-items: center; gap: 8px; }
.home-gj .ds-head .seal { width: 28px; height: 28px; font-size: 11px; }
.home-gj-actions { margin: 8px 0 18px; }
.home-gj .gj-progress { margin: 0; max-width: 420px; }
.home-gj .gj-knows {
  margin: 0;
  padding: 18px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.home-gj .gj-knows-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
}
/* —— 全站页尾 · 技术支持（印 + 墨线，静默一行技术信息） —— */
.ft-credit { margin-top: 18px; display: grid; gap: 8px; justify-items: center; text-align: center; min-width: 0; }
.ft-credit-rule { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; }
.ft-credit-rule::before, .ft-credit-rule::after { content: ""; flex: 1 1 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 20%, var(--line))); }
.ft-credit-rule::after { background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 20%, var(--line)), transparent); }
.ft-credit-seal { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: var(--cinnabar); color: var(--seal-ink, #fff); font-family: var(--serif); font-style: normal; font-size: 11px; line-height: 1; }
.ft-credit-corp { margin: 2px 0 0; display: grid; gap: 2px; justify-items: center; }
.ft-credit-label { font-size: 12px; letter-spacing: .3em; color: var(--muted); }
.ft-credit-name { white-space: nowrap; font-family: var(--serif); font-size: clamp(14px, 4.3vw, 16px); letter-spacing: .06em; color: var(--ink); }
.ft-credit-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0; row-gap: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.5px; letter-spacing: .02em; color: var(--muted); line-height: 1.5; }
.ft-m { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; white-space: nowrap; }
.ft-m + .ft-m::before { content: "·"; margin: 0 10px; color: color-mix(in srgb, var(--ink) 30%, transparent); }
a.ft-m { color: var(--muted); text-decoration: none; padding: 0 2px; }
a.ft-m:hover { color: var(--cinnabar); text-decoration: underline; text-underline-offset: 3px; }
.ft-live { width: 6px; height: 6px; border-radius: 50%; background: #3f8a62; animation: ft-live-pulse 2.6s ease-out infinite; }
@keyframes ft-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(63,138,98,.4); } 70%, 100% { box-shadow: 0 0 0 6px rgba(63,138,98,0); } }
@media (prefers-reduced-motion: reduce) { .ft-live { animation: none; } }
[data-theme="dark"] .ft-live { background: #6fbf8e; }
/* 给浮动「分享」按钮留出空间，避免盖住页尾 */
.site-footer--compact { padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
@media (min-width: 1024px) { .site-footer--compact { padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important; } }
.site-footer--scan { margin-top: 28px; padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important; }
@media (max-width: 559px) {
  .site-footer--compact .ft-legal, .site-footer--compact .ft-credit { padding-right: 0; }
  .ft-m-ai { flex-basis: 100%; justify-content: center; }
  .ft-m-ai::before { display: none; }
}

/* 共建：五题可存提示（2026-10-16） */
.gj-save-tip {
  margin: 14px 0 0;
  max-width: 34em;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--cinnabar) 28%, var(--line));
  background: color-mix(in srgb, var(--cinnabar) 7%, var(--surface));
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.65;
  letter-spacing: .02em;
}
.home-gj .gj-save-tip { margin: 4px 0 12px; }
.gj-page .gj-save-tip { margin: 18px 0 0; }
