.home-page { --warm: #eeeae1; --warm-line: #e4ded1; --shadow: #2421191f; }
:root[data-theme="dark"] .home-page { --warm: #1b1b18; --warm-line: #33312a; --shadow: #0007; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home-page { --warm: #1b1b18; --warm-line: #33312a; --shadow: #0007; }
}
.home-page {
  --earth-field: #f9f6ec;
  --earth-glow: #e6decb;
  --earth-pin: #a83632;
}
:root[data-theme="dark"] .home-page {
  --earth-field: #22211d;
  --earth-glow: #35332b;
  --earth-pin: #ff746a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .home-page {
    --earth-field: #22211d;
    --earth-glow: #35332b;
    --earth-pin: #ff746a;
  }
}
.home-page .shell { width: min(100% - 5rem, 76rem); }
.home-topbar { min-height: 4.5rem; }
.home-nav, .home-header-actions { display: flex; align-items: center; gap: clamp(.6rem, 2.7vw, 2rem); }
.home-header-actions { gap: .75rem; }
.home-nav a, .home-text-link { text-decoration: none; font-weight: 600; }
.home-nav a { font-size: .9rem; color: var(--muted); }
.home-nav a:hover, .home-text-link:hover, .home-plan-note a:hover, .home-data-note a:hover { text-decoration: underline; text-underline-offset: .26em; }
.home-page .theme-button { background: transparent; }
.home-hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(2rem, 5vw, 5.2rem); padding-block: 3.75rem 3.3rem; }
.home-hero h1 { font-size: clamp(2.7rem, 5.1vw, 4.85rem); line-height: 1.14; letter-spacing: -.075em; font-weight: 700; }
.hero-context { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.05rem; font-size: .88rem; font-weight: 700; color: var(--muted); letter-spacing: .11em; }
.hero-context::before { content: ""; width: 1.4rem; height: 1px; background: currentColor; }
.hero-description { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.55vw, 1.2rem); line-height: 1.85; color: var(--muted); max-width: 24em; }
.home-hero-actions { margin-top: 1.8rem; align-items: center; gap: .95rem 1.45rem; }
.home-hero-actions .primary { min-height: 3.25rem; padding-inline: 1.15rem; }
.home-hero-status { margin-top: .85rem; font-size: .81rem; }
.hero-earth { margin: 0; min-width: 0; }
.earth-stage { overflow: hidden; color: var(--ink); border: 1px solid var(--warm-line); border-radius: 1.08rem; background: var(--warm); }
.earth-viewport { position: relative; display: grid; place-items: center; gap: .55rem; overflow: hidden; min-height: 16.25rem; padding: 1.4rem 1rem .75rem; background: radial-gradient(ellipse at 50% 45%, var(--earth-field) 30%, var(--earth-glow) 100%); }
.earth-surface { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.earth-model { position: relative; width: min(80%, 22rem); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; -webkit-tap-highlight-color: transparent; touch-action: pan-y; transform: scale(var(--earth-zoom, 1)); }
.earth-model[data-renderer] { cursor: grab; }
.earth-model[data-renderer="poster"] { cursor: pointer; }
.earth-model.is-dragging { cursor: grabbing; }
.earth-poster, .earth-model canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 50%; clip-path: circle(46.35%); background: transparent; pointer-events: none; user-select: none; }
.earth-model.is-rendering .earth-poster { visibility: hidden; }
.earth-marker { position: absolute; top: 0; left: 0; z-index: 1; width: .68rem; height: .68rem; border: 2px solid #fff; border-radius: 100%; background: var(--earth-pin); box-shadow: 0 0 0 .24rem #17171536; will-change: transform; pointer-events: none; }
.earth-hint { z-index: 2; max-width: 90%; padding: .18rem .48rem; border-radius: .35rem; color: var(--muted); background: var(--earth-glow); font-size: .73rem; line-height: 1.35; text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.earth-hint-wheel { display: none; }
@media (any-pointer: fine) {
  .earth-hint-wheel { display: inline; }
  .earth-hint-touch { display: none; }
}
.earth-subtitles { display: grid; gap: .55rem; padding: .8rem clamp(.8rem, 2vw, 1.2rem) 1rem; border-top: 1px solid var(--warm-line); }
.earth-subtitle-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.earth-region { font-size: .98rem; overflow-wrap: anywhere; }
.earth-region-label { display: flex; align-items: center; gap: .4rem; width: fit-content; max-width: 100%; color: var(--muted); font-size: .78rem; }
.earth-region-label select { width: auto; min-width: 0; max-width: 13.5rem; padding: .4rem .55rem; background: var(--paper); }
.earth-caption { padding-inline-start: .7rem; border-inline-start: 2px solid var(--live); }
.earth-caption p { overflow-wrap: anywhere; }
.earth-caption p:empty, .earth-example-language:empty { display: none; }
.earth-example-language { color: var(--muted); font-size: .72rem; }
.earth-example-original p { color: var(--muted); font-size: .86rem; }
.earth-example-translation p { font-weight: 650; font-size: .98rem; }
.earth-feedback { font-size: .8rem; }
.home-section { border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 5.7vw, 5.2rem); scroll-margin-top: 1.5rem; }
.home-section-head { margin-bottom: clamp(1.25rem, 3vw, 2.1rem); }
.home-section-head h2 { font-size: clamp(1.78rem, 4vw, 2.85rem); letter-spacing: -.055em; }
.home-section-head p { color: var(--muted); margin-top: .55rem; }
.home-product { min-width: 0; margin: 0; padding: clamp(.85rem, 2.8vw, 2rem); background: var(--warm); border: 1px solid var(--warm-line); border-radius: 1.45rem; }
.product-picture, .product-picture img { display: block; width: 100%; height: auto; }
.product-picture { overflow: hidden; border-radius: .76rem; }
.home-product figcaption { padding-top: .85rem; color: var(--muted); text-align: center; font-size: .74rem; }
.home-data-note, .home-plan-note { margin-top: .85rem; color: var(--muted); font-size: .91rem; }
.home-data-note a, .home-plan-note a { color: var(--ink); text-underline-offset: .2em; }
.home-data-note > a { display: inline-block; max-inline-size: 100%; margin-inline-start: .35em; overflow-wrap: anywhere; }
.home-page .download-card, .home-page .plan-card { border-radius: .65rem; padding: clamp(.8rem, 2.8vw, 1.5rem); }
.home-page .featured { border-color: var(--warm-line); background: var(--warm); }
.platform-line { display: flex; gap: .5rem; align-items: center; }
.download-status, .plan-quota { font-weight: 650; }
.plan-features { display: grid; gap: .45rem; margin: .15rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .83rem; color: var(--muted); }
.plan-features li { position: relative; padding-inline-start: 1.05rem; overflow-wrap: anywhere; }
.plan-features li::before { content: ""; position: absolute; inset-inline-start: .12rem; top: .36em; width: .32rem; height: .55rem; border: solid var(--live); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.plan-features .classroom-assistant-name { color: var(--ink); font-family: "VeoLira Inter", "PingFang SC", "Microsoft YaHei", "VeoLira SC", system-ui, sans-serif; font-size: .93rem; font-weight: 650; letter-spacing: 0; }
.download-description { color: var(--muted); font-size: .88rem; }
.home-start { margin-top: 1.95rem; }
.home-steps { margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1.45rem; list-style: none; counter-reset: steps; }
.home-steps li { position: relative; border-top: 1px solid var(--line); padding: .85rem 0 .35rem 1.75rem; counter-increment: steps; }
.home-steps li::before { content: counter(steps) "."; position: absolute; left: 0; color: var(--ink); font-weight: 650; }
.home-steps p { color: var(--muted); font-size: .89rem; margin-top: .2rem; }
.home-support { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); gap: 1rem 2.7rem; }
.home-support .button { margin-top: .95rem; }
.home-faq details { border-bottom: 1px solid var(--line); padding-block: .9rem; }
.home-faq details:first-child { border-top: 1px solid var(--line); }
.home-faq summary { cursor: pointer; font-weight: 650; padding-right: .25rem; }
.home-faq p { color: var(--muted); margin-top: .52rem; }
.home-footer-main { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; min-height: 5.5rem; padding-block: 1rem; }
.home-footer-main > .home-text-link { color: var(--muted); font-size: .85rem; }
.home-credits { padding: .55rem 0 1.15rem; color: var(--muted); font-size: .79rem; }
.home-credits summary { width: fit-content; cursor: pointer; }
.home-credits p { margin-top: .35rem; }
.home-credits a { text-underline-offset: .2em; }
@media (max-width: 960px) {
  .home-page .shell { width: min(100% - 3rem, 76rem); }
  .home-hero { gap: 1.4rem; }
  .home-page .plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .home-page .shell { width: calc(100% - 2rem); }
  .home-topbar { flex-wrap: wrap; padding-block: .5rem; gap: .32rem; }
  .home-nav { order: 2; width: 100%; justify-content: space-between; padding-block: .35rem .15rem; }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-block: 2rem 1.85rem; }
  .home-hero h1 { font-size: clamp(2.55rem, 9.5vw, 3.8rem); overflow-wrap: anywhere; }
  .home-page .skip { max-inline-size: calc(100% - 2rem); overflow-wrap: anywhere; }
  .hero-description { margin-top: .85rem; }
  .home-hero-actions { margin-top: 1.15rem; }
  .earth-viewport { min-height: 14.5rem; }
  .earth-region-label .site-select-trigger bdi { white-space: normal; overflow-wrap: anywhere; text-align: start; }
  .home-page .download-grid, .home-steps, .home-support { grid-template-columns: minmax(0, 1fr); }
  .home-page .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-footer-main { flex-wrap: wrap; }
}
@media (max-width: 370px) {
  .hero-context { letter-spacing: .03em; }
  .home-hero h1 { font-size: 2.3rem; }
  .home-page .plans-grid { grid-template-columns: minmax(0, 1fr); }
}
