@layer reset, base, layout, parts, responsive, motion;

/* 标题字: 獅尾飛鏢黑體 SC Bold (OFL), 笔画像刀刃 */
@font-face { font-family: "ToD Dart"; src: url(/fonts/title.woff2?h=407a6537) format("woff2"); font-display: swap; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ol, ul, dl, dd, figure, table { margin: 0; }
  ol, ul { padding: 0; list-style: none; }
  img, picture, svg { display: block; max-width: 100%; }
  img { height: auto; }
  button { font: inherit; color: inherit; cursor: pointer; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --wall: #e9edf2;
    --wall-2: #dce2e9;
    --joint: #dde3ea;
    --edge: #c3ccd6;
    --lead: #191b29;
    --ink: #1d2030;
    --ink-2: #474d63;
    --cobalt: #1a48b6;
    --ruby: #a8143a;
    --amber: #ffc445;
    --pearl: #fff9e6;
    --teal: #2a625e;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    --dart: "ToD Dart", "PingFang SC", "Microsoft YaHei", sans-serif;
    /* 两头收尖的一片玻璃 */
    --hex: polygon(15px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0 50%);
    /* 石墙的砌缝 */
    --ashlar: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='192' height='112'><path d='M0 .5H192M0 56.5H192M64.5 0V56M160.5 56V112' fill='none' stroke='%23dce2e9'/><path d='M0 1.5H192M0 57.5H192M65.5 1V56M161.5 57V112' fill='none' stroke='%23f3f6f9'/></svg>");
    color-scheme: light;
    scroll-padding-top: 76px;
  }
  html { background: var(--wall); }
  body { font: 17px/1.85 var(--sans); color: var(--ink); background: var(--wall); -webkit-font-smoothing: antialiased; text-wrap: pretty; }
  h1, h2, h3 { line-height: 1.25; font-weight: 400; }
  .t { font-family: var(--dart); font-weight: 400; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
  .skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--lead); color: #fff; }
  .skip:focus { left: 12px; }
  .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nb { white-space: nowrap; }
  .defs { position: absolute; width: 0; height: 0; }
}

@layer layout {
  .wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }
  main > section { padding-block: clamp(64px, 7.2vw, 106px); }
  main > .hero { padding: 0; }
  h2.t { font-size: clamp(32px, 3.6vw, 46px); }
  h3.t { font-size: 25px; }
  .sub { margin-top: 14px; max-width: 44em; color: var(--ink-2); }
  .split { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
}

@layer parts {
  .bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 26px; height: 60px; padding-inline: max(32px, (100% - 1500px) / 2);
    background: var(--wall); border-bottom: 1px solid var(--edge); }
  .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; line-height: 1; text-decoration: none; }
  .bar nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
  .bar nav a { text-decoration: none; color: var(--ink-2); padding-block: 6px; }
  .bar nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .pill { position: relative; isolation: isolate; border: 0; padding: 9px 22px; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--lead); background: none; }
  .pill::before, .pill::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lead); clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%); }
  .pill::after { inset: 3px; background: var(--amber); }

  /* 首屏: 四扇彩窗就是书名, 尾巴从「尾」字里爬出来 */
  .hero { position: relative; padding-bottom: 24px; background: var(--wall) var(--ashlar) 50% 12px; overflow: hidden; overflow: clip; }
  .hero::after { content: ""; position: absolute; inset: auto 0 0; height: 24px; background: linear-gradient(#fbfcfd 0 8px, var(--edge) 8px 10px, #d3dbe3 10px 22px, #b3bec9 22px); }
  .hero-in { --lw: min(calc((100svh - 122px) * .2616), calc((91.8vw - 434px) / 4.27), 300px); width: min(1860px, 100% - 64px); margin-inline: auto;
    display: grid; grid-template-columns: auto minmax(300px, 370px); justify-content: center; column-gap: clamp(72px, 8.2vw, 140px); align-items: center; }
  .windows { display: grid; grid-template-columns: repeat(4, var(--lw)); gap: calc(var(--lw) * .085); align-self: end; padding-top: 30px; }
  .lan { width: 100%; height: auto; aspect-ratio: 328 / 1254; }
  .hero-text { padding-block: 40px; }
  .hero h1 { font-size: 33px; }
  .lead { margin-top: 12px; font-size: 20px; line-height: 1.75; }
  .cta { display: grid; gap: 14px; margin-top: 30px; }
  .dl-btn, .alt-btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 18px 36px; font-family: var(--dart); font-size: 27px; line-height: 1.15;
    color: var(--lead); background: none; text-decoration: none; }
  .dl-btn::before, .dl-btn::after, .alt-btn::before, .alt-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lead); clip-path: var(--hex); }
  .dl-btn::after { inset: 5px; background: linear-gradient(104deg, #ffd976 0 30%, #ffc445 30% 71%, #ffb52e 71%); }
  .alt-btn::after { inset: 5px; background: linear-gradient(104deg, #fff 0 30%, #fff6dc 30% 71%, #ffedc2 71%); }
  .dl-btn:hover::after { background: linear-gradient(104deg, #ffe7a8 0 30%, #ffd56b 30% 71%, #ffc445 71%); }
  .alt-btn:hover::after { background: linear-gradient(104deg, #fff 0 30%, #fffbef 30% 71%, #fff3d4 71%); }
  .dl-btn:active, .alt-btn:active { translate: 0 1px; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 34px; padding: 5px; background: var(--lead); }
  .facts div { padding: 10px 14px 11px; line-height: 1.45; }
  .facts div:nth-child(1) { background: #d7e5fb; }
  .facts div:nth-child(2) { background: #d9f1e3; }
  .facts div:nth-child(3) { background: #e4dcf7; }
  .facts div:nth-child(4) { background: #ffe0d6; }
  .facts dt { font-size: 14px; color: var(--ink-2); }
  .facts dd { font-weight: 700; }
  .facts small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); }
  #tail { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
  #tail .sh { fill: rgb(25 27 41 / .17); translate: 7px 9px; }
  #tail .bd { fill: #14121c; }
  #tail .rg { fill: none; stroke: #3b3650; stroke-width: 1.4; }
  #tail .hl { fill: #57506f; }

  /* 故事: 一条圆章窗, 从上往下读 */
  .story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); align-items: start; }
  .tale { margin-top: 30px; }
  .tale li { display: grid; grid-template-columns: 136px 1fr; gap: 30px; align-items: center; min-height: 142px; }
  .tale li::before { content: ""; grid-area: 1 / 1; align-self: stretch; border: solid var(--lead); border-width: 3px 6px;
    background: var(--tint) url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='31' height='44'><path d='M0 22L15.5 0L31 22L15.5 44Z' fill='none' stroke='%23191b29' stroke-width='1.7'/></svg>") 50% 50%; }
  .tale li:nth-child(1) { --tint: #cfdff8; }
  .tale li:nth-child(2) { --tint: #cdebdc; }
  .tale li:nth-child(3) { --tint: #d9cef2; }
  .tale li:nth-child(4) { --tint: #f9cfc6; }
  .tale p { max-width: 21em; padding-block: 14px; font-size: 19px; line-height: 1.8; text-wrap: balance; }
  .tale li:first-child::before { border-top-width: 6px; border-radius: 68px 68px 0 0 / 86px 86px 0 0; }
  .tale li:last-child::before { border-bottom-width: 6px; }
  .med { grid-area: 1 / 1; justify-self: center; width: 106px; }
  .tale li:first-child .med { margin-top: 12px; }
  .sheet { position: sticky; top: 92px; }
  .lead-frame { border: 6px solid var(--lead); background: var(--lead); }
  .lead-frame img { width: 100%; }
  .lead-frame figcaption { padding: 7px 10px 4px; font-size: 14px; line-height: 1.6; color: #e6eaf0; }
  .credit { margin-top: 22px; }
  .credit div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--edge); font-size: 16px; line-height: 1.65; }
  .credit dt { color: var(--ink-2); }

  /* 人物: 玫瑰窗 */
  .cast { background: var(--wall-2); }
  .cast-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(44px, 6vw, 92px); align-items: center; }
  .rose-fig figcaption { margin-top: 14px; text-align: center; font-size: 15px; color: var(--ink-2); }
  .rose { width: 100%; }
  .cast h3 { margin-top: 30px; }
  .cast h3 + p { margin-top: 8px; max-width: 26em; }
  .note { margin-top: 18px; font-size: 15px; color: var(--ink-2); }

  /* 玩法: 战斗画面里石板地的颜色 */
  .play { background: var(--teal); color: #fff; }
  .play-in { margin-top: 14px; max-width: 40em; }
  .panel { display: grid; grid-template: "order order status" auto "menu text status" auto / 21.1% minmax(0, 1fr) 34.4%; gap: 6px; margin-top: 30px; padding: 6px; background: var(--lead); }
  .panel picture, .panel img { width: 100%; height: 100%; object-fit: cover; }
  .p-order { grid-area: order; }
  .p-menu { grid-area: menu; }
  .p-status { grid-area: status; }
  .p-text { grid-area: text; display: grid; align-content: center; gap: 22px; padding: 24px 32px; background: #dcefe9; color: var(--ink); }
  .p-text dt { font-size: 24px; line-height: 1.3; }
  .p-text dd { margin-top: 2px; line-height: 1.75; }
  .life { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 62px; }
  .life p { margin-top: 8px; max-width: 27em; }
  .panes { display: grid; grid-template-columns: repeat(4, 136px); gap: 10px; }
  .panes li { display: grid; justify-items: center; gap: 10px; font-size: 22px; line-height: 1.2; }
  .panes svg { width: 100%; }
  .panes g { fill: var(--pearl); stroke: var(--lead); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
  .panes .ln { fill: none; }
  .panes .dk { fill: var(--lead); stroke: none; }

  /* 画面 */
  .shots .sub { max-width: none; }
  .grid { display: grid; grid-template-columns: minmax(0, 1fr) calc((100% - 129px) / 3); grid-template-rows: 1fr 1fr; gap: 20px; margin-top: 32px; }
  .shot { display: grid; grid-template-rows: 1fr auto; width: 100%; padding: 0; border: 6px solid var(--lead); background: var(--lead); text-align: left; }
  .shot:first-child { grid-row: span 2; }
  .shot picture { aspect-ratio: 16 / 9; overflow: hidden; }
  .shot:first-child picture { aspect-ratio: auto; min-height: 0; }
  .shot img { width: 100%; height: 100%; object-fit: cover; }
  .shot:hover { border-color: var(--cobalt); background: var(--cobalt); }
  .cap { display: block; padding: 8px 10px 5px; font-size: 15px; line-height: 1.6; color: #eef1f5; }

  /* 两个版本: 两扇门 */
  .remaster { background: var(--wall-2); }
  main > .remaster { padding-bottom: 0; border-bottom: 14px solid #b9c4cf; }
  .rem-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(44px, 7vw, 104px); align-items: end; }
  .rem-grid > div { padding-bottom: clamp(48px, 6vw, 92px); }
  .rem-grid > div p { margin-top: 18px; max-width: 31em; }
  .doors { display: grid; grid-template-columns: repeat(2, 232px); gap: 20px; }
  .doors li { display: grid; }
  .doors svg { grid-area: 1 / 1; width: 100%; }
  .plate { grid-area: 1 / 1; align-self: end; justify-self: center; width: calc(100% - 64px); margin-bottom: 34px; padding: 10px 6px 11px; text-align: center; background: var(--pearl); border: 4px solid var(--lead); }
  .plate p { font-size: 14px; line-height: 1.5; }
  .plate b { display: block; }

  /* 配置 */
  .spec { width: 100%; border-collapse: collapse; line-height: 1.6; }
  .spec th, .spec td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--edge); vertical-align: top; }
  .spec thead th { font-weight: 700; border-bottom: 5px solid var(--lead); }
  .spec thead td { border-bottom: 5px solid var(--lead); }
  .spec tbody th { width: 130px; padding-left: 0; font-weight: 400; color: var(--ink-2); }

  /* 安装 */
  .setup { background: var(--wall-2); }
  .setup-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 76px); align-items: start; }
  .setup h3 { margin-top: 28px; }
  .steps { counter-reset: s; display: grid; gap: 14px; margin-top: 14px; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
  .steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-top: -4px; font: 20px/1 var(--dart); background: var(--lead); color: var(--amber); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
  .plain { margin-top: 12px; max-width: 30em; }
  .slab { padding: 30px 32px 32px; background: #f4f6f9; border: 1px solid var(--edge); border-bottom: 10px solid var(--edge); }
  .slab h3 { margin: 0 0 8px; }
  .slab dl div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--edge); font-size: 15px; line-height: 1.65; }
  .slab dt { color: var(--ink-2); }
  .slab dd { font-weight: 600; overflow-wrap: anywhere; }
  .slab code { font: 500 13px/1.6 ui-monospace, Menlo, Consolas, monospace; }
  .slab .second { margin-top: 26px; padding-top: 18px; border-top: 5px solid var(--lead); }
  .file-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
  .file-act .dl-btn { padding: 14px 30px; font-size: 22px; }
  .ghost { border: 2px solid var(--lead); padding: 10px 18px; font-size: 15px; background: transparent; }
  .ghost:hover { background: #fff; }
  .fine { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

  /* 问答 */
  .qa { border-top: 5px solid var(--lead); }
  .qa details { border-bottom: 1px solid var(--edge); }
  .qa summary { position: relative; padding: 17px 48px 17px 0; font-weight: 600; line-height: 1.6; list-style: none; cursor: pointer; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--ruby); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
  .qa details[open] summary::after { background: var(--amber); outline: 0; }
  .qa summary:hover { color: var(--cobalt); }
  .qa p { padding: 0 48px 20px 0; color: var(--ink-2); }

  /* 页脚: 窗光落在石板地上 */
  .foot { position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: 108px 0 76px; color: #fff; background: #1f4b49 /*art:floor*/url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22480%22 height=%22300%22 viewBox=%220 0 480 300%22%3E%3Cpath fill=%22%2336736d%22 d=%22M39 78L36 73L-4 55L-10 56L-24 67L-26 70L-29 100L-28 104L-4 125L3 126L38 107L41 101ZM82 4L79 6L77 10L80 31L83 35L121 57L126 57L142 52L145 49L161 4L160 -1L155 -4ZM82 42L75 43L48 72L46 76L48 103L50 107L73 124L79 124L106 115L109 111L118 67L116 61ZM476 125L483 126L518 107L521 101L519 78L516 73L476 55L470 56L456 67L454 70L451 100L452 104ZM390 169L392 165L384 130L377 123L372 121L324 133L320 137L314 168L360 199L363 200L367 198ZM272 221L276 227L317 242L322 242L358 217L361 211L358 206L311 176L305 176L277 192L274 196ZM162 289L166 295L170 297L214 295L219 293L233 275L236 259L233 254L200 231L196 230L155 240L151 242L151 246ZM82 304L79 306L77 310L80 331L83 335L121 357L126 357L142 352L145 349L161 304L160 299L155 296Z%22/%3E%3Cpath fill=%22%2329605c%22 d=%22M-7 241L-2 242L32 228L35 224L37 202L35 197L-5 163L-36 181L-38 187L-27 225ZM384 -10L388 -16L386 -49L366 -75L363 -76L359 -76L326 -53L324 -48L329 -1L332 3L336 4ZM224 -3L223 2L234 43L238 46L284 60L289 59L314 37L316 33L317 24L314 19L242 -19L238 -19L235 -17ZM203 87L202 91L205 95L243 121L249 121L282 101L284 96L285 72L281 66L237 53L231 55ZM124 191L128 192L131 189L156 155L157 151L155 147L113 122L109 121L82 131L78 135L77 160L79 165ZM42 225L45 229L69 247L75 247L122 226L126 221L126 203L123 198L73 171L45 198L44 201ZM512 228L515 224L517 202L515 197L478 164L471 164L442 184L453 225L473 241L478 242ZM329 299L332 303L336 304L387 287L386 251L366 225L363 224L359 224L326 247L324 252ZM234 343L238 346L284 360L289 359L314 337L316 333L316 321L242 281L238 281L224 297L223 302Z%22/%3E%3Cpath fill=%22%23255753%22 d=%22M66 4L71 2L72 -2L68 -43L66 -47L41 -65L35 -65L0 -51L-3 -48L-13 -11L-8 0L-3 2ZM393 -4L388 -4L331 13L324 21L323 32L325 37L368 70L375 70L400 49L402 44L400 4ZM369 81L367 77L319 43L293 65L292 69L291 98L293 102L317 125L322 126L367 115L371 113L372 109ZM167 145L166 149L168 152L197 171L202 171L240 162L242 132L240 127L202 102L198 101L195 103ZM133 222L135 226L144 233L148 234L194 222L195 180L193 176L168 160L164 159L160 162L134 198ZM-8 300L-3 302L66 304L71 302L72 298L68 257L66 253L41 235L35 235L0 249L-3 252L-13 289ZM456 289L461 285L469 249L452 235L447 234L394 251L395 286L397 291L403 295L407 296ZM400 349L402 344L400 304L393 296L388 296L331 313L324 321L323 332L325 337L368 370L375 370ZM480 -51L477 -48L467 -11L472 0L477 2L546 4L551 2L552 -2L548 -43L546 -47L521 -65L515 -65ZM472 300L477 302L546 304L551 302L552 298L548 257L546 253L521 235L515 235L480 249L477 252L467 289Z%22/%3E%3Cpath fill=%22%233b7973%22 d=%22M315 11L319 12L322 9L323 6L317 -47L314 -51L272 -67L267 -66L245 -45L242 -28ZM173 4L168 7L153 52L192 82L196 83L199 81L226 50L228 45L217 6L212 2ZM149 59L144 59L129 63L125 68L116 114L156 139L160 140L163 138L191 96L192 92L190 89ZM68 165L71 134L69 129L47 113L41 113L4 132L2 137L-1 153L1 158L36 189L40 191L44 189ZM398 162L402 166L434 177L439 177L470 156L472 152L475 136L473 131L448 110L443 109L396 127L393 130L392 133ZM401 173L395 175L368 210L369 217L388 241L394 242L441 228L444 226L445 222L435 187L431 184ZM245 255L241 269L244 275L315 311L319 312L322 309L323 306L317 253L314 249L272 233L267 234ZM479 153L481 158L516 189L520 191L524 189L548 165L551 134L549 129L527 113L521 113L484 132L482 137Z%22/%3E%3Cpath fill=%22%232f6a66%22 d=%22M72 36L73 32L71 16L69 12L66 11L1 9L-3 11L-5 15L-4 44L-1 49L38 66L44 65ZM412 2L409 4L407 8L409 43L413 47L447 61L453 60L466 50L469 45L468 8L463 -2L458 -4ZM385 120L391 121L440 103L444 98L446 69L410 54L404 55L378 77L376 81L379 113ZM269 184L275 185L303 169L306 166L313 135L312 130L287 107L252 128L249 132L248 162L249 166ZM205 225L239 248L243 247L263 227L265 224L267 195L266 191L245 172L240 170L207 177L203 179L202 183L203 221ZM79 292L81 295L85 297L148 290L152 288L153 283L140 239L131 232L126 232L79 253L76 259ZM466 350L469 345L468 308L463 298L458 296L412 302L409 304L407 308L409 343L413 347L447 361L453 360ZM481 9L477 11L475 15L476 44L479 49L518 66L524 65L552 36L553 32L551 16L549 12L546 11Z%22/%3E%3C/svg%3E")/*/art*/; border-top: 24px solid; border-image: linear-gradient(#fbfcfd 0 8px, var(--edge) 8px 10px, #d3dbe3 10px 22px, #b3bec9 22px) 24; }
  .cast-light { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; mix-blend-mode: screen; opacity: .5; }
  .foot-title { font-size: 34px; line-height: 1.3; }
  .foot p { text-shadow: 0 0 10px #143634, 0 0 3px #143634; }
  .links { display: flex; gap: 24px; margin-top: 8px; }

  /* 弹窗 */
  dialog { border: 0; padding: 0; color: var(--ink); }
  dialog::backdrop { background: rgb(18 20 32 / .72); }
  .x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 24px; line-height: 1; }
  .dlg { width: min(440px, 100% - 32px); padding: 34px 28px 30px; background: #f4f6f9; border: 7px solid var(--lead); text-align: center; }
  .dlg h2 { font-size: 34px; }
  .dlg-file { margin: 8px 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
  #ts-box { display: grid; place-items: center; min-height: 70px; }
  #dl-status { margin-top: 14px; font-size: 16px; line-height: 1.7; }
  #dl-link { margin-top: 16px; font-size: 20px; padding: 14px 28px; }
  .lb { width: min(1280px, 100% - 24px); max-height: calc(100svh - 24px); background: transparent; overflow: visible; color: #fff; }
  .lb picture img { width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 150px); margin-inline: auto; border: 6px solid var(--lead); }
  #lb-cap { margin-top: 12px; text-align: center; }
  .lb-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 8px; }
  .lb-nav button { width: 44px; height: 44px; border: 0; background: var(--lead); color: #fff; font-size: 22px; line-height: 1; }
  .lb .x { top: -44px; right: 0; background: var(--lead); color: #fff; }
  .lb :focus-visible, .play :focus-visible, .foot :focus-visible { outline-color: var(--amber); }

  /* 隐私 / 条款 / 404 */
  .doc-page { background: var(--wall) var(--ashlar) 50% 12px; }
  .doc { max-width: 760px; padding: 72px 40px 80px; margin-block: 0; background: #f4f6f9; min-height: 100svh; }
  .doc h1 { margin: 18px 0 26px; font-size: 44px; }
  .doc h2 { margin: 30px 0 8px; font-size: 20px; font-weight: 700; }
  .doc p { margin-top: 10px; }
  .doc .dl-btn { margin-top: 18px; font-size: 24px; }
  .doc .date { margin-top: 36px; font-size: 14px; color: var(--ink-2); }
  .back { color: var(--cobalt); }
}

@layer responsive {
  @media (min-width: 1800px) {
    .hero-in { grid-template-columns: auto minmax(300px, 450px); }
    .hero h1 { font-size: 41px; }
    .hero .lead { font-size: 24px; }
    .cta .dl-btn, .cta .alt-btn { padding-block: 21px; font-size: 32px; }
    .facts div { padding: 13px 18px 14px; }
  }
  @media (max-width: 1120px) {
    .p-text { padding: 14px 22px; gap: 10px; }
    .p-text dt { font-size: 21px; }
    .p-text dd { font-size: 16px; line-height: 1.6; }
    .life { grid-template-columns: 1fr; }
    .panes { grid-template-columns: repeat(4, minmax(0, 136px)); }
  }
  @media (max-width: 940px) {
    .bar nav { display: none; }
    .bar .pill { margin-left: auto; }
    .story-grid, .cast-grid, .rem-grid, .setup-grid, .split { grid-template-columns: minmax(0, 1fr); }
    .split { gap: 24px; }
    .sheet { position: static; }
    .rose-fig { order: 2; width: min(100%, 560px); margin-inline: auto; }
    .panel { grid-template: "order order" auto "menu status" auto "text text" auto / 147fr 189fr; }
    .p-text { padding: 22px 26px; gap: 16px; }
    .rem-grid > div { padding-bottom: 0; }
    .doors { justify-content: center; }
  }
  @media (max-width: 760px) {
    .grid { grid-template: none; grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .shot:first-child { grid-row: auto; }
    .shot:first-child picture { aspect-ratio: 16 / 9; }
  }
  /* 首屏改上下排 */
  @media (max-width: 1100px) and (orientation: portrait), (max-width: 620px) {
    .hero { padding-bottom: 0; }
    .hero::after { display: none; }
    .hero-in { width: 100%; grid-template-columns: minmax(0, 1fr); }
    .windows { width: min(100%, 780px); margin-inline: auto; grid-template-columns: repeat(4, 1fr); gap: 2%; padding: 14px 16px 0; }
    .hero-text { width: min(100%, 680px); margin-inline: auto; padding: 0 18px 34px; }
    .hero-text::before { content: ""; display: block; width: 100vw; height: 14px; margin: 0 0 clamp(14px, 3vw, 24px) calc(50% - 50vw); background: linear-gradient(#fbfcfd 0 5px, var(--edge) 5px 6px, #d3dbe3 6px 13px, #b3bec9 13px); }
    .lead { padding-right: 62px; }
  }
  @media (max-width: 620px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 36px); }
    .bar { height: 54px; padding-inline: 16px; }
    .hero h1 { font-size: 25px; }
    .lead { margin-top: 6px; font-size: 16.5px; line-height: 1.65; }
    .cta { gap: 9px; margin-top: 15px; }
    .dl-btn, .alt-btn { padding: 15px 22px; font-size: 24px; }
    .facts { margin-top: 15px; }
    .facts div { padding: 6px 12px 7px; }
    .tale li { grid-template-columns: 84px 1fr; gap: 18px; min-height: 118px; }
    .tale li::before { border-width: 3px 5px; }
    .tale li:first-child::before { border-radius: 42px 42px 0 0 / 56px 56px 0 0; }
    .tale p { font-size: 17px; line-height: 1.75; padding-block: 16px; }
    .med { width: 66px; }
    .p-text { padding: 20px 18px; }
    .panes { gap: 6px; }
    .panes li { font-size: 19px; }
    .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .plate { width: calc(100% - 28px); margin-bottom: 20px; padding: 7px 2px 8px; border-width: 3px; }
    .plate h3 { font-size: 20px; }
    .plate p { font-size: 13px; }
    .spec th, .spec td { padding: 10px 8px 10px 0; }
    .spec tbody th { width: 76px; }
    .slab { padding: 22px 18px 24px; }
    .qa p { padding-right: 0; }
    .foot { padding-top: 132px; }
    .cast-light { left: -150px; width: calc(100% + 150px); }
    .doc { padding: 48px 18px 60px; width: 100%; }
    .doc h1 { font-size: 36px; }
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .lan { animation: dawn 1.1s cubic-bezier(.3, 0, .2, 1) both; }
    .lan:nth-child(2) { animation-delay: .12s; }
    .lan:nth-child(3) { animation-delay: .24s; }
    .lan:nth-child(4) { animation-delay: .36s; }
    @keyframes dawn { from { filter: brightness(.42) saturate(.7); } }
    .qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .25s, content-visibility .25s allow-discrete; }
    .qa details[open]::details-content { block-size: auto; }
    :root { interpolate-size: allow-keywords; }
    @supports (animation-timeline: view()) {
      .cast-light { animation: lit linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
      @keyframes lit { from { opacity: 0; } to { opacity: .5; } }
    }
  }
}
