/* 美呀美 · 多端预览页(独立页面,沿用「暗室展厅」令牌) */
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
:root {
  --bg: #151211; --s1: #1c1917; --s2: #272320; --line: #3a3531; --text: #f1ede8; --text-2: #b3aca4; --text-3: #8d867e;
  --accent: #ff5a00; --accent-hi: #ff7a2e; --ink: #1d0d03;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --ease: cubic-bezier(.25, 1, .5, 1);
  --top: 3.5rem; --bar: 7rem;
}
@supports (color: oklch(0 0 0)) {
  :root { --bg: oklch(14% .008 50); --s1: oklch(18% .010 50); --s2: oklch(23% .012 50); --line: oklch(30% .012 50); --text: oklch(94% .008 70); --text-2: oklch(76% .010 60); --text-3: oklch(64% .010 60); --accent: oklch(66% .21 41); --accent-hi: oklch(72% .19 45); }
}
/* 与主站一致地声明页面过渡,否则跨页跳转时 Chrome 会报 ViewTransition 状态错误 */
@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
.pv-body { margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 400 1rem/1.6 "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 50% 38%, rgba(255, 122, 46, .07), transparent 55%), radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px); background-size: 100% 100%, 22px 22px; }
.pv-body svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pv-body a { color: inherit; text-decoration: none; }
.pv-body button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.pv-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

/* 顶栏 */
.pv-top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 20; display: flex; align-items: center; gap: 1rem; padding: 0 clamp(.75rem, 2.4vw, 1.75rem); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); }
.pv-back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; letter-spacing: .06em; padding: .4rem .7rem .4rem .35rem; border-radius: 999px; transition: background-color .3s var(--ease); }
.pv-back:hover { background: var(--s2); }
.pv-back svg { width: 1.1rem; height: 1.1rem; }
.pv-title { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: .75rem; text-align: center; }
.pv-title strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-title span { font-family: "Instrument Serif", serif; font-style: italic; color: var(--text-3); white-space: nowrap; }
.pv-open { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.25rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; color: var(--text-2); transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease); white-space: nowrap; }
.pv-open:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.pv-open svg { width: .95rem; height: .95rem; }

/* 舞台 */
.pv-stage { position: fixed; inset: var(--top) 0 var(--bar) 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem 1.5rem .5rem; }
.pv-slot { position: relative; flex: none; transition: width .55s var(--ease-out), height .55s var(--ease-out); }
.pv-device { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform .55s var(--ease-out); }
.pv-frame { position: relative; background: #0d0b0a; border: 1px solid var(--line); box-shadow: 0 2.5rem 5rem -1.5rem rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset; overflow: hidden; transition: border-radius .5s var(--ease-out); }
.pv-screen { position: relative; overflow: hidden; background: #fff; }
.pv-screen iframe { display: block; border: 0; background: #fff; width: 100%; height: 100%; opacity: 0; transition: opacity .5s var(--ease); }
.pv-screen.is-ready iframe { opacity: 1; }
/* 电脑:浏览器外框 */
.pv-chrome { display: flex; align-items: center; gap: .4rem; height: 34px; padding: 0 14px; background: var(--s2); border-bottom: 1px solid var(--line); }
.pv-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pv-chrome span { flex: 1; margin-left: 10px; height: 20px; line-height: 20px; padding: 0 12px; border-radius: 999px; background: var(--s1); color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-dev="desktop"] .pv-frame { border-radius: 12px; }
/* 平板 / 手机:金属边框 */
[data-dev]:not([data-dev="desktop"]) .pv-chrome { display: none; }
[data-dev^="tablet"] .pv-frame { padding: 16px; border-radius: 30px; background: linear-gradient(145deg, #2a2522, #121010); border-color: #4a433e; }
[data-dev^="phone"] .pv-frame { padding: 13px; border-radius: 46px; background: linear-gradient(145deg, #2a2522, #121010); border-color: #4a433e; }
[data-dev^="tablet"] .pv-screen { border-radius: 16px; }
[data-dev^="phone"] .pv-screen { border-radius: 34px; }
.pv-notch { display: none; position: absolute; z-index: 3; background: #0d0b0a; }
[data-dev="phoneP"] .pv-notch { display: block; top: 13px; left: 50%; width: 112px; height: 28px; margin-left: -56px; border-radius: 0 0 18px 18px; }
[data-dev="phoneL"] .pv-notch { display: block; left: 13px; top: 50%; width: 28px; height: 112px; margin-top: -56px; border-radius: 0 18px 18px 0; }
.pv-skel { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(120deg, #1b1816 30%, #26211e 50%, #1b1816 70%); background-size: 240% 100%; animation: pv-sh 1.4s linear infinite; transition: opacity .4s var(--ease), visibility 0s .4s; }
.pv-skel span { width: 2.25rem; height: 2.25rem; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: pv-spin .8s linear infinite; }
.pv-screen.is-ready .pv-skel { opacity: 0; visibility: hidden; }
@keyframes pv-sh { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes pv-spin { to { transform: rotate(360deg); } }
.pv-cap { min-height: 1.4rem; margin: .9rem 0 0; font-size: .8125rem; letter-spacing: .06em; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: center; }
.pv-cap b { color: var(--text-2); font-weight: 600; }
.pv-fallback { position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; justify-items: center; gap: .9rem; padding: 2rem; text-align: center; background: color-mix(in srgb, var(--bg) 92%, transparent); }
.pv-fallback h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.pv-fallback p { margin: 0; max-width: 34rem; color: var(--text-2); }
.pv-fb-act { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: .5rem; }

/* 按钮 */
.pv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 1.25rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--text); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.pv-btn:hover { border-color: var(--text-2); }
.pv-btn:active { transform: translateY(1px); }
.pv-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.pv-btn--accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

/* 底部悬浮条 */
.pv-bar { position: fixed; left: 50%; bottom: max(1.35rem, env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); display: flex; align-items: center; gap: .35rem; padding: .5rem; border-radius: 1.5rem;
  background: rgba(28, 25, 23, .72); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 1.5rem 3.5rem -.75rem rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .07);
  animation: pv-rise .9s var(--ease-out) .15s both; }
@keyframes pv-rise { from { opacity: 0; transform: translate(-50%, 1.25rem); } to { opacity: 1; transform: translate(-50%, 0); } }
.pv-devs { position: relative; display: flex; gap: .15rem; }
.pv-devs button, .pv-qrbtn { position: relative; display: grid; place-items: center; width: 3.35rem; height: 3rem; border-radius: .95rem; color: var(--text-3); transition: color .3s var(--ease), background-color .3s var(--ease); }
.pv-devs button:hover, .pv-qrbtn:hover { color: var(--text); }
.pv-devs button[aria-checked="true"] { color: var(--accent); }
.pv-devs button svg { width: 1.6rem; height: 1.6rem; transition: transform .4s var(--ease-out); }
.pv-devs button:hover svg { transform: translateY(-2px); }
.pv-ind { position: absolute; left: 0; top: 0; width: 3.35rem; height: 3rem; border-radius: .95rem; background: rgba(255, 122, 46, .13); box-shadow: inset 0 0 0 1px rgba(255, 122, 46, .42), 0 0 1.5rem -.25rem rgba(255, 90, 0, .45); transition: transform .5s var(--ease-out); pointer-events: none; }
.pv-ind::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: var(--accent); }
.pv-sep { width: 1px; height: 1.75rem; margin: 0 .3rem; background: rgba(255, 255, 255, .12); }
.pv-qrbtn { width: auto; min-width: 4.4rem; grid-auto-flow: column; gap: .15rem; padding: 0 .65rem; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pv-qrbtn:hover { background: rgba(255, 255, 255, .09); }
.pv-qrbtn[aria-expanded="true"] { color: var(--accent); background: rgba(255, 122, 46, .13); box-shadow: inset 0 0 0 1px rgba(255, 122, 46, .42); }
.pv-qrbtn .pv-caret { width: 1rem; height: 1rem; transition: transform .4s var(--ease-out); }
.pv-qrbtn[aria-expanded="true"] .pv-caret { transform: rotate(180deg); }
/* 悬停提示 */
.pv-tip { position: absolute; left: 50%; bottom: calc(100% + .75rem); transform: translate(-50%, 6px); display: grid; gap: 0; padding: .45rem .8rem; border-radius: .7rem; background: var(--s2); border: 1px solid var(--line); text-align: center; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s var(--ease), transform .4s var(--ease-out), visibility 0s .25s; box-shadow: 0 .75rem 1.5rem -.5rem rgba(0, 0, 0, .6); }
.pv-tip b { font-size: .8125rem; font-weight: 700; color: var(--text); }
.pv-tip em { font-style: normal; font-size: .6875rem; letter-spacing: .08em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pv-devs button:hover .pv-tip, .pv-devs button:focus-visible .pv-tip, .pv-qrbtn:hover .pv-tip, .pv-qrbtn:focus-visible .pv-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.pv-qrbtn[aria-expanded="true"] .pv-tip { opacity: 0; visibility: hidden; }
/* 二维码弹层 */
.pv-qr { position: absolute; right: 0; bottom: calc(100% + .9rem); width: 15.5rem; padding: 1rem; border-radius: 1.25rem; text-align: center; background: var(--s1); border: 1px solid var(--line); box-shadow: 0 2rem 4rem -1rem rgba(0, 0, 0, .75); transform-origin: right bottom; animation: pv-pop .5s var(--ease-out) both; }
@keyframes pv-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.pv-qr::after { content: ""; position: absolute; right: 2.1rem; bottom: -6px; width: 12px; height: 12px; background: var(--s1); border: solid var(--line); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.pv-qr__code { display: grid; place-items: center; padding: .65rem; border-radius: .9rem; background: #fff; }
.pv-qr__code svg { width: 100%; height: auto; stroke: none; fill: #1d1916; display: block; }
.pv-qr__h { margin: .85rem 0 0; font-weight: 700; }
.pv-qr__p { margin: .2rem 0 .85rem; font-size: .8125rem; line-height: 1.5; color: var(--text-3); }
.pv-qr .pv-btn { width: 100%; min-height: 2.25rem; font-size: .875rem; }
.pv-noscript { position: fixed; inset: 40% 0 auto; text-align: center; color: var(--text-2); }

/* 窄屏 */
@media (max-width: 760px) {
  :root { --top: 3.25rem; --bar: 6.25rem; }
  .pv-title span { display: none; }
  .pv-back span { display: none; }
  .pv-open { padding: 0 .75rem; font-size: 0; gap: 0; }
  .pv-open svg { width: 1.1rem; height: 1.1rem; }
  .pv-stage { padding: .75rem .5rem .25rem; }
  .pv-devs button[data-dev$="L"] { display: none; }
  .pv-devs button, .pv-ind { width: 3rem; }
  .pv-bar { gap: .2rem; padding: .4rem; border-radius: 1.25rem; }
  .pv-qr { right: -.25rem; width: 14rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
