/* September refinement: modern Chinese type and source-linked WSI motion. */
:root {
  --chinese: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --sans: "DM Sans", var(--chinese);
}
html[data-lang="zh"] h1,
html[data-lang="zh"] h2,
html[data-lang="zh"] .workflow-grid h3,
html[data-lang="zh"] .closing-note p {
  font-family: var(--chinese);
  font-weight: 500;
  letter-spacing: -.035em;
}
html[data-lang="zh"] .hero h1 { font-size: clamp(42px, 4.35vw, 62px); line-height: 1.43; }
html[data-lang="zh"] .hero-lead { font-size: 16px; line-height: 2; color: #66645a; }
html[data-lang="zh"] .section-heading h2,
html[data-lang="zh"] .philosophy-copy h2,
html[data-lang="zh"] .download-copy h2 { font-size: clamp(28px, 2.8vw, 39px); line-height: 1.55; }
html[data-lang="zh"] .workflow-grid h3 { font-size: 21px; letter-spacing: -.025em; }
.paper-frame>img { filter: none; }
.viewer-canvas { background: #f7f6f4; }
.sample-slide img { object-fit: contain; background: #fff; }
.scope-section { padding-top: 54px; padding-bottom: 30px; }
.scope-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 36px; }
.scope-heading>p:not(.eyebrow) { max-width: 345px; font-size: 14px; margin: 0 0 7px; }
.scope-showcase { display: grid; grid-template-columns: minmax(0,1fr) 290px; border: 1px solid #ddd8cd; border-radius: 18px; overflow: hidden; background: #fffefa; box-shadow: 0 12px 38px #3931230a; }
.scope-viewport { aspect-ratio: 4/3; min-width: 0; position: relative; overflow: hidden; background: #fff; align-self: center; isolation: isolate; }
.scope-world { position: absolute; inset: 0; contain: layout paint; }
.scope-layer { position: absolute; object-fit: fill; max-width: none; user-select: none; pointer-events: none; }
.scope-layer:not(:first-child) { opacity: 0; }
.scope-controls { padding: 15px; display: flex; flex-direction: column; background: #fffefa; border-left: 1px solid #e7e3da; }
.scope-tabs { display: grid; grid-template-rows: repeat(3,1fr); flex: 1; gap: 7px; }
.scope-step { display: flex; align-items: flex-start; text-align: left; padding: 26px 16px; gap: 13px; border-radius: 10px; border: 1px solid transparent; transition: background .2s,border-color .2s; }
.scope-step:hover { background: #f6f3ec; }
.scope-step[aria-selected="true"] { background: #f0ebe2; border-color: #e2d6c7; }
.scope-index { width: 25px; height: 25px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #ddd6c9; border-radius: 50%; font-size: 9px; margin-top: 1px; color: #948b7c; }
.scope-step[aria-selected="true"] .scope-index { background: #c17858; color: #fffdf6; border-color: #c17858; }
.scope-step strong { display: block; font-size: 17px; font-weight: 500; line-height: 1.6; }
.scope-step small { display: block; color: #817a6c; font-size: 11px; line-height: 1.95; margin-top: 9px; }
.scope-step em { display: block; font-style: normal; letter-spacing: .1em; font-size: 7px; color: #a29480; margin-top: 21px; }
.scope-play { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: #817363; min-height: 43px; margin-top: 11px; border-top: 1px solid #e9e1d3; }
.scope-play:hover { color: #a66143; }
#scopePlayIcon { width: 16px; text-align: center; font-size: 15px; }
.scope-topline { position: absolute; left: 18px; top: 17px; display: flex; gap: 7px; align-items: center; font-size: 9px; color: #797168; background: #fffdf4dd; padding: 6px 9px; border-radius: 5px; }
.scope-topline .status-dot { width: 4px; height: 4px; }
.scope-view-label { position: absolute; bottom: 17px; right: 17px; display: flex; align-items: center; gap: 11px; padding: 9px 14px; border-radius: 8px; background: #302d26df; color: #fffdf5; font-size: 10px; }
.scope-view-label>span { border-right: 1px solid #ffffff42; padding-right: 10px; font-size: 9px; }
.scope-view-label strong { font-weight: 500; }
.scope-transition-label { position: absolute; bottom: 20px; left: 20px; padding: 6px 10px; border-radius: 4px; background: #fffdf3dc; color: #8f6049; font-size: 10px; opacity: 0; transition: opacity .15s; }
.scope-showcase:not([data-phase="idle"]) .scope-transition-label { opacity: 1; }
.scope-target { position: absolute; left: 27%; top: 20%; width: 16%; height: 16%; border: 2px solid #c97e58; border-radius: 7px; box-shadow: 0 0 0 3px #fffdf5b3; pointer-events: none; opacity: 0; transition: opacity .2s; }
.scope-target span { position: absolute; left: -2px; top: -21px; padding: 1px 6px; background: #b86e4d; color: #fff; font-size: 8px; border-radius: 3px 3px 0 0; }
.scope-showcase[data-phase="aim"] .scope-target { opacity: 1; }
.scope-pointer { position: absolute; left: 23%; top: 68%; width: 25px; height: 32px; opacity: 0; pointer-events: none; transition: left .4s cubic-bezier(.2,.75,.3,1),top .4s cubic-bezier(.2,.75,.3,1),opacity .16s; filter: drop-shadow(0 2px 3px #0004); }
.scope-pointer>svg { width: 25px; height: 32px; fill: #35332d; stroke: #fff; stroke-width: 1.5; }
.scope-showcase[data-phase="aim"] .scope-pointer,
.scope-showcase[data-phase="zoom"] .scope-pointer { opacity: 1; }
.scope-wheel { position: absolute; left: 29px; top: 2px; width: 24px; height: 37px; background: #373229d9; border: 1px solid #fffc; border-radius: 12px; opacity: 0; transition: opacity .15s; }
.scope-wheel i { position: absolute; width: 3px; height: 7px; background: #e3ae8d; border-radius: 3px; top: 8px; left: 9px; }
.scope-wheel b { position: absolute; left: 7px; bottom: 3px; font-size: 10px; font-weight: 500; color: #fff8eb; }
.scope-showcase[data-phase="zoom"] .scope-wheel { opacity: 1; }
.scope-showcase[data-phase="zoom"] .scope-wheel i { animation: scope-wheel-up .35s ease-in-out 3; }
.scope-showcase[data-direction="out"] .scope-wheel { transform: rotate(180deg); }
.scope-footnote { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 10px; color: #8c8272; margin-top: 17px; }
@keyframes scope-wheel-up { from { transform: translateY(3px); opacity: .3; } to { transform: translateY(-3px); opacity: 1; } }
@media(max-width:1120px) {
  .scope-showcase { grid-template-columns: minmax(0,1fr) 244px; }
  .scope-step { padding: 17px 11px; gap: 10px; }
  .scope-step em { margin-top: 13px; font-size: 6px; }
  .scope-step strong { font-size: 15px; }
  .scope-step small { font-size: 10px; }
  .scope-heading>p:not(.eyebrow) { max-width: 280px; font-size: 13px; }
}
@media(max-width:800px) {
  html[data-lang="zh"] .hero h1 { font-size: 36px; }
  html[data-lang="zh"] .hero-lead { font-size: 13px; }
  .scope-showcase { grid-template-columns: minmax(0,1fr) 200px; }
  .scope-controls { padding: 9px; }
  .scope-step { padding: 13px 7px; gap: 8px; }
  .scope-step strong { font-size: 13px; }
  .scope-step small { font-size: 9px; line-height: 1.8; margin-top: 5px; }
  .scope-index { width: 21px; height: 21px; font-size: 8px; }
  .scope-step em { display: none; }
  .scope-tabs { gap: 4px; }
  .scope-play { font-size: 10px; min-height: 34px; margin-top: 5px; }
  .scope-footnote { font-size: 8px; }
}
@media(max-width:560px) {
  html[data-lang="zh"] .hero h1 { font-size: clamp(29px,8vw,39px); line-height: 1.48; letter-spacing: -.045em; }
  html[data-lang="zh"] .hero-lead { font-size: 14px; }
  html[data-lang="zh"] .section-heading h2,
  html[data-lang="zh"] .philosophy-copy h2,
  html[data-lang="zh"] .download-copy h2 { font-size: 27px; line-height: 1.6; }
  html[data-lang="zh"] .workflow-grid h3 { font-size: 17px; }
  .scope-section { padding-top: 34px; padding-bottom: 10px; }
  .scope-heading { display: block; margin-bottom: 24px; }
  .scope-heading>p:not(.eyebrow) { max-width: none; font-size: 12px; margin-top: 18px; }
  .scope-showcase { grid-template-columns: minmax(0,1fr); border-radius: 12px; }
  .scope-viewport { width: 100%; }
  .scope-controls { border-left: 0; border-top: 1px solid #e7e3da; padding: 9px; }
  .scope-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto; gap: 5px; }
  .scope-step { flex-direction: column; gap: 7px; padding: 12px 9px; border-radius: 7px; }
  .scope-step strong { font-size: 12px; }
  .scope-step small { font-size: 9px; line-height: 1.85; margin-top: 6px; }
  .scope-index { width: 20px; height: 20px; }
  .scope-topline { font-size: 7px; left: 10px; top: 10px; padding: 4px 6px; }
  .scope-view-label { bottom: 10px; right: 10px; font-size: 8px; padding: 6px 9px; border-radius: 5px; gap: 7px; }
  .scope-view-label>span { font-size: 7px; padding-right: 7px; }
  .scope-transition-label { bottom: 11px; left: 10px; font-size: 8px; }
  .scope-pointer { transform: scale(.75); transform-origin: 0 0; }
  .scope-target { border-width: 1.5px; box-shadow: 0 0 0 2px #fffdf5b3; border-radius: 4px; }
  .scope-target span { font-size: 6px; top: -16px; }
  .scope-footnote { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 8px; margin-top: 13px; }
  .scope-play { min-height: 40px; }
}
@media(prefers-reduced-motion:reduce) {
  .scope-pointer,.scope-target,.scope-wheel { display: none; }
  .scope-world { will-change: auto; }
}
