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

/* 标题字: 寒蝉活仿楷 (OFL); 标点走系统字体, 这款字的逗号是居中的繁体写法 */
@font-face { font-family: "Feiyue"; src: url(/fonts/title.woff2?h=056e33a1) format("woff2"); font-display: swap;
  unicode-range: U+20, U+2E, U+30-39, U+41-5A, U+61-7A, U+4E00-9FFF; }

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

@layer base {
  :root {
    --dai: #0e2b33;          /* 黛: 夜 */
    --yu: #d3e2d8;           /* 玉简 */
    --yue: #ecf2f0;          /* 月白: 正文底 */
    --zhi: #fbfdfc;
    --ink: #10262d;
    --ink-2: #3f575d;
    --fei: #b3152d;          /* 绯 */
    --fei-l: #c9243d;
    --fei-d: #8c1026;
    --jin: #b58a35;          /* 泥金 */
    --jin-l: #d9b565;
    --ou: #f0e3f5;           /* 藕荷: 只在战斗那块用 */
    --ou-ink: #5a2a62;
    --bar: 62px;
    --svh: 100vh;
    --wrap: min(1320px, 100% - 120px);
    --hei: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
    --ke: "Feiyue", "Kaiti SC", "STKaiti", "KaiTi", "PingFang SC", "Microsoft YaHei", serif;
    color-scheme: light;
    scroll-padding-top: 88px;
  }
  @supports (height: 100svh) { :root { --svh: 100svh; } }
  html { background: var(--dai); -webkit-text-size-adjust: 100%; }
  body { font: 16px/1.85 var(--hei); color: var(--ink); background: var(--yue); text-wrap: pretty; overflow-x: clip; }
  h1, h2, h3 { line-height: 1.3; font-weight: 400; }
  .t { font-family: var(--ke); font-weight: 400; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--fei); outline-offset: 3px; }
  .bar :focus-visible, .hero :focus-visible, .shots :focus-visible, .foot :focus-visible, .lb :focus-visible { outline-color: var(--jin-l); }
  .skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--zhi); }
  .skip:focus { left: 12px; }
  .defs { position: absolute; }
}

@layer layout {
  .wrap { width: var(--wrap); margin-inline: auto; }

  /* 每一节: 左边挂一枚玉简写节名, 一根金线穿过简上的孔 */
  .sec { --pt: 0px; position: relative; padding-block: var(--pt) clamp(88px, 9vw, 132px); }
  .sec::before { content: ""; position: absolute; inset-inline: 0; top: calc(var(--pt) + 21px); height: 1px; background: var(--jin); opacity: .55; }
  .sec > .wrap { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .yj { grid-row: 1 / span 4; }
  .sec > .wrap > .sub, .sec > .wrap > .body { grid-column: 2; }
  .body { padding-top: 76px; }
  .sub { max-width: 44em; padding-top: 70px; color: var(--ink-2); }
  .sub + .body { padding-top: 30px; }
  h3.t { font-size: 27px; }
}

@layer parts {
  /* 顶栏 */
  .bar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 28px; height: var(--bar); padding-inline: calc((100% - var(--wrap)) / 2);
    background: var(--dai); color: #e4efea; border-bottom: 1px solid rgb(217 181 101 / .4); }
  .brand { font-size: 25px; letter-spacing: .06em; text-decoration: none; }
  .bar nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
  .bar nav a { padding: 6px 0; text-decoration: none; color: #bfd2cb; }
  .bar nav a:hover { color: #fff; }
  .pill { border: 0; padding: 7px 18px; font-size: 15px; font-weight: 600; background: var(--fei); color: #fff; border-radius: 2px; }
  .pill:hover { background: var(--fei-l); }

  /* 首屏: 五枚玉简挂在顶栏下, 一轮绯月刻在上面; 简对齐, 月就圆 */
  .hero { position: relative; z-index: 2; background: var(--dai); color: #e9f2ee; }
  .hero-in { --vh: max(var(--svh), 620px); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(36px, 5.4vw, 92px); align-items: start;
    width: var(--wrap); height: var(--vh); margin-inline: auto; padding-top: var(--bar); }
  .ces { --W: min(43vw, calc((var(--vh) - var(--bar)) * .78), 720px); --g: calc(var(--W) * .0135); --w: calc((var(--W) - 4 * var(--g)) / 5); --mt: 52px;
    --H: calc(var(--vh) - var(--bar) - 26px + 66px);
    display: flex; gap: var(--g); width: var(--W); height: var(--H); margin-top: 26px; }
  .jian { position: relative; flex: none; width: var(--w); height: calc(var(--H) - var(--cut)); box-shadow: 0 14px 26px -8px rgb(6 22 28 / .55); }
  .jian::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -240px; width: 2px; height: 252px; translate: -50% 0; background: var(--jin-l); }
  .jian:nth-child(1) { --tone: #d3e2d8; --cut: 30px; --d: -70px; --wait: .16s; }
  .jian:nth-child(2) { --tone: #cbddd1; --cut: 0px; --d: 44px; --wait: .38s; }
  .jian:nth-child(3) { --tone: #d8e6dd; --cut: 44px; --d: -34px; --wait: 0s; }
  .jian:nth-child(4) { --tone: #cddfd4; --cut: 14px; --d: 62px; --wait: .5s; }
  .jian:nth-child(5) { --tone: #d5e4da; --cut: 36px; --d: -52px; --wait: .28s; }
  .face { position: absolute; inset: 0; overflow: hidden; background: var(--tone);
    clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 9px); }
  .face::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 10px; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%; background: var(--dai); box-shadow: 0 0 0 2px var(--jin); }
  .face::after { content: ""; position: absolute; inset: 0; box-shadow: inset 2px 0 0 rgb(255 255 255 / .42), inset -3px 0 0 rgb(14 43 51 / .17); }
  .moon { position: absolute; left: calc(var(--i) * -1 * (var(--w) + var(--g))); top: var(--mt); width: var(--W); height: var(--W); border-radius: 50%; background: var(--fei-l); overflow: hidden; }
  .moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--fei-d); translate: -13% 6%; }
  .scape { position: absolute; left: calc(var(--i) * -1 * (var(--w) + var(--g))); top: calc(var(--H) - var(--W) * .62); width: var(--W); height: calc(var(--W) * .62); overflow: visible; }
  .face b { position: absolute; z-index: 1; inset-inline: 0; top: calc(var(--mt) + var(--W) / 2); translate: 0 -50%; text-align: center; font-weight: 400; font-size: calc(var(--w) * 1.04); line-height: 1; color: #f5faf7; }
  .p0, .p1, .p2, .p3, .p4 { stroke: var(--jin); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .p0 { fill: #1c5466; } .p1 { fill: #31707c; } .p2 { fill: #588f93; } .p3 { fill: #8db5b0; } .p4 { fill: #c2d8cf; }
  .ce rect { fill: none; stroke: var(--jin); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
  .cf rect { fill: #f3f8f5; }
  .wf { fill: var(--tone, var(--yu)); stroke: var(--jin); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
  .wl { fill: none; stroke: var(--jin); stroke-width: .9; vector-effect: non-scaling-stroke; }

  .copy { align-self: center; container-type: inline-size; }
  .lead { font-size: clamp(25px, 2.35vw, 34px); line-height: 1.6; max-width: 17em; }
  .slab { display: grid; grid-template-columns: repeat(4, auto); width: fit-content; margin-top: 34px; }
  .slab div { padding: 2px 20px; border-left: 1px solid rgb(217 181 101 / .45); }
  .slab div:first-child { padding-left: 0; border-left: 0; }
  .slab dt { font-size: 13px; color: #a9c2b9; }
  .slab dd { font-size: 16px; white-space: nowrap; }
  .slab small { display: inline-block; font-size: 13px; color: #a9c2b9; }
  .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
  .dl-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 13px 32px; font-size: 25px; line-height: 1.4; letter-spacing: .04em; color: #fff; text-decoration: none; background: var(--fei); border-radius: 2px;
    box-shadow: inset 0 0 0 3px var(--fei), inset 0 0 0 4px rgb(255 255 255 / .6); }
  .dl-btn:hover { background: var(--fei-l); box-shadow: inset 0 0 0 3px var(--fei-l), inset 0 0 0 4px rgb(255 255 255 / .6); }
  .ghost { display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; padding: 10px 20px; font-size: 15px; line-height: 1.5; background: transparent; border-radius: 2px; }
  .ghost:hover { background: rgb(16 38 45 / .07); }
  .ghost.alt { padding: 12px 28px; font-size: 25px; line-height: 1.4; letter-spacing: .04em; color: var(--yu); }
  .hero .ghost.alt:hover { background: rgb(255 255 255 / .09); }
  .ti { position: absolute; right: 0; top: calc(var(--bar) + 52px); writing-mode: vertical-rl; padding: 20px 9px 18px; font-size: 27px; line-height: 1.2; letter-spacing: .16em; color: var(--ink); background: var(--zhi); box-shadow: inset 0 0 0 4px var(--zhi), inset 0 0 0 5px var(--fei); }

  /* 节名那枚玉简 */
  .yj { position: sticky; top: calc(var(--bar) + 22px); z-index: 1; justify-self: start; writing-mode: vertical-rl; padding: 50px 15px 24px; font-size: 38px; line-height: 1; letter-spacing: .12em; color: var(--ink); background: var(--yu);
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 7px);
    box-shadow: inset 2px 0 0 rgb(255 255 255 / .6), inset -3px 0 0 rgb(14 43 51 / .16); }
  .yj::before { content: ""; position: absolute; left: 50%; top: 16px; width: 10px; height: 10px; translate: -50% 0; border-radius: 50%; background: var(--dai); box-shadow: 0 0 0 2px var(--jin); }

  /* 故事: 朱丝栏的一页 */
  .story { --pt: 116px; }
  .story-grid { display: grid; grid-template-columns: auto minmax(0, 500px); justify-content: space-between; gap: 72px; align-items: start; }
  .ye { --col: 54px; writing-mode: vertical-rl; width: max-content; height: calc(25px * 1.08 * 13 + 44px); padding: 22px 0; font-size: 25px; line-height: var(--col); letter-spacing: .08em; background: var(--zhi); border: 5px double var(--fei);
    background-image: repeating-linear-gradient(to left, transparent 0 calc(var(--col) - 1px), rgb(179 21 45 / .42) calc(var(--col) - 1px) var(--col)); }
  .credit { align-self: end; font-size: 15px; }
  .credit div { display: grid; grid-template-columns: 96px 1fr; padding: 11px 0; border-top: 1px solid rgb(16 38 45 / .16); }
  .credit dt { color: var(--ink-2); }

  /* 玩法: 一根绯线分三股, 挂着三枚签 */
  .choose { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; align-items: start; }
  .say p { margin-top: 6px; max-width: 27em; font-size: 17px; }
  .say p + h3 { margin-top: 38px; }
  .fork { width: 420px; max-width: 100%; }
  .cord { display: block; width: 100%; height: 128px; fill: none; stroke: var(--fei); stroke-width: 2.5; stroke-linecap: round; overflow: visible; }
  .cord path { vector-effect: non-scaling-stroke; }
  .ends { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; align-items: start; }
  .ends li { position: relative; writing-mode: vertical-rl; display: flex; align-items: center; justify-content: space-between; height: 320px; padding: 40px 14px 18px; font-size: 27px; line-height: 1.2; letter-spacing: .06em; background: var(--yu);
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 6px);
    box-shadow: inset 2px 0 0 rgb(255 255 255 / .6), inset -3px 0 0 rgb(14 43 51 / .16); }
  .ends li::before { content: ""; position: absolute; left: 50%; top: 14px; width: 9px; height: 9px; translate: -50% 0; border-radius: 50%; background: var(--dai); box-shadow: 0 0 0 2px var(--jin); }
  .ends li::after { content: ""; width: 34px; height: 34px; border-radius: 50%; }
  .e1 { margin-top: -22px; } .e2 { margin-top: 0; } .e3 { margin-top: -12px; }
  .e1::after { background: var(--fei-l); }
  .e2::after { background: #3a141d; }
  .e3::after { background: linear-gradient(90deg, #3a141d 50%, var(--fei-l) 50%); }
  .note { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
  .fork .note { text-align: center; }

  /* 战斗: 照游戏结算面板的藕荷色云框 */
  .play .body { isolation: isolate; }
  .pan { position: relative; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 110px; padding: 44px 56px 44px 44px; background: var(--ou); border-radius: 0 64px 0 64px; }
  .pan::before, .pan::after { content: ""; position: absolute; z-index: -1; height: 64px; background: #e4cdee; border-radius: 32px; }
  .pan::before { top: -26px; left: 0; width: 58%; }
  .pan::after { bottom: -26px; right: 0; width: 52%; }
  .lotus { display: block; width: 100%; height: auto; }
  .lb path { fill: #e8cdf1; stroke: #fff; stroke-width: 3; }
  .lf path { fill: #d8a6e4; stroke: #fdf6ff; stroke-width: 4; }
  .lh path { fill: var(--ou); stroke: #fdf6ff; stroke-width: 2; }
  .lc { fill: #a5688f; }
  .lr { fill: none; stroke: #f3b0bd; stroke-width: 13; }
  .lp { fill: rgb(240 178 228 / .72); }
  .le { stroke: #fff; stroke-width: 2.5; fill: none; }
  .li { fill: #c95fc5; }
  .li.on { fill: #a93aa8; }
  .lt { font-size: 27px; letter-spacing: .06em; text-anchor: middle; fill: #fff; }
  .lq { fill: #fffdf2; stroke: #c9a24a; stroke-width: 2; stroke-linejoin: round; }
  .pan h3 { color: var(--ou-ink); }
  .pan-in > p { margin-top: 8px; max-width: 30em; }
  .stat { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 22px; align-items: center; max-width: 470px; margin-top: 22px; padding: 18px 24px 18px 18px; background: #fffaf6; border: 2px solid #efb9ab; border-radius: 14px; box-shadow: inset 0 0 0 4px #fffaf6, inset 0 0 0 5px #f6d6cb; }
  .who { display: grid; justify-items: center; gap: 4px; font-size: 22px; line-height: 1.3; }
  .who img { width: 88px; height: 88px; border-radius: 50%; border: 3px solid #efb9ab; }
  .stat dl div { display: grid; grid-template-columns: 42px 1fr; align-items: center; font-size: 15px; padding: 3px 0; }
  .stat dd { position: relative; height: 20px; background: #e3d3b4; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%); }
  .stat dd i { position: absolute; inset: 0 auto 0 0; width: var(--v); }
  .stat dd span { position: absolute; inset: 0; text-align: center; font-size: 13px; line-height: 20px; font-weight: 600; color: #2a1016; }
  .hp i { background: #ee7a70; } .mp i { background: #76b4ee; } .np i { background: #f0a13e; }

  /* 画面 */
  .shots { --pt: 0px; padding-top: 96px; background: var(--dai); color: #e4efea; }
  .shots::before { top: 117px; }
  .shots .sub { color: #bfd2cb; }
  .grid { --gap: 28px; display: flex; flex-wrap: wrap; gap: 26px var(--gap); }
  .grid li { width: calc((100% - var(--gap)) * var(--s, .5)); }
  /* 头一排两张比例不一样 (16:9 与 1000:648), 按比例分宽, 高就齐 */
  .grid li:nth-child(1) { --s: .5353; }
  .grid li:nth-child(2) { --s: .4646; --ar: 1000 / 648; }
  .shot { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
  .shot picture { aspect-ratio: var(--ar, 16 / 9); overflow: hidden; border: 1px solid rgb(217 181 101 / .5); }
  .shot img { width: 100%; height: 100%; object-fit: cover; }
  .cap { display: block; padding-top: 9px; font-size: 15px; color: #d6e4de; }
  .shot:hover .cap { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--jin-l); }

  /* 配置 */
  .req { --pt: 96px; }
  .spec { width: 100%; font-size: 16px; }
  .spec th, .spec td { padding: 12px 18px 12px 0; text-align: left; font-weight: 400; vertical-align: top; border-bottom: 1px solid rgb(16 38 45 / .16); }
  .spec thead th { font-weight: 700; color: var(--fei); border-bottom: 2px solid var(--fei); }
  .spec thead td { border-bottom: 2px solid var(--fei); }
  .spec tbody th { width: 136px; color: var(--ink-2); }
  .spec td:nth-child(2) { width: 46%; }

  /* 安装 */
  .setup-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .steps { counter-reset: s; display: grid; gap: 16px; margin-top: 18px; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 16px; }
  .steps li::before { content: counter(s, cjk-ideographic); display: grid; place-items: center; height: 44px; margin-top: -6px; font: 400 21px/1 var(--ke); background: var(--yu); clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%, 0 5px); box-shadow: inset -2px 0 0 rgb(14 43 51 / .16); }
  .tip { margin-top: 10px; }
  .steps + h3 { margin-top: 44px; }
  .file { padding: 28px 30px 30px; background: var(--zhi); border: 5px double var(--fei); }
  .file dl { margin-top: 10px; }
  .file .second { margin-top: 28px; border-top: 1px solid var(--fei); }
  .file dl div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid rgb(179 21 45 / .28); }
  .file dt { color: var(--ink-2); }
  .file dd { overflow-wrap: anywhere; }
  .file code { font: 500 13px/1.7 ui-monospace, Menlo, Consolas, monospace; }
  .file-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
  .file .dl-btn { font-size: 22px; padding: 10px 24px; }

  /* 问答 */
  .faq { padding-bottom: 120px; }
  .qa details { max-width: 820px; border-bottom: 1px solid rgb(16 38 45 / .16); }
  .qa summary { position: relative; padding: 17px 44px 17px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
  .qa summary::-webkit-details-marker { display: none; }
  .qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: linear-gradient(90deg, var(--fei-d) 50%, var(--fei-l) 50%); }
  .qa details[open] summary::after { background: var(--fei-l); }
  .qa p { padding: 0 44px 20px 0; color: var(--ink-2); }

  /* 页脚: 月落 */
  .foot { position: relative; overflow: hidden; padding: 64px 0 76px; background: var(--dai); color: #b4c9c1; font-size: 15px; }
  .foot-title { margin-bottom: 10px; font-size: 34px; color: #e9f2ee; }
  .links { display: flex; gap: 24px; margin-top: 12px; }
  .set { position: absolute; right: calc((100% - var(--wrap)) / 2); bottom: -120px; display: flex; gap: 4px; width: 260px; height: 260px; }
  .set i { flex: 1; background: radial-gradient(circle 130px at calc(130px - var(--x)) 130px, var(--fei) 129.4px, transparent 130px); }
  .set i:nth-child(1) { --x: 0px; --o: 60px; } .set i:nth-child(2) { --x: 52.8px; --o: -26px; } .set i:nth-child(3) { --x: 105.6px; --o: 38px; } .set i:nth-child(4) { --x: 158.4px; --o: -44px; } .set i:nth-child(5) { --x: 211.2px; --o: 22px; }

  /* 弹窗 */
  dialog { padding: 0; border: 0; color: var(--ink); }
  dialog::backdrop { background: rgb(6 22 28 / .78); }
  .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; line-height: 1; }
  .dlg { width: min(440px, 100% - 32px); padding: 34px 28px 30px; text-align: center; background: var(--zhi); border: 5px double var(--fei); }
  .dlg h2 { font-size: 36px; }
  .dlg-file { margin: 6px 0 18px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
  #ts-box { display: grid; place-items: center; min-height: 70px; }
  #dl-status { margin-top: 14px; font-size: 15px; }
  #dl-link { margin-top: 16px; font-size: 18px; }
  .lb { width: min(1280px, 100% - 24px); max-height: calc(100svh - 24px); overflow: visible; background: transparent; color: #e9f2ee; }
  .lb picture img { width: 100%; height: auto; max-height: calc(100svh - 130px); object-fit: contain; background: #06161c; }
  #lb-cap { margin-top: 12px; text-align: center; }
  .lb-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
  .lb-nav button { width: 44px; height: 44px; border: 1px solid rgb(217 181 101 / .6); background: var(--dai); font-size: 22px; line-height: 1; }
  .lb .x { top: 8px; right: 8px; z-index: 1; color: #fff; background: rgb(6 22 28 / .72); }

  /* 隐私 / 条款 / 404 */
  .doc-page { min-height: 100svh; }
  .doc { max-width: 720px; padding-block: 72px 96px; }
  .doc h1 { margin: 20px 0 26px; font-size: 46px; }
  .doc h2 { margin: 30px 0 6px; font-size: 19px; font-weight: 700; }
  .doc p { margin-top: 10px; }
  .doc .dl-btn { margin-top: 18px; font-size: 20px; }
  .doc .date { margin-top: 36px; font-size: 14px; color: var(--ink-2); }
  .back { color: var(--fei); text-decoration: none; }
}

@layer responsive {
  @container (max-width: 620px) {
    .slab { grid-template-columns: auto auto; gap: 16px 0; }
    .slab div:nth-child(odd) { padding-left: 0; border-left: 0; }
  }
  @media (max-width: 1180px) {
    .ti { display: none; }
    .choose { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
    .fork { width: 360px; }
    .story-grid { gap: 48px; }
  }
  @media (max-width: 1000px) {
    :root { --wrap: min(1320px, 100% - 72px); }
    .bar nav { display: none; }
    .bar .pill { margin-left: auto; }
    .sec > .wrap { column-gap: 40px; }
    .story-grid, .choose, .setup-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .fork { justify-self: center; }
    .credit { align-self: auto; }
    .pan { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; padding: 34px 36px; }
  }
  /* 竖屏: 玉简在上, 字在下 */
  @media (max-width: 1000px) and (orientation: portrait), (max-width: 680px) {
    .hero-in { display: block; height: auto; padding-bottom: 64px; }
    .ces { --W: min(100vw - 72px, 560px); --H: calc(var(--W) * 1.2); --mt: 34px; margin: 18px auto 0; }
    .jian { --cut: 0px !important; }
    .copy { width: min(100%, 560px); margin: 26px auto 0; }
    .story { --pt: 64px; }
  }
  /* 横放的手机和小平板: 仍然左右两栏, 高度收紧 */
  @media (min-width: 681px) and (max-width: 1000px) and (orientation: landscape) {
    .hero-in { --vh: max(var(--svh), 440px); }
    .ces { --mt: 40px; }
    .copy { display: flex; flex-direction: column; }
    .lead { font-size: 22px; }
    .cta { order: 1; }
    .slab { order: 2; }
    .slab, .cta { margin-top: 20px; }
    .dl-btn, .ghost.alt { padding: 10px 24px; font-size: 22px; }
  }
  @media (max-width: 680px) {
    :root { --bar: 52px; --wrap: min(1320px, 100% - 36px); scroll-padding-top: 72px; }
    .brand { font-size: 22px; }
    .pill { padding: 6px 14px; font-size: 14px; }
    .ces { --W: min(100vw - 36px, (var(--svh) - 250px) / 1.17); --g: 6px; --H: calc(var(--W) * 1.17); --mt: 30px; margin-top: 14px; }
    .jian { box-shadow: none; }
    .jian:nth-child(1) { --cut: 12px !important; --d: -26px; } .jian:nth-child(2) { --d: -6px; } .jian:nth-child(3) { --cut: 18px !important; --d: -40px; } .jian:nth-child(4) { --cut: 5px !important; --d: -14px; } .jian:nth-child(5) { --cut: 14px !important; --d: -32px; }
    .face { clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%, 0 6px); }
    .face::before { top: 8px; width: 8px; height: 8px; }
    .jian::before { height: 250px; }
    .copy { display: flex; flex-direction: column; margin-top: 16px; }
    .lead { font-size: 21px; line-height: 1.5; max-width: none; }
    .cta { order: 1; gap: 10px; margin-top: 16px; }
    .cta > * { flex: 1; }
    .dl-btn, .ghost.alt { padding: 12px 10px; font-size: 23px; white-space: nowrap; }
    .slab { order: 2; grid-template-columns: 1fr 1fr; gap: 14px 0; width: 100%; margin-top: 24px; }
    .slab div { padding: 0 0 0 16px; }
    .slab dd { white-space: normal; }
    .hero-in { padding-bottom: 48px; }

    .sec { padding-bottom: 72px; }
    .sec > .wrap { grid-template-columns: 46px minmax(0, 1fr); column-gap: 0; }
    .yj { grid-row: 1; position: relative; top: 0; padding: 42px 9px 16px; font-size: 28px; }
    .yj::before { width: 9px; height: 9px; }
    .sec > .wrap > .sub { padding: 40px 0 0 18px; }
    .sec > .wrap > .body, .sec > .wrap > .sub + .body { grid-column: 1 / -1; padding-top: 26px; }
    h3.t { font-size: 25px; }

    .ye { writing-mode: horizontal-tb; width: auto; height: auto; padding: 18px 18px 20px; font-size: 20px; line-height: 1.75; letter-spacing: .02em; background-image: none; }
    .ye p + p { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgb(179 21 45 / .35); }
    .fork { width: 100%; }
    .cord { overflow: hidden; }
    .ends li { height: 306px; padding: 40px 12px 16px; font-size: 25px; }
    .pan { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 76px -18px 0; padding: 28px 18px 36px; border-radius: 0 44px 0 44px; }
    .lotus { width: min(300px, 86%); margin-inline: auto; }
    .stat { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px 16px 14px 12px; }
    .who img { width: 76px; height: 76px; }
    .who { font-size: 20px; }
    .shots { padding-top: 72px; }
    .shots::before { top: 93px; }
    .grid { gap: 22px; }
    .grid li { width: 100%; }
    .shots .shot { width: calc(100% + 36px); margin-inline: -18px; }
    .shots .shot picture { border-inline: 0; }
    .shots .cap { padding-inline: 18px; }
    .req { --pt: 72px; }
    .spec { font-size: 15px; }
    .spec th, .spec td { padding: 11px 10px 11px 0; }
    .spec tbody th { width: 74px; }
    .file { padding: 22px 18px 24px; }
    .file dl div { grid-template-columns: 70px 1fr; gap: 10px; }
    .file-act > * { flex: 1; white-space: nowrap; }
    .qa summary { font-size: 16px; }
    .faq { padding-bottom: 88px; }
    .foot { padding: 52px 0 150px; }
    .set { right: 18px; bottom: -130px; scale: .86; transform-origin: 100% 100%; }
    .doc h1 { font-size: 38px; }
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .jian { animation: drop 1.3s var(--wait) cubic-bezier(.16, .9, .22, 1) both; }
    @keyframes drop { from { translate: 0 calc(-100% - 120px); } }
    @supports (animation-timeline: scroll()) {
      .jian { animation: drop 1.3s var(--wait) cubic-bezier(.16, .9, .22, 1) both, drift 1s linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 92svh; }
      @keyframes drift { to { transform: translateY(var(--d)); } }
      .set i { animation: settle 1s linear both; animation-timeline: scroll(root); animation-range: calc(100% - 340px) calc(100% - 20px); }
      @keyframes settle { from { translate: 0 var(--o); } }
    }
    :root { interpolate-size: allow-keywords; }
    .qa details::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
    .qa details[open]::details-content { block-size: auto; }
    ::view-transition-group(shot) { animation-duration: .32s; }
  }
}
