/* 站内页（创意工坊 / 登录 / 分享 / 工厂端）的质感层：排在 app.css 和各页内联样式后面，只改观感、不改结构（id / class 不动，e2e 用得着）。
   和 me.css（「我的」页）同一套语言：纸色底、衬线大标题、墨色主按钮、铜金眉题、卡片不描边靠光影、筛选是下划线不是药丸。
   工厂端在这份之上再叠 factory.css。编辑器（body 没有 .page）不受影响。 */
body.page { /* --ink / --paper / --brass / --serif / --shadow-1 这套变量在 app.css 的 :root */
  /* app.css 的底色 / 面板 / 线色换成纸色系（冷灰线在暖纸上发脏） */
  --c-bg: var(--paper);
  --c-panel: var(--paper-2);
  --c-line: #e3ddd3;
  background: var(--paper);
  background-image: radial-gradient(1200px 520px at 50% -200px, #fffdf8 0%, rgba(255, 253, 248, 0) 70%);
  -webkit-font-smoothing: antialiased;
  overflow: auto; /* 编辑器的 body 是 overflow hidden，站内页整页滚动 */
}
body.page, body.page * { font-variant-numeric: lining-nums tabular-nums !important; } /* 衬线体默认老式数字（0 像小 o）：统一等高数字 */
@keyframes site-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }

/* —— 顶栏：半透明纸色、品牌用衬线、导航是下划线 —— */
body.page .top { height: 60px; padding: 0 28px; background: rgba(247, 244, 238, .86); border-bottom-color: var(--line-soft); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
body.page .top .brand { font: 500 19px/1 var(--serif); letter-spacing: .02em; color: var(--ink); }
body.page .site-nav a { height: 60px; margin: 0 12px; padding: 0 2px; border-radius: 0; border-bottom: 1px solid transparent; color: var(--c-text-mid); font-size: 14px; }
body.page .site-nav a:hover { background: transparent; color: var(--ink); border-bottom-color: var(--line-soft); }
body.page .site-nav a.on { background: transparent; color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
body.page .top .link { color: var(--c-text-mid); text-decoration: none; font-size: 13px; }
body.page .top .link:hover { color: var(--ink); }
body.page .acct { border-color: transparent; background: transparent; font-size: 13px; }
body.page .acct:hover { background: rgba(27, 26, 25, .04); }
body.page .acct .ac-credits { color: var(--brass); }
body.page .lang-seg { border-color: transparent; background: transparent; }
body.page .lang-seg button.on { background: var(--ink); }

/* —— 控件：按钮更安静，主按钮是墨色；输入框、下拉是一条底线 —— */
body.page .btn { border-color: var(--line-soft); background: var(--paper-2); color: var(--ink); }
body.page .btn:hover { border-color: var(--ink); background: #fff; }
body.page .btn.primary { background: var(--ink); border-color: var(--ink); color: #f7f3ec; letter-spacing: .02em; }
body.page .btn.primary:hover { background: #2a2826; border-color: #2a2826; }
body.page .btn.primary:disabled { background: #cfc9bf; border-color: #cfc9bf; }
body.page .btn.on { background: var(--ink); border-color: var(--ink); color: #f7f3ec; }
body.page .seg { border-color: var(--line-soft); background: transparent; }
body.page .seg button:hover { background: rgba(27, 26, 25, .05); }
body.page .seg button.on { background: var(--ink); color: #f7f3ec; }
body.page .name-input, body.page .f-field input, body.page .f-field textarea, body.page .f-tools select, body.page .f-tools input[type=search], body.page .num-in { border-color: var(--line-soft); background: #fff; border-radius: 6px; }
body.page .name-input:focus, body.page .f-field input:focus, body.page .f-field textarea:focus, body.page .num-in:focus { border-color: var(--ink); }
body.page .link { text-decoration-color: var(--brass-soft); }
body.page .link:hover { color: var(--ink); text-decoration-color: var(--brass); }
/* 弹窗：圆角大一点、纸色、标题衬线 */
body.page .modal-back { background: rgba(27, 26, 25, .42); }
body.fx .modal { border-radius: 12px; background: var(--paper-2); box-shadow: 0 30px 80px -20px rgba(27, 26, 25, .45); }
body.fx .modal-hd { padding: 18px 24px; border-bottom-color: var(--line-soft); }
body.fx .modal-hd h3 { font: 500 24px/1.2 var(--serif); color: var(--ink); } /* 这几行只给工厂端；顾客页和编辑器的弹窗在 app.css「弹窗 web-v1.1」 */
body.fx .modal-ft { border-top-color: var(--line-soft); padding: 14px 24px; }
body.page .toast { background: var(--ink); border-radius: 8px; }

/* —— 几个数（.me-stats / .w-stats / .stats + .stat，dom.js 的 statRow）：账本式一行，细线隔开；能点的（按钮）悬停数字变铜金，选中的底下一道墨线。底版在 app.css —— */
body.page .me-stats, body.page .w-stats, body.page .stats { gap: 0; margin-bottom: 36px; padding: 4px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
body.page .stat, body.page .stat.on { flex: 1 1 0; border: 0; border-left: 1px solid var(--line-soft); border-radius: 0; background: transparent; padding: 14px 20px; }
body.page .stat:first-child, body.page .stat.on:first-child { border-left: 0; padding-left: 4px; }
body.page .stat.on { box-shadow: inset 0 -2px 0 var(--ink); }
body.page .stat b { font: 500 32px/1.1 var(--serif); color: var(--ink); transition: color var(--t-fast) var(--ease-out); }
body.page button.stat:hover b { color: var(--brass); }
body.page .stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--c-text-lite); letter-spacing: .04em; }

/* ====== web-v1.1（2026-11-05）：顾客看的站内页一套统一的质感（工厂端 body.fx 不动：它是密集的工作台）——
   参考：每页截图交给本机 codex 照同一段风格基调重画（scripts/ui-redesign.mjs），看图学到的做法：
   字大一档（正文 15、标签 14、卡片标题衬线 22、页标题衬线 44 + 一道铜金短线）；卡片圆角 16、留白 28、只用一种长而软的阴影；
   弹窗圆角 20、标题衬线 26；输入框 44 高、白底圆角 10；铜金只给「现在 / 选中 / 动作链接」，主按钮照旧墨色 ====== */
body.page:not(.fx) { font-size: 16px; line-height: 24px; } /* 圆角、阴影的 token（--r-card / --r-ctl / --sh-card / --sh-card-hover / --sh-pop）在 app.css 的 :root，编辑器和站内页共用 */
/* 页面标题、卡片标题衬线 600（参考图里标题都比我们的重，500 的宋体看着又细又小；字号阶梯不变） */
body.page:not(.fx) :is(h1, h2) { font-weight: 600; }
/* 顶栏：高一点、导航 15、现在这页铜金下划线 */
body.page:not(.fx) .top { height: 64px; }
body.page:not(.fx) .site-nav a { height: 64px; margin: 0 14px; font-size: 16px; border-bottom-width: 2px; }
body.page:not(.fx) .site-nav a.on { border-bottom-color: var(--brass); }
body.page:not(.fx) .acct { font-size: 16px; }
/* 页标题：衬线 44 + 一道铜金短线（订单页、待付款的订单页顶上是状态卡，不加） */
body.page:not(.fx) .sp-hd:not(.so-hd) h1::after, body.page:not(.fx) .w-hd h1::after { content: ''; display: block; width: 32px; height: 2px; margin-top: 18px; background: var(--brass); }
/* 按钮：常规 40 高、胶囊；小的 32；主按钮墨色 */
body.page:not(.fx) .btn:not(.small):not(.icon):not(.quiet) { height: 40px; padding: 0 20px; font-size: 16px; }
body.page:not(.fx) .btn.small:not(.icon) { height: 32px; padding: 0 14px; font-size: 15px; }
body.page:not(.fx) .btn.icon { border-radius: 50%; }
/* 输入框：44 高、白底、圆角 10；聚焦墨色一圈 */
body.page:not(.fx) .co-field .name-input, body.page:not(.fx) .ac-sec .name-input { height: 44px; padding: 0 14px; border-radius: var(--r-ctl); font-size: 16px; }
body.page:not(.fx) .co-field textarea.name-input { height: auto; padding: 10px 14px; }
body.page:not(.fx) .name-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 26, 25, .06); outline: none; }
/* 动作链接（改、换一个、传一张…）：铜金字、浅铜金下划线 */
body.page:not(.fx) .link { color: var(--brass-ink); text-decoration-color: var(--brass-soft); text-underline-offset: 4px; }
body.page:not(.fx) .link:hover { color: var(--ink); text-decoration-color: var(--brass); }
/* 弹窗：圆角 20、标题衬线 26、留白大一些、关闭是圆的 */
/* 正文和标题左右对齐；内容比窗口高时正文自己滚，底部按钮一直在 */
/* 弹窗里的分区标题（积分、AI 宣传图、贺卡、发布……）：衬线小标题，和页面上的卡片标题一个语气（以前是 11px 铜金大写小字，像表单标签；codex 参考图几张都这么改）。右栏属性面板里的 .sec-hd 不动 */
/* 菜单（账号、⋯、消息）：圆角 14、一行 40 高、悬停浅纸色 */
body.page:not(.fx) .ctxmenu { min-width: 220px; padding: 8px; border: 0; border-radius: 14px; background: var(--paper-2); box-shadow: var(--sh-pop); }
body.page:not(.fx) .ctxmenu button { min-height: 40px; align-items: center; padding: 8px 12px; border-radius: 8px; font-size: 16px; color: var(--ink); transition: background var(--t-fast) var(--ease-out); }
body.page:not(.fx) .ctxmenu button.nt-item { padding-left: 22px; } /* 未读圆点的位置 */
body.page:not(.fx) .ctxmenu button:hover { background: var(--paper); }
body.page:not(.fx) .ctxmenu hr { margin: 6px 4px; border-top-color: var(--line-soft); }
body.page:not(.fx) .toast { border-radius: 12px; padding: 12px 18px; box-shadow: var(--sh-pop); }

/* ====== 创意工坊 ====== */
body.page .w-main { max-width: 1180px; padding: 56px 40px 96px; animation: site-in .6s var(--ease-out) both; }
body.page .w-hd { margin-bottom: 30px; }
body.page .w-hd h1 { font: 500 44px/1.1 var(--serif); letter-spacing: .01em; color: var(--ink); }
body.page .w-hd p { margin-top: 10px; color: var(--c-text-lite); font-size: 13px; line-height: 22px; letter-spacing: .02em; }
body.page .w-hd .btn.primary { height: 40px; padding: 0 22px; }
/* 筛选条：下划线式页签 + 底线输入框，一条细线托底 */
body.page .w-tools { gap: 6px 22px; margin-bottom: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
body.page .w-tools .seg { border: 0; padding: 0; gap: 18px; background: transparent; }
body.page .w-tools .seg button { height: 30px; padding: 0 2px; border-radius: 0; border-bottom: 1px solid transparent; color: var(--c-text-mid); font-size: 13px; }
body.page .w-tools .seg button:hover { background: transparent; color: var(--ink); border-bottom-color: var(--line-soft); }
body.page .w-tools .seg button.on { background: transparent; color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
body.page .w-tools select { height: 30px; border: 0; border-radius: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--c-text-mid); font-size: 13px; padding: 0; }
body.page .w-tools select:hover { color: var(--ink); border-bottom-color: var(--line-soft); }
body.page .w-tools .name-input { height: 30px; border-width: 0 0 1px; border-radius: 0; background: transparent; font-size: 13px; padding: 0 2px; }
body.page .w-tools .name-input:focus { border-color: var(--ink); }
/* 设计卡：不描边、图大、名字衬线、按钮退成文字 */
body.page .w-main .gallery { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 36px 24px; }
body.page .gal-card.w-card { border: 0; border-radius: 0; background: transparent; overflow: visible; transition: transform .35s var(--ease-out); }
body.page .gal-card.w-card:hover { border-color: transparent; transform: translate3d(0, -4px, 0); }
body.page .w-card img { aspect-ratio: 5 / 4; border-radius: 6px; background: #eeeae2; box-shadow: var(--shadow-1); transition: box-shadow .35s var(--ease-out); }
body.page .w-card:hover img { box-shadow: var(--shadow-2); }
body.page .w-card .nm { padding: 14px 0 0; font: 500 17px/1.35 var(--serif); color: var(--ink); white-space: normal; }
body.page .w-card .meta { padding: 4px 0 12px; font-size: 12px; color: var(--c-text-lite); }
body.page .w-card .acts { padding: 0 0 4px; gap: 16px; align-items: center; }
body.page .w-card .acts .btn.small { height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 13px; color: var(--c-text-lite); }
body.page .w-card .acts .btn.small:hover { color: var(--ink); }
body.page .w-card .acts .btn.small.primary { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--brass); }
body.page .w-card .acts .btn.small.primary:hover { color: var(--brass); }
body.page .w-card .st { top: 10px; right: 10px; background: rgba(27, 26, 25, .72); letter-spacing: .04em; }
body.page .w-more { font-size: 12px; letter-spacing: .04em; }
body.page .w-empty { padding: 56px 16px; border: 1px dashed var(--brass-soft); border-radius: 8px; color: var(--c-text-lite); font-size: 13px; background: rgba(253, 252, 250, .6); }
/* 详情弹窗 */
body.page .w-detail { padding: 24px; gap: 28px; }
body.page .w-stage { border-radius: 10px; background: #eeeae2; box-shadow: inset 0 0 0 1px rgba(27, 26, 25, .05); }
body.page .w-detail h3 { font: 500 28px/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }
body.page .w-detail .desc { color: var(--c-text-mid); font-size: 14px; line-height: 24px; }
body.page .w-detail dl { gap: 8px 16px; font-size: 13px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
body.page .w-detail dt { color: var(--brass); font-size: 13px; letter-spacing: .1em; line-height: 22px; }
body.page .w-note { background: rgba(27, 26, 25, .72); }

/* ====== 登录（public/login.html）：电脑上左边是影棚（深色的墙 + 每次一件商品：编辑器里的设计图 + 这套设计的 3D，/js/auth-stage.js），右边表单；窄了影棚收成顶上一条（只留 3D） ======
   只用这套的几种颜色（墨、纸、铜金、线、次级字，红只给错误）；字号 12 / 14 / 16 / 24 / 40，字重 400 / 500；按钮是胶囊、输入框是一条底线，聚焦时一道墨线从左边划过去。
   动效：表单几格错峰进场（.intro，放完 login.html 收掉；之后切登录 / 注册由 /js/motion.js 的 morph 管），交互反馈 100–150 ms、进出 250–300 ms，都不超过 500 ms */
body.page.auth { min-height: 100vh; }
body.page .auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(440px, 1fr); }
/* 影棚的墙：舞台本身透明、挂上之前这里也是完整的（墙 + 口号）。颗粒画在墙里（静态，只画一次；以前是舞台上面一层，每帧都要叠）。 */
body.page .auth-art { position: relative; overflow: hidden; color: #f3ede3; background: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"), radial-gradient(95% 72% at 50% 34%, #322b25 0%, #1d1a16 52%, #110f0c 100%) #14120f; }
body.page .auth-stage { position: absolute; inset: 0; }
/* 舞台（auth-stage.js 挂进 #stage）：跟着鼠标走的一块软光；上面那句话一个字一个字淡入 + 款式名 · 商品名；中间两张卡——左编辑器画布、右 3D，右边那张往下错开一点、压住左边一截 */
body.page .shw { position: absolute; inset: 0; container: shw / size; --pad: 56px; --top: 196px; --bottom: 136px; }
body.page .shw-light { position: absolute; left: 0; top: 0; z-index: 0; width: 600px; height: 600px; margin: -300px 0 0 -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 228, 190, .2), rgba(255, 228, 190, .07) 46%, rgba(255, 228, 190, 0)); pointer-events: none; transform: translate3d(50cqw, 34cqh, 0) scale(2); will-change: transform; }
body.page .shw-cap { position: absolute; left: var(--pad); right: var(--pad); top: var(--pad); z-index: 2; max-width: 600px; pointer-events: none; }
body.page .shw-line { margin: 0; font: 400 32px/44px var(--serif); letter-spacing: .01em; color: #f3ede3; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; } /* 中文只在标点、空格处断（不把「粉粉」拆开） */
body.page .shw-line::before { content: '“'; color: #c9a878; }
body.page .shw-line::after { content: '”'; color: #c9a878; opacity: 0; transition: opacity .3s var(--ease-out); }
body.page .shw-line.done::after { opacity: 1; }
body.page .shw-ch { position: relative; opacity: 0; transition: opacity .32s var(--ease-out); }
body.page .shw-ch.on { opacity: 1; }
body.page .shw-line.typing .shw-ch.at::after { content: ''; position: absolute; right: -4px; top: .14em; bottom: .08em; width: 2px; background: #c9a878; animation: shw-blink 1.05s steps(1) infinite; }
@keyframes shw-blink { 50% { opacity: 0; } }
body.page .shw-look { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 14px; line-height: 20px; letter-spacing: .12em; color: #c9a878; opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
body.page .shw-look::before { content: ''; flex: none; width: 24px; height: 1px; background: currentColor; }
body.page .shw-look.on { opacity: 1; transform: none; }
/* 不要框：左边只有那张平面图（编辑器出的展开图，透明底、带刀线，纸的影子烘在图里），像一张打样稿浮在影棚里；
   右边 3D 的影棚四周淡进黑底，商品像站在一束光里。宽 = (舞台宽 − 两边留白 + 叠住的 32) / 2，高按宽的 1.15、放不下按那一段的高；右边往下错开 32、离人近一点。
   整组跟着鼠标微微侧过来（auth-stage.js 写 transform）；先进场的是 3D 那块的光（还没画好时就是一团暖灰的光），画好了里面再淡入 */
body.page .shw-cards { position: absolute; left: var(--pad); right: var(--pad); top: var(--top); bottom: var(--bottom); z-index: 1; transform-style: preserve-3d; --w: calc((100cqw - 2 * var(--pad) + 32px) / 2); --h: min(calc(100cqh - var(--top) - var(--bottom) - 32px), calc(var(--w) * 1.15)); }
body.page .shw-card { position: absolute; top: calc(50% - (var(--h) + 32px) / 2); width: var(--w); height: var(--h); opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
body.page .shw-card > * { opacity: 0; transition: opacity .6s var(--ease-out); }
body.page .shw.lit .shw-card > * { opacity: 1; }
body.page .shw.lit .shw-3d > * { transition-delay: .18s; } /* 设计图先出来，3D 跟着亮起来 */
body.page .shw-ed { left: 0; }
body.page .shw-flat { position: absolute; left: 0; top: 0; width: calc(100% - 24px); height: 100%; object-fit: contain; } /* 右边让出被 3D 那团光压住的一截 */
body.page .shw-3d { right: 0; margin-top: 32px; background: radial-gradient(closest-side, #d8d3cc, #b9b4ad); -webkit-mask-image: radial-gradient(closest-side, #000 42%, rgba(0, 0, 0, .55) 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 42%, rgba(0, 0, 0, .55) 72%, transparent 100%); transition-delay: .1s; cursor: grab; }
body.page .shw-3d:active { cursor: grabbing; }
body.page .shw.in .shw-card { opacity: 1; transform: none; }
body.page .shw.in .shw-3d { transform: translateZ(28px); }
/* 特别宽的展开图（宽 ≥ 高的两倍）：平面图横着占满上面 36%，3D 那团光在下面正中、压住平面图下沿一点 */
body.page .shw.wide .shw-ed { top: 0; width: 100%; height: 36%; }
body.page .shw.wide .shw-flat { width: 100%; }
body.page .shw.wide .shw-3d { top: 28%; left: calc(50% - var(--w) * .6); right: auto; width: calc(var(--w) * 1.2); height: 72%; margin: 0; }
body.page .auth-quote { position: absolute; left: 56px; right: 56px; bottom: 52px; z-index: 3; pointer-events: none; }
body.page .auth-quote .q1 { display: block; font: 500 40px/1.15 var(--serif); letter-spacing: .02em; color: #f3ede3; animation: auth-rise .5s var(--ease-out) .12s both; }
body.page .auth-side { position: relative; z-index: 1; box-shadow: -36px 0 72px -36px rgba(0, 0, 0, .55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 96px 48px 32px; background: 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .05 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); } /* 纸面也带一点颗粒，和左边的影棚是一种质感 */
@keyframes auth-rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes auth-in { from { opacity: 0; transform: translate3d(0, -3px, 0); } to { opacity: 1; transform: none; } }

body.page .login { width: 100%; max-width: 380px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.page .login.intro > * { animation: auth-rise .5s var(--ease-out) both; animation-delay: calc(var(--i, 6) * 45ms + 60ms); }
body.page .login .brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; font: 500 12px/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
body.page .login .brand:hover { color: var(--ink); }
body.page .login .brand .brand-mark { width: 20px; height: 20px; transition: transform .25s var(--ease-out); }
body.page .login .brand:hover .brand-mark { transform: translate3d(0, -2px, 0); }
body.page .login h1 { margin: 0 0 8px; font: 500 40px/1.15 var(--serif); letter-spacing: .01em; color: var(--ink); }
body.page .login .lead { margin: 0 0 8px; color: var(--c-text-mid); font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }
body.page .login .lead b { font-weight: 500; color: var(--ink); }
body.page .login .social { margin: 24px 0 4px; }
body.page .login .lead:not([hidden]) + .social { margin-top: 16px; }
body.page .login .g-btn { width: 100%; height: 44px; justify-content: center; gap: 12px; border-color: var(--line-soft); background: #fff; color: var(--ink); font-size: 14px; transition: border-color var(--t-fast) var(--ease-out), box-shadow .15s var(--ease-out), transform .15s var(--ease-out); }
body.page .login .g-btn:hover:not(:disabled) { border-color: var(--ink); box-shadow: 0 6px 18px -8px rgba(27, 26, 25, .28); transform: translate3d(0, -1px, 0); }
body.page .login .g-btn:active:not(:disabled) { transform: none; box-shadow: none; }
body.page .login .g-btn:disabled { opacity: .6; cursor: progress; }
body.page .login .or { display: flex; align-items: center; gap: 16px; margin: 24px 0 8px; color: var(--c-text-lite); font-size: 12px; line-height: 16px; letter-spacing: .08em; }
body.page .login .or::before, body.page .login .or::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
body.page .login .af { margin-top: 20px; } /* 一格（标签在上、输入框在下）：不用 app.css 的 .field（那是标签、输入框左右排） */
body.page .login [hidden] { display: none; }
body.page .login label { display: block; margin-bottom: 4px; font-size: 12px; line-height: 16px; letter-spacing: .08em; color: var(--c-text-lite); transition: color .15s var(--ease-out); }
body.page .login .af:focus-within > label { color: var(--ink); }
body.page .login input:not([type=checkbox]) { display: block; width: 100%; height: 44px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; color: var(--ink); font-size: 16px; caret-color: var(--brass); transition: border-color var(--t-fast) var(--ease-out); }
body.page .login input:not([type=checkbox]):hover { border-bottom-color: #cfc7ba; }
body.page .login input:not([type=checkbox]):focus { outline: none; box-shadow: none; }
/* 自动填充别涂成浅蓝：铺回纸色 */
body.page .login input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--paper) inset; -webkit-text-fill-color: var(--ink); }
/* 聚焦的那道墨线：盖在底线上，从左往右划过去（不用 background：自动填充会把背景图去掉） */
body.page .login .ul { display: block; position: relative; height: 1px; margin-top: -1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease-out); pointer-events: none; }
body.page .login input:focus + .ul { transform: scaleX(1); }
body.page .login input.code { font: 500 28px/44px "SF Mono", Menlo, Consolas, monospace; letter-spacing: .5em; height: 56px; padding-left: .25em; }
body.page .login .pw { position: relative; }
body.page .login .pw input { padding-right: 40px; }
body.page .login .pw-eye { position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: grid; place-items: center; border: 0; border-radius: var(--r-pill); background: none; color: var(--c-text-lite); transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out); }
body.page .login .pw-eye:hover { color: var(--ink); background: rgba(27, 26, 25, .04); }
body.page .login .pw-eye.on { color: var(--ink); }
body.page .login .pw-eye .slash { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .2s var(--ease-out); } /* 看得见密码时画上一道斜线 = 再点一下藏起来 */
body.page .login .pw-eye.on .slash { stroke-dashoffset: 0; }
body.page .login .hint, body.page .login .resend { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: var(--c-text-lite); }
body.page .login .resend .link { font-size: 12px; }
body.page .login .forgot { display: block; margin: 12px 0 0 auto; font-size: 12px; line-height: 16px; color: var(--c-text-mid); }
body.page .login .forgot-tip { margin: 12px 0 0; padding: 12px 16px; border-radius: var(--r); background: rgba(27, 26, 25, .04); font-size: 12px; line-height: 20px; color: var(--c-text-mid); animation: auth-in .25s var(--ease-out); }
body.page .login .forgot-tip a { color: var(--ink); text-underline-offset: 3px; }
body.page .login .consent { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
body.page .login .agree { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 12px; line-height: 20px; letter-spacing: 0; color: var(--c-text-mid); cursor: pointer; }
body.page .login .agree input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
body.page .login .agree a { color: var(--ink); text-decoration-color: var(--brass-soft); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast) var(--ease-out); }
body.page .login .agree a:hover { text-decoration-color: currentColor; }
body.page .login .ts { margin-top: 16px; }
body.page .login .ts:empty { margin-top: 0; }
body.page .login .note { margin: 16px 0 0; padding: 12px 16px; border-left: 2px solid var(--brass); background: rgba(154, 123, 79, .08); font-size: 12px; line-height: 20px; color: var(--ink); animation: auth-in .25s var(--ease-out); }
body.page .login .err { min-height: 20px; margin: 16px 0 4px; font-size: 12px; line-height: 20px; color: var(--c-danger); }
body.page .login .err:not(:empty) { animation: auth-in .25s var(--ease-out); }
/* 主按钮：悬停时一道浅光扫过去一次；在登录 / 注册时（aria-busy）保持墨色，光一遍遍扫（等多久不知道，不画进度） */
body.page .login .btn.primary { position: relative; overflow: hidden; width: 100%; height: 48px; justify-content: center; font-size: 14px; letter-spacing: .08em; transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
body.page .login .btn.primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(100deg, rgba(255, 244, 226, 0), rgba(255, 244, 226, .2), rgba(255, 244, 226, 0)); transform: translate3d(-100%, 0, 0); pointer-events: none; }
body.page .login .btn.primary:hover:not(:disabled)::after { transform: translate3d(350%, 0, 0); transition: transform .5s var(--ease-out); }
body.page .login .btn.primary:active:not(:disabled) { transform: translate3d(0, 1px, 0) scale(.995); }
body.page .login .btn.primary[aria-busy=true] { background: var(--ink); border-color: var(--ink); color: #f7f3ec; cursor: progress; }
body.page .login .btn.primary[aria-busy=true]::after { animation: auth-sheen 1.2s cubic-bezier(.645, .045, .355, 1) infinite; }
@keyframes auth-sheen { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(350%, 0, 0); } }
body.page .login .switch { margin: 24px 0 0; text-align: center; font-size: 12px; line-height: 16px; color: var(--c-text-lite); }
body.page .login .switch .link { margin-left: 6px; font-size: 12px; color: var(--ink); text-decoration-color: var(--brass-soft); }
body.page .login .switch .link:hover { text-decoration-color: currentColor; }
body.page .auth-foot { display: flex; gap: 24px; margin: 0; font-size: 12px; line-height: 16px; }
body.page .auth-foot a { color: var(--c-text-lite); text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
body.page .auth-foot a:hover { color: var(--ink); }
body.page .login-lang { position: fixed; top: 20px; right: 24px; z-index: 3; }
@media (max-width: 960px) {
  body.page .auth-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  /* 顶上一条：只留 3D（靠右），口号在左下；那句话和设计图收起 */
  body.page .auth-art { height: 240px; }
  body.page .shw-cap, body.page .shw-ed { display: none; }
  body.page .shw-cards { left: 48%; right: 16px; top: 60px; bottom: 16px; }
  body.page .shw-3d { right: 0; top: 0; width: 100%; height: 100%; margin: 0; }
  body.page .shw.in .shw-3d { transform: none; }
  body.page .auth-side { box-shadow: 0 -24px 48px -28px rgba(0, 0, 0, .5); } /* 竖着排时纸面压在影棚下沿 */
  body.page .auth-quote { left: 24px; right: auto; bottom: 22px; max-width: 46%; text-wrap: balance; }
  body.page .auth-quote .q1 { font-size: 24px; line-height: 1.25; }
  body.page .auth-side { justify-content: flex-start; gap: 40px; padding: 32px 24px 32px; }
  body.page .login .brand { margin-bottom: 24px; }
  body.page .login h1 { font-size: 32px; }
  body.page .login-lang { position: absolute; top: 16px; right: 16px; background: rgba(247, 244, 238, .86); border-radius: var(--r-pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@media (prefers-reduced-motion: reduce) {
  body.page .shw-card, body.page .shw-card > *, body.page .shw-look, body.page .shw-ch { transition: none; }
  body.page .auth-quote .q1, body.page .login.intro > *, body.page .login .err:not(:empty), body.page .login .note, body.page .login .forgot-tip { animation: none; }
  body.page .login .ul, body.page .login .pw-eye .slash, body.page .login .btn.primary::after { transition: none; }
  body.page .login .btn.primary[aria-busy=true]::after { animation: none; }
}

/* ====== 分享的设计稿 ====== */
body.page .sh-main { max-width: 1180px; padding: 48px 40px 96px; animation: site-in .6s var(--ease-out) both; }
body.page .sh-main h1 { font: 500 40px/1.15 var(--serif); letter-spacing: .01em; color: var(--ink); }
body.page .sh-main .sub { color: var(--c-text-lite); font-size: 13px; letter-spacing: .02em; margin: 8px 0 28px; }
body.page .sh-grid { gap: 24px; }
body.page .sh-3d { border: 0; border-radius: 10px; background: #eeeae2; box-shadow: var(--shadow-1); }
body.page .sh-art { border: 0; border-radius: 10px; background: var(--paper-2); padding: 18px; box-shadow: var(--shadow-1); }
body.page .sh-gone { color: var(--c-text-lite); font-size: 13px; }
body.page .sh-gone b, body.page .sh-gone h1 { font: 500 28px/1.2 var(--serif); color: var(--ink); }

/* ====== 手机：留白收一点，大标题缩一档 ====== */
@media (max-width: 700px) {
  body.page .top { padding: 0 16px; gap: 12px; }
  body.page .site-nav a { margin: 0 6px; }
  /* 放不下先缩账号名（app.css 是写死 64 px 截断）；导航至少露出「我的」「我的订单」，管理员多的「工厂端」横着滑。以前只有「我的」页这样，别的页账号名常被截成几个字母 */
  body.page .site-nav { min-width: 130px; }
  body.page .site-top .acct { flex: 0 3 auto; min-width: 24px; }
  body.page .site-top .acct .ac-user { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  body.page .w-main { padding: 28px 16px 64px; }
  body.page .w-hd h1 { font-size: 32px; }
  body.page .w-main .gallery { gap: 24px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  body.page .w-card .nm { font-size: 15px; }
  body.page .sh-main { padding: 24px 16px 64px; }
  body.page .sh-main h1 { font-size: 28px; }
}
@media (max-width: 400px) {
  body.page .top { gap: 8px; padding: 0 12px; }
  body.page .site-top .brand { display: none; } /* 最窄的手机：「我的」已经在导航里，站标让位 */
  body.page.has-tabs .site-top .brand { display: flex; } /* 有底部页签时顶上没有导航了，站标留着 */
}
/* 手机底部页签（account.js 的 mountSiteTabs）：我的 · 新建 · 我的订单 · 创意工坊，顶上的文字导航收起。电脑上不出 */
.site-tabs { display: none; }
@media (max-width: 700px) {
  body.page.has-tabs { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } /* 页尾的东西不被页签盖住 */
  html:has(> body.page.has-tabs) { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom)); } /* 滚到某个东西（scrollIntoView、提交出错跳到那一格、键盘 Tab）停在页签上面：整页滚的是 html，写在 body 上不起作用（结算页「提交订单」被页签盖住，2026-11-04 沙箱验收查出来的） */
  body.page.has-tabs .site-nav { display: none; }
  body.page .site-top > .spacer { order: 0; } /* app.css 手机上把空位排到最后（编辑器顶栏左右分组用）；站内页要它把语言、账号推到右边 */
  body.page.has-tabs { --tabs-h: calc(56px + env(safe-area-inset-bottom)); } /* 不认 :has 的老浏览器先靠这条（has-tabs 是 account.js 在页签显示时加的） */
  body:has(.site-tabs:not([hidden])) { --tabs-h: calc(56px + env(safe-area-inset-bottom)); } /* 底部页签多高：别的固定在底下的条（多选下单）排在它上面 */
  .site-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: var(--tabs-h); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line-soft); background: rgba(247, 244, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .site-tabs[hidden] { display: none; }
  .site-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--c-text-mid); font-size: 13px; line-height: 16px; text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
  .site-tabs a.on { color: var(--ink); font-weight: 500; }
  .site-tabs a:active { background: rgba(27, 26, 25, .04); }
  .site-tabs .ic, .site-tabs .ic svg { display: block; width: 22px; height: 22px; }
  .site-tabs a.new .ic { color: var(--ink); }
  .site-tabs .n:not(:empty) { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brass); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { body.page .w-main, body.page .sh-main { animation: none; } }
/* 手机（窄屏，或横着拿、宽了但还是手指点的）：语言、账号、站标、工坊的筛选 / 排序 / 搜索不小于 36 px 高——以前 24–30 px，常点偏 */
@media (max-width: 700px), (pointer: coarse) {
  body.page .lang-seg button, body.page .acct { height: 36px; }
  body.page .site-top .brand { min-width: 36px; min-height: 36px; }
  body.page .w-tools .seg button, body.page .w-tools select, body.page .w-tools .name-input { height: 36px; }
  body.page .w-card .acts .btn.small { position: relative; } /* 卡片上「用这个设计」是带下划线的字：样子不变，点的范围往外扩到 36 px */
  body.page .w-card .acts .btn.small::after { content: ''; position: absolute; inset: -6px -4px; }
}

/* ====== web-v1.1：创意工坊的卡片（图圆角 14、长而软的阴影；名字衬线 19；底下的「用这个设计」是铜金动作链接）====== */
body.page:not(.fx) .w-card img, body.page:not(.fx) .w-card .ph { border-radius: 14px; box-shadow: var(--sh-card); }
body.page:not(.fx) .w-card:hover img { box-shadow: var(--sh-card-hover); }
body.page:not(.fx) .w-card .nm { padding-top: 16px; font-size: 21px; }
body.page:not(.fx) .w-card .meta { font-size: 15px; }
body.page:not(.fx) .w-card .acts .btn.small { height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; color: var(--brass-ink); }
body.page:not(.fx) .w-card .acts .btn.small:hover { color: var(--ink); }
body.page:not(.fx) .w-detail dt { color: var(--brass-ink); }
body.page:not(.fx) .w-tools .seg button, body.page:not(.fx) .w-tools select { font-size: 16px; }
body.page:not(.fx) .w-tools .seg button.on { border-bottom-color: var(--brass); }
/* 登录页（web-v1.1）：输入框和站内别的表单一样——白底、圆角 10、44 高，聚焦墨色一圈（以前是一条底线 + 划出来的墨线） */
body.page:not(.fx) .login input:not([type=checkbox]) { padding: 0 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: #fff; transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
body.page:not(.fx) .login input:not([type=checkbox]):hover { border-color: #cfc7ba; }
body.page:not(.fx) .login input:not([type=checkbox]):focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 26, 25, .06); }
body.page:not(.fx) .login input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }
body.page:not(.fx) .login .ul { display: none; }
body.page:not(.fx) .login label { margin-bottom: 6px; font-size: 15px; }
body.page:not(.fx) .login input.code { padding-left: .6em; }
body.page:not(.fx) .login .pw input:not([type=checkbox]) { padding-right: 44px; }
/* 创意工坊（web-v1.1，照 codex 重设计）：一个设计一张完整的卡（图在上、字在卡里），心在一个小圆片里；搜索是胶囊 */
body.page:not(.fx) .gal-card.w-card { border-radius: var(--r-card); background: var(--paper-2); box-shadow: var(--sh-card); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
body.page:not(.fx) .gal-card.w-card:hover { box-shadow: var(--sh-card-hover); }
body.page:not(.fx) .w-card img, body.page:not(.fx) .w-card .ph { border-radius: 0; box-shadow: none; }
body.page:not(.fx) .w-card:hover img { box-shadow: none; }
body.page:not(.fx) .w-card .nm, body.page:not(.fx) .w-card .meta, body.page:not(.fx) .w-card .acts { padding-left: 18px; padding-right: 18px; }
body.page:not(.fx) .w-card .acts { padding-bottom: 16px; }
body.page:not(.fx) .w-card .acts .btn.small.w-fav { width: 36px; height: 36px; padding: 0; justify-content: center; border: 1px solid var(--line-soft); border-radius: 50%; background: #fff; color: var(--c-text-mid); }
body.page:not(.fx) .w-card .acts .btn.small.w-fav:hover { border-color: var(--ink); color: var(--ink); }
body.page:not(.fx) .w-tools .name-input { height: 40px; padding: 0 16px 0 38px; border: 1px solid var(--line-soft); border-radius: var(--r-pill); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E") no-repeat 14px 50% / 15px; font-size: 16px; }
body.page:not(.fx) .w-tools .name-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27, 26, 25, .06); }

/* ====== 登录页 web-v1.1（照 codex 参考图，4 张里 3 张都这样）：一整片暖色浅底的「影棚」，设计和 3D 摆在里面，表单是右边一张浮起的卡片；
   以前左边是深色影棚、右边一块纸色，像两个页面拼起来。3D 画布本来就是透明的，背景都在 CSS 里 ====== */
body.page.auth { background: #f1ebe2; }
body.page .auth-wrap { background: radial-gradient(70% 90% at 30% 30%, #fbf8f3 0%, #f1ebe2 55%, #e7dfd3 100%); }
body.page .auth-art { color: var(--ink); background: radial-gradient(60% 55% at 38% 40%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%); }
body.page .shw-light { background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18) 46%, rgba(255, 255, 255, 0)); }
body.page .shw-line { color: var(--ink); }
body.page .shw-line::before, body.page .shw-line::after { color: var(--brass); }
body.page .shw-line.typing .shw-ch.at::after { background: var(--brass); }
body.page .shw-look { color: var(--brass-ink); }
body.page .shw-3d { background: radial-gradient(closest-side, #fbf9f5, #e9e2d7); }
body.page .auth-quote .q1 { color: var(--ink); }
body.page .auth-side { background: none; box-shadow: none; padding: 48px 56px 32px 24px; }
body.page .auth-side .login { padding: 44px 40px 36px; border-radius: 24px; background: rgba(252, 251, 248, .92); box-shadow: 0 2px 8px rgba(27, 26, 25, .06), 0 40px 80px -36px rgba(27, 26, 25, .4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 440px; }
body.page .auth-foot { font-size: 13px; }
@media (max-width: 960px) {
  body.page .auth-side { padding: 0 16px 32px; margin-top: -24px; }
  body.page .auth-quote { bottom: 40px; }
  body.page .auth-side .login { padding: 32px 24px 28px; border-radius: 20px; }
  body.page .auth-quote .q1 { color: var(--ink); }
}

/* —— AIGC 工作台：主站的订单、工坊、购物车、积分都收掉 —— */
.site-nav a[href="/orders"], .site-nav a[href="/workshop"], #navCart, #stats, #now, #orders, .me-end, .me-pick { display: none !important; }
body.page.auth #switch, body.page.auth #forgot { display: none !important; } /* 登录页左边的影棚留着（js/auth-stage.js：一幅画的平面图 + 画框 3D）；注册、找回密码收掉 */
