/* v2.47 网页版试衣间 · 品牌样式（Vogue/Awwwards 调性 × 官网同构）
   设计令牌对齐 landing / Theme.swift：黄 #FFD140 · 奶白 #FDFCF6 · 墨 #161414 */

@font-face { font-family: "BrandSerifSC"; src: url("assets/brand_serif_sub.woff2") format("woff2");
             font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; font-weight: 400;
             src: url("assets/bodonimoda-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400;
             src: url("assets/bodonimoda-400-i.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Jost"; font-weight: 400 500;
             src: url("assets/jost-400.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #FDFCF6; --ink: #161414; --ink-soft: #6E6A62;
  --brand: #FFD140; --brand-deep: #E9A700; --commerce: #C79A64; --hot: #C2410C;
  --hairline: rgba(22,20,20,.14);
  --display-cjk: "BrandSerifSC", "Songti SC", "Noto Serif SC", serif;
  --display-latin: "Bodoni Moda", "Didot", serif;
  --kicker: "Jost", "Century Gothic", sans-serif;
  --body-cjk: -apple-system, "PingFang SC", "Hiragino Sans GB", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); font-family: var(--body-cjk); color: var(--ink); min-height: 100vh;
       display: flex; flex-direction: column; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ───────── 顶栏 ───────── */
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 48px;
       border-bottom: 1px solid var(--hairline); background: rgba(253,252,246,.9); backdrop-filter: blur(10px);
       position: sticky; top: 0; z-index: 40; }
.navleft { display: flex; align-items: center; gap: 18px; min-width: 0; }
/* 品牌语贴在 logo 右边（细线分隔，不抢 utils 的位） */
.navtag { font-family: var(--display-cjk); font-weight: 700; font-size: 15.5px; letter-spacing: 1px;
          white-space: nowrap; padding-left: 18px; border-left: 1px solid var(--hairline); }
.navtag .selword { padding: .02em .24em; border-radius: 4px; box-shadow: 0 0 0 1.2px rgba(22,20,20,.85); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand .zh { font-family: var(--display-cjk); font-size: 19px; letter-spacing: 2px; }
.brand .div { width: 1px; height: 18px; background: var(--hairline); margin: 0 5px; }
.brand .st { font-family: var(--kicker); text-transform: uppercase; letter-spacing: .3em; font-size: 10.5px; color: var(--ink-soft); }
.utils { display: flex; align-items: center; gap: 22px; }
.utils a { font-family: var(--kicker); text-transform: uppercase; letter-spacing: .18em; font-size: 11.5px;
           color: var(--ink-soft); text-decoration: none; }
.utils a:hover { color: var(--ink); }
.utils .credits { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,209,64,.2);
                  border: 1px solid rgba(233,167,0,.38); color: var(--ink); border-radius: 999px; padding: 6px 13px;
                  font-size: 12.5px; letter-spacing: .06em; }
.utils .credits b { color: var(--brand-deep); font-style: normal; }
.utils .pro { display: inline-flex; align-items: center; background: var(--ink); color: var(--brand);
              border-radius: 999px; padding: 6px 14px; font-family: var(--kicker); letter-spacing: .18em; font-size: 10px; }
.utils .store { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.utils .navlogin { font-family: var(--kicker); text-transform: uppercase; letter-spacing: .16em;
                   font-size: 11px; font-weight: 700; color: var(--ink) !important;
                   background: var(--brand); border-radius: 999px; padding: 7px 14px;
                   box-shadow: 0 0 0 1.2px rgba(22,20,20,.85); }
.utils .navlogin:hover { color: var(--ink); filter: brightness(.97); }
.utils .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand);
                 display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.acct { position: relative; }
.acctbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hairline);
           background: #fff; border-radius: 999px; padding: 3px 10px 3px 3px; color: var(--ink); }
.acctbtn:hover { border-color: var(--ink); }
.acctlabel { font-family: var(--kicker); font-size: 11.5px; letter-spacing: .06em;
             max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acctmenu { position: absolute; right: 0; top: calc(100% + 8px); width: 248px; background: #fff;
            border: 1px solid var(--hairline); border-radius: 16px;
            box-shadow: 0 16px 40px -16px rgba(22,20,20,.35); padding: 10px 0 8px; z-index: 50; }
.acctmeta { padding: 4px 14px 10px; border-bottom: 1px solid var(--hairline); }
.acctmeta b { display: block; font-size: 14px; }
.acctmeta span { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; word-break: break-all; }
.acctitem { display: block; width: 100%; text-align: left; border: none; background: none;
            padding: 10px 14px; font-size: 13.5px; color: var(--ink); }
.acctitem:hover { background: rgba(255,209,64,.18); }
.acctitem.danger { color: var(--hot); }

/* ───────── 通用字饰 ───────── */
.kicker { font-family: var(--kicker); text-transform: uppercase; letter-spacing: .3em; font-size: 11.5px;
          font-weight: 500; color: var(--ink-soft); display: flex; align-items: center; }
.rule { display: inline-block; width: 28px; height: 2px; background: var(--brand-deep); margin-right: 12px; }
.selbox { position: relative; display: inline-block; background: var(--brand); color: var(--ink);
          font-family: var(--kicker); text-transform: uppercase; letter-spacing: .28em; font-size: 13px; font-weight: 500;
          padding: .5em 1em; border-radius: 6px; box-shadow: 0 0 0 1.5px rgba(22,20,20,.9); }
.selbox i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; }
.selbox i:nth-child(1){ left:-4px; top:-4px; } .selbox i:nth-child(2){ right:-4px; top:-4px; }
.selbox i:nth-child(3){ left:-4px; bottom:-4px; } .selbox i:nth-child(4){ right:-4px; bottom:-4px; }
.selword { display: inline-block; background: var(--brand); border-radius: 6px; padding: .04em .28em;
           box-shadow: 0 0 0 1.5px rgba(22,20,20,.9); }

/* ───────── 工作台：版心大卡内「定尺舞台 | 选衣」两栏（--stageH 统一驱动舞台高/右栏高） ───────── */
/* 首屏 = 顶栏 + 工作台，逛一逛严格落在折叠线以下 */
/* 大卡外是点阵肌理（留白变"版心之外"而不是"空"）；卡内舞台尺寸恒定，图片比例再变版式也不动 */
.studio { position: relative; flex: 1; width: 100%;
          display: flex; align-items: center; justify-content: center;
          padding: var(--cardM) clamp(14px, 2.2vw, 34px);
          min-height: calc(100vh - 68px);
          --cardM: clamp(12px, 1.8vh, 26px);
          --deckPad: clamp(12px, 1.4vh, 18px);
          --stagePad: clamp(9px, 1.2vh, 18px);
          --stageH: clamp(400px, calc(100vh - 68px - var(--cardM) * 2 - var(--deckPad) * 2), 940px); }
.studio::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(22,20,20,.5) 1px, transparent 1.4px); background-size: 22px 22px;
  opacity: .1; }
.studio::after { content: ""; position: absolute; width: min(1080px, 96%); height: 620px; left: 50%; top: 50%;
  transform: translate(-50%,-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(255,209,64,.4), rgba(255,209,64,0) 72%); filter: blur(10px); }

/* 版心大卡：把两栏收进一块白底描边卡，四周点阵肌理托住 */
.deck { position: relative; z-index: 2; display: grid;
        grid-template-columns: minmax(0, 1fr) clamp(318px, 24vw, 400px);
        gap: clamp(16px, 1.8vw, 26px); padding: var(--deckPad) clamp(14px, 1.2vw, 22px);
        width: 100%; max-width: 1420px; margin: 0 auto;
        background: rgba(255,255,255,.92); border: 1px solid var(--hairline); border-radius: 28px;
        box-shadow: 0 40px 80px -46px rgba(22,18,12,.5), 0 2px 4px -2px rgba(22,18,12,.1); }

/* ───────── 主舞台（尺寸恒定：高=可用高、宽=卡内剩余宽） ───────── */
.stage { position: relative; z-index: 2; min-width: 0; }

/* 未传照片时 hover 主图：整图变可点上传（+ 大圆钮浮现） */
.cvhover { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column;
           align-items: center; justify-content: center; gap: 14px; cursor: pointer;
           background: rgba(253,252,246,.52); opacity: 0; pointer-events: none; transition: opacity .22s; }
.canvasbox.nophoto .cvhover { pointer-events: auto; }
.canvasbox.nophoto:hover .cvhover { opacity: 1; }
.cvhover .plus { width: 66px; height: 66px; border-radius: 50%; background: var(--brand); font-size: 34px;
                 font-weight: 300; display: flex; align-items: center; justify-content: center;
                 box-shadow: 0 0 0 2px rgba(22,20,20,.9), 0 18px 38px rgba(233,167,0,.55);
                 transform: scale(.85); transition: transform .22s; }
.canvasbox.nophoto:hover .cvhover .plus { transform: scale(1); }
.cvhover b { font-size: 14.5px; font-weight: 700; background: #fff; padding: 9px 18px; border-radius: 999px;
             box-shadow: 0 0 0 1.5px rgba(22,20,20,.85), 0 10px 24px rgba(22,18,12,.25); }

/* 上传照片 dock：叠在大图内、贴底悬浮 */
.dock { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6;
        display: flex; align-items: center; gap: 10px;
        background: rgba(255,255,255,.94); border-radius: 15px; padding: 7px 13px 7px 7px;
        box-shadow: 0 12px 28px -10px rgba(22,18,12,.4), 0 0 0 1px rgba(22,20,20,.08);
        transition: transform .18s, box-shadow .18s; }
.dock:has(.dk-up:hover) { transform: translateY(-3px);
        box-shadow: 0 0 0 2px var(--brand), 0 16px 36px -10px rgba(233,167,0,.6); }
.dk-up { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; cursor: pointer;
         border-radius: 11px; padding: 3px 6px 3px 3px; transition: background .18s; }
.dk-up:hover { background: rgba(255,209,64,.16); }
.dk-up:hover .plus { transform: scale(1.1); }
.dk-up .plus { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); font-size: 21px; font-weight: 300;
               display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(233,167,0,.4);
               flex: none; transition: transform .25s; }
.dk-up .t { min-width: 0; }
.dk-up .t b { display: block; font-size: 13.5px; font-weight: 700; }
.dk-up .t span { display: block; font-size: 10.5px; color: var(--ink-soft); margin-top: 1px;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-sample { flex: none; background: none; border: none; border-left: 1px solid var(--hairline);
             padding: 4px 0 4px 12px; font-size: 11.5px; color: var(--brand-deep);
             text-decoration: underline; text-underline-offset: 3px; }
/* 有照片后：右下角换人 fab + 展开面板（内置模特 / 传自己的全身照） */
.swapfab { position: absolute; right: 12px; bottom: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 6px;
           background: rgba(255,255,255,.95); border: none; border-radius: 999px; padding: 9px 15px;
           font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer;
           box-shadow: 0 10px 24px -8px rgba(22,18,12,.42), 0 0 0 1px rgba(22,20,20,.14);
           transition: transform .16s, box-shadow .16s; }
.swapfab i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
             display: flex; align-items: center; justify-content: center; font-size: 12px;
             box-shadow: 0 0 0 1px rgba(22,20,20,.7); }
.swapfab:hover { transform: translateY(-2px);
                 box-shadow: 0 0 0 2px var(--brand), 0 14px 30px -8px rgba(233,167,0,.55); }
.swappanel { position: absolute; right: 12px; bottom: 60px; z-index: 8; background: #fff; border-radius: 16px;
             padding: 12px 12px 11px;
             box-shadow: 0 0 0 1.5px rgba(22,20,20,.85), 0 22px 46px rgba(22,18,12,.35); }
.swappanel > b { display: block; font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.swaps { display: flex; gap: 8px; }
.swopt { width: 64px; height: 84px; border-radius: 11px; overflow: hidden; border: none; padding: 0;
         cursor: pointer; background: #F5F0E3; box-shadow: 0 0 0 1.5px rgba(22,20,20,.28);
         transition: transform .15s, box-shadow .15s; }
.swopt:hover { transform: translateY(-2px); }
.swopt.on { box-shadow: 0 0 0 2px var(--brand), 0 0 0 3.5px rgba(22,20,20,.85); }
.swopt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swopt.up { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
            border: 1.5px dashed rgba(22,20,20,.4); background: rgba(255,209,64,.1); box-shadow: none; }
.swopt.up i { font-style: normal; font-size: 19px; width: 30px; height: 30px; border-radius: 50%;
              background: var(--brand); display: flex; align-items: center; justify-content: center;
              box-shadow: 0 0 0 1.5px rgba(22,20,20,.8); }
.swopt.up span { font-size: 9px; color: var(--ink-soft); text-align: center; line-height: 1.35; padding: 0 4px; }
/* 定尺舞台：高恒为 --stageH、宽吃满卡内剩余宽度。比例问题全部关进舞台内部（衬底 + contain 真图） */
.canvasbox { position: relative; width: 100%; height: var(--stageH);
             background: #F5F0E3; border-radius: 20px; overflow: hidden;
             box-shadow: inset 0 0 0 1px rgba(22,20,20,.16); }
/* 同图虚化衬底：同一张图放大糊掉压暗（零额外请求），任何比例都把舞台填满 */
.cvbg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: 50% 50%;
        filter: blur(30px) saturate(1.16); transform: scale(1.2); opacity: 0;
        transition: opacity .35s ease; }
.cvbg.on { opacity: 1; }
.cvbg::after { content: ""; position: absolute; inset: 0; background: rgba(22,18,12,.2); }
/* 真图：等比 contain（宽=舞台可用高×图片比例，封顶 100%），描边+深投影浮在衬底上=画面里最重的一块 */
/* 状态层铺满舞台只为居中真图，本身不吃点击（否则会盖住右上历史/左上＋卡） */
/* 不给 z-index（避免成为层叠上下文把姿势点压到 hover 层下面），靠 DOM 顺序压在衬底之上 */
.cv-demo, .cv-photo, .cv-result { position: absolute; inset: var(--stagePad);
             display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cv-demo img.model, .cv-photo img, .cv-result img, .resacts, .posechips { pointer-events: auto; }
.cv-demo img.model, .cv-photo img, .cv-result img {
             width: min(100%, calc((var(--stageH) - var(--stagePad) * 2) * var(--imgAR, .6667)));
             height: auto; max-height: 100%; object-fit: contain; border-radius: 13px; display: block;
             box-shadow: 0 0 0 2.5px var(--brand), 0 0 0 4.2px rgba(22,20,20,.9),
                         0 40px 72px -24px rgba(22,18,12,.5), 0 8px 20px -12px rgba(22,18,12,.3);
             transition: width .28s ease; }
.flatcard { position: absolute; left: 18px; top: 62px; width: 118px; background: #fff; border-radius: 13px;
            padding: 9px 9px 6px; box-shadow: 0 0 0 1.5px rgba(22,20,20,.85), 0 14px 26px rgba(22,18,12,.28);
            transform: rotate(-5deg); z-index: 4; }
.flatcard img { width: 100%; border-radius: 8px; display: block; position: static; }
.flatcard em { display: block; font-style: normal; font-family: var(--kicker); text-transform: uppercase;
               letter-spacing: .14em; font-size: 8.5px; color: var(--ink-soft); text-align: center; padding: 5px 0 2px; }
.flatcard.sm { width: 96px; top: 40px; left: 14px; }
.arrow-svg { position: absolute; left: 132px; top: 128px; width: 88px; z-index: 4;
             filter: drop-shadow(0 2px 5px rgba(255,255,255,.8)); }
.arrow-svg.sm { left: 104px; top: 118px; width: 78px; }

/* + 传衣服直接试（画布左上·常驻贴纸卡） */
.canvasup { position: absolute; left: 16px; top: 16px; width: 108px; z-index: 5; background: #fff;
            border: none; border-radius: 13px; padding: 8px;
            box-shadow: 0 0 0 1.5px rgba(22,20,20,.85), 0 14px 26px rgba(22,18,12,.26);
            transform: rotate(-4deg); transition: transform .18s; text-align: center; }
.canvasup:hover { transform: rotate(-4deg) translateY(-3px) scale(1.03); }
.cu-empty { display: block; }
.cu-empty i { display: flex; align-items: center; justify-content: center; font-style: normal;
              width: 100%; aspect-ratio: 1/1.08; border-radius: 9px; border: 1.6px dashed rgba(22,20,20,.4);
              background: rgba(255,209,64,.14); font-size: 30px; font-weight: 300; color: var(--ink); }
.cu-empty em { display: block; font-style: normal; font-family: var(--kicker); text-transform: uppercase;
               letter-spacing: .12em; font-size: 8.5px; color: var(--ink-soft); padding: 6px 0 2px; }
.cu-sel { display: block; position: relative; }
.cu-sel img { width: 100%; aspect-ratio: 1/1.08; object-fit: cover; border-radius: 9px; display: block; }
.cu-sel b { position: absolute; right: -7px; top: -7px; min-width: 20px; height: 20px; border-radius: 999px;
            background: var(--ink); color: var(--brand); font-size: 11px; font-weight: 700; padding: 0 5px;
            display: flex; align-items: center; justify-content: center; }
/* hover ＋卡才露出的「复制图片 → ⌘V 粘贴」提示（把逛一逛的能力带到入口处） */
.cutip { position: absolute; left: 0; top: calc(100% + 8px); width: 178px; display: flex; align-items: center; gap: 7px;
         background: var(--ink); color: #fff; border-radius: 11px; padding: 8px 10px; text-align: left;
         font-size: 10.5px; line-height: 1.5; box-shadow: 0 14px 28px -10px rgba(22,18,12,.5);
         opacity: 0; transform: rotate(4deg) translateY(-4px); pointer-events: none;
         transition: opacity .18s, transform .18s; }
.cutip b { flex: none; font-family: var(--kicker); font-size: 11px; font-weight: 500; letter-spacing: .04em;
           background: var(--brand); color: var(--ink); border-radius: 6px; padding: 3px 6px; }
.canvasup:hover .cutip { opacity: 1; transform: rotate(4deg) translateY(0); }

/* 试穿历史（画布右上·参考移动端）：默认只显当前张+背后叠层暗示，点击展开可滚动列表 */
.histstack { position: absolute; right: 14px; top: 14px; z-index: 7; display: flex; flex-direction: column;
             align-items: flex-end; max-height: calc(100% - 96px); }
.histmain { position: relative; width: 50px; height: 64px; border: none; padding: 0; border-radius: 11px;
            background: #fff; box-shadow: 0 0 0 1.5px rgba(22,20,20,.78), 0 10px 20px rgba(22,18,12,.3);
            transition: transform .16s; }
.histmain:hover { transform: translateY(-2px); }
/* 背后两张假卡 = 「还有很多」的叠层暗示 */
.histmain::before, .histmain::after { content: ""; position: absolute; inset: 0; border-radius: 11px;
            background: #FBF8EE; z-index: -1; box-shadow: 0 0 0 1.2px rgba(22,20,20,.42); }
.histmain::before { transform: translate(-5px, 5px) rotate(-3deg); }
.histmain::after { transform: translate(-10px, 10px) rotate(-6deg); opacity: .55; }
.histmain.single::before, .histmain.single::after,
.histmain.open::before, .histmain.open::after { display: none; }
.histmain img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; display: block; }
.histmain .hn { position: absolute; left: -8px; top: -8px; min-width: 20px; height: 20px; border-radius: 999px;
            background: var(--ink); color: var(--brand); font-size: 10.5px; font-weight: 700; padding: 0 5px;
            display: flex; align-items: center; justify-content: center; }
.histlist { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; overflow-y: auto;
            scrollbar-width: none; padding: 4px; margin-right: -4px; min-height: 0; }
.histlist::-webkit-scrollbar { display: none; }
.hist { width: 46px; height: 58px; border-radius: 10px; overflow: hidden; padding: 0; border: none; flex: none;
        box-shadow: 0 0 0 1.5px rgba(22,20,20,.55), 0 8px 18px rgba(22,18,12,.24); background: #fff;
        transition: transform .15s; }
.hist:hover { transform: scale(1.06); }
.hist.on { box-shadow: 0 0 0 2px var(--brand), 0 0 0 3.5px rgba(22,20,20,.85); }
.hist img { width: 100%; height: 100%; object-fit: cover; display: block; }
.posechips { position: absolute; bottom: 82px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.pc { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); border: 1px solid rgba(22,20,20,.3);
      cursor: pointer; transition: all .2s; }
.pc.on { background: var(--brand); width: 22px; border-radius: 6px; }

/* 生成中：半透明奶白盖在虚化衬底上（照片虚影仍在，等待不空） */
.cv-gen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
          gap: 14px; background: rgba(253,252,246,.86); z-index: 6; text-align: center; padding: 0 30px; }
.cv-gen b { font-size: 16px; }
.cv-gen p { font-size: 12px; color: var(--ink-soft); }
.genring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid rgba(233,167,0,.22);
           border-top-color: var(--brand-deep); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.cv-result { z-index: 7; }
.cv-result img { cursor: zoom-in; }
/* 结果操作条：贴两侧定位（左右各 12px）而不是 left:50%——后者可用宽度只有画布一半，
   会把三颗按钮挤成圆球、文字折行 */
.resacts { position: absolute; bottom: 14px; left: 12px; right: 12px; z-index: 8;
           display: flex; justify-content: center; align-items: center; gap: 9px; }
.ract { flex: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
        background: rgba(253,252,246,.94); border: 1px solid var(--hairline);
        border-radius: 999px; padding: 10px 16px; font-size: 12.5px; font-weight: 600;
        box-shadow: 0 8px 20px -6px rgba(22,18,12,.3), 0 0 0 1px rgba(22,20,20,.06);
        transition: background .15s, transform .15s; }
.ract:hover { background: var(--brand); transform: translateY(-1px); }
.ract em { font-style: normal; color: var(--brand-deep); font-size: 11px; }
#actBack { padding: 10px 13px; }

/* ───────── 结果态「全屏看图」：虚化衬底铺满顶栏以下整屏，真图等比浮在最上层 ───────── */
.imm { position: fixed; left: 0; right: 0; top: 68px; bottom: 0; z-index: 60;
       display: flex; align-items: center; justify-content: center; overflow: hidden;
       --immTop: clamp(14px, 2.4vh, 32px); --immBot: clamp(70px, 8.6vh, 96px); --immSide: clamp(16px, 3vw, 44px);
       padding: var(--immTop) var(--immSide) var(--immBot); animation: fade .22s ease-out; }
.immbg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: 50% 50%;
         filter: blur(40px) saturate(1.14); transform: scale(1.2); }
.immbg::after { content: ""; position: absolute; inset: 0; background: rgba(22,18,12,.3); }
.immimg { position: relative; z-index: 1; display: block;
          width: min(100%, calc((100vh - 68px - var(--immTop) - var(--immBot)) * var(--immAR, .6667)));
          height: auto; max-height: 100%; object-fit: contain; border-radius: 16px;
          box-shadow: 0 0 0 2.5px var(--brand), 0 0 0 4.4px rgba(22,20,20,.92),
                      0 60px 100px -30px rgba(0,0,0,.6); animation: rise .3s ease-out; }
.immacts { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(18px, 2.6vh, 32px);
           display: flex; justify-content: center; gap: 10px; }
.immx { position: absolute; z-index: 2; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
        border: none; background: rgba(253,252,246,.92); font-size: 15px; color: var(--ink);
        box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); transition: background .15s, transform .15s; }
.immx:hover { background: var(--brand); transform: scale(1.06); }
@keyframes fade { from { opacity: 0; } }

/* ───────── 右栏选衣（整卡收纳 + 右下强按钮） ───────── */
/* 右栏高 = 画布高：卡片吃掉剩余空间，「试穿按钮 + 搭配师链接」整块压在画布底线上 */
.panel { position: relative; z-index: 2; display: flex; flex-direction: column;
         height: var(--stageH); }
.panelcard { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0;
             /* 比主图轻一档：半透明底 + 极淡投影，视觉重心留给中间画布 */
             background: rgba(255,255,255,.52);
             border: 1px solid var(--hairline); border-radius: 20px; padding: 18px 16px 14px;
             margin-bottom: 16px; box-shadow: 0 16px 36px -32px rgba(22,18,12,.2); }
/* 顶行：性别切换单钮 + 分类 tabs（横向滚动） */
.gtop { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; min-width: 0; }
.gsex { flex: none; font-family: var(--kicker); letter-spacing: .08em; font-size: 12px; padding: 7px 12px;
        border-radius: 999px; background: var(--ink); color: var(--brand); border: 1px solid var(--ink);
        cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: opacity .15s; }
.gsex:hover { opacity: .85; }
.gsex i { font-style: normal; opacity: .75; }
/* tab 横向滚动：滚轮可滑 + hover 出现左右箭头点击滑动 + 边缘渐隐提示还有更多 */
.gtabswrap { position: relative; flex: 1; min-width: 0; }
.gtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0;
         scroll-behavior: smooth; }
.gtabs::-webkit-scrollbar { display: none; }
.gtabswrap::before, .gtabswrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30px;
         pointer-events: none; z-index: 2; opacity: 0; transition: opacity .16s; }
.gtabswrap::before { left: 0; background: linear-gradient(90deg, #FEFDF9 32%, rgba(254,253,249,0)); }
.gtabswrap::after { right: 0; background: linear-gradient(270deg, #FEFDF9 32%, rgba(254,253,249,0)); }
.gtabswrap.more-l::before, .gtabswrap.more-r::after { opacity: 1; }
.tabnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
          width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(22,20,20,.2);
          background: #fff; color: var(--ink); font-size: 15px; line-height: 1; padding: 0 0 2px;
          display: flex; align-items: center; justify-content: center;
          box-shadow: 0 5px 14px -4px rgba(22,18,12,.32);
          opacity: 0; pointer-events: none; transition: opacity .16s, background .16s; }
.tabnav.prev { left: 0; } .tabnav.next { right: 0; }
.tabnav:hover { background: var(--brand); }
.gtabswrap.more-l:hover .tabnav.prev, .gtabswrap.more-r:hover .tabnav.next { opacity: 1; pointer-events: auto; }
.gt { flex: none; font-family: var(--kicker); letter-spacing: .1em; font-size: 12px; padding: 7px 14px; border-radius: 999px;
      border: 1px solid var(--hairline); background: #fff; color: var(--ink-soft); }
.gt.on { background: var(--ink); color: var(--brand); border-color: var(--ink); }
/* 网格首格：上传衣服 tile */
.gitem.gup-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
                  cursor: pointer; border: 1.6px dashed rgba(22,20,20,.35); background: rgba(255,209,64,.08); }
.gitem.gup-tile:hover { border-color: var(--brand-deep); background: rgba(255,209,64,.16); }
.gitem.gup-tile i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
                    display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 300;
                    box-shadow: 0 0 0 1.5px rgba(22,20,20,.8); }
.gitem.gup-tile span { position: static; background: none; padding: 0; font-size: 10.5px; color: var(--ink-soft); }
/* 上传衣服格 hover：补一行「⌘V 粘贴也行」 */
.gitem.gup-tile em { position: static; font-style: normal; font-size: 9px; line-height: 1.4; color: var(--brand-deep);
                     opacity: 0; transition: opacity .16s; padding: 0 4px; text-align: center; }
.gitem.gup-tile:hover em { opacity: 1; }

/* 格子按卡宽自适应列数（右栏变宽就多一列衣服，不留空） */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 9px; overflow-y: auto; flex: 1;
         min-height: 220px; grid-auto-rows: min-content; padding: 2px; scrollbar-width: thin; }
.gloading { grid-column: 1/-1; text-align: center; color: var(--ink-soft); font-size: 12.5px; padding: 30px 0; }
.gitem { position: relative; aspect-ratio: 3/4; border-radius: 12px; background: #fff; border: 1.5px solid var(--hairline);
         overflow: hidden; padding: 0; transition: transform .15s, border-color .15s; }
.gitem:hover { transform: translateY(-2px); }
.gitem img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gitem.custom img { object-fit: contain; padding: 6px; }
.gitem.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--brand); }
.gitem.on::after { content: "✓"; position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
                   background: var(--brand); color: var(--ink); font-size: 12px; font-weight: 700;
                   display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px rgba(22,20,20,.8); }
.gitem span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; color: var(--ink-soft);
              background: linear-gradient(transparent, rgba(255,255,255,.95) 40%); padding: 12px 5px 4px; text-align: center;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.selrow { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.selrow .sl { font-size: 11.5px; color: var(--ink-soft); flex: none; }
.selchips { display: flex; gap: 7px; }
.selchip { position: relative; width: 44px; height: 54px; border-radius: 10px; background: #fff;
           border: 1.5px solid var(--brand-deep); overflow: visible; }
.selchip img { width: 100%; height: 100%; object-fit: contain; padding: 3px; border-radius: 9px; }
.selchip b { position: absolute; right: -6px; top: -6px; width: 17px; height: 17px; border-radius: 50%;
             background: var(--ink); color: #fff; font-size: 10px; font-weight: 400; display: flex;
             align-items: center; justify-content: center; cursor: pointer; }

/* 右下强按钮（单行大字 + 箭头，靠呼吸光晕/流光引导点击，不放小字） */
.trybtn { margin-top: 0; flex: none; width: 100%; border: none; border-radius: 999px; background:
          linear-gradient(180deg, #FFDD66, var(--brand) 55%, #F5BE1E); color: var(--ink); position: relative;
          overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px;
          padding: 10px 0 12px; box-shadow: 0 0 0 1.5px rgba(22,20,20,.9), 0 14px 30px -8px rgba(233,167,0,.55);
          transition: transform .15s; }
.trybtn:hover { transform: translateY(-2px); }
.trybtn.big { height: 68px; animation: breath 2.6s ease-in-out infinite; }
@keyframes breath { 0%,100% { box-shadow: 0 0 0 1.5px rgba(22,20,20,.9), 0 14px 30px -8px rgba(233,167,0,.55); }
                    50% { box-shadow: 0 0 0 1.5px rgba(22,20,20,.9), 0 14px 42px -4px rgba(233,167,0,.85); } }
.trybtn b { font-size: 20px; letter-spacing: 6px; font-weight: 800; }
.trybtn em { font-style: normal; font-size: 19px; font-weight: 700; transition: transform .2s; }
.trybtn:hover em { transform: translateX(5px); }
/* 流光横扫：不加字也能看出「这里可以点」 */
.trybtn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 42%;
                 background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
                 animation: tryshine 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes tryshine { 0% { left: -50%; } 55%, 100% { left: 115%; } }
.trybtn:disabled { filter: grayscale(.5); opacity: .6; animation: none; cursor: not-allowed; }
.trybtn:disabled::after { display: none; }

/* 搭配师入口：试穿按钮下方的弱化文字链接 */
.stylistlink { margin-top: 12px; width: 100%; flex: none; display: flex; align-items: center; justify-content: center; gap: 9px;
               background: none; border: none; padding: 4px 0 0; font-size: 14px; color: var(--ink-soft);
               transition: color .15s; }
.stylistlink:hover { color: var(--ink); }
.stylistlink span[data-i18n] { text-decoration: underline; text-underline-offset: 3px;
               text-decoration-color: rgba(22,20,20,.25); }
.stylistlink em { font-style: normal; transition: transform .15s; }
.stylistlink:hover em { transform: translateX(3px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3BAE5C; box-shadow: 0 0 0 3px rgba(59,174,92,.2);
       animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(59,174,92,.08); } }

/* ───────── 逛一逛（对齐 App StudioBrowser：站点货架去逛 + 粘贴/拖拽取图试穿） ───────── */
.browse { position: relative; z-index: 2; border-top: 1px solid var(--hairline); scroll-margin-top: 68px;
          padding: 34px clamp(22px, 3.5vw, 48px) 40px; max-width: 1500px; margin: 0 auto; width: 100%; }
.bhead { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.bhead h2 { font-family: var(--display-cjk); font-weight: 700; font-size: 23px; letter-spacing: 1.5px; }
.bhead p { font-size: 12px; color: var(--ink-soft); margin-left: auto; }
.bcols { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(22px, 3vw, 44px); align-items: start; }

/* 主表达：⌘V 粘贴大卡（横排收矮） */
.bpaste.hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 15px; cursor: pointer;
          padding: 18px 20px; border: 1.8px dashed rgba(22,20,20,.38); border-radius: 18px;
          background: rgba(255,255,255,.65);
          transition: border-color .18s, transform .18s, box-shadow .18s; }
.bpaste.hero:hover { border-color: var(--ink); border-style: solid; transform: translateY(-3px);
                box-shadow: 0 0 0 2px var(--brand), 0 18px 40px -14px rgba(233,167,0,.55); }
.bpaste .bigkey { grid-row: span 2; font-family: var(--kicker); font-size: 19px; font-weight: 500; letter-spacing: .06em;
             background: var(--ink); color: var(--brand); border-radius: 11px; padding: 11px 13px;
             box-shadow: 0 10px 24px -8px rgba(22,18,12,.4); }
.bpaste b { font-size: 15.5px; font-weight: 800; line-height: 1.45; }
.bpaste .s { font-size: 11.5px; color: var(--ink-soft); line-height: 1.7; }

/* 辅助：搜索 + 站点货架（新标签打开去逛） + 更多品牌 */
.bsearch { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; padding: 8px 14px;
           background: #fff; border: 1px solid var(--hairline); border-radius: 999px; }
.bsearch span { font-size: 13px; opacity: .55; }
.bsearch input { flex: 1; border: none; outline: none; background: none; font-size: 13px; color: var(--ink);
                 font-family: var(--body-cjk); }
.bsearch input::placeholder { color: var(--ink-soft); }
.bnores { font-size: 12.5px; color: var(--ink-soft); padding: 8px 2px; }
.bnores a { color: var(--brand-deep); }
.bsites { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.bsite { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff;
         border: 1px solid var(--hairline); border-radius: 14px; text-decoration: none; color: var(--ink);
         font-size: 13px; font-weight: 600; transition: transform .15s, border-color .15s, box-shadow .15s; }
.bsite:hover { transform: translateY(-2px); border-color: var(--ink);
               box-shadow: 0 10px 22px -12px rgba(22,18,12,.3); }
.bsite .bi { font-size: 16px; flex: none; }
.bsite .ext { margin-left: auto; font-size: 10.5px; color: var(--ink-soft); opacity: 0; transition: opacity .15s; }
.bsite:hover .ext { opacity: 1; }
.bmore { margin-top: 11px; background: none; border: none; font-size: 12.5px; color: var(--brand-deep);
         text-decoration: underline; text-underline-offset: 3px; }
.ballbrands { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.bbrand { font-size: 12px; color: var(--ink-soft); text-decoration: none; background: rgba(255,255,255,.7);
          border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 11px; transition: all .13s; }
.bbrand:hover { color: var(--ink); border-color: var(--ink); background: #fff; }

/* 拖拽图片进页面的全屏遮罩 */
.dropmask { position: fixed; inset: 0; z-index: 200; background: rgba(255,209,64,.32);
            backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; }
.dropmask b { background: #fff; border-radius: 999px; padding: 18px 34px; font-size: 17px;
              box-shadow: 0 0 0 2px var(--ink), 0 24px 60px rgba(22,18,12,.35); border: 3px dashed var(--brand-deep); }

/* ───────── 底部条 ───────── */
.foot { display: flex; align-items: center; gap: 26px; padding: 14px 48px; border-top: 1px solid var(--hairline);
        font-size: 12px; color: var(--ink-soft); }
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--brand-deep); padding-bottom: 1px; }
.foot .fr { margin-left: auto; font-family: var(--kicker); letter-spacing: .14em; font-size: 10.5px; }

/* ───────── 全屏订阅墙 W1 ───────── */
.subwall { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; }
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1060px; margin: 0 auto;
           padding: 60px 48px; min-height: 100vh; align-items: center; }
.sw-demo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 46/60;
           box-shadow: 0 0 0 2px var(--brand), 0 30px 60px -28px rgba(22,18,12,.3); background: #F5F0E3; }
.sw-demo .m { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.sw-copy .selbox { margin-bottom: 22px; }
.sw-copy h2 { font-family: var(--display-cjk); font-weight: 700; font-size: 44px; line-height: 1.2; letter-spacing: 2px;
              margin-bottom: 24px; }
.benefits { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.benefits li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.benefits li::before { content: "✓"; flex: none; width: 21px; height: 21px; border-radius: 50%; background: var(--brand);
                       display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
                       box-shadow: 0 0 0 1.2px rgba(22,20,20,.8); }
.benefits.sm { gap: 8px; margin: 14px 0 18px; }
.benefits.sm li { font-size: 13px; }
.benefits.center { justify-items: start; width: fit-content; margin-left: auto; margin-right: auto; }
.anchorprice { margin-bottom: 18px; }
.anchorprice b { display: block; font-family: var(--display-latin); font-style: italic; font-size: 31px; }
.anchorprice span { font-size: 12px; color: var(--ink-soft); }
.legal { font-size: 11px; color: var(--ink-soft); margin-top: 12px; line-height: 1.7; }
.legal.center { text-align: center; }

/* ───────── 弹窗通用 ───────── */
/* 注意：容器不用 backdrop-filter——Electron/Chromium 下会吞掉子元素绘制 */
.modal { position: fixed; inset: 0; z-index: 110; background: rgba(22,20,20,.55);
         display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.mbox { position: relative; width: 400px; max-width: 100%; background: var(--bg); border-radius: 22px;
        padding: 34px 30px 28px; text-align: center; box-shadow: 0 40px 90px rgba(22,18,12,.4);
        animation: rise .3s cubic-bezier(.2,.9,.3,1.2); max-height: calc(100vh - 40px); overflow-y: auto; }
.mbox.wide { width: 480px; }
@keyframes rise { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.mbox h3 { font-family: var(--display-cjk); font-size: 23px; letter-spacing: 1.5px; margin-bottom: 7px; }
.msub { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.mnote { font-size: 11.5px; color: var(--ink-soft); margin-top: 8px; }
.mwarn { font-size: 12.5px; color: var(--hot); background: rgba(194,65,12,.08); border-radius: 9px;
         padding: 8px 12px; margin-top: 10px; }
.mlogo { width: 52px; height: 52px; border-radius: 13px; margin-bottom: 12px; }
.gift { font-size: 44px; margin-bottom: 8px; }
.countdown { font-family: var(--display-latin); font-style: italic; font-size: 34px; color: var(--hot); margin: 8px 0 2px; }
.bigprice { font-family: var(--display-latin); font-style: italic; font-size: 38px; margin: 12px 0 4px; }
.bigprice small { font-size: 15px; font-style: normal; font-family: var(--body-cjk); color: var(--ink-soft); }
.creditbig { font-size: 32px; font-weight: 800; margin: 14px 0 6px; }
.creditbig span { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.offer { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 4px 0 4px; }
.offer s { color: var(--ink-soft); font-size: 15px; }
.offer b { font-family: var(--display-latin); font-style: italic; font-size: 30px; }
.offer em { font-style: normal; background: var(--hot); color: #fff; font-size: 11px; font-weight: 700;
            border-radius: 6px; padding: 3px 7px; letter-spacing: .05em; }

.cta { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; border: none;
       border-radius: 999px; background: linear-gradient(180deg, #FFDD66, var(--brand) 55%, #F5BE1E);
       color: var(--ink); font-size: 15.5px; font-weight: 800; letter-spacing: 3px; padding: 15px 0;
       box-shadow: 0 0 0 1.5px rgba(22,20,20,.9), 0 12px 26px -8px rgba(233,167,0,.5); margin-top: 14px;
       transition: transform .15s; }
.cta:hover { transform: translateY(-1px); }
.cta.ghost { background: #fff; letter-spacing: .05em; font-weight: 600; font-size: 14.5px; }
.cta.apple { background: #111; color: #fff; letter-spacing: .04em; font-weight: 600; font-size: 14.5px;
             box-shadow: 0 0 0 1.5px #111, 0 10px 22px -10px rgba(0,0,0,.45); }
.cta.ink { background: var(--ink); color: var(--bg); letter-spacing: .1em; font-weight: 600; font-size: 14px; }
.authstack { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cta.auth { margin-top: 0; height: 48px; padding: 0 16px; letter-spacing: .04em; font-weight: 650; font-size: 14.5px; }
.cta.auth.google { background: #fff; color: var(--ink);
                   box-shadow: 0 0 0 1.5px rgba(22,20,20,.9), 0 10px 22px -10px rgba(22,20,20,.18); }
.cta.auth.apple { background: #111; color: #fff; box-shadow: 0 0 0 1.5px #111, 0 10px 22px -10px rgba(0,0,0,.45); }
.cta.auth.guest { background: transparent; color: var(--ink-soft); box-shadow: none;
                  font-weight: 500; font-size: 13.5px; letter-spacing: .06em; height: 40px; }
.cta.auth.guest:hover { color: var(--ink); transform: none; }
#gsiHost { min-height: 0; display: none; }

.xclose { position: absolute; right: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
          border: 1px solid var(--hairline); background: rgba(255,255,255,.7); color: var(--ink-soft); font-size: 13px;
          z-index: 5; opacity: 0; pointer-events: none; transition: opacity .6s; }
.xclose.showable { opacity: .8; pointer-events: auto; }
.xclose:hover { opacity: 1; }
.subwall .xclose { right: 26px; top: 22px; width: 38px; height: 38px; }

/* W4 双档 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 2px; }
.plan { position: relative; border: 1.6px solid var(--hairline); border-radius: 16px; background: #fff;
        padding: 18px 12px 14px; text-align: center; transition: border-color .15s; }
.plan.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--brand); }
.plan b { font-size: 14px; letter-spacing: 1px; }
.plan .p { font-family: var(--display-latin); font-style: italic; font-size: 25px; margin: 6px 0 4px; }
.plan .p small { font-size: 12px; font-family: var(--body-cjk); font-style: normal; color: var(--ink-soft); }
.plan p { font-size: 11px; color: var(--ink-soft); line-height: 1.6; }
.plan .badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--hot);
               color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px;
               letter-spacing: .06em; white-space: nowrap; }
.escape { display: inline-block; margin-top: 13px; font-size: 12px; color: var(--ink-soft); text-decoration: underline; }

/* W5 商店 */
.mbox.store { text-align: left; }
.mbox.store h3 { text-align: center; }
.balrow { display: flex; align-items: center; justify-content: space-between; background: rgba(255,209,64,.16);
          border: 1px solid rgba(233,167,0,.3); border-radius: 13px; padding: 11px 16px; margin-top: 14px;
          font-size: 13.5px; }
.balrow b { font-size: 17px; }
.approw { display: flex; align-items: center; gap: 12px; border: 1.5px dashed rgba(22,20,20,.3); border-radius: 13px;
          padding: 11px 15px; margin-top: 11px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.approw:hover { border-color: var(--brand-deep); }
.approw > span:first-child { font-size: 22px; }
.approw .t b { display: block; font-size: 13.5px; }
.approw .t span { font-size: 11px; color: var(--ink-soft); }
.approw em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--brand-deep); font-size: 16px; }
.welcomeoffer { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 11px;
                background: linear-gradient(115deg, rgba(255,209,64,.28), rgba(255,221,102,.12)); border: 1.6px solid var(--brand-deep);
                border-radius: 13px; padding: 15px; }
.welcomeoffer .wtag { position: absolute; top: -9px; left: 14px; background: var(--hot); color: #fff; font-size: 10px;
                      font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.welcomeoffer .t { font-size: 17px; font-weight: 800; }
.welcomeoffer .t span { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.welcomeoffer .pr { margin-left: auto; display: flex; align-items: baseline; gap: 7px; }
.welcomeoffer .pr s { font-size: 12px; color: var(--ink-soft); }
.welcomeoffer .pr b { font-family: var(--display-latin); font-style: italic; font-size: 21px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.pack { position: relative; border: 1.4px solid var(--hairline); border-radius: 13px; background: #fff;
        padding: 15px 6px 12px; text-align: center; transition: border-color .15s, transform .12s; }
.pack:hover { border-color: var(--ink); transform: translateY(-2px); }
.pack b { display: block; font-size: 15px; }
.pack span { font-size: 12px; color: var(--ink-soft); }
.pack em { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal;
           background: var(--ink); color: var(--brand); font-size: 9.5px; font-weight: 700; border-radius: 999px;
           padding: 2px 8px; white-space: nowrap; }
.pack.pop { border-color: var(--ink); box-shadow: 0 0 0 2px var(--brand); }
.pack.best em { background: var(--hot); color: #fff; }

/* 结算 */
.ck-progress { display: flex; flex-direction: column; align-items: center; gap: 13px; padding: 22px 0; }
.ck-progress b { font-size: 15px; }

/* ───────── 搭配师抽屉 ───────── */
.stylist { position: fixed; right: 0; top: 0; bottom: 0; width: 400px; max-width: 94vw; z-index: 90;
           background: var(--bg); border-left: 1px solid var(--hairline); box-shadow: -24px 0 60px rgba(22,18,12,.18);
           display: flex; flex-direction: column; animation: slidein .28s cubic-bezier(.2,.9,.3,1); }
@keyframes slidein { from { transform: translateX(60px); opacity: 0; } }
.sthead { display: flex; align-items: center; gap: 9px; padding: 17px 20px; border-bottom: 1px solid var(--hairline); }
.sthead b { font-family: var(--display-cjk); font-size: 17px; letter-spacing: 1.5px; }
.sthead .stfree { font-size: 10.5px; color: var(--ink-soft); margin-left: 4px; }
.sthead .xclose { position: static; margin-left: auto; opacity: .8; pointer-events: auto; }
.stmsgs { flex: 1; overflow-y: auto; padding: 18px 18px 10px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; font-size: 13.5px; line-height: 1.75; border-radius: 15px; padding: 10px 14px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--brand); border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--hairline); border-bottom-left-radius: 5px; }
.msg.step { align-self: flex-start; background: none; border: none; color: var(--ink-soft); font-size: 11.5px; padding: 0 6px; }
.msg img { max-width: 100%; border-radius: 11px; display: block; margin-top: 6px; }
.stinput { display: flex; gap: 9px; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); }
.stinput input { flex: 1; border: 1.5px solid var(--hairline); border-radius: 999px; padding: 11px 17px; font-size: 13.5px;
                 background: #fff; outline: none; font-family: inherit; }
.stinput input:focus { border-color: var(--brand-deep); }
.stinput button { border: none; border-radius: 999px; background: var(--ink); color: var(--brand); font-size: 13px;
                  font-weight: 700; padding: 0 20px; letter-spacing: 2px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 200; background: var(--ink);
         color: var(--bg); font-size: 13.5px; border-radius: 999px; padding: 11px 22px; box-shadow: 0 14px 34px rgba(22,18,12,.35);
         animation: rise .25s ease-out; width: max-content; max-width: 86vw; text-align: center; }

/* ───────── 移动端自适应 ───────── */
@media (max-width: 1080px) {
  /* 窄窗口：两栏收紧，顶栏品牌语让位给功能入口 */
  .deck { grid-template-columns: minmax(0, 1fr) minmax(276px, 344px); border-radius: 22px; }
  .navtag { display: none; }
  .canvasup { width: 94px; }
}
@media (max-width: 760px) {
  .nav { padding: 0 16px; height: 56px; }
  /* 手机 nav 精简：logo+名 | 积分 · EN · 头像/登录 */
  .brand .st, .brand .div, .utils #navStore, .utils #navBrowse { display: none; }
  .brand .zh { white-space: nowrap; font-size: 15px; }
  .utils { gap: 11px; }
  .utils .credits { padding: 6px 10px; }
  .acctlabel { display: none; }
  .acctbtn { padding: 3px; }
  /* 手机：像 App/DLOOK 一样进来直接出功能——画布即首屏；大卡壳退场，宽度全给舞台 */
  .studio { padding: 0; min-height: 0; display: block;
            --stageH: clamp(360px, 62vh, 560px); }
  .studio::before, .studio::after { display: none; }
  .deck { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px 18px 90px;
          background: none; border: none; border-radius: 0; box-shadow: none; }
  .stage { width: 100%; }
  .canvasbox { width: 100%; }
  .panel { height: auto; }
  /* 手机结果条只放得下三颗：全屏钮收成图标 */
  #actFull span { display: none; }
  #actFull { padding: 10px 13px; }
  .imm { top: 56px; }
  .immimg { width: min(100%, calc((100vh - 56px - var(--immTop) - var(--immBot)) * var(--immAR, .6667))); }
  .panelcard { max-height: none; margin-bottom: 0; }
  .trybtn { margin-top: 16px; }
  .ggrid { max-height: 300px; }
  .canvasup { width: 88px; }
  .histmain { width: 44px; height: 56px; }
  .hist { width: 40px; height: 50px; }
  .bcols { grid-template-columns: 1fr; }
  .bhead p { margin-left: 0; }
  .bpaste.hero { padding: 18px; gap: 10px; }
  .bpaste .bigkey { font-size: 15px; padding: 9px 12px; border-radius: 9px; }
  .bpaste b { font-size: 15px; }
  .trybtn.big { position: fixed; left: 14px; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom));
                width: auto; z-index: 50; height: 64px; }
  .trybtn b { font-size: 17px; letter-spacing: 4px; }
  .stylistlink { margin-bottom: 8px; }
  .foot { flex-wrap: wrap; gap: 10px 18px; padding: 14px 18px 90px; }
  .sw-grid { grid-template-columns: 1fr; padding: 40px 22px 60px; gap: 26px; }
  .sw-demo { max-width: 320px; margin: 0 auto; aspect-ratio: 46/56; }
  .sw-copy h2 { font-size: 32px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .stylist { width: 100vw; max-width: 100vw; }
}
