/* 站点共用样式（B3）：首页、/works/、作品介绍、/method/、/about/、404 共用这一个文件。
 * 更夫配色（2026-11-09）：取自更夫头像与横幅——宣纸底、浓墨字、灯笼琥珀与朱砂印点缀、楷体标题；
 * 测评台（site/hub/hub.css）同一套变量。纸纹与插图在 /brand/。
 * 只用系统字体与原生 CSS，不引外部资源；窄屏优先，任何宽度下都不让整页横向溢出。 */

:root {
  --paper: #f5ead2; --paper-2: #e9dcc0; --card: #fbf5e8; --ink: #221d17; --ink-2: #4e4438; --muted: #7d715f;
  --rule: #d9c9a8; --flame: #a3461a; --copper: #b67a2e; --amber: #e39a3b; --seal: #a8322a; --night: #15120e;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --brush: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "Songti SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { background: var(--paper) url(/brand/paper.jpg) repeat; background-size: 512px 512px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 17px/1.75 var(--sans); overflow-wrap: break-word; }
img, video { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 4px; }
/* 只居中、不写 margin-top：否则会盖掉下面 section 的上边距 */
.wrap { max-width: var(--wrap); margin-inline: auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 0 0 8px 0; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- 页头与核心引流按钮 ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(245, 234, 210, .92); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; flex: none; border-radius: 4px; display: block; transition: transform 240ms var(--ease); }
.brand:hover .mark { transform: rotate(-6deg); }
.brand .name { display: block; height: 32px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 6px; white-space: nowrap; transition: color 160ms var(--ease), background 160ms var(--ease); }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--flame); font-weight: 600; }

/* 顶栏与全站共用 X / GitHub 关注按钮 + 悬停扫码卡片 */
.head-social { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-social, .prose .btn-social { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font: 600 13px/1.2 var(--sans); text-decoration: none; border-bottom: 1px solid transparent; white-space: nowrap; transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.btn-social .ico { flex: none; }
.btn-social .handle { font-style: normal; font-family: var(--mono); font-size: 12px; opacity: .92; }
.btn-social.btn-x, .prose .btn-social.btn-x { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-social.btn-x:hover, .prose .btn-social.btn-x:hover { background: var(--flame); border-color: var(--flame); color: #fff; transform: translateY(-1px); }
.btn-social.btn-gh, .prose .btn-social.btn-gh { background: var(--card); color: var(--ink); border: 1px solid var(--rule); }
.btn-social.btn-gh:hover, .prose .btn-social.btn-gh:hover { border-color: var(--ink); background: var(--paper-2); color: var(--ink); transform: translateY(-1px); }
.btn-social.lg, .prose .btn-social.lg { padding: 10px 16px; font-size: 14px; border-radius: 8px; }

.x-pop-wrap { position: relative; display: inline-flex; }
.x-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 176px; padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--rule); box-shadow: 0 12px 32px rgba(60, 40, 18, .14); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none; transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 160ms; }
.x-pop-wrap:hover .x-pop, .x-pop-wrap:focus-within .x-pop { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.x-pop b { font: 700 13px/1.2 var(--sans); color: var(--ink); }
.x-pop .qr-svg { display: block; width: 112px; height: 112px; border-radius: 4px; border: 1px solid var(--rule); }
.x-pop small { font: 600 11px/1.3 var(--mono); color: var(--copper); }
.x-pop span { font-size: 11px; line-height: 1.35; color: var(--muted); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--rule); background: var(--card); border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; }
.menu[open] summary { color: var(--flame); border-color: var(--flame); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 184px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 12px 32px rgba(60, 40, 18, .12); padding: 8px; }
.menu nav a { padding: 8px 12px; border-radius: 6px; font-size: 15px; text-decoration: none; color: var(--ink); }
.menu nav a[aria-current="page"] { color: var(--flame); font-weight: 600; background: var(--paper-2); }

/* ---------- 面包屑与正文容器 ---------- */
.crumbs { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--flame); }
.crumbs .sep { margin: 0 6px; color: var(--rule); }
main { padding-bottom: 48px; }
/* /works/ 的分组锚点（#car、#factories，来自 works.json 的 groups[].anchor）：跳过来时不被吸顶页眉挡住 */
section[id] { scroll-margin-top: 80px; }

/* ---------- 首页横幅（2026-11-09） ----------
 * 天坛祈年殿 3D 循环片铺满整条横幅（3:1 画幅，cover 裁切；桌面靠左取景让殿身偏右，给左侧叠字留位置），
 * 左侧压墨色渐变，叠白色书法字标（即首页 h1）与一句介绍；右下角注明画面出处。 */
.gf-hero { position: relative; overflow: hidden; margin-top: 0; height: clamp(380px, 38vw, 600px); background: #1d1a16; color: #fff; }
.gf-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.gf-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 18, 14, .78) 0%, rgba(22, 18, 14, .52) 30%, rgba(22, 18, 14, 0) 58%), linear-gradient(0deg, rgba(22, 18, 14, .35) 0%, rgba(22, 18, 14, 0) 30%); }
.gf-in { position: relative; z-index: 1; height: 100%; max-width: 1220px; display: flex; align-items: center; }
.gf-copy { max-width: 470px; }
.gf-word { margin: 0; line-height: 0; }
.gf-word img { display: block; width: min(380px, 78%); height: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .45)); }
.gf-intro { margin: 22px 0 0; color: rgba(255, 255, 255, .92); font-size: 16px; line-height: 1.75; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.gf-credit { position: absolute; right: 24px; bottom: 16px; margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .85); text-decoration: none; padding: 4px 10px; border-radius: 4px; background: rgba(22, 18, 14, .38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
a.gf-credit:hover { color: #fff; background: rgba(22, 18, 14, .6); }

/* ---------- 首页板块卡片（2026-11-09） ----------
 * 宣纸卡 + 水墨插图（白底图，multiply 叠到纸上）+ 楷体标题 + 一句话 + 数量 / 筹备中 + 子链接。
 * 顶边一道板块主色（site.json 的 color）；指到卡片上像灯笼照过来：琥珀描边、暖光晕、插图微微上浮。 */
.mods { max-width: 1220px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.mod-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--c); border-radius: 12px; overflow: hidden; transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease); }
.mod-card:hover, .mod-card:focus-within { transform: translateY(-2px); border-color: rgba(227, 154, 59, .75); border-top-color: var(--c); box-shadow: 0 0 0 1px rgba(227, 154, 59, .35), 0 18px 36px -16px rgba(200, 120, 40, .55); }
.mod-art { display: block; aspect-ratio: 4 / 3; max-height: 200px; overflow: hidden; background: radial-gradient(60% 60% at 50% 55%, rgba(242, 166, 64, 0), transparent); transition: background 400ms var(--ease); }
.mod-card:hover .mod-art { background: radial-gradient(60% 60% at 50% 55%, rgba(242, 166, 64, .22), transparent 70%); }
.mod-art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 400ms var(--ease); }
.mod-card:hover .mod-art img { transform: translateY(-4px) scale(1.03); }
.mod-body { display: flex; flex-direction: column; gap: 8px; padding: 4px 20px 20px; flex: 1 1 auto; }
.mod-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mod-title h2 { margin: 0; font: 700 25px/1.25 var(--brush); letter-spacing: .04em; }
.mod-title h2 a { text-decoration: none; }
.mod-title h2 a::after { content: ""; position: absolute; inset: 0; }
.mod-title h2 a:hover { color: var(--flame); }
.mod-count { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mod-count b { font: 700 18px/1 var(--mono); color: var(--ink); margin-right: 2px; }
.mod-soon { margin: 0; flex: none; font-size: 12px; font-weight: 600; color: var(--seal); border: 1px solid rgba(168, 50, 42, .45); border-radius: 4px; padding: 1px 8px; }
.mod-tag { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.mod-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.mod-chips a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 4px; font-size: 13px; text-decoration: none; color: var(--ink-2); background: rgba(255, 255, 255, .4); transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.mod-chips a:hover { color: var(--flame); border-color: var(--flame); }
.mod-stub-art { margin: 0 0 4px; max-width: 360px; }
.mod-stub-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.kicker { margin: 0; color: var(--flame); font-size: 13px; letter-spacing: .08em; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--flame); border-color: var(--flame); color: #fff; }
.btn:hover { transform: translateY(-1px); }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- 区块与列表 ---------- */
section { margin-top: 64px; }
h2 { font: 700 clamp(25px, 2.8vw, 33px)/1.3 var(--brush); margin: 0 0 8px; letter-spacing: .04em; text-wrap: balance; }
.lead { color: var(--ink-2); margin: 0 0 20px; max-width: 780px; }
.more { margin: 16px 0 0; }
.more a, .link-strong { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--flame); padding-bottom: 1px; }
.more a:hover, .link-strong:hover { color: var(--flame); }

.feed { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.feed li { border-bottom: 1px solid var(--rule); }
.feed a { display: grid; grid-template-columns: 88px 104px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 4px; text-decoration: none; }
.feed .tag { justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--seal); border: 1px solid rgba(168, 50, 42, .45); background: rgba(168, 50, 42, .06); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.feed time { color: var(--muted); font: 13px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed b { font: 600 17px/1.4 var(--sans); }
.feed .sum { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.feed a:hover b { color: var(--flame); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.card > img, .card > .hl-video { display: block; width: 100%; height: auto; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
/* 卡片高光片段（J）：固定 16:9，poster 占位；preload="none"，滚进视口才播 */
.hl-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px 20px; }
.card h3 { font: 700 21px/1.3 var(--serif); margin: 0; }
.card .q { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.65; }
.card .first { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.card .first .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c, #2a5f9e); }
.card .first small { color: var(--muted); }
.card .links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 8px; }
.card .links a { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--flame); padding-bottom: 1px; }
.card .links a:hover { color: var(--flame); }

.page-title { font: 700 clamp(30px, 4.2vw, 44px)/1.25 var(--brush); margin: 8px 0 12px; }
/* /works/ 的组名（有 hub 时链到组总页）：保持标题样式，hover 变铜色，和卡片标题的反馈一致 */
.group-title a { text-decoration: none; }
.group-title a:hover { color: var(--flame); }

.work-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.work-card { display: block; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease); }
.work-card:hover { transform: translateY(-1px); border-color: var(--copper); box-shadow: 0 8px 24px rgba(60, 40, 18, .08); }
.work-card img { display: block; width: 100%; height: auto; background: var(--paper-2); }
.work-card .hl-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.work-card div { padding: 16px; }
.work-card b { display: block; font-size: 18px; }
.work-card small { color: var(--muted); font-size: 13px; }
.work-card p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
/* 卡片标题层级（K2）：/works/ 有组 h2 时卡片标题是 h3，退化成一整块时仍是 h2，两套同一份样式 */
.work-card h2, .work-card h3 { font: 700 20px/1.35 var(--serif); margin: 0 0 4px; }
.work-card h2 a, .work-card h3 a { text-decoration: none; }
.work-card h2 a:hover, .work-card h3 a:hover { color: var(--flame); }
.work-card .en { margin: 0; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.work-card .meta { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.work-card .links { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; }
.work-card .links a { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--flame); padding-bottom: 1px; }
.work-card .links a:hover { color: var(--flame); }
.work-item .en { margin: 0 0 8px; color: var(--muted); font: 500 12px var(--mono); letter-spacing: .04em; }

/* 作品介绍页：系列标签、英文副标题、3D 入口的按钮与窄屏/不支持时的替代文案 */
.prose .series-tag { display: inline-block; margin: 8px 0 0; color: var(--seal); border: 1px solid rgba(168, 50, 42, .45); background: rgba(168, 50, 42, .06); border-radius: 6px; padding: 2px 10px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.prose .series-tag:hover { color: var(--flame); border-color: var(--flame); }
.prose .en-sub { color: var(--muted); font: 500 13px var(--mono); letter-spacing: .04em; margin: -4px 0 20px; }
.prose .cta3d-off { display: none; }
.no-3d .prose .cta3d { display: none; }
.no-3d .prose .cta3d-off { display: block; }

/* 组总页的车间列表（K2）：<ol> 表达生产顺序（去掉列表符号），卡片里是动态片段、标题、英文名、简介与两个链接 */
.prose .workshop-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 20px 0 28px; padding: 0; }
.prose .workshop-card { margin: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.prose .workshop-card .workshop-cover { display: block; border-bottom: 0; }
.prose .workshop-card .hl-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.prose .workshop-card > div { padding: 12px 16px 16px; }
.prose .workshop-card h3 { font: 700 18px/1.35 var(--serif); margin: 0 0 4px; }
.prose .workshop-card h3 a { text-decoration: none; border-bottom: 0; }
.prose .workshop-card h3 a:hover { color: var(--flame); }
.prose .workshop-card .en { margin: 0 0 8px; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.prose .workshop-card .desc { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.prose .workshop-card .links { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; }
.prose .workshop-card .links a { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--flame); padding-bottom: 1px; }
.prose .workshop-card .links a:hover { color: var(--flame); }

/* ---------- 作品列表 ---------- */
.work-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.work-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; align-items: start; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.work-item .work-cover { display: block; }
.work-item img { display: block; width: 100%; height: auto; }
.work-item > div { padding: 20px 24px 24px; }
.work-item h2, .work-item h3 { font: 700 22px/1.35 var(--serif); margin: 0 0 4px; }
.work-item h2 a, .work-item h3 a { text-decoration: none; }
.work-item h2 a:hover, .work-item h3 a:hover { color: var(--flame); }
.work-item .sub { margin: 0; color: var(--muted); font-size: 14px; }
.work-item .desc { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }
.work-item .meta { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.work-item .links { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; }
.work-item .links a { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--flame); padding-bottom: 1px; }
.work-item .links a:hover { color: var(--flame); }

/* ---------- 正文页（方法、关于、作品介绍、404） ---------- */
.prose { max-width: 820px; padding-top: 48px; }
.prose h1 { font: 700 clamp(30px, 4.2vw, 44px)/1.25 var(--brush); margin: 8px 0 16px; }
.prose h2 { font: 700 26px/1.35 var(--brush); margin: 48px 0 12px; }
.prose h3 { font: 700 19px/1.4 var(--serif); margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.25em; color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--copper); }
.prose a:hover { color: var(--flame); border-color: var(--flame); }
.prose .lead { font-size: 18px; color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 2px 6px; border-radius: 4px; }
.prose .note { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--copper); border-radius: 0 8px 8px 0; padding: 16px; font-size: 15px; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose td { hyphens: none; }
.prose thead th { font-size: 13px; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prose .meta-table th { width: 9em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.prose .stations th { white-space: nowrap; }

.video { margin: 24px 0 12px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--night); }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night); }
.video figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); background: var(--card); }

.plain-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.plain-list li { border-bottom: 1px solid var(--rule); }
.plain-list a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 600; }
.plain-list a:hover { color: var(--flame); }

.nf-art { margin: 0 0 8px; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); }
.nf-art img { display: block; width: 100%; height: auto; }

/* ---------- 作者转化卡与页脚 ---------- */
.author-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0 16px; padding: 20px 24px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--flame); border-radius: 12px; box-shadow: 0 4px 16px rgba(60, 40, 18, .05); }
.ac-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.ac-id { display: flex; align-items: flex-start; gap: 12px; }
.ac-mark { width: 48px; height: 48px; flex: none; border-radius: 8px; display: block; border: 1px solid var(--rule); margin-top: 2px; }
.ac-name { display: block; font: 700 18px/1.3 var(--serif); color: var(--ink); }
.ac-handle { font: 600 13px var(--mono); color: var(--copper); margin-left: 6px; }
.ac-bio, .prose .ac-bio { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.ac-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ac-btns .btn-x, .prose .ac-btns .btn-x { background: var(--flame); border-color: var(--flame); }
.ac-btns .btn-x:hover, .prose .ac-btns .btn-x:hover { background: var(--ink); border-color: var(--ink); }
.ac-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 8px; background: var(--paper); border: 1px solid var(--rule); }
.ac-qr a, .prose .ac-qr a { display: block; border: 0; line-height: 0; }
.ac-qr .qr-svg { display: block; width: 96px; height: 96px; border-radius: 4px; }
.ac-qr small { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }

.site-foot { margin-top: 80px; border-top: 2px solid var(--ink); padding: 24px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand b { display: block; font: 700 22px var(--brush); letter-spacing: .08em; }
.foot-brand span { color: var(--muted); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--flame); }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13.5px; align-items: center; }
.foot-social a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 1px solid var(--rule); background: var(--card); color: var(--ink); transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease); }
.foot-social a.foot-x { background: var(--ink); color: #fff; border-color: var(--ink); }
.foot-social a.foot-x:hover { background: var(--flame); border-color: var(--flame); color: #fff; }
.foot-social a.foot-gh:hover { border-color: var(--ink); background: var(--paper-2); }
.foot-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 13px; }

/* ---------- 响应式 ---------- */
/* 导航（K4）：5 个中文长标签 + 右侧关注按钮在 1280 宽下排成一行；
 * 窄到 980 以下收起主导航文字为下拉菜单，把最醒目的 X 与 GitHub 按钮一直留在顶栏。 */
@media (max-width: 1180px) {
  .nav a { font-size: 13px; padding: 6px 7px; }
  .head-social .btn-x .handle { display: none; }
}
@media (max-width: 1060px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .head-social { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 900px) {
  .work-item { grid-template-columns: 1fr; }
  /* 3D 页面按桌面尺寸排，窄屏不引导进入：隐藏按钮，只留一句提示 */
  .prose .cta3d { display: none; }
  .prose .cta3d-off { display: block; }
}
@media (max-width: 760px) {
  .gf-hero { height: 440px; }
  .gf-video { object-position: 50% 50%; }
  .gf-shade { background: linear-gradient(0deg, rgba(22, 18, 14, .82) 0%, rgba(22, 18, 14, .5) 40%, rgba(22, 18, 14, 0) 70%); }
  .gf-in { align-items: flex-end; padding-bottom: 54px; }
  .gf-word img { width: 150px; }
  .gf-intro { margin-top: 12px; font-size: 14.5px; }
  .gf-credit { right: 12px; top: 12px; bottom: auto; font-size: 12px; }
  .cards { grid-template-columns: 1fr; }
  .mods { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mod-art { max-height: 170px; }
  .mod-chips a { min-height: 40px; }
  .prose .workshop-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  /* 窄屏表格改成纵向排列：两列表格在 390px 里挤成竖排字，读起来比横向滚动更差 */
  .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .prose tr:first-child { padding-top: 0; }
  .prose th, .prose td { border: 0; padding: 2px 0; }
  .prose .meta-table th, .prose .stations th { width: auto; white-space: normal; font-size: 13px; }
  .prose .stations td:first-child { font-size: 16px; color: var(--ink); }
  .prose .stations td:first-child strong { font-size: 17px; }
  .prose .stations td:last-child { margin-top: 4px; }
  .table-wrap { overflow: visible; }
  .brand .name { font-size: 16px; }
  .head-in { gap: 8px; }
  .head-social { gap: 6px; }
  .head-social .btn-social { padding: 6px 8px; font-size: 12px; }
  .head-social .btn-gh span { display: none; }
  .author-card { flex-direction: column; align-items: stretch; padding: 16px; gap: 16px; }
  .ac-qr { align-self: flex-start; flex-direction: row; gap: 12px; padding: 8px 12px; }
  .ac-qr .qr-svg { width: 64px; height: 64px; }
  .feed a { grid-template-columns: 1fr; gap: 4px; }
  .feed time { order: 2; }
  .prose { padding-top: 30px; }
  .foot-note { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
