/* ==========================================================================
   GlowMate · Editorial Luxury, Mobile-first
   字体规则（严格）：
   - 所有中文与界面文字：一个无衬线家族（--sans），只用 400 / 500 / 600 三个字重
   - 衬线（--serif，斜体）只用于三处：品牌字标、英文妆容名、数字
   - 不再使用中英双语小标题
   布局：任何宽度都是手机 App 形态；≥1024px 时放进设备框，左侧为讲解栏
   ========================================================================== */
:root {
  --canvas: #F7F4EF;
  --surface: #FFFEFC;
  --ink: #26221F;
  --ink-2: #4A433D;
  --muted: #8A827A;
  --faint: #B8AFA6;
  --champagne: #B98D65;
  --champagne-2: #E9D2B4;
  --rose: #D8A8A4;
  --sage: #8C9B8C;
  --line: rgba(38, 34, 31, .08);
  --line-2: rgba(38, 34, 31, .14);
  --tint: rgba(38, 34, 31, .035);
  --danger: #A94F4B;
  --warn: #A26A31;
  --watch: #7D6A4F;

  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Didot", "Bodoni 72", "Bodoni Moda", "Playfair Display", "Noto Serif", "Noto Serif CJK SC", Georgia, serif;

  --r-xl: 32px; --r-lg: 24px; --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 1px rgba(60, 44, 30, .03), 0 18px 40px -24px rgba(60, 44, 30, .28);
  --shadow-lg: 0 2px 4px rgba(60, 44, 30, .04), 0 40px 80px -36px rgba(60, 44, 30, .45);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --pad: 20px;

  --on-ink: #FBF6EF;
  --img-bg: #F3ECE4;
  --soft: #FAF6F0;
  --soft-2: #F3ECE3;
  --dark: #2A2521;
  --ok-bg: #EDF0EA;
  --ink-hover: #3A332E;
  --glass: rgba(255, 254, 252, .78);
  --tab-bg: rgba(38, 34, 31, .9);
  --frame: linear-gradient(145deg, #3A332E, #1F1B18);
  --desk-bg: radial-gradient(1200px 800px at 75% 40%, #FBF7F1, var(--canvas) 70%);
  --grain: .9;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* 纸张颗粒：固定层，不随滚动重绘 */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; background: url("../img/paper.png"); opacity: var(--grain); mix-blend-mode: multiply; }
body.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.ico { width: 18px; height: 18px; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--champagne-2); }

/* ---------------------------- 字体层级 ---------------------------- */
.wordmark { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.num { font-family: var(--serif); font-weight: 400; font-variant-numeric: lining-nums; letter-spacing: -.02em; line-height: 1; }
.look-name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.015em; }
.title { font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: .01em; }
.title--xl { font-size: 30px; line-height: 1.3; }
.h2 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.h4 { font-size: 15px; font-weight: 600; line-height: 1.4; display: flex; gap: 8px; align-items: baseline; }
.h4 small { font-size: 12px; color: var(--muted); font-weight: 400; }
.kicker { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.kicker--light { color: rgba(243, 236, 227, .66); }
.muted { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); line-height: 1.6; }
.sheet-title { font-size: 22px; font-weight: 600; margin: 4px 0 20px; }

/* ---------------------------- 设备外壳 ---------------------------- */
.desk { position: relative; z-index: 2; }
.intro { display: none; }
.device { position: relative; min-height: 100dvh; }
.screen { position: relative; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad) 6px; }
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__brand > span:last-child { display: grid; gap: 4px; }
.topbar__brand small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--champagne-2); font-family: var(--serif); font-style: italic; font-size: 19px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--tint); transition: transform .5s var(--spring), background .3s; }
.iconbtn:hover { background: rgba(38, 34, 31, .07); }
.iconbtn:active { transform: scale(.94); }

/* 用户切换：浮动胶囊，粘顶 */
.switch {
  position: sticky; top: 10px; z-index: 20; margin: 8px var(--pad) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px;
  border-radius: 999px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px -18px rgba(60, 44, 30, .4);
}
.who { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 10px 4px 4px; border-radius: 999px; text-align: left; transition: background .5s var(--spring), color .3s; }
.who__av { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: var(--img-bg); }
.who__av svg, .who__av .pimg { width: 100%; height: 100%; }
.who__av .pimg { object-position: 50% 22%; }
.who__txt { display: grid; min-width: 0; line-height: 1.25; }
.who__txt b { font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.who__txt small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who:hover { background: var(--tint); }
.who.is-on { background: var(--ink); color: var(--on-ink); }
.who.is-on small { color: var(--champagne-2); }
.who.is-on .who__av { box-shadow: 0 0 0 1.5px var(--champagne-2); }

main { position: relative; padding: 0 var(--pad); outline: none; }
.view { transition: opacity .28s var(--spring), transform .28s var(--spring); }
.view.fade-out { opacity: 0; transform: translateY(6px) scale(.995); }
.view.enter > *, .reveal-up { animation: rise .8s var(--spring) both; }
.view > *:nth-child(2) { animation-delay: .06s; }
.view > *:nth-child(3) { animation-delay: .12s; }
.view > *:nth-child(4) { animation-delay: .18s; }
.view > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
.foot { padding: 32px var(--pad) 0; text-align: center; font-size: 11px; color: var(--faint); letter-spacing: .06em; }

/* ---------------------------- 底部 Tab ---------------------------- */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px; border-radius: 26px; background: var(--tab-bg); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 20px 40px -18px rgba(38, 34, 31, .6);
}
.tabbar button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 20px; font-size: 11px; color: rgba(251, 246, 239, .55); transition: color .3s, background .5s var(--spring); }
.tabbar .ico { width: 21px; height: 21px; }
.tabbar button.is-on { color: var(--on-ink); background: rgba(255, 255, 255, .09); }
.tabbar button.is-on .ico { color: var(--champagne-2); }
.badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal; font-weight: 600; display: grid; place-items: center; }

/* ---------------------------- 按钮 ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  white-space: nowrap; transition: transform .5s var(--spring), background .3s, box-shadow .3s, color .3s;
}
.btn .ico { width: 17px; height: 17px; }
.btn:active { transform: scale(.97); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 14px 28px -16px rgba(38, 34, 31, .7); }
.btn--ink:hover { background: var(--ink-hover); }
.btn--line { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost { color: var(--ink-2); }
.btn--ghost:hover { background: var(--tint); }
.btn--danger { color: var(--danger); }
.btn--danger-solid { background: var(--danger); color: #fff; }
.btn--light { background: var(--on-ink); color: var(--ink); }
.btn.is-pulse, .cta.is-pulse { animation: pulse 1.8s var(--spring) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(185, 141, 101, .22); } }
/* 按钮中的按钮：尾部图标独立圆形 */
.cta { display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 6px 0 24px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: transform .6s var(--spring); }
.cta i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .6s var(--spring); }
.cta:hover i { transform: translateX(3px) scale(1.05); }
.cta:active { transform: scale(.97); }
.cta--light { background: var(--on-ink); color: var(--ink); }
.cta--light i { background: var(--ink); color: var(--on-ink); }
.cta--ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 18px 36px -18px rgba(38, 34, 31, .8); }
.cta--ink i { background: rgba(255, 255, 255, .12); color: var(--champagne-2); }
.cta--block { width: 100%; justify-content: space-between; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); padding: 4px 0; }
.link .ico { width: 15px; height: 15px; transition: transform .5s var(--spring); }
.link:hover .ico { transform: translateX(2px); }
.link--muted { color: var(--muted); }

/* ---------------------------- 双层容器 Double-Bezel ---------------------------- */
.shell { padding: 6px; border-radius: var(--r-xl); background: rgba(38, 34, 31, .035); box-shadow: inset 0 0 0 1px var(--line); }
.core { border-radius: calc(var(--r-xl) - 6px); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(60, 44, 30, .05); }
.card { border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 20px; }

/* ---------------------------- 标签 ---------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--tint); white-space: nowrap; }
.chip .ico { width: 13px; height: 13px; }
.chip--ink { background: var(--ink); color: var(--on-ink); }
.chip--soft { background: var(--soft-2); }
.chip--pending { background: #FBF1E2; color: #7A5A35; }
.chip--btn { height: 34px; padding: 0 13px; font-size: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .4s var(--spring), color .3s, box-shadow .3s; }
.chip--btn span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip--btn.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chip--btn.is-on span { color: var(--champagne-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; background: rgba(255, 254, 252, .94); box-shadow: inset 0 0 0 1px currentColor; }
.tag .ico { width: 12px; height: 12px; stroke-width: 1.8; }
.tag--lg { height: 30px; font-size: 12.5px; padding: 0 12px 0 10px; }
.tag--ok { color: #5E6E5E; }
.tag--watch { color: var(--watch); }
.tag--soon, .tag--today { color: var(--warn); background: #FCF4E8; }
.tag--expired { color: #fff; background: var(--danger); box-shadow: none; }
.tag--unknown { color: #6D6660; box-shadow: inset 0 0 0 1px rgba(109, 102, 96, .5); background: rgba(255, 254, 252, .94); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; }
.pill .ico { width: 14px; height: 14px; }
.pill--glass { background: rgba(255, 252, 247, .2); color: #FFF9F1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }

/* ---------------------------- 首页 ---------------------------- */
.greet { padding: 28px 2px 22px; display: grid; gap: 8px; }
.hero { position: relative; overflow: hidden; aspect-ratio: 4 / 5; isolation: isolate; }
.hero__media { position: absolute; inset: 0; }
.hero__photo, .hero__media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; animation: drift 18s var(--spring) infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateY(-1.5%); } }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 24, 20, .12) 0%, rgba(30, 24, 20, 0) 26%, rgba(30, 24, 20, .32) 52%, rgba(26, 20, 16, .86) 100%); }
.hero__body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 20px; color: #FFF9F1; }
.hero__body > div { margin-top: auto; margin-bottom: 18px; display: grid; gap: 8px; }
.hero__label { font-size: 12.5px; color: rgba(255, 249, 241, .78); letter-spacing: .04em; }
.hero .look-name { font-size: 46px; }
.hero__meta { font-size: 13px; color: rgba(255, 249, 241, .72); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 0; padding: 4px 0; }
.stat { display: grid; gap: 6px; padding: 16px 4px 14px 14px; text-align: left; border-radius: var(--r); transition: background .4s var(--spring); }
.stat + .stat { box-shadow: -1px 0 0 var(--line); border-radius: 0; }
.stat:hover { background: var(--tint); }
.stat .num { font-size: 40px; }
.stat > span:last-child { font-size: 12px; color: var(--muted); }
.stat--warn .num { color: var(--warn); }
.stat--danger .num { color: var(--danger); }

.profile { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px; align-items: center; margin-top: 0; }
.shell + .shell, .stats + .shell { margin-top: 14px; }
.profile__av { position: relative; width: 76px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--img-bg); }
.profile__av svg, .profile__av .pimg { width: 100%; height: 100%; }
.profile__av .pimg { object-position: 50% 25%; }
.profile__main { display: grid; gap: 10px; min-width: 0; }
.profile__name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.profile__name .muted { font-size: 12.5px; }
.profile__note { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.profile__note .ico { width: 15px; height: 15px; color: var(--sage); margin-top: 2px; }

.block { margin-top: 40px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.list { border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; transition: background .3s; }
.list li + li .row { box-shadow: 0 -1px 0 var(--line); }
.row:hover { background: var(--soft); }
.row__img { position: relative; width: 48px; height: 60px; border-radius: 12px; overflow: hidden; background: var(--img-bg); }
.row__img svg, .row__img .pimg { width: 100%; height: 100%; }
.row__txt { display: grid; min-width: 0; }
.row__txt b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-s { display: flex; gap: 8px; align-items: center; color: var(--sage); padding: 16px 0; font-size: 14px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick__item { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--spring), box-shadow .4s; }
.quick__item:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.quick__ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); color: var(--champagne); margin-bottom: 10px; }
.quick__item b { font-weight: 600; font-size: 13.5px; }
.quick__item small { font-size: 11px; color: var(--muted); line-height: 1.45; }

/* ---------------------------- 页头 / 工具栏 ---------------------------- */
.page-head { display: grid; gap: 6px; padding: 28px 2px 20px; }
.page-head .btn { justify-self: start; margin-top: 10px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s; }
.search:focus-within { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 4px rgba(185, 141, 101, .14); }
.search .ico { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font-size: 14.5px; }
.select { display: flex; align-items: center; height: 46px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.select > span { display: none; }
.select select { border: 0; background: transparent; height: 100%; padding: 0 26px 0 0; font-size: 13.5px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A827A' stroke-width='1.5'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 2px center / 18px; }
.filters { display: grid; gap: 12px; margin-bottom: 14px; }
.seg, .filters .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.seg::-webkit-scrollbar, .filters .chips::-webkit-scrollbar { display: none; }
.seg { gap: 20px; box-shadow: inset 0 -1px 0 var(--line); }
.seg__btn { position: relative; padding: 10px 0; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .3s; }
.seg__btn sup { font-size: 10px; margin-left: 2px; color: var(--faint); }
.seg__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--ink); transform: scaleX(0); transition: transform .5s var(--spring); }
.seg__btn.is-on { color: var(--ink); font-weight: 500; }
.seg__btn.is-on::after { transform: scaleX(1); }
.result-count { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

/* ---------------------------- 商品卡 ---------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { position: relative; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: transform .7s var(--spring), box-shadow .5s; animation: rise .7s var(--spring) both; animation-delay: calc(var(--i) * 40ms); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.pcard:active { transform: scale(.985); }
.pcard__hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pcard__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--img-bg); }
.pcard__img svg, .pcard__img .pimg { width: 100%; height: 100%; }
.pcard__img .tag { position: absolute; left: 8px; top: 8px; }
.pcard__risk { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 4px; align-items: center; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: rgba(38, 34, 31, .78); color: #F6E7D2; }
.pcard__risk .ico { width: 11px; height: 11px; }
.pcard__body { padding: 12px 14px 14px; display: grid; gap: 2px; }
.pcard__body .kicker { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__name { font-weight: 500; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pcard__meta { font-size: 11.5px; color: var(--muted); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; box-shadow: 0 -1px 0 var(--line); }
.pcard__exp { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-expired .pcard__exp { color: var(--danger); }
.is-expired .pimg, .is-expired .pcard__img svg { filter: grayscale(.75) opacity(.72); }
.meter { width: 28px; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; flex: none; }
.meter i { display: block; height: 100%; background: var(--champagne); }
.pcard.is-new { box-shadow: 0 0 0 2px var(--champagne), var(--shadow-lg); }
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 56px 20px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-size: 14px; }
.empty .ico { width: 28px; height: 28px; color: var(--champagne); }
.empty h3 { color: var(--ink); font-size: 16px; font-weight: 600; }
.empty .btn { margin-top: 8px; }

/* ---------------------------- 详情 Sheet ---------------------------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(30, 24, 20, .42); opacity: 0; transition: opacity .4s var(--spring); }
.drawer__panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: 52px; display: flex; flex-direction: column; background: var(--canvas); border-radius: 30px 30px 0 0;
  box-shadow: 0 -24px 60px -30px rgba(30, 24, 20, .5); transform: translateY(100%); transition: transform .6s var(--spring);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__grip { position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 28px var(--pad) 32px; overscroll-behavior: contain; }
.dr__close { position: absolute; right: 14px; top: 16px; z-index: 3; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.dr__hero { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: end; margin: 4px 44px 20px 0; }
.dr__img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--img-bg); }
.dr__img svg, .dr__img .pimg { width: 100%; height: 100%; }
.dr__id { display: grid; gap: 8px; min-width: 0; }
.dr__name { font-size: 19px; font-weight: 600; line-height: 1.35; }
.dr__status { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.dr__left { font-size: 12.5px; color: var(--muted); }
.dr__left b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); margin-right: 2px; }
.dr__sec { padding: 22px 0; box-shadow: 0 -1px 0 var(--line); }
.dr__h { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.tl { display: grid; }
.tl li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 9px 0 9px 22px; font-size: 13.5px; }
.tl li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--champagne); }
.tl li::after { content: ""; position: absolute; left: 6.5px; top: 25px; bottom: -7px; width: 1px; background: var(--line-2); }
.tl li:last-child::after { display: none; }
.tl li span { color: var(--muted); }
.tl li b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.tl__end { margin-top: 6px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding-right: 14px !important; }
.tl__end::before { background: var(--champagne) !important; }
.tl__end--expired b { color: var(--danger); }
.tl__end--soon b, .tl__end--today b { color: var(--warn); }
.dr__reason { display: flex; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.dr__reason .ico { color: var(--champagne); margin-top: 2px; width: 16px; height: 16px; }
.dr__fit p { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); padding: 14px 16px; border-radius: var(--r); background: linear-gradient(135deg, #F6ECE8, #F7F1EA); }
.kn { display: grid; gap: 10px; }
.kn__item { padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.kn__item h4 { font-size: 12.5px; color: var(--champagne); font-weight: 500; margin-bottom: 8px; }
.kn__item p, .kn__item li { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.kn__item ul li { position: relative; padding-left: 12px; }
.kn__item ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--champagne-2); }
.steps-mini { display: grid; gap: 10px; }
.steps-mini li { display: grid; grid-template-columns: 28px 1fr; gap: 6px; }
.steps-mini span { font-family: var(--serif); font-style: italic; color: var(--champagne); font-size: 17px; line-height: 1.4; }
.kn + .fine { margin-top: 12px; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr__actions { position: sticky; bottom: -32px; display: flex; gap: 8px; padding: 16px 0 6px; margin-top: 4px; background: linear-gradient(180deg, rgba(247, 244, 239, 0), var(--canvas) 34%); }
.dr__actions .btn { flex: 1; padding: 0 12px; }
.banner { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: 13px; line-height: 1.65; }
.banner > .ico { margin-top: 2px; width: 17px; height: 17px; }
.banner b { display: block; font-weight: 600; }
.banner > div { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.banner--danger { background: #F5E5E2; color: #6E2E2B; }
.banner--warn { background: #FAF0E2; color: #6E4B22; }
.banner--note { background: var(--ok-bg); color: #3F4A3F; }
.banner .link { color: inherit; font-weight: 500; }
.alts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.alt { display: grid; gap: 4px; text-align: left; padding: 6px 6px 10px; border-radius: 14px; background: var(--surface); }
.alt span { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; }
.alt span svg, .alt span .pimg { width: 100%; height: 100%; }
.alt b { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 1.35; padding: 0 4px; }
.alt small { font-size: 11px; color: var(--muted); padding: 0 4px; }

/* ---------------------------- 表单 ---------------------------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(38, 34, 31, .05); margin-bottom: 18px; }
.tabs__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); transition: background .5s var(--spring), color .3s, box-shadow .4s; }
.tabs__btn .ico { width: 16px; height: 16px; }
.tabs__btn em { font-style: normal; font-size: 10.5px; color: var(--champagne); }
.tabs__btn.is-on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 6px 16px -10px rgba(60, 44, 30, .45); }
.card--form { padding: 20px; }
.form { display: grid; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
legend small { font-size: 12px; color: var(--muted); font-weight: 400; }
.form fieldset + fieldset { padding-top: 20px; box-shadow: 0 -1px 0 var(--line); }
.row2, .row3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > span { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.field > span small { color: var(--muted); font-size: 11.5px; }
.req { color: var(--danger); font-style: normal; }
.pending { font-size: 10.5px; padding: 1px 8px; border-radius: 999px; background: #FBF1E2; color: #7A5A35; }
.field input:not([type=checkbox]):not([type=radio]), .field select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px;
  transition: box-shadow .3s; appearance: none; -webkit-appearance: none; outline: none;
}
.field select { padding-right: 38px; background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A827A' stroke-width='1.5'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.field input:focus, .field select:focus { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 4px rgba(185, 141, 101, .14); background-color: var(--surface); }
.field input::placeholder { color: var(--faint); }
.field.is-err input, .field.is-err select { box-shadow: inset 0 0 0 1px var(--danger); background-color: #FDF6F5; }
.field.is-dim { opacity: .42; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.check { position: relative; }
.check input, .toggle2 input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check span { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; transition: background .4s var(--spring), color .3s; }
.check input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.check input:focus-visible + span, .toggle2 input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 2px; }
.toggle2 { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line-2); height: 48px; }
.toggle2 label { position: relative; }
.toggle2 span { display: grid; place-items: center; height: 100%; border-radius: 11px; font-size: 14px; color: var(--muted); transition: background .4s var(--spring), color .3s; }
.toggle2 input:checked + span { background: var(--ink); color: #fff; }
.preview { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--soft-2); font-size: 13px; line-height: 1.6; }
.preview small { color: var(--muted); }
.preview .ico { margin-top: 2px; color: var(--champagne); }
.preview--expired, .preview--err { background: #F5E5E2; color: #6E2E2B; }
.preview--expired .ico, .preview--err .ico { color: var(--danger); }
.form__errors { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #F5E5E2; color: #6E2E2B; font-size: 13px; }
.form__errors ul { list-style: disc; padding-left: 18px; margin-top: 4px; }
.form__actions { display: flex; gap: 10px; }
.form__actions .btn { flex: 1; }

/* 拍照识别 */
.scan-pick { display: grid; gap: 18px; margin-bottom: 18px; }
.scan-pick .h4 { margin-bottom: 10px; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sample { display: grid; text-align: left; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .6s var(--spring), box-shadow .4s; }
.sample:hover { transform: translateY(-3px); }
.sample.is-on { box-shadow: 0 0 0 2px var(--ink); }
.sample__img { position: relative; aspect-ratio: 4 / 5; background: var(--img-bg); }
.sample__img svg, .sample__img .pimg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sample__cap { padding: 8px 10px 10px; font-size: 12.5px; font-weight: 500; display: grid; }
.sample__cap small { font-size: 10px; letter-spacing: .06em; color: var(--muted); font-weight: 400; }
.drop { display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; min-height: 116px; padding: 20px; border-radius: var(--r); cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .3s, background .3s; font-size: 14px; }
.drop:hover, .drop.is-over, .drop:focus-within { box-shadow: inset 0 0 0 1.5px var(--champagne); }
.drop .ico { width: 26px; height: 26px; color: var(--champagne); }
.drop small { color: var(--muted); font-size: 12px; }
.scan { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin-bottom: 14px; }
.scan__img { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--img-bg); }
.scan__img svg, .scan__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan__line { position: absolute; left: 0; right: 0; top: 0; height: 32%; background: linear-gradient(180deg, transparent, rgba(233, 210, 180, .55) 88%, #fff); animation: scan 1.2s var(--spring) infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(320%); } }
.scan__stages { display: grid; gap: 12px; }
.scan__stages li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--faint); transition: color .4s; }
.scan__stages li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: all .4s var(--spring); }
.scan__stages li.is-on { color: var(--ink); }
.scan__stages li.is-on::before { background: var(--champagne); box-shadow: 0 0 0 4px rgba(185, 141, 101, .18); }
.scan__stages li.is-done { color: var(--ink-2); }
.scan__stages li.is-done::before { background: var(--ink-2); box-shadow: none; }
.scan__res { display: grid; gap: 10px; }
.scan__res .h3 { font-size: 15px; }
.scan__res .muted { font-size: 12.5px; line-height: 1.6; }
.scan--done { animation: rise .7s var(--spring) both; }

/* ---------------------------- 今日妆容 ---------------------------- */
.ritual { display: grid; gap: 16px; }
.ritual__panel { display: grid; gap: 18px; padding: 20px; }
.opt { display: grid; gap: 0; }
.opt legend { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.opt__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.opt__grid--scene { grid-template-columns: repeat(3, 1fr); }
.opt__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 8px 6px; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; transition: background .5s var(--spring), color .3s, transform .5s var(--spring); }
.opt__btn b { font-weight: 400; }
.opt__btn .ico { width: 16px; height: 16px; color: var(--champagne); }
.opt__btn:active { transform: scale(.96); }
.opt__btn.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.opt__btn.is-on .ico { color: var(--champagne-2); }
.opt-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.opt-row .opt__grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.opt-row .opt__btn { font-size: 13px; padding: 8px 2px; }
.ritual__panel .btn--block { height: 56px; }
.ritual__panel .fine { text-align: center; margin-top: -6px; }

.r-empty { display: grid; gap: 18px; padding: 6px 6px 22px; }
.r-empty__art { position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--r-xl) - 6px); overflow: hidden; }
.r-empty__art svg, .r-empty__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-empty__txt { display: grid; gap: 12px; padding: 0 14px; }
.how li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; box-shadow: 0 -1px 0 var(--line); font-size: 13.5px; color: var(--ink-2); }
.how span { font-family: var(--serif); font-style: italic; color: var(--champagne); font-size: 17px; }

.stages { min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 26px; padding: 32px 20px; }
.stages__ring { position: relative; width: 112px; height: 112px; }
.stages__ring > svg:first-child { position: absolute; inset: 0; transform: rotate(-90deg); }
.stages__ring circle { fill: none; stroke: var(--line-2); stroke-width: 2; }
.stages__ring .stages__prog { stroke: var(--champagne); stroke-dasharray: 340; stroke-dashoffset: 340; animation: ring 1s var(--spring) forwards; stroke-linecap: round; }
@keyframes ring { to { stroke-dashoffset: 0; } }
.stages__ring > .pimg, .stages__ring > svg:last-child { position: absolute; inset: 10px; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.stages__ring > .pimg + svg { display: none; }
.stages ol { display: grid; gap: 10px; }
.stages li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--faint); transition: color .4s; }
.stages li span { font-family: var(--serif); font-style: italic; font-size: 16px; }
.stages li.is-on { color: var(--ink); }
.stages li.is-on span { color: var(--champagne); }
.stages li.is-done { color: var(--ink-2); }

.ritual__out.reveal .look > * { animation: rise .8s var(--spring) both; }
.ritual__out.reveal .look > *:nth-child(2) { animation-delay: .1s; }
.ritual__out.reveal .look > *:nth-child(n+3) { animation-delay: .2s; }
.ritual__out.reveal .step { animation: rise .7s var(--spring) both; animation-delay: calc(.15s + var(--i) * 70ms); }
.look { display: grid; gap: 14px; }
.look__head { position: relative; display: grid; gap: 18px; padding: 26px 22px 22px; border-radius: var(--r-xl); background: var(--dark); color: var(--soft-2); overflow: hidden; isolation: isolate; }
.look__head::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(185, 141, 101, .38), transparent 68%); z-index: -1; }
.look__head::after { content: ""; position: absolute; left: -80px; bottom: -140px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 168, 164, .2), transparent 70%); z-index: -1; }
.look__hd-txt { display: grid; gap: 12px; }
.look__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -.015em; color: #FBF4EA; }
.look__intro { font-size: 13.5px; line-height: 1.85; color: rgba(243, 236, 227, .78); }
.look__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.look__meta li { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12px; color: var(--champagne-2); }
.look__meta .ico { width: 13px; height: 13px; }
.look__sum { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding-top: 16px; box-shadow: 0 -1px 0 rgba(255, 255, 255, .08); }
.look__sum .num { font-size: 52px; color: var(--champagne-2); grid-row: span 2; }
.look__sum small { font-size: 12px; color: rgba(243, 236, 227, .6); line-height: 1.5; }
.look__sum small br { display: none; }
.look__thumbs { display: flex; padding-left: 8px; }
.look__thumbs span { position: relative; width: 34px; height: 42px; border-radius: 9px; overflow: hidden; margin-left: -8px; box-shadow: 0 0 0 2px var(--dark); background: var(--soft-2); }
.look__thumbs svg, .look__thumbs .pimg { width: 100%; height: 100%; }

.steps { border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.step { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; padding: 18px 16px; }
.step + .step { box-shadow: 0 -1px 0 var(--line); }
.step.is-swapped { animation: flash 1.2s var(--spring); }
@keyframes flash { 0% { background: #FBF1E2; } 100% { background: transparent; } }
.step__no { display: none; }
.step__img { position: relative; grid-row: span 3; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); align-self: start; background: var(--img-bg); transition: transform .6s var(--spring); }
.step__img:hover { transform: scale(1.03); }
.step__img svg, .step__img .pimg { width: 100%; height: 100%; }
.step__main { display: contents; }
.step__main > * { grid-column: 2; }
.step__main .kicker { color: var(--champagne); font-weight: 500; }
.step__name { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.step__brand { font-size: 12px; color: var(--muted); }
.step__main > .reasons, .step__main > .step__how { grid-column: 1 / -1; }
.reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.reasons li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 7px; border-radius: 999px; background: var(--ok-bg); color: #4E5B4E; font-size: 11.5px; line-height: 1.4; }
.reasons .ico { width: 11px; height: 11px; stroke-width: 2; }
.step__how { font-size: 13px; line-height: 1.75; color: var(--ink-2); padding: 10px 12px; margin-top: 8px; border-radius: 12px; background: var(--soft); }
.step__how b { font-weight: 600; font-size: 11.5px; color: var(--champagne); margin-right: 8px; }
.step__side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.score { display: flex; align-items: baseline; gap: 5px; }
.score b { font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1; }
.score small { font-size: 11px; color: var(--muted); }
.step .btn span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.step__side > small { font-size: 12px; }
.step--miss { grid-template-columns: 1fr; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(185, 141, 101, .045) 10px 11px); }
.step--miss .step__main { display: grid; gap: 4px; }
.step--miss .step__main > * { grid-column: 1; }
.step--miss .muted { font-size: 12.5px; line-height: 1.6; }

.look__grid { display: grid; gap: 14px; }
.panel { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.why div { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 11px 0; box-shadow: 0 -1px 0 var(--line); font-size: 13px; line-height: 1.65; }
.why dt { font-size: 12px; color: var(--champagne); font-weight: 500; }
.why dd { color: var(--ink-2); }
.panel--tips { background: var(--ok-bg); box-shadow: none; }
.tips { display: grid; gap: 14px; }
.tips li { display: grid; grid-template-columns: 30px 1fr; gap: 6px; font-size: 13.5px; line-height: 1.7; }
.tips li > span { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--sage); line-height: 1.2; }
.tips small { display: block; font-size: 11.5px; color: #6B786B; font-weight: 500; }
.avoid { display: grid; gap: 8px; }
.avoid button { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 8px 10px 8px 8px; border-radius: 16px; background: var(--canvas); transition: background .3s; }
.avoid button:hover { background: var(--soft-2); }
.avoid__img { position: relative; width: 42px; height: 52px; border-radius: 10px; overflow: hidden; }
.avoid__img svg, .avoid__img .pimg { width: 100%; height: 100%; }
.avoid--expired .pimg, .avoid--expired .avoid__img svg { filter: grayscale(.85); }
.avoid b { display: block; font-weight: 500; font-size: 13px; }
.avoid small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.panel--supp { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.supp li { font-size: 13px; color: var(--ink-2); display: flex; gap: 12px; }
.supp b { font-weight: 500; color: var(--champagne); min-width: 40px; }
.basis { border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.basis summary { display: flex; align-items: center; gap: 8px; padding: 18px 20px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600; }
.basis summary::-webkit-details-marker { display: none; }
.basis summary .ico:first-child { color: var(--champagne); }
.basis__chev { margin-left: auto; transition: transform .5s var(--spring); }
.basis[open] .basis__chev { transform: rotate(90deg); }
.basis dl { padding: 0 20px 16px; }
.basis dl div { display: grid; gap: 2px; padding: 10px 0; box-shadow: 0 -1px 0 var(--line); font-size: 12.5px; line-height: 1.7; }
.basis dt { color: var(--muted); }
.compare { display: grid; gap: 14px; padding: 22px 20px; border-radius: var(--r-xl); background: linear-gradient(135deg, #F1E7DC, #F5EFE9 55%, #ECEFE8); }
.compare > div:first-child { display: grid; gap: 4px; }
.compare .muted { font-size: 12.5px; }
.compare__btns { display: grid; gap: 8px; }
.who--card { background: var(--surface); padding: 6px 14px 6px 6px; gap: 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.who--card .who__av { width: 40px; height: 40px; }
.who--card .who__txt { flex: 1; }
.who--card .who__txt small { font-size: 11.5px; }
.who--card .ico { color: var(--champagne); transition: transform .5s var(--spring); }
.who--card:hover .ico { transform: translateX(3px); }

/* ---------------------------- Modal / Toast ---------------------------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; padding: 12px; background: rgba(30, 24, 20, .42); opacity: 0; transition: opacity .3s var(--spring); }
.modal.is-open { opacity: 1; }
.modal__box { width: 100%; max-width: 420px; padding: 26px 22px 18px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg); display: grid; gap: 10px; transform: translateY(24px); transition: transform .5s var(--spring); }
.modal.is-open .modal__box { transform: none; }
.modal__box p { color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.toasts { position: fixed; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; gap: 8px; align-items: center; max-width: 100%; padding: 11px 18px; border-radius: 999px; background: rgba(38, 34, 31, .94); color: var(--on-ink); font-size: 13px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .4s var(--spring), transform .5s var(--spring); }
.toast.is-in { opacity: 1; transform: none; }
.toast .ico { color: var(--champagne-2); width: 15px; height: 15px; }
.toast--warn .ico { color: #F1B7A9; }
.noscript { padding: 48px; text-align: center; }

/* 商品 / 头像照片：统一裁切，失败回退 SVG */
.pimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; background: var(--img-bg); transition: transform 1s var(--spring), filter .4s; }
.pimg + svg { display: none !important; }
.pimg.is-broken { display: none; }
.pimg.is-broken + svg { display: block !important; }
.pcard:hover .pimg { transform: scale(1.05); }

/* ---------------------------- 桌面：设备框 + 讲解栏 ---------------------------- */
@media (min-width: 1024px) {
  body { height: 100dvh; overflow: hidden; background: var(--desk-bg); }
  .desk { height: 100dvh; display: grid; grid-template-columns: minmax(0, 560px) auto; justify-content: center; align-items: center; gap: clamp(56px, 8vw, 140px); max-width: 1320px; margin: 0 auto; padding: 24px clamp(32px, 5vw, 72px); }
  .intro { display: flex; flex-direction: column; gap: 44px; height: min(860px, calc(100dvh - 48px)); padding: 8px 0; }
  .intro__brand { display: flex; align-items: center; gap: 12px; }
  .intro__brand .wordmark { font-size: 28px; }
  .intro__copy { display: grid; gap: 18px; margin-top: auto; }
  .intro__tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--champagne); }
  .intro__title { font-size: clamp(30px, 2.9vw, 42px); font-weight: 600; line-height: 1.32; letter-spacing: .01em; }
  .intro__lede { font-size: 15px; line-height: 1.85; color: var(--ink-2); max-width: 30em; }
  .intro__flow { display: grid; max-width: 34em; }
  .intro__flow li { display: grid; grid-template-columns: 44px 96px 1fr; align-items: baseline; padding: 14px 0; box-shadow: 0 -1px 0 var(--line); font-size: 13.5px; color: var(--muted); }
  .intro__flow span { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--champagne); }
  .intro__flow b { font-weight: 600; color: var(--ink); font-size: 14px; }
  .intro__foot { display: grid; gap: 8px; justify-items: start; margin-top: auto; font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 32em; }
  .intro__foot .warn { color: var(--danger); }
  /* 设备：双层外框；transform 使内部 fixed 元素相对设备定位 */
  .device {
    width: 404px; height: min(860px, calc(100dvh - 48px)); min-height: 0; padding: 10px; border-radius: 56px; transform: translateZ(0);
    background: var(--frame); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 50px 100px -40px rgba(50, 36, 24, .55), 0 18px 40px -20px rgba(50, 36, 24, .35);
  }
  .device::before { content: ""; position: absolute; inset: 10px; border-radius: 46px; background: var(--canvas); }
  .screen { position: relative; height: 100%; overflow-y: auto; overflow-x: hidden; border-radius: 46px; scrollbar-width: none; overscroll-behavior: contain; padding-bottom: 108px; }
  .screen::-webkit-scrollbar { display: none; }
  .topbar { padding-top: 22px; }
  .topbar__reset { display: none; }
  .tabbar { left: 22px; right: 22px; bottom: 22px; }
  .toasts { bottom: 104px; }
  .drawer, .modal { inset: 10px; border-radius: 46px; overflow: hidden; }
  .drawer__panel { top: 44px; }
  .modal { padding: 14px; }
}
@media (min-width: 1024px) and (max-height: 760px) { .intro__flow { display: none; } }
@media (max-width: 360px) { :root { --pad: 16px; } .title--xl { font-size: 26px; } .hero .look-name { font-size: 40px; } .quick { grid-template-columns: 1fr 1fr; } .who__txt small { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.page-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.page-head > div { display: grid; gap: 6px; }
.lede { font-size: 13px; color: var(--muted); line-height: 1.6; }
.fab { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--champagne-2); box-shadow: 0 16px 30px -16px rgba(38, 34, 31, .8); transition: transform .6s var(--spring); }
.fab .ico { width: 22px; height: 22px; }
.fab:hover { transform: rotate(90deg); }
.fab:active { transform: scale(.94); }
.page-head .muted { font-size: 13px; }

/* 多版本构建时注入的版本标记（单独打开 index.html 时不存在） */
.ver { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--tint); text-decoration: none; }
.ver--top { margin-left: auto; margin-right: 8px; }
@media (min-width: 1024px) { .ver--top { display: none; } }
