/* Phai 发布页。
   两种底色对应两种工作：A1 是明亮的工作台（代码），M1 是深色的放映厅（视频）。
   青蓝色来自标识上的丝带，只用在品牌标识和 Phai 自己的数据上；其他模型一律中性灰。 */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #f2f5fa;
  --ink: #0b1b3f;
  --ink-2: #3f4d68;
  --ink-3: #6a7790;
  --line: #e2e8f1;
  --blue: #1f5bff;
  --blue-deep: #1748d4;
  --cyan: #2bd4c6;
  --ribbon: linear-gradient(100deg, #1f5bff 0%, #2a9cf5 55%, #2bd4c6 100%);
  --night: #081433;
  --night-2: #0e1d47;
  --night-line: rgba(196, 212, 255, .14);
  --night-ink: #eaf0ff;
  --night-ink-2: #a8b5d6;
  --peer: #9aa7bf;
  --ref: #d3dae6;
  --sans: "Instrument Sans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius-lg: 20px;
  --radius: 12px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); font-kerning: normal; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { line-height: 1.6; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.m1 :focus-visible { outline-color: var(--cyan); }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.button.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: var(--blue-deep); }
.secondary { background: var(--paper); color: var(--ink); border-color: #cdd6e4; }
.secondary:hover { border-color: var(--ink); }
.light { background: var(--night-ink); color: var(--night); }
.light:hover { background: #fff; }

/* ── Header ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 28px; height: auto; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.brand-org { font-size: 13px; color: var(--ink-3); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.lang-switch button { border: 0; background: none; padding: 3px 10px; border-radius: 999px; font-size: 13px; color: var(--ink-3); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding-block: clamp(40px, 7vw, 88px) 0; background:
  radial-gradient(60% 50% at 85% 10%, rgba(43, 212, 198, .10), transparent 70%),
  radial-gradient(50% 60% at 60% 0%, rgba(31, 91, 255, .08), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.release-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--paper); }
.release-pill:hover { border-color: #b9c6db; color: var(--ink); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ribbon); box-shadow: 0 0 0 4px rgba(43, 212, 198, .18); }
.hero h1 { margin-top: 28px; font-size: clamp(44px, 6.2vw, 84px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
html[lang="en"] .hero h1 { font-size: clamp(42px, 5.6vw, 76px); letter-spacing: -.03em; font-stretch: 92%; }
.hero h1 span { display: block; }
.hero h1 span + span { background: var(--ribbon); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-lede { margin-top: 24px; max-width: 34em; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.85; color: var(--ink-2); }
html[lang="en"] .hero-lede { line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.quickstart { margin-top: 28px; max-width: 600px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.qs-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--mist); }
.qs-tab { border: 0; background: none; padding: 9px 16px; font-size: 13px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.qs-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); background: var(--paper); }
.qs-line { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
.qs-code { flex: 1; min-width: 0; font: 12.5px/1.5 var(--mono); color: var(--ink); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.qs-code::before { content: "$ "; color: var(--ink-3); }

.copy { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 5px 10px; font-size: 13px; color: var(--ink-2); }
.copy:hover { border-color: #b9c6db; color: var(--ink); }
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copy.done { color: #0f8a7e; border-color: #9fe3da; }

.hero-media { margin: 0; }
.hero-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); aspect-ratio: 16 / 9; box-shadow: 0 30px 80px -30px rgba(11, 27, 63, .45), 0 0 0 1px rgba(11, 27, 63, .06); }
/* 绝对定位铺满：换 src 时 Safari 会把视频的固有尺寸临时重置成 300×150，跟着它排版就会一闪变形、左右错位 */
.hero-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .32s ease; }
/* 换段：视频淡出，露出底下下一段的首帧（hero-hello.js 设在 --next 上），新一段开始播再淡入 */
.hero-frame { background: var(--next, none) center / cover no-repeat, var(--night); }
.hero-frame.is-switching video { opacity: 0; }
.hero-controls { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 14px 8px 12px; border: 0; border-radius: 999px; background: rgba(8, 20, 51, .62); color: #fff; font-size: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-btn:hover { background: rgba(8, 20, 51, .8); }
.hero-btn svg { width: 18px; height: 18px; fill: currentColor; }
/* 播放中显示「暂停」图标，停着显示「播放」图标 */
#hero-play .ic-pause, #hero-play[aria-pressed="true"] .ic-play { display: none; }
#hero-play[aria-pressed="true"] .ic-pause { display: inline; }
/* 自动播放被拦下时把「播放」做得更醒目，告诉用户点这里，而不是只有「打开声音」可点 */
.hero-frame.needs-tap #hero-play { background: #fff; color: var(--night); }
.sound-toggle .wave { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: .35; }
.sound-toggle[aria-pressed="true"] .wave { opacity: 1; }
.hero-media figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* 首屏轮播的分段进度条：一段一格，正在放的那格随播放进度填满，点哪格跳哪段 */
.hello-seg { display: flex; gap: 6px; margin-top: -2px; }
.hello-seg button { flex: 1; min-width: 0; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.hello-seg i { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hello-seg i::after { content: ""; display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ink); border-radius: inherit; }
.hello-seg .done i::after { width: 100%; background: #b9c6db; }
.hello-seg button:hover i { background: #cdd6e4; }
.hello-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.hello-note { margin-top: 2px; font-size: 12px; line-height: 1.6; color: var(--ink-3); }

.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 7vw, 88px) 0 0; border-top: 1px solid var(--line); }
.hero-facts > div { padding: 24px 0 28px; }
.hero-facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: 13px; color: var(--ink-3); }
.hero-facts dd { margin: 6px 0 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; font-stretch: 82%; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-facts small { margin-left: 6px; font-size: 15px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--ink-3); }

/* ── Family index ────────────────────────────────────────── */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-block: 12px 0; }
.family-item { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: baseline; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: left; font: inherit; transition: border-color .15s; }
.family-item:hover { border-color: #b9c6db; }
.family-item strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.family-item span { grid-row: 2; font-size: 14px; color: var(--ink-3); }
.family-item .tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.tag { font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.tag.open { background: rgba(43, 212, 198, .14); color: #0b7a70; }
.family-item.sealed { cursor: not-allowed; background: repeating-linear-gradient(135deg, var(--mist) 0 8px, #f7f9fc 8px 16px); border-style: dashed; color: var(--ink-3); }
.family-item.sealed:hover { border-color: var(--line); }

/* ── Model sections ──────────────────────────────────────── */
.model { padding-block: clamp(72px, 10vw, 128px); }
.model-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.model-kind { font-size: 15px; color: var(--ink-3); }
.model h2 { margin-top: 8px; font-size: clamp(48px, 7vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.04em; font-stretch: 88%; }
.model-intro { font-size: 17px; line-height: 1.9; color: var(--ink-2); white-space: pre-line; max-width: 36em; }
html[lang="en"] .model-intro { line-height: 1.7; }
.model-intro a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.model-intro.intro-placeholder { color: var(--ink-3); }

.spec-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--ink); }
.spec-list > div { padding: 18px 20px 0 0; }
.spec-list dt { font-size: 13px; color: var(--ink-3); }
.spec-list dd { margin: 6px 0 0; font-size: 16px; font-weight: 500; line-height: 1.6; }

.block { margin-top: clamp(72px, 9vw, 112px); }
.block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: 32px; }
.block-head > p { color: var(--ink-2); max-width: 36em; }
.block-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.block > .block-title { margin-bottom: 32px; }
.sub-title { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

.ability-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.ability-row.four { grid-template-columns: repeat(4, 1fr); }
.ability { padding-top: 20px; border-top: 2px solid var(--ink); }
.ability h4 { font-size: 18px; font-weight: 700; }
.ability p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }

.video-frame { position: relative; }
.terminal-frame { border-radius: var(--radius-lg); overflow: hidden; background: #0d1530; box-shadow: 0 0 0 1px rgba(11, 27, 63, .08), 0 24px 60px -32px rgba(11, 27, 63, .5); }
.terminal-frame video { width: 100%; }
.video-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--night-ink-2); background: var(--night); font-size: 14px; }
.video-error[hidden] { display: none; }

/* ── Benchmarks ──────────────────────────────────────────── */
.bench-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ""; width: 18px; height: 8px; border-radius: 4px; background: var(--ref); }
.lg.phai::before { background: var(--ribbon); }
.lg.peer::before { background: var(--peer); }
.bench-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bench { margin: 0; padding: 22px 22px 18px; border-radius: var(--radius); background: var(--mist); }
.bench figcaption { margin-bottom: 18px; }
.bench h4 { font-size: 17px; font-weight: 700; font-stretch: 92%; }
.bench figcaption span { font-size: 13px; color: var(--ink-3); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 8.6em 1fr 4.4em; align-items: center; gap: 10px; font-size: 13px; }
.bars .m { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .t { height: 10px; border-radius: 5px; background: rgba(11, 27, 63, .05); overflow: hidden; }
.bars .t i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 5px; background: var(--ref); }
.bars .peer .t i { background: var(--peer); }
.bars .phai .t i { background: var(--ribbon); }
.bars b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.bars .phai .m, .bars .phai b { color: var(--ink); font-weight: 700; }
.bars .na b { color: var(--ink-3); font-weight: 400; font-size: 12px; }
.bars .peer + .ref { margin-top: 6px; padding-top: 12px; border-top: 1px dashed #c8d1df; }

.satisfaction { margin-top: 64px; }
.satisfaction .block-head { margin-bottom: 20px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.score-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.score-table th, .score-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.score-table tbody tr:last-child > * { border-bottom: 0; }
.score-table thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); background: var(--mist); }
.score-table tbody th { font-weight: 500; white-space: nowrap; }
.score-table td { white-space: nowrap; color: var(--ink-2); }
.sb { display: inline-block; vertical-align: middle; width: 96px; height: 6px; margin-right: 12px; border-radius: 3px; background: rgba(11, 27, 63, .06); overflow: hidden; }
.sb i { display: block; height: 100%; width: calc(var(--s) * 10%); background: var(--ref); border-radius: 3px; }
.score-table tr.phai { background: linear-gradient(90deg, rgba(31, 91, 255, .06), rgba(43, 212, 198, .06)); }
.score-table tr.phai th, .score-table tr.phai td { color: var(--ink); font-weight: 700; }
.score-table tr.phai .sb i { background: var(--ribbon); }
.source-links { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.source-links a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c4cddb; }
.source-links a:hover { color: var(--blue); }

/* ── Resources ───────────────────────────────────────────── */
.resources { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--mist); }
.spec-list + .resources { margin-top: clamp(40px, 5vw, 56px); }
.resources .block-head { margin-bottom: 28px; }
.res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.res-links { display: grid; gap: 12px; }
.res-link { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-align: left; font: inherit; width: 100%; transition: border-color .15s; }
.res-link:hover { border-color: var(--blue); }
.res-link .ri { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--ink); }
.res-link .ri.hf { background: #ffcc4d; color: #3d2b00; }
.res-link .ri.ms { background: #624aff; }
.res-link strong { display: block; font-size: 16px; font-weight: 700; }
.res-link .rs { display: block; font-size: 13px; color: var(--ink-3); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-link .go { font-size: 14px; color: var(--blue); font-weight: 600; white-space: nowrap; }
.res-link.pending .go { color: var(--ink-3); font-weight: 500; }
.code-card { border-radius: var(--radius); background: var(--night); color: var(--night-ink); overflow: hidden; min-width: 0; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--night-line); font-size: 13px; color: var(--night-ink-2); }
.code-card .copy { background: transparent; border-color: var(--night-line); color: var(--night-ink-2); }
.code-card .copy:hover { color: #fff; border-color: rgba(196, 212, 255, .4); }
.code-card .copy.done { color: var(--cyan); border-color: rgba(43, 212, 198, .5); }
.code-card pre { margin: 0; padding: 18px; overflow-x: auto; font: 13px/1.85 var(--mono); }
.code-card .c { color: #7f8db3; }
.res-extra { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.res-extra a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ── Phai-M1：放映厅 ─────────────────────────────────────── */
.m1 { background: var(--night); color: var(--night-ink); background-image: radial-gradient(70% 40% at 80% 0%, rgba(31, 91, 255, .22), transparent 70%); }
.m1 .model-kind, .m1 .block-head > p, .m1 .ability p, .m1 .spec-list dt, .m1 .model-intro { color: var(--night-ink-2); }
.m1 .model-intro.intro-placeholder { color: #7d8bb0; }
.m1 .spec-list, .m1 .ability { border-top-color: var(--night-ink); }
.m1-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ── M1 放映：与作品集（/gallery）同一套做法 ─────────────────
   整宽画面，提示词随播放逐词亮起；手机上放 1:2 竖幅裁切版（portrait.mp4），4:5 画框里铺满也不糊。 */
.m1-reel { position: relative; margin-top: clamp(48px, 6vw, 80px); background: #000; overflow: hidden; }
.m1-screen { position: relative; aspect-ratio: 21 / 9; max-height: 82vh; min-height: 420px; width: 100%; }
.m1-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.m1-video.is-on { opacity: 1; }
.m1-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(3, 6, 14, .9) 0%, rgba(3, 6, 14, .45) 30%, rgba(3, 6, 14, 0) 58%); }
.m1-reel-copy { position: absolute; left: 0; right: 0; bottom: 34px; }
.m1-now { display: flex; align-items: baseline; gap: 14px; }
.m1-index { font-size: 13px; color: #7d8bb0; font-variant-numeric: tabular-nums; }
.m1-name { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; border-bottom: 1px solid rgba(196, 212, 255, .35); }
.m1-name:hover { border-bottom-color: #fff; }
.m1-prompt { margin: 10px 0 0; max-width: 44em; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.65; color: #7d8bb0; }
.m1-prompt .w { transition: color .5s ease; }
.m1-prompt .w.lit { color: var(--night-ink); }
.m1-controls { display: flex; gap: 8px; margin-top: 18px; }
#m1-play .ic-play, #m1-play[aria-pressed="false"] .ic-pause { display: none; }
#m1-play[aria-pressed="false"] .ic-play { display: inline; }
.m1-reel.needs-tap #m1-play { background: #fff; color: var(--night); }
.m1-track { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.m1-track li { flex: 1; }
.m1-track button { display: block; width: 100%; height: 14px; padding: 11px 0 0; border: 0; background: none; }
.m1-track button::before { content: ""; display: block; height: 3px; background: rgba(196, 212, 255, .22); }
.m1-track .done button::before { background: rgba(196, 212, 255, .5); }
.m1-track .now button::before { background: var(--ribbon) 0 0 / calc(var(--p, 0) * 100%) 100% no-repeat, rgba(196, 212, 255, .22); }

.m1-speed { padding-top: clamp(80px, 11vw, 160px); }
.m1-speed h3 { font-size: clamp(42px, 7.6vw, 120px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; font-stretch: 75%; }
.m1-speed h3 span { display: block; }
.speed-key { width: fit-content; background: var(--ribbon); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.speed-sub { margin-top: .5em; font-size: .36em; font-stretch: 100%; letter-spacing: -.01em; color: var(--night-ink-2); }
.speed-note { margin-top: 28px; font-size: 11px; line-height: 1.5; letter-spacing: .01em; color: rgba(168, 181, 214, .55); }

/* 胶片条：作品集里的精选，横向滑动；第一格和正文左边对齐 */
.strip-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.strip-title { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; font-stretch: 80%; }
.strip-title span { display: block; }
.strip-title span + span { color: #7d8bb0; }
.strip-copy { margin-top: 16px; max-width: 36em; color: var(--night-ink-2); }
.strip { --edge: calc((100% - min(1200px, 100% - 2 * var(--gutter))) / 2); display: flex; gap: 12px; margin: 32px 0 0; padding: 0 var(--edge) 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); list-style: none; scrollbar-width: thin; scrollbar-color: rgba(196, 212, 255, .25) transparent; overscroll-behavior-x: contain; }
.strip li { flex: 0 0 clamp(260px, 30vw, 420px); scroll-snap-align: start; }
.strip-tile { display: block; }
.strip-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--night-2); }
.strip-frame img, .strip-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.strip-frame video { opacity: 0; transition: opacity .4s; }
.strip-tile.playing video { opacity: 1; }
.strip-cap { display: block; padding-top: 12px; }
.strip-cap b { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; }
.strip-cap small { font-size: 12px; font-weight: 400; color: #7d8bb0; font-variant-numeric: tabular-nums; }
.strip-cap span { display: -webkit-box; margin-top: 4px; font-size: 14px; line-height: 1.65; color: var(--night-ink-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip-more .strip-frame { display: grid; place-items: center; border: 1px solid var(--night-line); background: none; font-size: 17px; font-weight: 600; }
.strip-more:hover .strip-frame { border-color: var(--night-ink); }

/* 手机上导航收起后仍然看得见的作品集入口 */
.header-gallery { display: none; flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.header-gallery:hover { border-color: var(--ink); }

.m1-weights { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.m1-weights .sub-title { font-size: 18px; }
.weight-links { display: flex; flex-wrap: wrap; gap: 10px; }
.weight-link { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--night-line); border-radius: 999px; background: transparent; color: var(--night-ink); font-size: 14px; }
.weight-link:hover { border-color: rgba(196, 212, 255, .4); }
.weight-link em { font-style: normal; font-size: 12px; color: var(--night-ink-2); }

/* ── Next / closing / footer ─────────────────────────────── */
.next { border-bottom: 1px solid var(--line); }
.next-row { display: flex; align-items: baseline; gap: 24px; padding-block: 48px; }
.next h2 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-3); }
.next p { color: var(--ink-3); }
.closing { padding-block: clamp(64px, 9vw, 112px); }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px; font-size: 14px; color: var(--ink-3); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 22px; height: auto; }
.footer-brand span { font-weight: 700; color: var(--ink); }
.footer-brand small { font-size: 13px; margin-left: 4px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--ink); }

/* ── Dialog ──────────────────────────────────────────────── */
dialog { width: min(420px, calc(100% - 32px)); border: 0; border-radius: var(--radius-lg); padding: 32px; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(11, 27, 63, .4); }
dialog::backdrop { background: rgba(8, 20, 51, .45); backdrop-filter: blur(2px); }
dialog h2 { font-size: 20px; font-weight: 700; margin-right: 24px; }
dialog p { margin: 10px 0 24px; color: var(--ink-2); }
dialog .close { position: absolute; right: 16px; top: 14px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-3); }

/* ── 首屏载入：整页只有这一处主动动效 ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-media { animation-delay: .1s; animation-duration: 1.1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .header-gallery { display: inline-flex; }
  .lang-switch { margin-left: auto; }
  .bench-grid { grid-template-columns: repeat(2, 1fr); }
  .ability-row.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid, .model-head, .block-head, .res-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .hero h1 { margin-top: 20px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .spec-list { grid-template-columns: repeat(2, 1fr); }
  .spec-list > div { padding-bottom: 16px; }
  .family { grid-template-columns: 1fr; }
  .ability-row { grid-template-columns: 1fr; }
  .next-row { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .brand-org, .header-cta { display: none; }
  .m1-screen { aspect-ratio: 4 / 5; max-height: 78svh; min-height: 0; }
  .m1-reel-copy { bottom: 26px; }
  .m1-prompt { font-size: 14px; line-height: 1.6; }
  .m1-controls { margin-top: 14px; }
  .strip li { flex-basis: 78vw; }
  .strip-title { font-size: clamp(24px, 7.2vw, 40px); }
  .strip-head .button { flex: 1 1 100%; }
  .bench-grid, .ability-row.four { grid-template-columns: 1fr; }
  .hero-actions .button, .closing-actions .button { flex: 1 1 100%; }
  .bars li { grid-template-columns: 7.8em 1fr 4em; }
}
