/* Home reconstruction only. Loaded after the shared site stylesheet on `/`. */
.home-page::before { display: none; }
/* 背景跟随真实 Hero 高度，避免较长文案或窄屏在底部露出硬切边。 */
.home-hero::before { content: ''; position: absolute; z-index: -1; inset: -88px 0 0; background: linear-gradient(90deg, transparent 3%, #f8faf7eb 10%, #f8faf7f0 40%, transparent 53%), url('./home-hero-bg.webp') center 48% / cover no-repeat; pointer-events: none; }
/* 仅补强底角的已有叶片；前景低于杯字并淡出到内容区，不改变 Hero 结构。 */
.home-hero::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 160px; background: url('./foliage-left-near.webp') left -70px bottom -100px / 480px auto no-repeat, url('./foliage-right-mid.webp') right -55px bottom -105px / 480px auto no-repeat; filter: blur(3px); opacity: .65; mask-image: linear-gradient(90deg, #000 3%, #0000 12%, #0000 88%, #000 97%), linear-gradient(to top, #000 55%, #0000); mask-composite: intersect; pointer-events: none; }
@media (min-width: 1201px) { .home-hero::before { background-size: cover, 102% auto; background-position: center, left 48%; } }
.home-hero { position: relative; isolation: isolate; padding: 28px 0 0; min-height: calc(clamp(610px, 50.3vw, 780px) - 88px); }
.home-hero-grid { max-width: var(--shell); left: auto; padding: 0; min-height: 0; grid-template-columns: minmax(0, 44.5fr) minmax(0, 49.5fr); gap: 2.5%; padding-right: 3.2%; align-items: start; }
.home-thesis { padding-top: 25px; }
.home-thesis h1 { font-size: clamp(39px, 4.15vw, 61px); line-height: .99; letter-spacing: -.058em; margin-bottom: 22px; }
.home-thesis h1>span { color: var(--ink); }
.home-thesis .eyebrow { font-size: 10px; margin: 0 0 13px; letter-spacing: .19em; }
.home-lede { font: clamp(16px, 1.42vw, 21px)/1.34 var(--serif); max-width: 100%; margin-bottom: 26px; }
.home-actions { flex-wrap: nowrap; gap: 16px; }
.home-page .home-actions .button { min-height: 49px; padding: 10px 17px; font-size: clamp(13px, 1.19vw, 17px); font-weight: 400; gap: 11px; }
.home-features { font-size: 11px; gap: 16px; margin-top: 28px; }
.home-features>span { gap: 10px; }
.home-features>span+span { padding-left: 16px; }
.case-walkthrough { padding: 25px 28px 21px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 99%, transparent); box-shadow: 0 15px 48px #244a3415; }
.case-controls { left: 137px; top: 22px; gap: 4px; }
.case-badge { max-width: 44%; font-size: 8px; letter-spacing: .03em; }
.home-page .walkthrough-title { font-size: 31px; margin: 11px 0 12px; }
.walkthrough-tabs { margin-bottom: 12px; gap: 8px; }
.walkthrough-tabs button { padding: 10px 13px; font-size: 13px; }
.walkthrough-body { grid-template-columns: 1fr 1fr; gap: 14px; }
.walkthrough-content { height: 222px; }
.learner-message { font-size: 13px; line-height: 1.5; padding: 14px; margin-bottom: 10px; }
.tutor-objective { padding: 13px; font-size: 12px; line-height: 1.4; }
.micro-label { font-size: 8px; letter-spacing: .05em; }
.rubric-preview { padding: 14px; min-height: 222px; }
.rubric-row { grid-template-columns: 86px 1fr 26px; gap: 6px; font-size: 14px; margin: 7px 0; }
.score-track { height: 7px; }
.score-caption { font-size: 9px; margin-top: 18px; }
.walkthrough-bottom { font-size: 11px; margin-top: 16px; flex-wrap: nowrap; }
.case-open, .walkthrough-status { padding: 11px 12px; gap: 8px; }
.hero-foot { position: relative; min-height: 120px; display: flex; justify-content: center; align-items: center; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.scroll-cue>span { display: grid; place-items: center; border: 1px solid var(--line-strong); width: 36px; height: 36px; border-radius: 50%; background: #ffffffad; }
.scroll-cue .site-icon { transform: rotate(90deg); width: 17px; }
.hero-note { position: absolute; left: 65%; bottom: 13px; font-size: 18px; white-space: nowrap; }
.hero-note::after { content: ''; display: block; width: 85%; margin: 6px 0 0 18px; height: 9px; border-top: 1px solid var(--accent); border-radius: 50%; }
.home-dimensions { padding: 50px 0 44px; background: color-mix(in srgb, var(--bg) 96%, transparent); }
.home-story-layout { display: grid; grid-template-columns: minmax(0, .58fr) minmax(0, 1fr); gap: clamp(44px, 5.4vw, 76px); align-items: stretch; }
.home-story-copy { min-width: 0; }
.home-story-intro { margin: 0 0 clamp(30px, 4vh, 46px); }
.home-story-intro h2 { font-size: clamp(43px, 4.4vw, 64px); line-height: .99; letter-spacing: -.055em; margin: 0 0 19px; }
.home-story-intro h2 em { white-space: nowrap; }
.home-story-intro>p:not(.eyebrow) { max-width: 450px; font-size: 14px; line-height: 1.55; margin: 0 0 17px; }
.home-story-intro .eyebrow { font-size: 9px; letter-spacing: .18em; margin: 0 0 14px; }
.home-page .text-link { font-size: 17px; }
.home-story-chapters { min-width: 0; }
.home-story-chapter { display: flex; min-height: 52svh; flex-direction: column; justify-content: center; padding: clamp(24px, 4vh, 42px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--teach-header-height, 72px) + 20px); }
.home-story-index { display: flex; align-items: baseline; gap: 5px; margin: 0 0 17px; color: var(--accent); font: 600 11px/1.4 var(--teach-mono, monospace); letter-spacing: .08em; }
.home-story-total { color: var(--muted); font-weight: 400; }
.home-story-chapter h3 { max-width: 510px; margin: 0; color: var(--ink); font: 400 clamp(31px, 3.3vw, 48px)/1.06 var(--serif, Georgia, serif); letter-spacing: -.045em; }
.home-story-chapter[aria-current="step"] h3 { color: var(--accent-strong); }
.home-story-dimension { margin: 13px 0 0; color: var(--accent-strong); font: 600 14px/1.35 var(--serif, Georgia, serif); }
.home-story-description { max-width: 440px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.home-story-summary { margin: 18px 0 0; color: var(--accent); font-size: 11px; line-height: 1.4; letter-spacing: .04em; }
.home-story-stage { position: sticky; top: calc(var(--teach-header-height, 72px) + 18px); align-self: start; display: flex; min-width: 0; height: calc(100svh - var(--teach-header-height, 72px) - 36px); min-height: 460px; max-height: 820px; flex-direction: column; margin: 0; padding: 22px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-story-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font: 600 9px/1.4 var(--teach-mono, monospace); letter-spacing: .13em; text-transform: uppercase; }
.home-story-stage-heading figcaption { color: var(--ink); }
.home-story-stage-heading [data-home-story-current] { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.home-story-response { display: block; width: 100%; height: 100%; min-height: 0; flex: 1 1 auto; overflow: visible; }
.home-response-specimen { opacity: .76; }
.home-story-state { opacity: 0; }
.home-story-stage[data-home-story-active="0"] [data-home-story-state="0"],
.home-story-stage[data-home-story-active="1"] [data-home-story-state="1"],
.home-story-stage[data-home-story-active="2"] [data-home-story-state="2"],
.home-story-stage[data-home-story-active="3"] [data-home-story-state="3"],
.home-story-stage[data-home-story-active="4"] [data-home-story-state="4"] { opacity: 1; }
.home-data { padding: 46px 0 42px; background: #1e5149 url('./home-open-data-bg.webp') center 52% / cover no-repeat; }
.home-data::before { inset: 0; width: auto; background: linear-gradient(90deg, #103e38a6, #103e3866 55%, #103e3838); opacity: 1; mask-image: none; mix-blend-mode: normal; }
.home-page:not([data-theme=dark]) .home-data::before { background: linear-gradient(90deg, #103e3894, #103e3857 55%, #103e382b); }
.home-data-grid { grid-template-columns: 39% minmax(0, 1fr); gap: 1%; padding: 0; align-items: center; }
.home-data-statement { display: block; }
.home-data .eyebrow { font-size: 9px; margin: 0 0 12px; color: white; }
.home-data h2 { font-size: clamp(32px, 3.05vw, 44px); line-height: 1.05; }
.home-page .data-link { margin-top: 24px; min-height: 39px; color: #084b4a; background: #f8fcf7; font: 12px/1.4 Arial, sans-serif; padding: 10px 16px; border: 0; }
.home-facts { align-items: stretch; }
.home-facts>div { display: flex; flex-direction: column; padding: 0 16px; border-color: #d5e5dc99; }
.home-facts dt { order: 2; font-size: 16px; }
.home-facts dd { font-size: clamp(26px, 2.8vw, 40px); }
.home-facts .fact-note { order: 3; font-size: 14px; color: #fff; }
.home-blog { padding: 56px 0 44px; position: relative; }
.home-blog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 20px; }
.home-blog-heading h2 { font-size: clamp(32px, 3vw, 43px); letter-spacing: -.05em; line-height: 1.15; margin: 0 0 8px; }
.home-blog-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.home-blog-heading>a { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 13px; white-space: nowrap; }
.home-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-blog-card { background: var(--surface); border-radius: 9px; overflow: hidden; box-shadow: 0 6px 28px #19392c04; }
.home-blog-card>a { display: block; height: 100%; }
.home-blog-card img { object-position: center 53%; display: block; width: 100%; height: auto; aspect-ratio: 2.32; object-fit: cover; }
.home-blog-index img { object-position: center 68%; }
.home-blog-copy { padding: 15px 20px 22px; }
.home-blog-copy .blog-meta { font-size: 11px; margin: 0 0 8px; color: var(--muted); }
.home-blog-copy h3 { font-size: 21px; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 10px; }
.home-blog-copy p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.home-evidence { display: block; margin: 10px 0 0; padding: 0; font-size: 10px; color: var(--muted); }
.home-evidence p { max-width: 1050px; }
.home-blog-card>a:focus-visible { outline-offset: -3px; border-radius: inherit; }
.home-data :focus-visible { outline-color: #fff; }
.home-page[data-theme=dark] .home-hero::before { opacity: .16; }
.home-page[data-theme=dark] .home-hero::after { opacity: .2; }
.home-page[data-theme=dark] .scroll-cue>span { background: var(--surface); }
@media (min-width: 1550px) { .home-hero { padding-top: 45px; } .hero-foot { min-height: 150px; } }
@media (max-width: 1200px) and (min-width: 901px) {
  .home-hero::before { inset-block-start: -74px; }
  .home-hero { min-height: 441px; padding-top: 8px; }
  .home-thesis { padding-top: 20px; }
  .home-thesis h1 { font-size: 4.05vw; margin-bottom: 17px; }
  .home-thesis .eyebrow { font-size: 8px; }
  .home-lede { font-size: 15px; margin-bottom: 19px; }
  .home-page .home-actions .button { padding: 9px 12px; min-height: 41px; font-size: 12px; gap: 9px; }
  .home-actions { gap: 12px; }
  .home-features { gap: 12px; font-size: 9px; margin-top: 24px; }
  .home-features>span+span { padding-left: 12px; }
  .home-features .site-icon { width: 17px; }
  .case-walkthrough { padding: 18px 20px 15px; }
  .case-controls { top: 16px; left: 112px; }
  .walkthrough-meta .eyebrow { font-size: 8px; }
  .case-badge { font-size: 6px; }
  .home-page .walkthrough-title { font-size: 24px; min-height: 26px; margin: 5px 0 7px; }
  .walkthrough-tabs button { font-size: 10px; padding: 7px 10px; }
  .walkthrough-tabs { margin-bottom: 9px; }
  .walkthrough-body { gap: 12px; }
  .walkthrough-content, .rubric-preview { height: 160px; min-height: 160px; }
  .learner-message { font-size: 10px; padding: 10px; }
  .tutor-objective { font-size: 9px; padding: 10px; }
  .micro-label { font-size: 6px; }
  .rubric-preview { padding: 10px; }
  .rubric-row { grid-template-columns: 62px 1fr 22px; font-size: 11px; gap: 5px; margin: 5px 0; }
  .score-pending { font-size: 8px; }
  .score-caption { font-size: 8px; margin-top: 12px; }
  .walkthrough-bottom { font-size: 9px; gap: 6px; margin-top: 12px; }
  .case-open, .walkthrough-status { padding: 7px 9px; gap: 6px; }
  .hero-foot { min-height: 68px; }
  .hero-note { font-size: 15px; bottom: 12px; }
  .home-page .text-link { font-size: 14px; }
  .path-line { top: -12px; }
  .home-data { padding: 29px 0 26px; }
  .home-data .eyebrow { font-size: 7px; }
  .home-facts>div { padding: 0 12px; }
  .home-facts dt { font-size: 12px; }
  .home-facts .fact-note { font-size: 10px; }
  .home-blog { padding: 46px 0 34px; }
  .home-blog-heading p { font-size: 13px; }
  .home-blog-grid { gap: 18px; }
  .home-blog-copy { padding: 14px 17px 20px; }
  .home-blog-copy h3 { font-size: 18px; }
  .home-blog-copy p { font-size: 12px; }
  .home-blog-copy .blog-meta { font-size: 10px; }
}
@media (max-width: 900px) {
  .home-hero { padding: 30px 0 0; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 0; }
  .home-thesis { max-width: 610px; padding-top: 0; }
  .home-thesis h1 { font-size: clamp(36px, 6.8vw, 59px); }
  .home-lede { max-width: 560px; font-size: 19px; }
  .home-hero::before { inset-block-start: 0; background-position: 65% bottom; opacity: .5; }
  .home-page .home-actions .button { font-size: 16px; }
  .case-walkthrough { width: 100%; max-width: 620px; justify-self: end; }
  .hero-note { left: auto; right: 0; font-size: 16px; }
  .scroll-cue { margin-right: 45%; }
  .home-data-grid { grid-template-columns: 1fr; gap: 34px; }
  .home-data h2 { font-size: 38px; }
  .home-facts dd { font-size: 33px; }
  .home-blog-grid { gap: 16px; }
  .home-blog-copy { padding: 14px; }
  .home-blog-copy h3 { font-size: 20px; }
}
@media (max-width: 600px) {
  .home-hero { padding-top: 22px; }
  .home-thesis h1 { font-size: clamp(29px, 8.4vw, 48px); line-height: 1.05; }
  .home-thesis h1>span { white-space: nowrap; }
  .home-thesis .eyebrow { font-size: 8px; }
  .home-lede { font-size: 17px; }
  .home-actions { gap: 10px; flex-wrap: wrap; }
  .home-page .home-actions .button { font-size: 13px; padding: 10px 12px; min-height: 44px; }
  .home-features { font-size: 9px; gap: 9px; flex-wrap: wrap; justify-content: flex-start; }
  .home-features>span { gap: 5px; }
  .home-features>span+span { padding-left: 0; border: 0; }
  .case-walkthrough { padding: 18px 16px; }
  .case-controls { top: 18px; left: 111px; gap: 0; }
  .walkthrough-meta>.eyebrow { font-size: 8px; }
  .case-badge { font-size: 6px; max-width: 40%; }
  .home-page .walkthrough-title { font-size: 27px; }
  .walkthrough-tabs { gap: 0; }
  .walkthrough-tabs button { font-size: 12px; padding: 9px 11px; }
  .walkthrough-body { grid-template-columns: 1fr; }
  .walkthrough-content { height: auto; max-height: 260px; }
  .learner-message { font-size: 13px; }
  .tutor-objective { font-size: 12px; }
  .micro-label { font-size: 8px; }
  .rubric-preview { height: auto; min-height: 0; }
  .rubric-row { grid-template-columns: 95px 1fr 28px; font-size: 14px; }
  .score-caption { font-size: 10px; margin-top: 12px; }
  .walkthrough-bottom { flex-wrap: wrap; gap: 8px; }
  .hero-foot { min-height: 105px; }
  .hero-note { font-size: 13px; bottom: 18px; }
  .scroll-cue { font-size: 9px; margin-right: 65%; }
  .home-data { padding: 36px 0; background-position: 60% center; }
  .home-data h2 { font-size: 33px; }
  .home-data .eyebrow { font-size: 7px; }
  .home-facts { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .home-blog { padding: 36px 0; }
  .home-blog-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .home-blog-heading h2 { font-size: 33px; }
  .home-blog-heading p { font-size: 14px; }
  .home-blog-grid { grid-template-columns: 1fr; gap: 22px; }
  .home-blog-copy { padding: 18px 20px 24px; }
  .home-blog-copy h3 { font-size: 24px; }
  .home-blog-card img { aspect-ratio: 2.15; }
}

/* 透明叶片限定在内容外侧；不遮挡文字，不扩大页面可滚动区域。 */
.home-dimensions, .home-blog { position: relative; isolation: isolate; }
.home-foliage { position: absolute; inset: 0; overflow: clip; pointer-events: none; z-index: -1; mask-image: linear-gradient(90deg, #000, #0000 7%, #0000 93%, #000); }
.foliage-layer { position: absolute; width: 460px; max-width: none; height: auto; filter: blur(3px); opacity: .7; }
.foliage-left-near { left: -100px; bottom: -110px; transform-origin: left bottom; }
.foliage-left-mid { left: -100px; top: -45px; transform-origin: left top; opacity: .55; }
.foliage-right-mid { right: -100px; bottom: -70px; transform-origin: right bottom; }
.foliage-right-near { right: -100px; top: -30px; transform-origin: right top; opacity: .6; }
.home-page[data-theme=dark] .foliage-layer { opacity: .2; }
.home-page .data-link:hover { color: #084b4a; background: #fff; }
/* 新增动态仅限叶片；每层独立、缓慢且幅度很小，静态布局不依赖动画。 */
@media (prefers-reduced-motion: no-preference) {
  .foliage-layer { will-change: transform; animation: foliage-breeze 13s ease-in-out infinite alternate; }
  .foliage-left-near { --breeze-x: 4px; --breeze-y: -3px; --breeze-turn: .7deg; animation-duration: 11s; animation-delay: -4s; }
  .foliage-left-mid { --breeze-x: 2px; --breeze-y: 2px; --breeze-turn: -.35deg; animation-duration: 16s; animation-delay: -9s; }
  .foliage-right-mid { --breeze-x: -3px; --breeze-y: 1px; --breeze-turn: .4deg; animation-duration: 14s; animation-delay: -6s; }
  .foliage-right-near { --breeze-x: -4px; --breeze-y: -2px; --breeze-turn: -.65deg; animation-duration: 12s; animation-delay: -2s; }
}
@keyframes foliage-breeze { to { transform: translate(var(--breeze-x), var(--breeze-y)) rotate(var(--breeze-turn)); } }

@media (min-width: 1024px) {
  .home-story-stage { z-index: 1; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  [data-home-story-enhanced="true"] .home-story-chapter {
    transition: opacity 260ms ease, transform 260ms ease;
  }
  [data-home-story-enhanced="true"] .home-story-chapter:not([aria-current="step"]) {
    opacity: 0;
    transform: translateY(8px);
  }
  [data-home-story-enhanced="true"] .home-story-chapter[aria-current="step"] {
    opacity: 1;
    transform: translateY(0);
  }
  [data-home-story-enhanced="true"][data-home-story-chapter-entered="true"] .home-story-intro {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 260ms ease, transform 260ms ease;
  }
  [data-home-story-enhanced="true"][data-home-story-chapter-entered="true"] .home-story-intro:focus-within {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (width < 1024px) {
  .home-dimensions { padding: 42px 0 38px; }
  .home-story-layout { display: flex; flex-direction: column; gap: 0; }
  .home-story-copy { display: contents; }
  .home-story-intro { order: 1; max-width: 720px; margin-bottom: 20px; }
  .home-story-intro h2 { font-size: clamp(41px, 6vw, 56px); }
  .home-story-intro>p:not(.eyebrow) { max-width: 650px; }
  .home-story-stage { position: relative; top: auto; order: 2; width: 100%; height: clamp(240px, 34vw, 360px); min-height: 0; max-height: none; margin: 8px 0 24px; padding: 16px 0 10px; }
  .home-story-chapters { order: 3; }
  .home-story-chapter { min-height: 0; padding: 27px 0 31px; }
  .home-story-chapter h3 { max-width: 700px; font-size: clamp(31px, 4.5vw, 44px); }
  .home-story-description { max-width: 680px; }
}

@media (max-width: 640px) {
  .home-dimensions { padding: 34px 0 30px; }
  .home-story-intro { margin-bottom: 10px; }
  .home-story-intro h2 { font-size: clamp(37px, 10vw, 44px); margin-bottom: 15px; }
  .home-story-intro>p:not(.eyebrow) { font-size: 13px; line-height: 1.55; }
  .home-story-stage { display: none; }
  .home-story-chapter { padding: 23px 0 27px; }
  .home-story-index { margin-bottom: 12px; font-size: 10px; }
  .home-story-chapter h3 { font-size: clamp(27px, 8vw, 34px); line-height: 1.08; }
  .home-story-dimension { margin-top: 10px; font-size: 13px; }
  .home-story-description { margin-top: 12px; font-size: 13px; }
  .home-story-summary { margin-top: 13px; font-size: 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-story-state { transition: opacity 320ms ease; }
}

@media (prefers-reduced-motion: reduce) {
  .home-story-stage { position: relative; top: auto; height: auto; min-height: 0; max-height: none; }
  .home-story-response { min-height: 300px; }
  .home-story-chapter { min-height: 0; }
  .home-story-state { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .foliage-layer { animation: none; transform: none; will-change: auto; }
}
@media (max-width: 900px) {
  .foliage-layer { opacity: .35; }
  .foliage-left-near, .foliage-left-mid { left: -140px; }
  .foliage-right-near, .foliage-right-mid { right: -140px; }
}
