/* 页面范围内统一内容宽度和标题。 */
.as-page :is(.as-choose-grid,.dl-grid,.dl-also,.as-faq,.as-rule){max-width:none}
.as-page .as-tut-head{justify-content:center;text-align:center;position:relative}
.as-page .as-tut-head>div:first-child{justify-items:center}
.as-page .as-tut-head>.btn,.as-page .as-tut-head>.os-pick{position:absolute;right:0;bottom:0}
.as-page .as-rule{padding:16px 20px;background:var(--surface-subtle);border:1px solid var(--line);border-left:3px solid var(--warn);border-radius:var(--radius-lg)}
@media(min-width:961px){
  .as-page .as-hero{min-height:0;padding-block:48px 36px}
  .as-page .as-hero-grid{flex:none;align-content:start}
  .as-page .as-hero h1{font-size:clamp(42px,4.4vw,58px);line-height:1.14;margin-top:18px}
}
.as-page .hx-code{background:var(--surface-subtle);color:var(--text)}
.as-page .bt-talk{height:auto;min-height:230px;overflow:visible}
.as-page .pv-video{aspect-ratio:9 / 16;object-fit:contain;background:var(--surface-subtle)}
/* 沿用现有字号、主题色和卡片圆角；示意答案从首帧可读，窗口按内容收紧。 */
.as-page .hx{height:430px}
.as-page .hx-back{height:294px}
.as-page .hx-app{width:78%;height:auto}
.as-page .hx.play :is(.hx-type,.hx-hint,.hx-chip,.hx-foot){animation-name:none}
.as-page .hx-code{white-space:pre-wrap;overflow-wrap:anywhere}
.as-page .hx-code .hx-type{white-space:pre-wrap}
.as-page .hx-foot{margin-top:4px}
.as-page .as-show .win-body{height:auto}
.as-page .as-show .scene{position:relative;inset:auto}
.as-page .as-show .ins{height:auto}
.as-page .as-show .ins-scr{align-self:start}
.as-page .as-show .ins-ph{position:absolute;inset:0}
.as-page .as-show .ins-ph[data-demo-phase]{position:relative;inset:auto}
.as-page .as-show.hold .scene:not([hidden]) .ins-ph:first-child{animation:none;opacity:1}
.as-page .as-show.hold .scene:not([hidden]) .ins-ph:first-child :is(.a,.a-press,.a-fade){animation:none;opacity:1;transform:none}
.as-page .as-keys{padding:0 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}
.as-page #tutorial{padding-bottom:32px}
.as-page #faq{padding-top:32px}
.as-page .as-faq+.faq-more{max-width:none;margin-inline:0}
@media(max-width:820px){
  .as-page .as-show .show-tabs{margin-inline:0;padding-inline:0;flex-wrap:wrap;overflow:visible}
  .as-page .as-show .show-cap{margin-top:18px}
}
@media(max-width:640px){
  .as-page .as-tut-head>.btn,.as-page .as-tut-head>.os-pick{position:static}
  .as-page .hx{height:550px}
  .as-page .hx-back{width:100%;height:220px}
  .as-page .hx-app{width:100%;bottom:0}
  .as-page .as-cta + .as-meta{margin-top:24px}
  .as-page .as-keys>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;justify-content:initial}
  .as-page .as-keys>summary small{grid-column:1;grid-row:2;order:initial;white-space:normal}
  .as-page .as-keys>summary::after{grid-column:2;grid-row:1 / 3;margin-left:0;align-self:center}
  .as-page .as-faq+.faq-more{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
  .as-page .as-faq+.faq-more>span{grid-column:1 / -1}
}

/* 题目和答案上下排列，避免前景窗口截断题目。 */
.as-page .hx{display:grid;gap:12px;height:auto;align-self:start}
.as-page .hx-back{position:relative;width:100%;height:auto;background:var(--surface);border:1px solid var(--control-line)}
/* 笔试题和视频通话叠在同一格，窗口高度由较高的一段决定，切换时卡片和平台行不跳动。 */
.as-page .hx-back-body{display:grid;height:auto;padding:14px 16px}
.as-page .hx[data-mode] .hx-back-body>:is(.hx-q,.hx-call){display:grid;grid-area:1 / 1;min-width:0}
.as-page .hx[data-mode="shot"] .hx-call,.as-page .hx[data-mode="talk"] .hx-q{visibility:hidden}
.as-page .hx-q code{white-space:normal;overflow-wrap:anywhere}
.as-page .hx-scene-talk .hx-foot{margin-top:auto}
.as-page .hx-app{position:relative;width:94%;height:auto;justify-self:end}
.as-page .bt-float{height:150px}
.as-page .fl-page{bottom:auto;padding:10px 14px;gap:6px}
.as-page .fl-slider{bottom:18px}
.as-page .bt-shot{height:180px}
.as-page .bs-keys{bottom:18px}
