/* Fuji Studio 宣传网站 */

/* ---------- 字体 ---------- */
@font-face { font-family: "Albert Sans"; font-weight: 400; font-display: swap; src: url("../fonts/albert-sans/files/albert-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 500; font-display: swap; src: url("../fonts/albert-sans/files/albert-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 600; font-display: swap; src: url("../fonts/albert-sans/files/albert-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-weight: 700; font-display: swap; src: url("../fonts/albert-sans/files/albert-sans-latin-700-normal.woff2") format("woff2"); }
/* 只给切换按钮上的「中」用，一个 41KB 的切片；其余中文字体切到中文才下载（见 index.html 的 head）。 */
@font-face { font-family: "Noto Sans SC"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-sc/files/noto-sans-sc-119-600-normal.woff2") format("woff2"); unicode-range: U+4e2d; }

:root {
  --page: #F8F5F0; --band: #F1ECE4; --card: #FFFDFA; --ink: #211C19; --body: #4A423C; --aux: #6B6159;
  --line: #E3DBD0; --accent: #B93E16; --accent-bg: #FBE7DD; --glow: #E85D30; --sk: #EAE3D9;
  --ok: #1F7A4A; --ok-bg: #E3F2E9; --err: #B3261E; --err-bg: #FBE4E1;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sh1: 0 1px 2px rgba(92, 58, 28, .05), 0 24px 44px -30px rgba(92, 58, 28, .3);
  --sh2: 0 2px 4px rgba(92, 58, 28, .06), 0 34px 60px -30px rgba(92, 58, 28, .4);
  --head: 73px;
  --font-en: "Albert Sans", "Noto Sans SC", sans-serif;
  --font-zh: "Noto Sans SC", sans-serif;
  --track: -.035em; --lh1: 1.03; --lh2: 1.1;
}
html[data-lang="zh"] { --track: -.01em; --lh1: 1.2; --lh2: 1.28; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 8px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--page);
  background-image: radial-gradient(circle, rgba(33, 28, 25, .075) 1px, transparent 1.4px); background-size: 24px 24px;
  color: var(--body); font: 400 18px/1.6 var(--font-en); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
html[data-lang="zh"] body { font-family: var(--font-zh); line-height: 1.7; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); -webkit-tap-highlight-color: transparent; }
a:hover { color: #8F2E0F; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- 双语 ---------- */
.zh, .zh-block { display: none; }
html[data-lang="zh"] .zh { display: inline; }
html[data-lang="zh"] .zh-block { display: block; }
html[data-lang="zh"] .en { display: none; }
.seg { display: inline-block; }

.wrap { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: 24px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 90; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--card); }
.skip:focus { top: 12px; color: var(--card); }

h1, h2, h3 { color: var(--ink); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 88px); line-height: var(--lh1); letter-spacing: var(--track); }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: var(--lh2); letter-spacing: var(--track); }
h2.big { font-size: clamp(34px, 4.6vw, 64px); }
.tag { display: flex; gap: 12px; margin-bottom: 14px; color: var(--accent); font-size: 16px; font-weight: 600; }
.num, .n { font-variant-numeric: tabular-nums; }
.sub { max-width: 40em; margin-top: 22px; font-size: 20px; text-wrap: pretty; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 8px 30px; border-radius: 999px; border: 1px solid transparent;
  font-size: 18px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn-sm { min-height: 46px; padding: 6px 22px; font-size: 16px; }
.btn-ink, .btn-ink:hover { background: var(--ink); color: var(--card); }
.btn-ink { box-shadow: 0 12px 24px -14px rgba(74, 46, 20, .5); }
.btn-paper, .btn-paper:hover { background: var(--card); color: var(--ink); }
.btn-paper { border-color: var(--line); box-shadow: 0 8px 18px -14px rgba(92, 58, 28, .35); }
.btn-block { width: 100%; }
.btn-copy { display: none; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; pointer-events: none; opacity: 0; }
.ico { position: relative; width: 20px; height: 20px; }
.ico svg { position: absolute; inset: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ico .i-ok, .done .ico .i-copy { opacity: 0; transform: scale(.4) rotate(-30deg); }
.done .ico .i-ok { opacity: 1; transform: none; }

/* ---------- 导航 ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(248, 245, 240, .92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.3) blur(10px); backdrop-filter: saturate(1.3) blur(10px); }
.bar { display: flex; align-items: center; gap: 16px; max-width: 1248px; min-height: 72px; margin: 0 auto; padding: 8px 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.links { display: flex; align-items: center; gap: 8px; }
.links .btn { margin-left: 8px; }
.navlink { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--body); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform .22s var(--ease), color .22s var(--ease); }
.navlink:hover { color: var(--ink); }
.chev { transition: transform .22s var(--ease); }
.dd { position: relative; }
.dd-panel {
  position: absolute; left: -12px; top: calc(100% + 10px); width: max-content; min-width: 300px; padding: 8px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--sh2);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd-panel a { display: flex; flex-direction: column; min-height: 60px; justify-content: center; padding: 8px 16px; border-radius: 12px; color: var(--ink); text-decoration: none; line-height: 1.45; transition: background-color .22s var(--ease); }
.dd-panel a:hover { background: var(--accent-bg); color: var(--ink); }
.dd-panel b { font-size: 16px; font-weight: 600; }
.dd-line { color: var(--aux); font-size: 15px; }
.dd.open .dd-panel, html:not(.on-menu) .dd:hover .dd-panel, html:not(.on-menu) .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd.open .chev { transform: rotate(180deg); }

.lang { display: none; flex: none; width: 112px; height: 46px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: 0 6px 14px -10px rgba(92, 58, 28, .4); }
html.js .lang { display: flex; }
.lang button { flex: 0 0 53px; height: 40px; border-radius: 999px; background: var(--card); color: var(--aux); font: 600 16px/40px "Albert Sans", "Noto Sans SC", sans-serif; text-align: center; transition: background-color .22s var(--ease), color .22s var(--ease); }
html[data-lang="en"] .lang [data-set-lang="en"], html[data-lang="zh"] .lang [data-set-lang="zh"] { background: var(--accent); color: var(--card); }

.burger { display: none; position: relative; width: 48px; height: 48px; flex: none; }
.burger span { position: absolute; left: 13px; top: 23px; width: 22px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.readbar { display: none; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; }
.readbar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(241, 236, 228, .78); opacity: 0; transition: opacity .35s var(--ease); }
.scrim.in { opacity: 1; }
.drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; max-height: calc(100vh - 76px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; border-top: 1px solid var(--line); background: var(--card);
  box-shadow: 0 -24px 60px -24px rgba(92, 58, 28, .4); transform: translateY(102%); transition: transform .5s var(--ease);
}
.drawer.in { transform: none; }
.drawer a { display: flex; flex-direction: column; justify-content: center; min-height: 66px; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.4; }
.drawer a.plain { min-height: 56px; }
.drawer a:last-child { border-bottom: 0; }
.drawer b { font-size: 18px; font-weight: 600; }
.drawer small { color: var(--aux); font-size: 16px; }

/* ---------- 开场 ---------- */
.hero { position: relative; padding-top: clamp(44px, 8vh, 88px); }
.glow { position: absolute; left: 50%; top: -190px; width: 1080px; height: 680px; margin-left: -540px; background: radial-gradient(closest-side, rgba(232, 93, 48, .14), rgba(232, 93, 48, 0)); pointer-events: none; }
.hero { overflow-x: clip; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lead { max-width: 34em; margin-top: 26px; font-size: 20px; text-wrap: pretty; }
.acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.fine { max-width: 60em; margin-top: 20px; color: var(--aux); font-size: 15px; text-wrap: balance; }
.fine .seg { white-space: pre-wrap; }
.stagebox { width: 100%; max-width: 944px; margin-top: clamp(36px, 5vh, 52px); perspective: 1400px; }
.shot { display: block; width: 100%; border-radius: 12px; cursor: zoom-in; transform-style: preserve-3d; }
.print { display: block; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 2px 4px rgba(92, 58, 28, .05), 0 44px 80px -36px rgba(92, 58, 28, .4); }
.crop { position: relative; display: block; overflow: hidden; aspect-ratio: 1302 / 690; border-radius: 6px; }
.crop img { display: block; width: 100%; height: 100%; }
.shotnote { margin-top: 16px; color: var(--aux); font-size: 15px; }

/* ---------- 骨架 ---------- */
.sk { background-color: var(--sk); }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 253, 250, .65) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 1.5s linear infinite; pointer-events: none; }
.sk.wait { background-color: transparent; }
.sk.wait::after { background-color: rgba(234, 227, 217, .5); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- 引子 ---------- */
.intro { padding-top: clamp(96px, 16vh, 152px); }
.intro h2 { max-width: 18em; }
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.flip { display: block; width: 100%; height: 100%; text-align: left; border-radius: 18px; perspective: 1200px; }
.tilt, .inner { display: grid; height: 100%; }
.inner { gap: 12px; }
.face { display: flex; flex-direction: column; justify-content: space-between; gap: 44px; min-height: 300px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh1); }
.front { background: var(--card); color: var(--ink); }
.front svg { color: var(--aux); }
.back { background: var(--accent-bg); border-color: #F3D3C3; color: var(--ink); }
.back svg { color: var(--accent); }
.txt { font-size: 25px; line-height: 1.36; font-weight: 600; letter-spacing: -.012em; text-wrap: pretty; }
html[data-lang="zh"] .txt { line-height: 1.5; letter-spacing: 0; }
.flip.on .tilt, .flip.on .inner { transform-style: preserve-3d; }
.flip.on .inner { gap: 0; transition: transform .5s var(--ease); }
.flip.on .face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: box-shadow .22s var(--ease); }
.flip.on .back { transform: rotateY(180deg); }
.flip.on.turned .inner { transform: rotateY(180deg); }

/* ---------- 总答 ---------- */
.overview { margin-top: clamp(96px, 16vh, 152px); padding-block: clamp(80px, 14vh, 136px); background-color: var(--band); background-image: radial-gradient(circle, rgba(33, 28, 25, .06) 1px, transparent 1.4px); background-size: 24px 24px; }
.toc { margin-top: 56px; border-top: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.6fr) 28px; align-items: center; gap: 24px; min-height: 100px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.toc .n { color: var(--aux); font-weight: 500; }
.toc b { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; transition: transform .22s var(--ease), color .22s var(--ease); }
.toc .line { color: var(--body); font-size: 20px; }
.toc svg { color: var(--accent); transition: transform .22s var(--ease); }
.bridge { margin-top: 72px; text-align: center; color: var(--ink); font-size: 28px; line-height: 1.4; font-weight: 600; text-wrap: balance; }
.bridge-end { max-width: 25em; margin: clamp(88px, 14vh, 136px) auto 0; padding-bottom: clamp(88px, 14vh, 136px); }

/* ---------- 01 ---------- */
.chapter { padding-top: clamp(96px, 16vh, 152px); }
.demo { margin: 48px 0 0; padding: 14px 14px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 2px 4px rgba(92, 58, 28, .05), 0 48px 90px -44px rgba(92, 58, 28, .4); }
.photo { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; max-height: max(420px, calc(100vh - 264px)); border-radius: 10px; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: pan-y pinch-zoom; cursor: default; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; pointer-events: none; -webkit-user-drag: none; }
.photo .orig { z-index: 9000; opacity: 0; transition: opacity .2s var(--ease); }
.photo.holding .orig { opacity: 1; }
.photo.sk::after { z-index: 9001; }
.now, .badge { position: absolute; top: 14px; z-index: 9002; padding: 5px 14px; border-radius: 999px; background: rgba(255, 253, 250, .94); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
.now { left: 14px; }
.badge { right: 14px; color: var(--aux); font-weight: 500; }
.now-orig, .holding .now-film { display: none; }
.holding .now-orig { display: inline; }
.holding .now { background: var(--accent); color: var(--card); }
.films { position: relative; display: flex; justify-content: center; gap: 2px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.films::-webkit-scrollbar { display: none; }
.films button { position: relative; z-index: 1; overflow: hidden; flex: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 clamp(10px, 1.25vw, 17px); border-radius: 999px; color: var(--body); font-size: 16px; font-weight: 600; white-space: nowrap; transition: color .22s var(--ease), transform .22s var(--ease); }
.films em { padding: 1px 9px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); font-size: 14px; font-style: normal; font-weight: 500; line-height: 1.5; }
.films button:focus-visible { outline-offset: -3px; }
.films [aria-selected="true"] { color: var(--accent); background: var(--accent-bg); }
.films.on [aria-selected="true"] { color: var(--card); background: none; }
.films.on [aria-selected="true"]:focus-visible { outline-color: var(--card); outline-offset: -5px; }
.films [aria-selected="true"] em { background: var(--card); }
.pill { display: none; position: absolute; left: 0; top: 3px; height: 46px; border-radius: 999px; background: var(--accent); transform-origin: 0 50%; }
.films.on .pill { display: block; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-top: 14px; padding: 16px 6px 0; border-top: 1px solid var(--line); }
.hold { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hold[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.demo-note { flex: 1 1 320px; color: var(--aux); font-size: 15px; text-align: right; text-wrap: balance; }
.nofilms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.nofilms img { display: block; border-radius: 8px; }
.nofilms figcaption { font-size: 15px; color: var(--aux); }

.extras { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.small-cards { display: grid; gap: 24px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--sh1); }
.card > svg { color: var(--accent); }
.card h3 { font-size: 22px; line-height: 1.35; letter-spacing: -.01em; }
.card > svg + h3 { margin-top: 14px; }
.card p { margin-top: 10px; font-size: 17px; text-wrap: pretty; }
.card-big { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; padding: 36px 36px 0; overflow: hidden; }
.card-big .card-txt { padding-bottom: 36px; }
.card-big h3 { font-size: 30px; line-height: 1.25; letter-spacing: -.02em; }
html[data-lang="zh"] .card h3 { letter-spacing: 0; }
.card-big p { margin-top: 16px; font-size: 18px; }
.card-big .shotnote { font-size: 15px; }
@media (min-width: 1024px) and (max-width: 1240px) { .card-big { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; padding: 30px 28px 0; } .card-big h3 { font-size: 26px; } .card-big .panel { align-self: end; } .card-big .panel-in { height: 400px; min-height: 0; } }
.panel { align-self: stretch; padding: 10px 10px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--card); box-shadow: 0 10px 40px -18px rgba(92, 58, 28, .4); }
.panel-in { position: relative; height: 100%; min-height: 400px; overflow: hidden; border-radius: 6px 6px 0 0; background: #16181B; }
/* 裁配方那一栏：原图 x 262–653、y 62 起（1302×690） */
.panel-in img { position: absolute; left: -67%; top: 0; width: 333%; max-width: none; transform: translateY(-9%); }

/* ---------- 进度点、行动条、轻提示 ---------- */
.dots { position: fixed; right: 14px; top: 50%; z-index: 30; display: none; flex-direction: column; transform: translateY(-50%); }
.dots { padding: 4px 0; border-radius: 99px; background: rgba(248, 245, 240, .82); }
.dots a { position: relative; display: grid; place-items: center; width: 28px; height: 32px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #C9BDAE; transition: transform .22s var(--ease), background-color .22s var(--ease); }
.dots [aria-current] i { background: var(--accent); transform: scale(1.5); }
.dots span.lab { position: absolute; right: 100%; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 15px; white-space: nowrap; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.dots a:hover .lab, .dots a:focus-visible .lab { opacity: 1; transform: none; }
@media (min-width: 1300px) { .dots { display: flex; } }

.actionbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 245, 240, .95); border-top: 1px solid var(--line); visibility: hidden; transform: translateY(105%); transition: transform .35s var(--ease), visibility .35s; }
.actionbar.in { visibility: visible; transform: none; }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 80; width: max-content; max-width: calc(100vw - 32px); padding: 12px 22px; border-radius: 999px; border: 1px solid #C9E3D4; background: var(--ok-bg); color: var(--ok); font-size: 16px; font-weight: 600; line-height: 1.4; box-shadow: var(--sh2); opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
.toast.in { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.copyfail { position: fixed; left: 16px; right: 16px; bottom: 88px; z-index: 81; max-width: 460px; margin: 0 auto; padding: 18px 56px 18px 20px; border: 1px solid #F0C9C5; border-radius: 18px; background: var(--err-bg); color: var(--err); font-size: 16px; box-shadow: var(--sh2); }
.copyfail .addr { margin-top: 6px; color: var(--ink); overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.x { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }

/* ---------- 弹窗 ---------- */
.zoom { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; overflow: auto; }
.zoom[open] { display: grid; place-items: center; }
.zoom::backdrop { background: rgba(241, 236, 228, .95); }
.zoom-in { width: 100%; max-width: 1000px; text-align: center; }
.zoom .print img { display: block; border-radius: 6px; }
.zoom .print { padding: 0; border: 0; border-radius: 12px; overflow: hidden; outline: 11px solid var(--card); }
.zoom .shotnote { margin-top: 28px; }
.zoom .x { position: fixed; right: 16px; top: 16px; border: 1px solid var(--line); background: var(--card); }

/* ---------- 悬停（有鼠标）/ 按下（触屏） ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-ink:hover { box-shadow: 0 20px 32px -14px rgba(74, 46, 20, .6); }
  .btn-paper:hover { box-shadow: 0 16px 28px -14px rgba(92, 58, 28, .42); }
  .navlink:hover { transform: translateY(-2px); }
  .films button:hover { transform: translateY(-2px); }
  .films button:not([aria-selected="true"]):hover { color: var(--ink); box-shadow: 0 8px 14px -8px rgba(92, 58, 28, .4); }
  .toc a:hover b { transform: translateX(10px); color: var(--accent); }
  .toc a:hover svg { transform: translateY(4px); }
  .flip:hover .face { box-shadow: var(--sh2); }
  .hold:active { transform: none; }
}
@media (hover: none) {
  .btn:active, .films button:active, .toc a:active, .shot:active, .drawer a:active { transform: scale(.97); }
}

/* ---------- 没有鼠标的设备 ---------- */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  html.on-copy .btn-copy { display: inline-flex; }
  html.on-copy .btn-dl { display: none; }
  .actionbar { display: block; }
  .glow.on { animation: drift 14s ease-in-out infinite alternate; }
  .shot.on { animation: float 6s ease-in-out infinite alternate; }
  .toast { bottom: 24px; }
  .toast.up { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .now, .badge, .fine, .demo-note, .shotnote, .card-big .shotnote { font-size: 16px; }
}
@keyframes drift { from { transform: translate(-40px, -10px); } to { transform: translate(40px, 34px); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(8px); } }

/* ---------- 窄屏 ---------- */
@media (max-width: 1023px) {
  .links { display: none; }
  html.on-drawer .burger { display: block; }
  .readbar { display: block; }
  .bar { gap: 6px; }
  .card-big { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .card-big .card-txt { padding-bottom: 26px; }
  .panel { width: 100%; max-width: 374px; }
  .panel-in { min-height: 0; height: 300px; }
  .extras { grid-template-columns: minmax(0, 1fr); }
  .films { justify-content: flex-start; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .small-cards { grid-template-columns: 1fr 1fr; }
  .txt { font-size: 21px; }
  .face { padding: 24px; }
}
@media (max-width: 767px) {
  :root { --head: 63px; }
  body { font-size: 17px; background-size: 20px 20px; }
  .wrap { padding-inline: 16px; }
  .bar { min-height: 62px; padding: 6px 4px 6px 16px; }
  html:not(.on-drawer) .bar { padding-right: 16px; }
  .brand { gap: 10px; font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  h1 { font-size: clamp(34px, 9.9vw, 44px); line-height: 1.06; }
  html[data-lang="zh"] h1 { font-size: clamp(38px, 11.4vw, 48px); line-height: 1.22; }
  h2, h2.big { font-size: clamp(31px, 9vw, 40px); line-height: 1.12; }
  html[data-lang="zh"] h2 { line-height: 1.3; }
  .lead, .sub { font-size: 17px; margin-top: 18px; }
  .lead { text-wrap: balance; }
  .acts { flex-direction: column; align-self: stretch; gap: 10px; margin-top: 26px; }
  .btn { font-size: 17px; }
  .fine { margin-top: 16px; line-height: 1.55; }
  .glow { width: 520px; height: 460px; margin-left: -260px; top: -90px; }
  .overview { background-size: 20px 20px; }

  /* 开场截图：裁右边「Camera preview」那块（原图 x 662–1302） */
  .stagebox { margin-top: 34px; }
  .crop { aspect-ratio: 640 / 682; }
  .crop img { position: absolute; right: 0; top: 0; width: auto; max-width: none; height: 101.200%; }
  .print { padding: 9px; }

  .intro h2 { max-width: none; }
  .pains, .small-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 16px 34px; }
  .pains { margin-top: 24px; }
  .pains::-webkit-scrollbar, .small-cards::-webkit-scrollbar { display: none; }
  .pains > li, .small-cards > .card { flex: 0 0 82%; scroll-snap-align: center; }
  .small-cards { margin-inline: -16px; padding-bottom: 28px; }
  .face { min-height: 264px; gap: 30px; padding: 26px; }
  .txt { font-size: 23px; }
  .cdots { display: flex; justify-content: center; gap: 8px; margin-top: -10px; }
  .cdots i { width: 8px; height: 8px; border-radius: 999px; background: #D5C9BA; transition: transform .22s var(--ease), background-color .22s var(--ease); }
  .cdots i.on { background: var(--accent); transform: scale(1.35); }

  .toc { margin-top: 30px; }
  .toc a { grid-template-columns: 38px minmax(0, 1fr) 24px; grid-template-rows: auto auto; column-gap: 0; row-gap: 2px; min-height: 92px; padding-block: 14px; align-content: center; }
  .toc .n { grid-row: 1 / 3; align-self: start; padding-top: 4px; font-size: 16px; }
  .toc b { font-size: 25px; grid-column: 2; }
  .toc .line { grid-column: 2; grid-row: 2; font-size: 16px; line-height: 1.5; }
  .toc svg { grid-column: 3; grid-row: 1 / 3; width: 24px; height: 24px; }
  .bridge { margin-top: 48px; font-size: 23px; }
  .bridge-end { margin: 64px auto 0; padding-bottom: 72px; }

  .demo { margin-top: 26px; padding: 8px 8px 16px; }
  .photo { aspect-ratio: 3 / 2; max-height: none; border-radius: 11px; }
  .now, .badge { top: 10px; padding: 3px 12px; }
  .now { left: 10px; }
  .badge { right: 10px; }
  .films { margin: 10px -8px 0; padding-inline: 8px; scroll-padding-inline: 8px; }
  .films button { padding: 0 15px; }
  .demo-foot { margin-top: 10px; padding: 14px 6px 0; }
  .hold { width: 100%; }
  .demo-note { flex-basis: 100%; text-align: left; line-height: 1.5; }
  .extras { gap: 14px; margin-top: 14px; }
  .card { padding: 24px; }
  .card-big { padding: 26px 20px 0; }
  .card-big h3 { font-size: 25px; }
  .card p, .card-big p { font-size: 17px; }
  main { padding-bottom: 74px; }

  /* 弹窗全屏；点图放大到原尺寸后可以左右拖着看 */
  .zoom { padding: 0; background: var(--page); }
  .zoom[open] { place-items: center start; }
  .zoom-in { max-width: none; }
  .zoom .print { border-radius: 0; box-shadow: none; outline: 0; overflow-x: auto; }
  .zoom .print img { border-radius: 0; cursor: zoom-in; }
  .zoom.native .print img { width: var(--w, 1000px); max-width: none; cursor: zoom-out; }
  .zoom .shotnote { padding-inline: 16px; }
}

/* ---------- 减少动态效果：只留淡入 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .btn, .navlink, .films button, .toc b, .toc svg, .dd-panel, .drawer, .chev, .actionbar, .toast, .burger span, .dots i, .ico svg { transition-property: opacity, visibility, color, background-color !important; }
  .btn:hover, .navlink:hover, .films button:hover, .toc a:hover b, .toc a:hover svg, .btn:active { transform: none !important; }
  .dd-panel { transform: none; }
  .flip.on .inner, .flip.on.turned .inner { transform: none; transition: none; }
  .flip.on .back { transform: none; opacity: 0; }
  .flip.on .face { transition: opacity .3s; }
  .flip.on.turned .back { opacity: 1; }
  .flip.on.turned .front { opacity: 0; }
}
