/* 画屿的两个主页（不用登录）：/ 卖画（gallery.html），/business 给商家（business.html）；中英各一份 .en.html，结构一样。主要给海外看：第一次来默认英文。
   语言和站内 ui-v1.2 一样（颜色、衬线只从 /assets/ui/v12-base.css 取）：骨白底 + 纸纹、咖啡墨、陶土红点缀；
   画廊的意思——展签式的说明、沙龙式挂法、落款的印、英文衬线斜体点题；印前打样的意思——裁切角标、刻度线。
   字号只用 12 / 14 / 16 / 20 / 24 / 32 / 40 / 56 + 大标题（clamp）；字重 ≤ 500；圆角只有 4 和药丸。
   交互都在 huayu-home.js（不写界面字，字都在页面里）：首屏一句话 + 示例轮播、走马灯点了开那一幅、画作灯箱（放大镜看笔触）、照片 / 画拖动对比、模板换色写名字、
   同一句话换画法（一笔刷过去）、上墙预览（按真实厘米）、房间横滑、「从一句话到墙上」钉住一屏跟着滚动演、悬停标签、磁吸按钮；减少动效时不自动播放、不移动、不钉住。
   商家页：首屏挑画 × 挑模板换一整套上架图、五步目录 + 演示台、点上架图看大图、收尾前两行流动的上架图。
   英文页的字标、印是英文的（/assets/huayu/*-en.svg），中文页照旧。 */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/huayu/fonts/CormorantGaramond-300-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/huayu/fonts/CormorantGaramond-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
:root { --hh-pad: clamp(20px, 5vw, 72px); --hh-w: 1360px; --hh-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --hh-serif: 'IIH Digits', 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', 'STSong', serif; --hh-in: cubic-bezier(.55, .055, .675, .19); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.hh { margin: 0; color: var(--v-ink); font: 400 16px/1.8 var(--hh-sans); -webkit-font-smoothing: antialiased; font-synthesis: none; overflow-x: clip; /* clip 不是 hidden：hidden 会让 body 变成滚动容器，顶栏和「从一句话到墙上」的 sticky 就钉不住 */
  background: var(--v-bone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0/160px 160px; }
body.hh ::selection { background: var(--v-clay-soft); }
.hh img { display: block; max-width: 100%; height: auto; }
.hh a { color: inherit; }
.hh :focus-visible { outline: 2px solid var(--v-clay); outline-offset: 3px; }
:where(.hh) :where(h1, h2, h3, p, figure, blockquote, ol, fieldset) { margin: 0; } /* 零特异性：各块自己的 margin 说了算 */
:where(.hh) :where(button) { font: inherit; color: inherit; }
.hh [hidden] { display: none !important; }
.hh p, .hh q, .hh figcaption { text-wrap: pretty; }
.hh ol { padding: 0; list-style: none; }
html:has(.hh-lb[open]) { overflow: hidden; }
.hh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[lang='en'] .hh em { font-style: italic; }
html:not([lang='en']) .hh em { font-style: normal; }

/* —— 顶栏：浮着的一粒；往下滚收起、往上滚出来 —— */
.hh-top { position: sticky; top: 10px; z-index: 50; display: flex; align-items: center; gap: 6px; width: min(var(--hh-w), 100% - 24px); height: 56px; margin: 12px auto 0; padding: 0 10px 0 22px; border-radius: 999px; background: var(--v-bar-bg); box-shadow: var(--v-bar-shadow); transition: transform .45s var(--v-out); }
.hh-top.away { transform: translate3d(0, calc(-100% - 24px), 0); transition: transform .3s var(--hh-in); }
.hh-brand img { height: 24px; width: auto; }
html[lang='en'] .hh-brand img { height: 30px; } /* 英文字标是斜体小写，同样高看着小一号 */
.hh-nav { display: flex; gap: 2px; margin-left: 22px; }
.hh-nav a, .hh-lang { padding: 7px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--v-ink2); transition: background .15s ease-out, color .15s ease-out; }
.hh-nav a:hover, .hh-lang:hover { background: var(--v-line-2); color: var(--v-ink); }
.hh-sp { flex: 1; }
.hh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border: 1px solid var(--v-ink); border-radius: 999px; background: var(--v-ink); color: var(--v-on-ink) !important; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s ease-out, border-color .15s ease-out, translate .5s var(--v-out); }
.hh-btn:hover { background: var(--v-ink-hover); }
.hh-btn:active { translate: 0 1px; }
.hh-btn.ghost { border-color: var(--v-line); background: transparent; color: var(--v-ink) !important; }
.hh-btn.ghost:hover { border-color: var(--v-ink); background: transparent; }
.hh-btn.big { height: 52px; padding: 0 30px; font-size: 16px; }
.hh-btn .ar { transition: transform .35s var(--v-out); }
.hh-btn:hover .ar { transform: translate3d(4px, 0, 0); }
.hh-link { font-size: 16px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: color .15s ease-out, background-size .4s var(--v-out); }
.hh-link:hover { color: var(--v-clay-ink); background-size: 0 1px; background-position: 100% 100%; }

/* —— 版心、分区 —— */
.hh-wrap { width: min(var(--hh-w), 100%); margin: 0 auto; padding: 0 var(--hh-pad); }
.hh-sec { padding: clamp(72px, 10vw, 136px) 0 0; }
.hh-sec-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: 24px 48px; padding-bottom: 22px; margin-bottom: clamp(32px, 4vw, 56px); background: var(--v-ticks); }
.hh-sec-hd h2 { position: relative; font: 400 clamp(32px, 4.6vw, 64px)/1.12 var(--hh-serif); letter-spacing: .02em; }
html[lang='en'] .hh-sec-hd h2 { font-weight: 300; letter-spacing: -.01em; }
.hh-sec-hd h2 em { color: var(--v-clay); }
.hh-no { display: block; margin-bottom: 14px; font: 400 16px/1 var(--hh-serif); letter-spacing: .12em; color: var(--v-clay); }
.hh-aside { padding-left: 16px; border-left: 2px solid var(--v-clay); font-size: 14px; line-height: 1.8; color: var(--v-ink2); }

/* —— 首屏：左边一句话，右边跟着这句话换的那一幅 —— */
.hh-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5vw, 88px); min-height: calc(100svh - 80px); padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 5vw, 72px); }
.hh-eyebrow { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: clamp(32px, 4vw, 56px); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--v-ink3); }
.hh-eyebrow span + span::before { content: ''; display: inline-block; width: 22px; height: 1px; margin: 0 22px 0 0; vertical-align: middle; background: var(--v-ink3); opacity: .6; }
.hh-h1 { font: 400 clamp(48px, 7.4vw, 124px)/1.04 var(--hh-serif); letter-spacing: .01em; }
.hh-h1 .w { display: block; }
.hh-h1 em { color: var(--v-clay); }
html[lang='en'] .hh-h1 { font-size: clamp(44px, 6vw, 96px); font-weight: 300; letter-spacing: -.025em; line-height: .98; }
@media (min-width: 1001px) { .hh-h1 .w { white-space: nowrap; } }
.hh-lead { max-width: 30em; margin-top: clamp(20px, 2.6vw, 32px); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.8; color: var(--v-ink2); }

/* 一句话：药丸输入框 + 几个示例（点了填进去、右边换成那一幅；自动播放时示例下面一道进度线） */
.hh-ask { position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; height: 64px; margin-top: clamp(24px, 3vw, 36px); padding: 0 8px 0 26px; border-radius: 999px; background: var(--v-card); box-shadow: 0 0 0 1px var(--v-line), 0 18px 40px -28px rgba(27, 20, 15, .45); transition: box-shadow .25s ease-out; }
.hh-ask:focus-within { box-shadow: 0 0 0 1px var(--v-ink), 0 24px 48px -28px rgba(27, 20, 15, .5); }
.hh-ask input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--v-ink); font: 400 16px/1.4 var(--hh-serif); }
html[lang='en'] .hh-ask input { font-size: 20px; font-style: italic; }
.hh-ask input::placeholder { color: var(--v-ink3); opacity: 1; }
.hh-ask .hh-btn { height: 48px; flex: none; }
.hh-picks { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; margin-top: 14px; }
.hh-picks button { position: relative; height: 34px; padding: 0 14px; border: 1px solid var(--v-line); border-radius: 999px; background: transparent; color: var(--v-ink2); font-size: 14px; cursor: pointer; overflow: hidden; transition: border-color .15s ease-out, color .15s ease-out, background .15s ease-out; }
.hh-picks button:hover { border-color: var(--v-ink3); color: var(--v-ink); }
.hh-picks button.on { border-color: var(--v-ink); color: var(--v-ink); background: var(--v-card); }
.hh-picks button::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: var(--v-clay); transform: scaleX(0); transform-origin: 0 50%; }
.hh-picks.run button.on::after { animation: hh-prog var(--t, 6s) linear forwards; }
.hh-picks.hold button.on::after { animation-play-state: paused; }
@keyframes hh-prog { to { transform: none; } }

/* 右边：几幅叠在一起，换的时候淡入、慢慢推近；鼠标在上面时整幅微微侧过来，展签反方向挪一点 */
.hh-stage { position: relative; justify-self: end; width: min(100%, 660px); --mx: 0; --my: 0; }
.hh-scenes { display: grid; perspective: 1400px; }
.hh-scene { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--v-out), visibility 0s linear 1.1s; }
.hh-scene.on { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hh-crop { position: relative; transform: rotateY(calc(var(--mx) * 4deg)) rotateX(calc(var(--my) * -3deg)); transition: transform .8s var(--v-out); }
.hh-scene .pic { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 1; background: #d9cfbf; box-shadow: 0 30px 80px -40px rgba(27, 20, 15, .55); }
.hh-scene .pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 8s cubic-bezier(.25, .1, .25, 1); }
.hh-scene.on .pic img { transform: scale(1.02); }
/* 裁切角标（印前打样）：四个角外面各一道 L */
.hh-crop::before, .hh-crop::after { content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.hh-crop::before { left: -14px; top: -14px; border-left: 1px solid var(--v-ink3); border-top: 1px solid var(--v-ink3); }
.hh-crop::after { right: -14px; bottom: -14px; border-right: 1px solid var(--v-ink3); border-bottom: 1px solid var(--v-ink3); }
/* 展签：贴在画左下角外面的一张小卡片 */
.hh-label { position: absolute; z-index: 2; left: clamp(-56px, -4vw, -16px); bottom: clamp(-40px, -3vw, -20px); display: grid; gap: 2px; width: min(340px, 80%); padding: 18px 22px 20px; border-radius: 4px; background: var(--v-card); box-shadow: 0 1px 2px rgba(27, 20, 15, .08), 0 18px 40px -22px rgba(27, 20, 15, .5);
  translate: calc(var(--mx) * -10px) calc(var(--my) * -8px); transition: translate .8s var(--v-out), opacity .8s var(--v-out); }
.hh-scene:not(.on) .hh-label { opacity: 0; }
.hh-label b { font: 400 24px/1.3 var(--hh-serif); letter-spacing: .04em; }
html[lang='en'] .hh-label b { font-style: italic; letter-spacing: 0; }
.hh-label span { font-size: 12px; letter-spacing: .08em; color: var(--v-ink3); }
.hh-label q { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--v-line); font: 400 16px/1.7 var(--hh-serif); color: var(--v-ink2); quotes: '「' '」'; }
html[lang='en'] .hh-label q { quotes: '“' '”'; font-style: italic; font-size: 18px; line-height: 1.5; }
.hh-seal { position: absolute; z-index: 3; right: clamp(-28px, -2vw, -14px); top: clamp(-30px, -2.4vw, -16px); width: clamp(64px, 6vw, 92px); rotate: 8deg; filter: drop-shadow(0 6px 10px rgba(143, 57, 32, .25)); pointer-events: none; }

/* —— 画风走马灯：一行斜体的画风名慢慢走，鼠标放上去停 —— */
.hh-marquee { overflow: hidden; border-block: 1px solid var(--v-line); padding: clamp(14px, 1.6vw, 22px) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hh-marquee-track { display: flex; width: max-content; }
.hh-marquee-track > div { display: flex; flex: none; }
.hh-marquee button { display: inline-flex; align-items: center; gap: clamp(20px, 2.4vw, 36px); padding: 0 clamp(20px, 2.4vw, 36px) 0 0; border: 0; background: none; font: 400 clamp(24px, 3vw, 40px)/1.2 var(--hh-serif); color: var(--v-ink2); white-space: nowrap; cursor: pointer; transition: color .2s ease-out; }
html[lang='en'] .hh-marquee button { font-weight: 300; font-style: italic; }
.hh-marquee button:hover { color: var(--v-clay); }
.hh-marquee button::after { content: ''; width: 7px; height: 7px; rotate: 45deg; background: var(--v-clay); opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .hh-marquee-track { animation: hh-marq 70s linear infinite; }
  .hh-marquee:hover .hh-marquee-track { animation-play-state: paused; }
}
@keyframes hh-marq { to { transform: translate3d(-50%, 0, 0); } }

/* —— 01 三种开始：一句话（打字 → 画显影）、照片（拖动对比）、模板（换色、写名字） —— */
.hh-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.hh-way { display: flex; flex-direction: column; gap: 14px; }
.hh-way h3 { margin-top: 10px; font: 400 32px/1.2 var(--hh-serif); letter-spacing: .02em; }
html[lang='en'] .hh-way h3 { font-weight: 300; letter-spacing: 0; }
.hh-way p { font-size: 16px; color: var(--v-ink2); }
.hh-way-pic { position: relative; display: grid; aspect-ratio: 4 / 3.4; padding: clamp(18px, 2.4vw, 32px); border-radius: 4px; background: var(--v-card); box-shadow: 0 1px 2px rgba(27, 20, 15, .06), 0 14px 40px -26px rgba(27, 20, 15, .4); overflow: hidden; }
.hh-way-pic.say { display: block; }
.hh-way-pic.say blockquote { max-width: 54%; min-height: 4.8em; font: 400 clamp(20px, 1.9vw, 26px)/1.6 var(--hh-serif); color: var(--v-ink); }
html[lang='en'] .hh-way-pic.say blockquote { font-style: italic; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.4; }
.hh-way-pic.say blockquote::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 4px; vertical-align: -.12em; background: var(--v-clay); animation: hh-caret 1.1s steps(1) infinite; }
@keyframes hh-caret { 50% { opacity: 0; } }
.hh-way-pic.say img { position: absolute; right: clamp(18px, 2.4vw, 32px); bottom: clamp(18px, 2.4vw, 32px); width: 34%; rotate: 3deg; border-radius: 2px; box-shadow: 0 10px 24px -14px rgba(27, 20, 15, .55); transition: filter 1.6s var(--v-out), opacity 1.6s var(--v-out), rotate .7s var(--v-out), transform .7s var(--v-out); }
html.js .hh-way-pic.say:not(.done) img { opacity: .15; filter: blur(10px) saturate(.3) sepia(.4); }
@media (hover: hover) { .hh-way:hover .hh-way-pic.say img { rotate: 0deg; transform: translate3d(0, -6px, 0); } }

/* 照片 ↔ 画：左边照片、右边画，中间一道能拖的线（一个透明的 range 盖在上面，键盘也能拖） */
.hh-way-pic.photo { grid-template-rows: minmax(0, 1fr); place-items: center; }
.hh-compare { --x: 50%; position: relative; height: 100%; aspect-ratio: 2 / 3; border-radius: 2px; overflow: hidden; box-shadow: 0 10px 24px -14px rgba(27, 20, 15, .55); touch-action: pan-y; }
.hh-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hh-compare .after { clip-path: inset(0 0 0 var(--x)); }
.hh-compare .bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--v-card); pointer-events: none; }
.hh-compare .bar::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 999px; background: var(--v-card); color: var(--v-ink); font: 400 16px/1 var(--hh-serif); letter-spacing: .1em; box-shadow: 0 4px 14px -4px rgba(27, 20, 15, .45); transition: scale .25s var(--v-out); }
.hh-compare:hover .bar::after, .hh-compare:focus-within .bar::after { scale: 1.12; }
.hh-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.hh-compare .tag { position: absolute; top: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 253, 248, .88); font-size: 12px; letter-spacing: .08em; color: var(--v-ink2); pointer-events: none; }
.hh-compare .tag.l { left: 10px; } .hh-compare .tag.r { right: 10px; }

/* 模板：一张带留白的印刷品，底下写名字；右边换颜色、改名字 */
.hh-way-pic.tpl { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; gap: clamp(14px, 1.8vw, 24px); }
.hh-tpl-print { display: flex; flex-direction: column; width: 100%; max-width: 200px; max-height: 100%; aspect-ratio: 2 / 3.5; justify-self: center; padding: 7% 7% 0; background: #f7f1e6; box-shadow: 0 1px 1px rgba(27, 20, 15, .08), 0 14px 26px -14px rgba(27, 20, 15, .55); }
.hh-tpl-print img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: opacity .3s ease-out; }
.hh-tpl-print img.swap { opacity: .2; }
.hh-tpl-print output { flex: 1; display: grid; place-items: center; padding: 0 4px; overflow: hidden; font: 400 12px/1.3 var(--hh-serif); letter-spacing: .16em; text-transform: uppercase; text-align: center; color: var(--v-ink); }
.hh-tpl-ctl { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hh-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.hh-swatches button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(27, 20, 15, .12); transition: box-shadow .2s ease-out, scale .25s var(--v-out); }
.hh-swatches button:hover { scale: 1.1; }
.hh-swatches button.on { box-shadow: inset 0 0 0 1px rgba(27, 20, 15, .12), 0 0 0 2px var(--v-card), 0 0 0 3px var(--v-ink); }
.hh-tpl-ctl input { width: 100%; height: 36px; padding: 0; border: 0; border-bottom: 1px solid var(--v-line); border-radius: 0; outline: 0; background: none; color: var(--v-ink); font: 400 16px/1 var(--hh-serif); transition: border-color .15s ease-out; }
html[lang='en'] .hh-tpl-ctl input { font-size: 20px; font-style: italic; }
.hh-tpl-ctl input:focus { border-color: var(--v-ink); }
.hh-tpl-ctl input::placeholder { color: var(--v-ink3); opacity: 1; }

/* 一笔刷过去：遮罩是一张 3 倍宽的图（左边不透明、中间一道带飞白的笔触边、右边透明），mask-position 从 100% 挪到 0 = 从左往右刷出来 */
.hh-brush { -webkit-mask: url(/assets/huayu/home/brush-v1.svg) 100% 0 / 300% 100% no-repeat; mask: url(/assets/huayu/home/brush-v1.svg) 100% 0 / 300% 100% no-repeat; }

/* —— 02 同一句话换画法：左边挂一幅（换的时候一笔刷过去），右边一份画法目录（自动轮一遍；鼠标指上去就换、点了停） —— */
.hh-hands { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 6vw, 112px); }
.hh-hands-art { display: flex; flex-direction: column; gap: 16px; width: min(100%, 420px); justify-self: end; }
.hh-hands-pic { aspect-ratio: 2 / 3; padding: clamp(10px, 1.2vw, 16px); background: var(--v-card); box-shadow: 0 1px 1px rgba(27, 20, 15, .08), 0 40px 70px -40px rgba(27, 20, 15, .6); }
.hh-hands-pic .cv { position: relative; height: 100%; overflow: hidden; background: #efe8dc; }
.hh-hands-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hh-hands-pic .top.go { -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position 1.5s cubic-bezier(.5, 0, .2, 1), mask-position 1.5s cubic-bezier(.5, 0, .2, 1); }
.hh-hands-art figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--v-line); }
.hh-hands-art figcaption b { font: 400 20px/1.3 var(--hh-serif); }
html[lang='en'] .hh-hands-art figcaption b { font-style: italic; }
.hh-hands-art output { font-size: 12px; letter-spacing: .08em; color: var(--v-ink3); text-align: right; }
.hh-hands-side { display: flex; flex-direction: column; align-items: flex-start; }
.hh-hands-side blockquote { font: 300 clamp(28px, 3.2vw, 44px)/1.25 var(--hh-serif); color: var(--v-ink); }
html[lang='en'] .hh-hands-side blockquote { font-style: italic; }
html:not([lang='en']) .hh-hands-side blockquote { font-weight: 400; }
.hh-hands-side blockquote::before { content: '“'; color: var(--v-clay); } .hh-hands-side blockquote::after { content: '”'; color: var(--v-clay); }
html:not([lang='en']) .hh-hands-side blockquote::before { content: '「'; } html:not([lang='en']) .hh-hands-side blockquote::after { content: '」'; }
.hh-hands-list { align-self: stretch; margin: clamp(24px, 3vw, 40px) 0 clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--v-line); }
.hh-hands-list li { border-bottom: 1px solid var(--v-line); }
.hh-hands-list button { position: relative; display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 12px 56px 12px 0; border: 0; background: none; font: 300 clamp(24px, 2.4vw, 32px)/1.25 var(--hh-serif); color: var(--v-ink3); text-align: left; cursor: pointer; transition: color .2s ease-out, padding-left .45s var(--v-out); }
html:not([lang='en']) .hh-hands-list button { font-weight: 400; font-size: clamp(20px, 2vw, 24px); }
.hh-hands-list i { flex: none; width: 2.4em; font: 400 14px/1 var(--hh-serif); font-style: normal; letter-spacing: .12em; color: var(--v-ink3); transition: color .2s ease-out; }
.hh-hands-list button:hover { color: var(--v-ink); padding-left: 10px; }
.hh-hands-list button.on { color: var(--v-ink); }
.hh-hands-list button.on i { color: var(--v-clay); }
/* 选中那一行右边一道陶土红短线；自动轮播时这道线就是倒计时 */
.hh-hands-list button::after { content: ''; position: absolute; right: 0; top: 50%; width: 40px; height: 1px; background: var(--v-clay); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--v-out); }
.hh-hands-list button.on::after { transform: none; }
.hh-hands.run .hh-hands-list button.on::after { transform: scaleX(0); transition: none; animation: hh-prog var(--t, 4s) linear forwards; }
.hh-hands.hold .hh-hands-list button.on::after { animation-play-state: paused; }

/* —— 03 画风：沙龙式挂法（一面墙上大大小小挂满），点开看大图 —— */
.hh-salon { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; align-items: start; gap: clamp(28px, 3.6vw, 56px) clamp(16px, 2.2vw, 32px); }
.hh-work { display: flex; flex-direction: column; gap: 12px; }
.hh-work .frame { display: block; width: 100%; padding: clamp(8px, 1vw, 14px); border: 0; background: var(--v-card); cursor: zoom-in; box-shadow: 0 1px 1px rgba(27, 20, 15, .08), 0 22px 40px -26px rgba(27, 20, 15, .55); transition: transform .6s var(--v-out), box-shadow .6s var(--v-out); }
.hh-work img { width: 100%; }
.hh-work figcaption { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--v-ink2); }
.hh-work figcaption i { font: 400 14px/1 var(--hh-serif); font-style: normal; color: var(--v-ink3); }
.hh-work figcaption span { background: linear-gradient(var(--v-clay), var(--v-clay)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--v-out); }
@media (hover: hover) {
  .hh-work:hover .frame { transform: translate3d(0, -6px, 0) rotate(-.6deg); box-shadow: 0 2px 2px rgba(27, 20, 15, .08), 0 36px 56px -30px rgba(27, 20, 15, .6); }
  .hh-work:nth-child(even):hover .frame { transform: translate3d(0, -6px, 0) rotate(.6deg); }
  .hh-work:hover figcaption span { background-size: 100% 1px; }
}
.hh-work.w-coast { grid-column: 1 / span 6; }
.hh-work.w-peony { grid-column: 8 / span 3; margin-top: 8%; }
.hh-work.w-pet { grid-column: 11 / span 2; margin-top: 30%; }
.hh-work.w-ink { grid-column: 2 / span 5; }
.hh-work.w-abstract { grid-column: 7 / span 3; margin-top: -14%; }
.hh-work.w-botanical { grid-column: 10 / span 3; margin-top: -4%; }
.hh-work.w-line { grid-column: 1 / span 3; margin-top: 4%; }
.hh-work.w-fox { grid-column: 4 / span 3; }
.hh-work.w-island { grid-column: 8 / span 4; margin-top: -8%; }

/* 灯箱：左大图，右边编号、画风、那句话、照它画一幅；← → Esc，手机上左右划 */
.hh-lb { width: min(1180px, 100vw - 32px); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 4px; background: var(--v-card); color: var(--v-ink); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .6); overflow: hidden; }
.hh-lb::backdrop { background: rgba(27, 20, 15, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hh-lb[open] { animation: hh-lb-in .45s var(--v-out); }
.hh-lb[open]::backdrop { animation: hh-fade .35s ease-out; }
@keyframes hh-lb-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.985); } }
@keyframes hh-fade { from { opacity: 0; } }
.hh-lb-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); max-height: calc(100svh - 32px); }
.hh-lb-pic { position: relative; display: grid; place-items: center; min-height: 0; padding: clamp(20px, 3vw, 48px); background: var(--v-bone); touch-action: pan-y; }
/* 放大镜：鼠标在画上时一个圆片跟着走，里面是原图放大，看笔触 */
.hh-loupe { position: absolute; left: 0; top: 0; z-index: 3; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 999px; background: var(--v-card) no-repeat; box-shadow: 0 0 0 1px rgba(255, 253, 248, .85), 0 0 0 5px rgba(27, 20, 15, .08), 0 24px 48px -16px rgba(27, 20, 15, .6); pointer-events: none; opacity: 0; scale: .6; transition: opacity .18s ease-out, scale .3s var(--v-out); }
.hh-loupe.on { opacity: 1; scale: 1; }
.hh-lb-pic:has(.hh-loupe.on) img { cursor: none; }
.hh-lb-pic img { -webkit-user-drag: none; user-select: none; max-width: 100%; max-height: calc(100svh - 32px - 2 * clamp(20px, 3vw, 48px)); width: auto; padding: 10px; background: var(--v-card); box-shadow: 0 30px 60px -36px rgba(27, 20, 15, .6); transition: opacity .3s ease-out, translate .45s var(--v-out); }
.hh-lb-pic img.swap { opacity: 0; translate: var(--dx, 0) 0; transition: none; }
.hh-lb-side { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 44px); overflow: auto; }
.hh-lb-no { font: 400 16px/1 var(--hh-serif); letter-spacing: .12em; color: var(--v-clay); }
.hh-lb-side h3 { font: 300 clamp(32px, 3vw, 40px)/1.15 var(--hh-serif); }
html[lang='en'] .hh-lb-side h3 { font-style: italic; }
html:not([lang='en']) .hh-lb-side h3 { font-weight: 400; }
.hh-lb-style { font-size: 14px; letter-spacing: .08em; color: var(--v-ink3); }
.hh-lb-side blockquote { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--v-line); font: 400 20px/1.6 var(--hh-serif); color: var(--v-ink2); }
html[lang='en'] .hh-lb-side blockquote { font-style: italic; }
.hh-lb-side blockquote::before { content: '“'; } .hh-lb-side blockquote::after { content: '”'; }
html:not([lang='en']) .hh-lb-side blockquote::before { content: '「'; } html:not([lang='en']) .hh-lb-side blockquote::after { content: '」'; }
.hh-lb-side .hh-btn { align-self: flex-start; margin-top: auto; }
.hh-lb-nav { display: flex; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px solid var(--v-line); font: 400 16px/1 var(--hh-serif); color: var(--v-ink3); }
.hh-lb-nav span { flex: 1; letter-spacing: .1em; }
.hh-round { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--v-line); border-radius: 999px; background: transparent; color: var(--v-ink); font: 400 20px/1 var(--hh-serif); cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out; }
.hh-round:hover { border-color: var(--v-ink); background: var(--v-card); }
.hh-lb-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--v-card); font: 300 28px/1 var(--hh-sans); }

/* —— 04 上墙预览：按真实厘米把画挂在一面墙上（沙发 210 cm 宽当比例尺），换画、尺寸、画框、墙色、光线 —— */
.hh-wall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; gap: clamp(24px, 3.4vw, 56px); }
.hh-room { --wall: #ece5d9; position: relative; aspect-ratio: 320 / 210; overflow: hidden; border-radius: 4px; container-type: inline-size; background-color: var(--wall); transition: background-color .8s var(--v-out);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .07)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hh-room > * { --u: calc(100cqw / 320); } /* 1 cm：看得见的这面墙 320 cm 宽、210 cm 高 */
.hh-floor { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--u) * 15); background: repeating-linear-gradient(90deg, rgba(60, 38, 20, .1) 0 1px, transparent 1px calc(var(--u) * 19)), linear-gradient(180deg, #a98563, #8f6b4b); }
.hh-floor::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--u) * 9); background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .3)); box-shadow: 0 -1px 0 rgba(0, 0, 0, .06); }
.hh-room svg { position: absolute; bottom: calc(var(--u) * 6); overflow: visible; }
.hh-sofa { left: 50%; width: calc(var(--u) * 210); height: calc(var(--u) * 84); translate: -50% 0; }
.hh-sidet { left: calc(var(--u) * 10); width: calc(var(--u) * 42); height: calc(var(--u) * 110); }
.hh-lamp { right: calc(var(--u) * 6); width: calc(var(--u) * 46); height: calc(var(--u) * 168); }
.hh-piece { position: absolute; left: 50%; bottom: calc(var(--u) * (6 + 70 + 22)); /* 沙发靠背顶 76 cm，往上留 22 cm */ width: calc(var(--u) * (var(--w) + 2 * var(--fw))); height: calc(var(--u) * (var(--h) + 2 * var(--fw))); padding: calc(var(--u) * var(--fw)); translate: -50% 0;
  background: var(--fb); box-shadow: var(--fs, 0 0 0 transparent), 0 calc(var(--u) * 1.4) calc(var(--u) * 2) rgba(30, 20, 10, .28), 0 calc(var(--u) * 5) calc(var(--u) * 10) calc(var(--u) * -2) rgba(30, 20, 10, .32);
  transition: width .7s var(--v-out), height .7s var(--v-out), padding .7s var(--v-out), bottom .7s var(--v-out), background .5s ease-out; }
.hh-piece img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease-out; }
.hh-piece img.swap { opacity: 0; }
.hh-piece::after { content: ''; position: absolute; inset: calc(var(--u) * var(--fw)); pointer-events: none; box-shadow: inset calc(var(--u) * .5) calc(var(--u) * .6) calc(var(--u) * .9) rgba(0, 0, 0, var(--lip, .35)); }
.hh-room[data-frame='gold'] .hh-piece { --fw: 6; --lip: .45; --fb: linear-gradient(135deg, #6e4f1c 0%, #d6b260 16%, #9c7430 30%, #f0d78e 48%, #a27a33 64%, #e2c272 80%, #745420 100%);
  --fs: inset 0 0 0 calc(var(--u) * .7) rgba(255, 238, 190, .32), inset 0 0 0 calc(var(--u) * 1.5) rgba(84, 58, 16, .38), inset 0 0 0 calc(var(--u) * 2.6) rgba(255, 228, 160, .22), inset 0 0 0 calc(var(--u) * 3.8) rgba(84, 58, 16, .3), inset 0 0 0 calc(var(--u) * 4.6) rgba(255, 238, 190, .25); }
.hh-room[data-frame='black'] .hh-piece { --fw: 3; --fb: linear-gradient(135deg, #2e2c29, #141312 55%, #2a2825); --fs: inset 0 0 0 calc(var(--u) * .4) rgba(255, 255, 255, .07); }
.hh-room[data-frame='oak'] .hh-piece { --fw: 3; --lip: .3; --fb: repeating-linear-gradient(90deg, rgba(92, 60, 28, .12) 0 1px, transparent 1px 5px), linear-gradient(135deg, #cfa775, #a97d4c 55%, #c39668); --fs: inset 0 0 0 calc(var(--u) * .4) rgba(255, 240, 210, .25); }
.hh-room[data-frame='white'] .hh-piece { --fw: 3; --lip: .18; --fb: linear-gradient(135deg, #fbfaf6, #e7e2d8); --fs: inset 0 0 0 calc(var(--u) * .4) rgba(0, 0, 0, .05); }
.hh-room[data-frame='canvas'] .hh-piece { --fw: 0; --lip: 0; --fb: none; --fs: calc(var(--u) * .9) calc(var(--u) * .3) 0 rgba(0, 0, 0, .12); }
/* 光线：早上窗户的斜光、下午平光、晚上暗下来只剩落地灯 */
.hh-light, .hh-dusk { position: absolute; inset: 0; pointer-events: none; transition: opacity 1s var(--v-out); }
.hh-light { background: linear-gradient(118deg, transparent 8%, rgba(255, 248, 228, .55) 9%, rgba(255, 248, 228, .3) 26%, transparent 27%, transparent 31%, rgba(255, 248, 228, .42) 32%, rgba(255, 248, 228, .2) 44%, transparent 45%); mix-blend-mode: soft-light; opacity: 0; }
.hh-dusk { background: radial-gradient(circle at 93% 41%, transparent 0 3%, rgba(46, 28, 14, .3) 42%), linear-gradient(180deg, rgba(40, 24, 12, .3), rgba(30, 18, 10, .45)); mix-blend-mode: multiply; opacity: 0; }
.hh-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 93% 41%, rgba(255, 204, 140, .75), rgba(255, 184, 110, .2) 20%, transparent 42%); mix-blend-mode: screen; opacity: 0; transition: opacity 1s var(--v-out); }
.hh-room[data-light='am'] .hh-light { opacity: 1; }
.hh-room[data-light='pm'] :is(.hh-dusk, .hh-glow) { opacity: 1; }
.hh-room-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font: 400 16px/1.4 var(--hh-serif); color: var(--v-ink2); }
html[lang='en'] .hh-room-cap output { font-style: italic; font-size: 20px; }
.hh-room-cap span { font: 400 12px/1.8 var(--hh-sans); letter-spacing: .08em; color: var(--v-ink3); }
/* 右边的选项 */
.hh-conf { display: flex; flex-direction: column; gap: 22px; }
.hh-conf fieldset { min-width: 0; padding: 0; border: 0; }
.hh-conf legend { margin-bottom: 10px; padding: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--v-ink3); }
.hh-pick-art { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hh-pick-art button { padding: 0; border: 0; border-radius: 2px; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; outline-offset: 2px; transition: outline-color .15s ease-out, opacity .15s ease-out; outline: 1px solid transparent; }
.hh-pick-art button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--v-out); }
.hh-pick-art button:hover img { transform: scale(1.08); }
.hh-pick-art button.on { outline: 2px solid var(--v-ink); }
.hh-seg { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; }
.hh-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 44px; padding: 6px 8px; border: 1px solid var(--v-line); border-radius: 4px; background: transparent; color: var(--v-ink2); font-size: 14px; line-height: 1.4; cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out, color .15s ease-out; }
.hh-seg button > span { display: flex; flex-direction: column; align-items: center; }
.hh-seg button small { font-size: 12px; color: var(--v-ink3); }
.hh-seg button:hover { border-color: var(--v-ink3); color: var(--v-ink); }
.hh-seg button.on { border-color: var(--v-ink); background: var(--v-card); color: var(--v-ink); }
.hh-wall:not([data-orient='l']) .hh-seg .l, .hh-wall[data-orient='l'] .hh-seg .p { display: none; }
.hh-frames-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.hh-frames-pick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px 6px; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--v-ink2); font-size: 12px; line-height: 1.3; text-align: center; cursor: pointer; transition: border-color .15s ease-out, background .15s ease-out, color .15s ease-out; }
.hh-frames-pick button:hover { color: var(--v-ink); background: var(--v-line-2); }
.hh-frames-pick button.on { border-color: var(--v-ink); background: var(--v-card); color: var(--v-ink); }
.hh-frames-pick i { width: 36px; height: 36px; padding: 6px; background: var(--fb); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .5); }
.hh-frames-pick i::after { content: ''; display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #d8cdb8, #a99a80); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .35); }
.hh-frames-pick [data-frame='gold'] i { --fb: linear-gradient(135deg, #6e4f1c, #e8c878 40%, #9c7430 70%, #e2c272); }
.hh-frames-pick [data-frame='black'] i { --fb: linear-gradient(135deg, #3a3835, #121110); }
.hh-frames-pick [data-frame='oak'] i { --fb: linear-gradient(135deg, #cfa775, #a97d4c); }
.hh-frames-pick [data-frame='white'] i { --fb: linear-gradient(135deg, #fbfaf6, #ddd7cb); }
.hh-frames-pick [data-frame='canvas'] i { padding: 0; --fb: none; }
.hh-dots { display: flex; flex-wrap: wrap; gap: 12px; }
.hh-dots button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(27, 20, 15, .14); transition: box-shadow .2s ease-out, scale .25s var(--v-out); }
.hh-dots button:hover { scale: 1.08; }
.hh-dots button.on { box-shadow: inset 0 0 0 1px rgba(27, 20, 15, .14), 0 0 0 2px var(--v-bone), 0 0 0 3px var(--v-ink); }
.hh-conf .hh-btn { align-self: flex-start; }

/* —— 05 挂在真房间里：横着滑的一排，底下一道进度线 —— */
.hh-rooms { --hh-edge: max(var(--hh-pad), calc((100% - var(--hh-w)) / 2 + var(--hh-pad))); display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--hh-edge) 20px; scroll-padding: 0 var(--hh-edge); scrollbar-width: none; cursor: grab; }
.hh-rooms::-webkit-scrollbar { display: none; }
.hh-rooms.drag { cursor: grabbing; scroll-snap-type: none; }
.hh-rooms figure { flex: none; width: clamp(260px, 30vw, 440px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.hh-rooms .pic { overflow: hidden; border-radius: 4px; aspect-ratio: 1; background: #d9cfbf; }
.hh-rooms img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1s var(--v-out); }
.hh-rooms figcaption { font-size: 14px; color: var(--v-ink2); }
@media (hover: hover) { .hh-rooms figure:hover img { transform: scale(1.04); } }
.hh-rooms-nav { display: flex; gap: 8px; }
.hh-rooms-bar { height: 1px; margin-top: 8px; background: var(--v-line); overflow: hidden; }
.hh-rooms-bar i { display: block; height: 100%; background: var(--v-ink); transform: scaleX(var(--p, .1)); transform-origin: 0 50%; transition: transform .2s linear; }

/* —— 06 从一句话到墙上：钉住一屏，往下滚 = 打出那句话 → 铅笔草稿 → 一笔刷上颜色 → 装框、标尺寸 → 挂进房间。
   进度由脚本写成 --w 打字 / --s 草稿 / --b 上色 / --c 装框 / --z 拉远对准房间照片里那幅 / --d 房间 / --p 整段（0–1）；
   --fit / --fx / --fy 是拉远到多大、挪多少（脚本按台子大小和房间照片里画的位置算）。没脚本、减少动效时不钉住，停在装好框那一刻 —— */
.hh-story { --w: 1; --s: 1; --b: 1; --c: 1; --z: 0; --d: 0; --p: 1; }
.hh-story-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 88px); }
.hh-story-stage { --st-wall: color-mix(in oklab, #efe8dc, #bcbca6 calc(var(--c) * 100%)); /* 装框时墙变成鼠尾草灰绿，接得上房间照片 */
  position: relative; height: min(78svh, 760px); min-height: 440px; overflow: hidden; border-radius: 4px; background-color: var(--st-wall);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(0, 0, 0, .06)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* 画框：画布外面一圈金框，--c 从 0 到 1 时从一道细线长成整框 */
.st-frame { position: absolute; left: 50%; top: 45%; translate: calc(-50% + var(--z) * var(--fx, 0px)) calc(-50% + var(--z) * var(--fy, 0px)); scale: calc((1 - .06 * var(--c)) * (1 - var(--z)) + var(--fit, .7) * var(--z)); padding: calc(var(--c) * clamp(12px, 1.6vw, 22px));
  background: linear-gradient(135deg, #6e4f1c 0%, #d6b260 16%, #9c7430 30%, #f0d78e 48%, #a27a33 64%, #e2c272 80%, #745420 100%);
  box-shadow: inset 0 0 0 calc(var(--c) * 2px) rgba(255, 238, 190, .3), inset 0 0 0 calc(var(--c) * 5px) rgba(84, 58, 16, .32), 0 2px 3px rgba(30, 20, 10, calc(.1 + .18 * var(--c))), 0 34px 60px -30px rgba(30, 20, 10, calc(.25 + .3 * var(--c))); }
.st-art { position: relative; height: min(54svh, 520px); aspect-ratio: 2 / 3; overflow: hidden; background: #f7f1e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 160px; }
.st-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-sketch { opacity: var(--s); }
.st-paint { -webkit-mask-position: calc((1 - var(--b)) * 100%) 0; mask-position: calc((1 - var(--b)) * 100%) 0; }
.st-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 2px 3px 6px rgba(0, 0, 0, calc(.4 * var(--c))); }
/* 尺寸标注：右边竖的、下面横的，像图纸上的尺寸线 */
.st-dim { position: absolute; display: flex; align-items: center; justify-content: center; opacity: clamp(0, min(var(--c) * 2 - 1, 1 - var(--z) * 3), 1); color: var(--v-ink2); }
.st-dim i { padding: 0 8px; background: var(--st-wall); font: 400 14px/1 var(--hh-serif); font-style: normal; letter-spacing: .06em; white-space: nowrap; }
.st-dim.h { left: calc(100% + 18px); top: 0; bottom: 0; width: 1px; background: currentColor; }
.st-dim.h i { rotate: 90deg; }
.st-dim.w { top: calc(100% + 16px); left: 0; right: 0; height: 1px; background: currentColor; }
.st-dim::before, .st-dim::after { content: ''; position: absolute; background: currentColor; }
.st-dim.h::before, .st-dim.h::after { left: -5px; width: 11px; height: 1px; } .st-dim.h::before { top: 0; } .st-dim.h::after { bottom: 0; }
.st-dim.w::before, .st-dim.w::after { top: -5px; width: 1px; height: 11px; } .st-dim.w::before { left: 0; } .st-dim.w::after { right: 0; }
.st-words { position: absolute; left: 6%; right: 6%; bottom: 5%; min-height: 1.4em; font: 400 clamp(18px, 1.7vw, 24px)/1.4 var(--hh-serif); text-align: center; color: var(--v-ink2); opacity: calc(1 - var(--c)); }
html[lang='en'] .st-words { font-style: italic; }
.st-words::before, .st-words::after { color: var(--v-clay); }
html[lang='en'] .st-words::before { content: '“'; } html[lang='en'] .st-words::after { content: '”'; }
html:not([lang='en']) .st-words::before { content: '「'; } html:not([lang='en']) .st-words::after { content: '」'; }
.hh-story .st-words:empty::before, .hh-story .st-words:empty::after { content: none; }
.st-words.typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.14em; background: var(--v-clay); }
.hh-story-stage .st-room { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--d); }
/* 右边四步：一道竖线跟着进度长，走到哪一步哪一步亮 */
.hh-story-steps { position: relative; display: grid; gap: clamp(18px, 3svh, 36px); }
.hh-story-side .hh-story-steps { padding-left: 32px; } /* 盖过 .hh ol 的 padding: 0：竖线和编号之间留一段 */
.hh-story-steps::before, .hh-story-steps::after { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--v-line); }
.hh-story-steps::after { background: var(--v-clay); transform: scaleY(var(--p)); transform-origin: 0 0; }
.hh-story-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; transition: opacity .5s ease-out; }
.hh-story-steps b { grid-row: span 2; min-width: 1.4em; font: 400 clamp(32px, 3vw, 40px)/1 var(--hh-serif); color: var(--v-clay); transition: color .5s ease-out; }
.hh-story-steps h3 { font: 400 24px/1.3 var(--hh-serif); letter-spacing: .02em; }
html[lang='en'] .hh-story-steps h3 { letter-spacing: 0; }
.hh-story-steps p { margin-top: 4px; font-size: 14px; color: var(--v-ink2); }
.hh-story.pin .hh-story-track { height: 400svh; }
.hh-story.pin .hh-story-pin { position: sticky; top: 0; display: grid; align-items: center; height: 100svh; }
.hh-story.pin .hh-story-steps li { opacity: .32; }
.hh-story.pin .hh-story-steps li.past { opacity: .6; }
.hh-story.pin .hh-story-steps li:not(.on) b { color: var(--v-ink3); }
.hh-story.pin .hh-story-steps li.on { opacity: 1; }
/* 往下滑的暗示：钉住时停下来（没在滚）就出来，一道细线里一滴陶土红往下走；滚起来淡掉，走到最后不出。四步、画面本身都能点：点了滚到那一步 */
.hh-story-side { display: flex; flex-direction: column; gap: clamp(28px, 5svh, 56px); min-width: 0; }
.hh-story-cue { display: none; align-items: center; gap: 31px; margin-top: calc(-1 * clamp(28px, 5svh, 56px) + 8px); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--v-ink2); opacity: 0; transition: opacity .5s ease-out; }
.hh-story.pin .hh-story-cue { display: flex; }
.hh-story.pin.idle .hh-story-cue { opacity: 1; }
.hh-story-cue i { position: relative; flex: none; width: 1px; height: 64px; overflow: hidden; background: var(--v-line); }
.hh-story-cue i::after { content: ''; position: absolute; left: 0; top: -45%; width: 1px; height: 45%; background: var(--v-clay); animation: hh-drip 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes hh-drip { to { top: 100%; } }
.hh-story.pin .hh-story-stage { cursor: pointer; }
.hh-story.pin .hh-story-steps li { cursor: pointer; }
.hh-story.pin .hh-story-steps li:not(.on):hover { opacity: .75; }
.hh-story.pin .hh-story-steps li:focus-visible { outline-offset: 6px; }

/* —— 收尾：再给一次那句话 —— */
.hh-end { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: clamp(96px, 12vw, 176px) var(--hh-pad) clamp(72px, 9vw, 120px); text-align: center; }
.hh-end h2 { font: 400 clamp(40px, 6.4vw, 104px)/1.08 var(--hh-serif); letter-spacing: .02em; }
html[lang='en'] .hh-end h2 { font-weight: 300; letter-spacing: -.02em; }
.hh-end h2 em { color: var(--v-clay); }
.hh-end .hh-ask { width: min(620px, 100%); margin-top: 8px; text-align: left; }
.hh-end-seal { width: 72px; rotate: -6deg; }
.hh-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px 48px; width: min(var(--hh-w), 100%); margin: 0 auto; padding: 40px var(--hh-pad) 48px; border-top: 1px solid var(--v-line); }
.hh-foot img { height: 64px; width: auto; }
html[lang='en'] .hh-foot img { height: 72px; }
.hh-foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.hh-foot nav a { color: var(--v-ink2); text-decoration: none; }
.hh-foot nav a:hover { color: var(--v-ink); }
.hh-foot small { font-size: 12px; color: var(--v-ink3); }

/* —— 悬停时跟着鼠标的小标签（字在页面的 data-cursor 里） —— */
.hh-cursor { position: fixed; left: 0; top: 0; z-index: 90; padding: 6px 14px; border-radius: 999px; background: var(--v-ink); color: var(--v-on-ink); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; scale: .6; transition: opacity .2s ease-out, scale .3s var(--v-out); }
.hh-cursor.on { opacity: 1; scale: 1; }

/* —— 商家页 —— */
.hh-biz-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 88px); min-height: calc(100svh - 80px); padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
.hh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 3.4vw, 44px); }
.hh-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); margin-top: clamp(32px, 4vw, 48px); }
.hh-facts div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--v-ink); }
.hh-facts b { font: 400 clamp(32px, 3.4vw, 48px)/1 var(--hh-serif); color: var(--v-ink); }
.hh-facts b small { margin-left: 4px; font-size: 16px; color: var(--v-ink3); }
.hh-facts span { font-size: 14px; color: var(--v-ink2); }
.hh-soon { display: inline-block; padding: 2px 12px; border: 1px dashed var(--v-clay); border-radius: 999px; font-size: 12px; line-height: 1.8; color: var(--v-clay-ink); }
/* 几处共用的小药丸选项（挑模板、侵权示例、模板库筛选） */
:is(.hh-set-tpls, .ip-pick, .tf-chips) button { height: 34px; padding: 0 14px; border: 1px solid var(--v-line); border-radius: 999px; background: transparent; color: var(--v-ink2); font-size: 14px; white-space: nowrap; cursor: pointer; transition: border-color .15s ease-out, color .15s ease-out, background .15s ease-out; }
:is(.hh-set-tpls, .ip-pick, .tf-chips) button:hover { border-color: var(--v-ink3); color: var(--v-ink); }
:is(.hh-set-tpls, .ip-pick, .tf-chips) button.on { border-color: var(--v-ink); color: var(--v-ink); background: var(--v-card); }

/* 首屏右边：一套 6 张上架图，下面挑画、挑模板（3 幅 × 3 套模板，都是套图模板真套出来的 /assets/huayu/biz/）；
   换的时候 6 张依次收起、重新发下来；看得见时自己轮，挑过就停；点一张看大图 */
.hh-setbox { display: flex; flex-direction: column; gap: 24px; --t: 4500ms; }
.hh-sheet { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: clamp(16px, 2vw, 26px); border-radius: 4px; background: var(--v-card); box-shadow: 0 1px 2px rgba(27, 20, 15, .06), 0 30px 70px -40px rgba(27, 20, 15, .55); rotate: 1.2deg; }
.hh-sheet img, .hh-tour .tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.hh-sheet-cap { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font: 400 14px/1.4 var(--hh-serif); letter-spacing: .06em; color: var(--v-ink3); }
.tile { position: relative; display: block; padding: 0; border: 0; background: #fff; overflow: hidden; cursor: zoom-in; }
.tile img { transition: opacity .5s var(--v-out) calc(var(--i, 0) * 70ms), transform .7s var(--v-out) calc(var(--i, 0) * 70ms); }
.tile img.swap { opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); transition-duration: .22s; transition-delay: calc(var(--i, 0) * 40ms); }
@media (hover: hover) { .tile:hover img { transform: scale(1.06); transition-delay: 0s; } }
.hh-set-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.hh-set-arts { display: flex; gap: 12px; }
.hh-set-arts button { position: relative; width: 40px; height: 56px; padding: 0; border: 0; border-radius: 2px; background: none; cursor: pointer; outline: 1px solid transparent; outline-offset: 3px; box-shadow: 0 6px 14px -8px rgba(27, 20, 15, .55); transition: outline-color .15s ease-out, translate .35s var(--v-out); }
.hh-set-arts img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.hh-set-arts button:hover { translate: 0 -3px; }
.hh-set-arts button.on { outline-color: var(--v-ink); }
.hh-set-arts button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 1px; background: var(--v-clay); transform: scaleX(0); transform-origin: 0 50%; }
.hh-setbox.run .hh-set-arts button.on::after { animation: hh-prog var(--t) linear forwards; }
.hh-setbox.hold .hh-set-arts button.on::after { animation-play-state: paused; }
.hh-set-tpls { display: flex; flex-wrap: wrap; gap: 6px; }

/* —— 01 五步：左边一份目录（点哪一步，右边演示台换成那一步；看得见时自己轮），右边演示台 —— */
.hh-tour { --t: 7000ms; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 5vw, 88px); }
.hh-tour-list { border-top: 1px solid var(--v-line); }
.hh-tour-list li { border-bottom: 1px solid var(--v-line); }
.hh-tour-list button { position: relative; display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 16px 56px 16px 0; border: 0; background: none; font: 300 clamp(24px, 2.2vw, 30px)/1.25 var(--hh-serif); color: var(--v-ink3); text-align: left; cursor: pointer; transition: color .2s ease-out, padding-left .45s var(--v-out); }
html:not([lang='en']) .hh-tour-list button { font-weight: 400; font-size: clamp(20px, 1.9vw, 24px); }
.hh-tour-list b { flex: none; width: 32px; font: 400 14px/1 var(--hh-serif); letter-spacing: .12em; color: var(--v-ink3); transition: color .2s ease-out; }
.hh-tour-list button:hover { color: var(--v-ink); padding-left: 8px; }
.hh-tour-list li.on button { color: var(--v-ink); padding-left: 0; }
.hh-tour-list li.on b { color: var(--v-clay); }
.hh-tour-list button::after { content: ''; position: absolute; right: 0; top: 50%; width: 40px; height: 1px; background: var(--v-clay); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--v-out); }
.hh-tour-list li.on button::after { transform: none; }
.hh-tour.run .hh-tour-list li.on button::after { transform: scaleX(0); transition: none; animation: hh-prog var(--t) linear forwards; }
.hh-tour.hold .hh-tour-list li.on button::after { animation-play-state: paused; }
.hh-tour-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--v-out); }
.hh-tour-more > div { min-height: 0; overflow: hidden; padding-left: 50px; }
.hh-tour-list li.on .hh-tour-more, html:not(.js) .hh-tour-more { grid-template-rows: 1fr; }
.hh-tour-more p { margin: -4px 0 12px; font-size: 14px; color: var(--v-ink2); }
.hh-tour-more .hh-link, .hh-tour-more .hh-soon { margin-bottom: 18px; font-size: 14px; }
.hh-tour-more .hh-soon { font-size: 12px; }
.hh-tour-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); aspect-ratio: 5 / 4; overflow: hidden; border-radius: 4px; background: var(--v-card); box-shadow: 0 1px 2px rgba(27, 20, 15, .06), 0 30px 70px -40px rgba(27, 20, 15, .5); }
.tp { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 0; padding: clamp(20px, 3vw, 44px); opacity: 0; visibility: hidden; transition: opacity .5s var(--v-out), visibility 0s linear .5s; }
.tp.on { opacity: 1; visibility: visible; transition-delay: 0s; }
/* 演示 1 出画：铅笔草稿上一笔刷出颜色 */
.tp-art .cv { position: relative; flex: none; height: 80%; aspect-ratio: 2 / 3; margin: 0; overflow: hidden; background: #efe8dc; box-shadow: 0 1px 2px rgba(27, 20, 15, .1), 0 24px 40px -24px rgba(27, 20, 15, .55); }
.tp-art .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-art .pt { transition: -webkit-mask-position 0s .5s, mask-position 0s .5s; }
.tp-art.on .pt { -webkit-mask-position: 0 0; mask-position: 0 0; transition: -webkit-mask-position 1.9s cubic-bezier(.5, 0, .2, 1) .5s, mask-position 1.9s cubic-bezier(.5, 0, .2, 1) .5s; }
.tp-art .q { font: 400 16px/1.4 var(--hh-serif); color: var(--v-ink2); text-align: center; }
html[lang='en'] .tp-art .q { font-style: italic; font-size: 20px; }
html[lang='en'] .tp-art .q::before { content: '“'; } html[lang='en'] .tp-art .q::after { content: '”'; }
html:not([lang='en']) .tp-art .q::before { content: '「'; } html:not([lang='en']) .tp-art .q::after { content: '」'; }
.tp-art .q::before, .tp-art .q::after { color: var(--v-clay); }
/* 演示 2 侵权自查：一道陶土红的扫描线走过去，结果卡片再浮上来（两个示例都是真跑出来的结果） */
.tp-ip { flex-direction: row; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.ip-pic { position: relative; flex: none; height: 74%; aspect-ratio: 2 / 3; overflow: hidden; box-shadow: 0 1px 2px rgba(27, 20, 15, .1), 0 24px 40px -24px rgba(27, 20, 15, .55); }
.ip-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ip-pic .scan { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(180deg, rgba(176, 71, 43, 0), rgba(176, 71, 43, .16) 88%, rgba(176, 71, 43, .9)); transform: translate3d(0, -100%, 0); opacity: 0; pointer-events: none; }
.tp-ip.scanning .scan { opacity: 1; animation: hh-scan 1.4s cubic-bezier(.5, 0, .5, 1) forwards; }
@keyframes hh-scan { to { transform: translate3d(0, 300%, 0); } }
.ip-side { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ip-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ip-card { display: flex; flex-direction: column; gap: 12px; transition: opacity .45s var(--v-out), transform .55s var(--v-out); }
.tp-ip.scanning .ip-card { opacity: 0; transform: translate3d(0, 8px, 0); transition-duration: .15s; }
.ip-risk { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: rgba(125, 140, 105, .16); color: #4f5c40; font-size: 12px; letter-spacing: .08em; }
.ip-risk i { width: 7px; height: 7px; border-radius: 999px; background: #7d8c69; }
.ip-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; line-height: 1.6; }
.ip-card dt { padding-top: 1px; font-size: 12px; letter-spacing: .08em; color: var(--v-ink3); white-space: nowrap; }
.ip-card dd { margin: 0; color: var(--v-ink); }
.ip-els { display: flex; flex-wrap: wrap; gap: 4px; }
.ip-els span { padding: 0 9px; border: 1px solid var(--v-line); border-radius: 999px; font-size: 12px; line-height: 1.8; color: var(--v-ink2); }
.ip-card blockquote { padding-top: 12px; border-top: 1px solid var(--v-line); font-size: 14px; line-height: 1.7; color: var(--v-ink2); }
/* 演示 3 整套上架图：六张依次发下来 */
.tp-set .g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100%, 520px); margin: 0; }
.tp-set .g figcaption { grid-column: 1 / -1; padding-top: 6px; font: 400 14px/1.4 var(--hh-serif); letter-spacing: .06em; color: var(--v-ink3); }
.tp-set .tile img { opacity: 0; transform: translate3d(0, 14px, 0) scale(.95); transition: opacity 0s .5s, transform 0s .5s; }
.tp-set.on .tile img { opacity: 1; transform: none; transition: opacity .5s var(--v-out) calc(.2s + var(--i) * 90ms), transform .7s var(--v-out) calc(.2s + var(--i) * 90ms); }
@media (hover: hover) { .tp-set.on .tile:hover img { transform: scale(1.06); transition-delay: 0s; } }
/* 演示 4 模板库：一套一张卡，按画框、房间筛（不合的淡下去） */
.tp-tpl { gap: 20px; }
.tf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; }
.tf-cards figure { display: flex; flex-direction: column; gap: 8px; margin: 0; transition: opacity .4s var(--v-out), filter .4s var(--v-out), transform .5s var(--v-out); }
.tf-cards .m { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border-radius: 2px; background: var(--v-bone); box-shadow: 0 1px 1px rgba(27, 20, 15, .06), 0 14px 26px -18px rgba(27, 20, 15, .5); }
.tf-cards img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tf-cards figcaption { font-size: 12px; line-height: 1.5; color: var(--v-ink2); }
.tf-cards figure.dim { opacity: .28; filter: grayscale(.8); transform: scale(.97); }
/* 演示 5 发布到平台（还没做）：一件商品顺着虚线发到几家店，标「即将接入」 */
.tp-pub .hh-soon { position: absolute; top: 18px; right: 18px; }
.pub-row { display: flex; align-items: center; width: 100%; height: 64%; }
.pub-card { flex: none; display: flex; flex-direction: column; gap: 8px; width: 32%; padding: 10px; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(27, 20, 15, .08), 0 20px 40px -24px rgba(27, 20, 15, .55); }
.pub-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pub-card i { height: 6px; border-radius: 3px; background: var(--v-line); }
.pub-card i + i { width: 60%; }
.pub-lines { flex: 1 1 0; min-width: 0; align-self: stretch; height: 100%; overflow: visible; } /* svg 默认宽 300，不写 min-width: 0 会把右边的店铺框挤出去 */
.pub-lines path { fill: none; stroke: var(--v-clay); stroke-width: 1.2; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; opacity: .75; }
.pub-slots { flex: none; display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; }
.pub-slots i { height: 24%; aspect-ratio: 5 / 3; border: 1px dashed rgba(27, 20, 15, .28); border-radius: 4px; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(27, 20, 15, .035) 8px 9px); }
@media (prefers-reduced-motion: no-preference) {
  .tp-pub.on .pub-lines path { animation: hh-dash 1.2s linear infinite; }
  @keyframes hh-dash { to { stroke-dashoffset: -16; } }
}

/* —— 收尾前两行慢慢流的上架图：9 套里的场景图（每行写两遍好接上，挪一半回到原处）；鼠标放上去停 —— */
.hh-ribbon { display: grid; gap: 14px; padding-top: clamp(96px, 12vw, 176px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hh-ribbon-row { display: flex; width: max-content; }
.hh-ribbon-row img { flex: none; width: clamp(120px, 11vw, 168px); margin-right: 14px; aspect-ratio: 1; object-fit: cover; border-radius: 2px; box-shadow: 0 10px 20px -14px rgba(27, 20, 15, .5); }
@media (prefers-reduced-motion: no-preference) {
  .hh-ribbon-row { animation: hh-marq 140s linear infinite; }
  .hh-ribbon-row.rev { animation-direction: reverse; }
  .hh-ribbon:hover .hh-ribbon-row { animation-play-state: paused; }
}
.hh-ribbon + .hh-end { padding-top: clamp(64px, 8vw, 112px); }

/* —— 看大图（商家页的上架图）：一张大图 + 前后翻 —— */
html:has(.hh-zoom[open]) { overflow: hidden; }
.hh-zoom { width: min(720px, 100vw - 32px); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 4px; background: var(--v-card); color: var(--v-ink); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .6); overflow: hidden; }
.hh-zoom::backdrop { background: rgba(27, 20, 15, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hh-zoom[open] { animation: hh-lb-in .45s var(--v-out); }
.hh-zoom[open]::backdrop { animation: hh-fade .35s ease-out; }
.hh-zoom figure { margin: 0; }
.hh .hh-zoom img { width: 100%; height: auto; max-height: calc(100svh - 32px - 120px); aspect-ratio: 1; object-fit: contain; background: #fff; transition: opacity .25s ease-out; -webkit-user-drag: none; user-select: none; }
.hh-zoom img.swap { opacity: 0; }
.hh-zoom figcaption { padding: 16px 20px 0; font: 400 16px/1.4 var(--hh-serif); color: var(--v-ink2); }
html[lang='en'] .hh-zoom figcaption { font-style: italic; font-size: 20px; }
.hh-zoom-nav { display: flex; align-items: center; gap: 12px; padding: 12px 16px 16px 20px; }
.hh-zoom-nav span { flex: 1; font: 400 16px/1 var(--hh-serif); letter-spacing: .1em; color: var(--v-ink3); }

/* —— 进场（有脚本时）：升上来；大标题一行一行 —— */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-in] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--v-out), transform 1.1s var(--v-out); transition-delay: calc(var(--d, 0) * 90ms); }
  html.js [data-in].in { opacity: 1; transform: none; }
  html.js .hh-h1 .w { opacity: 0; transform: translate3d(0, .4em, 0); animation: hh-rise 1.1s var(--v-out) forwards; animation-delay: calc(var(--d, 0) * 120ms + 120ms); }
  @keyframes hh-rise { to { opacity: 1; transform: none; } }
  html.js .hh-seal, html.js .hh-end-seal.in { animation: hh-stamp .7s var(--v-out) both; animation-delay: .9s; }
  html.js .hh-end-seal.in { animation-delay: .1s; }
  @keyframes hh-stamp { from { opacity: 0; transform: scale(1.35); } 60% { opacity: 1; transform: scale(.96); } to { transform: none; } }
}

/* —— 窄屏 —— */
@media (max-width: 1000px) {
  .hh-nav { display: none; }
  .hh-hero, .hh-biz-hero { grid-template-columns: 1fr; min-height: 0; }
  .hh-stage { justify-self: center; width: min(100%, 560px); margin: 24px 0 48px; }
  .hh-sec-hd { grid-template-columns: 1fr; }
  .hh-ways { grid-template-columns: 1fr; }
  .hh-way-pic { aspect-ratio: auto; height: clamp(300px, 70vw, 420px); }
  .hh-wall { grid-template-columns: 1fr; }
  /* 窄屏：那句话 → 画 → 两列画法目录 → 按钮，点画法时画就在眼前 */
  .hh-hands { grid-template-columns: 1fr; gap: 0; }
  .hh-hands-side { display: contents; }
  .hh-hands-side blockquote { order: -1; margin-bottom: 24px; }
  .hh-hands-art { justify-self: center; width: min(100%, 340px); }
  .hh-hands-list { order: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; margin: 20px 0 24px; }
  .hh-hands-list button, html:not([lang='en']) .hh-hands-list button { gap: 10px; padding: 10px 24px 10px 0; font-size: 20px; }
  .hh-hands-list i { width: 1.8em; font-size: 12px; }
  .hh-hands-list button::after { width: 16px; }
  .hh-hands .hh-btn { order: 2; justify-self: start; }
  .hh-story-in { grid-template-columns: 1fr; gap: 24px; }
  .hh-story-stage { height: min(58svh, 600px); min-height: 360px; }
  .st-art { height: min(36svh, 400px); }
  /* 手机钉住时：四步叠在一起只露当前那一步，竖线换成上面一道横的 */
  .hh-story.pin .hh-story-steps { padding: 18px 0 0; }
  .hh-story.pin .hh-story-steps::before, .hh-story.pin .hh-story-steps::after { top: 0; bottom: auto; right: 0; width: auto; height: 1px; }
  .hh-story.pin .hh-story-steps::after { transform: scaleX(var(--p)); }
  .hh-story.pin .hh-story-steps li { grid-area: 1 / 1; opacity: 0; }
  .hh-story.pin .hh-story-steps li.past { opacity: 0; }
  .hh-story-side { gap: 16px; }
  .hh-story-cue { gap: 14px; margin-top: 0; }
  .hh-story-cue i { height: 32px; }
  .hh-tour { grid-template-columns: 1fr; gap: 28px; }
  .hh-tour-stage { order: -1; aspect-ratio: auto; height: min(150vw, 600px); }
  .tp-ip { flex-direction: column; align-items: stretch; }
  .ip-pic { height: 30%; align-self: center; }
  .pub-row { height: 46%; }
  .pub-card { width: 36%; padding: 8px; }
  .pub-slots { width: 32%; }
  .pub-slots i { width: 100%; height: auto; }
  .tf-cards { gap: 8px; }
  .tf-cards .m { gap: 3px; padding: 4px; }
  .hh-salon { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hh-salon .hh-work { margin-top: 0; }
  .hh-work.w-coast, .hh-work.w-ink { grid-column: span 6; }
  .hh-work.w-peony, .hh-work.w-pet, .hh-work.w-abstract, .hh-work.w-botanical, .hh-work.w-line, .hh-work.w-fox, .hh-work.w-island { grid-column: span 3; }
  .hh-lb-in { grid-template-columns: 1fr; overflow: auto; }
  .hh-lb-pic img { max-height: 58svh; }
  .hh-lb-side { overflow: visible; }
}
@media (max-width: 600px) {
  .hh-top { height: 52px; padding: 0 6px 0 16px; }
  .hh-brand img { height: 20px; }
  html[lang='en'] .hh-brand img { height: 26px; }
  .hh-lang, .hh-top .hh-btn.ghost { display: none; }
  .hh-top .hh-btn { height: 38px; padding: 0 16px; }
  .hh-ask { height: 56px; padding-left: 20px; }
  .hh-ask .hh-btn { height: 42px; padding: 0 16px; }
  html[lang='en'] .hh-ask input { font-size: 18px; }
  .hh-crop::before { left: -8px; top: -8px; } .hh-crop::after { right: -8px; bottom: -8px; }
  .hh-label { left: 10px; bottom: -36px; width: 82%; }
  .hh-seal { right: -6px; top: -18px; width: 56px; }
  .hh-set-ctl { flex-direction: column; align-items: flex-start; }
  .hh-tour-list button { padding-right: 48px; }
  .hh-hands-list { column-gap: 14px; }
  .hh-hands-list button, html:not([lang='en']) .hh-hands-list button { font-size: 18px; }
  .st-dim i { font-size: 12px; padding: 0 4px; }
  .st-dim.h { left: calc(100% + 10px); }
  .hh-facts { grid-template-columns: 1fr; gap: 20px; }
  .hh-sheet { rotate: 0deg; }
  .hh-foot { grid-template-columns: 1fr; }
  .hh-lb { width: 100vw; max-height: 100svh; border-radius: 0; }
  .hh-lb-in { max-height: 100svh; }
  .hh-room-cap { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-story-cue i::after { animation: none; top: 0; height: 100%; }
  .hh-scene .pic img, .hh-scene.on .pic img { transform: none; transition: none; }
  .hh-crop, .hh-label { transform: none; translate: none; }
}
