/* 官网静态页：与移动端学习页面一致的暖白、森林绿与柔和叶色 */
:root {
  --orange-500: #538266;
  --orange-600: #3d654b;
  --orange-700: #2e503b;
  --link-yellow-green: #3d654b;
  --orange-soft: #eaf1dc;
  --text: #2e4034;
  --text-muted: #6b7669;
  --border: #e2e6d8;
  --surface: #fffefa;
  --page-bg: #faf7ef;
  --shadow: 0 10px 40px rgba(46, 64, 52, 0.07);
  --header-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

.site-shell,
.site-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(var(--header-h) + var(--safe-top));
  padding: calc(12px + var(--safe-top)) clamp(16px, 4vw, 28px) 12px;
  background: rgba(250, 247, 239, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.site-topbar-simple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: calc(52px + var(--safe-top));
  padding: calc(10px + var(--safe-top)) clamp(16px, 4vw, 28px) 10px clamp(8px, 2vw, 14px);
}

.site-topbar-spacer {
  min-height: 44px;
}

.site-topbar-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  text-decoration: none;
}

.site-topbar-back:hover {
  opacity: 0.72;
}

.site-topbar-back-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.site-topbar-title {
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-brand-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--orange-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.site-brand-name {
  display: block;
  margin: 0;
  font-size: clamp(17px, 4.2vw, 20px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.site-brand-tag {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.site-topbar-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.site-topbar-nav a:hover {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-topbar-nav .nav-wide {
  display: none;
}

@media (min-width: 640px) {
  .site-topbar-nav {
    gap: 4px 18px;
  }

  .site-topbar-nav a {
    font-size: 14px;
  }

  .site-topbar-nav .nav-wide {
    display: inline;
  }
}

.site-btn-primary {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 12px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--orange-600);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}

.site-btn-primary:hover {
  background: var(--orange-700);
  transform: translateY(-2px);
}

.site-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 12px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: var(--surface);
}

.site-btn-secondary:hover {
  background: #f1f4e9;
  border-color: #cdd9c9;
}

.site-container {
  width: min(960px, 100%);
  margin: 0 auto;
  flex: 1;
  padding: clamp(20px, 5vw, 36px) clamp(16px, 4vw, 28px) clamp(28px, 7vw, 48px);
}

.site-container--narrow {
  width: min(720px, 100%);
}

.site-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 36px);
  border-radius: 22px;
}

.site-footer {
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 36px 16px 84px;
  border-top: 1px solid var(--border);
  background: #f4f2e8;
}

.support-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #3d654b;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.footer-service-qr {
  width: min(168px, 100%);
  margin: 0 auto 20px;
}

.footer-service-qr img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 10px;
}


.site-footer p {
  margin: 0 0 6px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 0 12px;
}

.site-footer-links a,
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a[href^="http"] {
  color: var(--link-yellow-green);
}

.site-footer-links a:hover {
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 官网首页 */
.home-page { overflow-x: hidden; }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin-top: 0; }
.home-page main { width: 100%; }
.home-page section[id] { scroll-margin-top: 88px; }
.home-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 77% 32%, #eaf1dc 0, transparent 35%), #faf7ef;
  border-bottom: 1px solid var(--border);
}
.home-hero-inner {
  width: min(1200px, 100%);
  min-height: 670px;
  margin: auto;
  padding: 70px clamp(22px, 5vw, 56px) 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .92fr);
  align-items: center;
  gap: 40px;
}
.home-eyebrow, .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
}
.home-eyebrow {
  padding: 10px 14px;
  border: 1px solid #d9e6ca;
  border-radius: 999px;
  background: #f1f5e8;
}
.home-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #87a721; }
.home-hero h1 {
  margin: 26px 0 22px;
  color: var(--text);
  font-size: clamp(42px, 5.3vw, 72px);
  letter-spacing: -.055em;
  line-height: 1.22;
  font-weight: 850;
}
.home-hero h1 em { color: var(--orange-600); font-style: normal; }
.home-hero-copy > p {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.9;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero-actions .site-btn-primary, .home-hero-actions .site-btn-secondary { min-height: 52px; padding: 0 22px; }
.home-audience { margin-top: 30px; max-width: 480px; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.home-audience span { color: #a0b85c; margin-right: 5px; }
.home-hero-art { position: relative; min-height: 620px; display: grid; place-items: center; isolation: isolate; }
.home-orbit { position: absolute; z-index: -1; border-radius: 50%; }
.home-orbit-one { width: 540px; height: 540px; background: #e9f0d9; top: 20px; left: 50%; transform: translateX(-50%); }
.home-orbit-two { width: 400px; height: 400px; border: 1px dashed #bfd3b3; top: 88px; left: 50%; transform: translateX(-50%); }
.home-spark { position: absolute; color: #a1b651; }
.home-spark-one { top: 74px; left: 6%; font-size: 38px; }
.home-spark-two { right: 5%; bottom: 100px; font-size: 30px; }
.home-phone { overflow: hidden; width: min(290px, 100%); margin: 0; padding: 6px; border: 1px solid #d8dfd0; border-radius: 38px; background: #fefefa; box-shadow: 0 24px 54px rgba(40, 66, 47, .15), 0 5px 14px rgba(40, 66, 47, .08); line-height: 0; }
.home-phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.home-phone-hero { width: 286px; transform: rotate(5deg); }
.home-art-note { position: absolute; right: 0; bottom: 65px; display: grid; gap: 3px; padding: 15px 20px; border: 1px solid #e0e8d7; border-radius: 17px; background: rgba(255, 254, 250, .97); box-shadow: var(--shadow); }
.home-art-note strong { color: var(--text); font-size: 14px; }
.home-art-note span { color: var(--text-muted); font-size: 12px; }
.home-intro, .home-experience, .home-journey, .home-download, .home-contact { width: min(1180px, calc(100% - 44px)); margin-left: auto; margin-right: auto; }
.home-intro { padding: 100px 0 112px; }
.home-section-head { max-width: 690px; margin-bottom: 42px; }
.home-section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.home-section-head h2 { margin: 13px 0 14px; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.25; letter-spacing: -.035em; color: var(--text); }
.home-section-head p { margin-bottom: 0; color: var(--text-muted); font-size: 16px; line-height: 1.8; }
.home-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.home-pillar { padding: 30px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: 0 8px 25px rgba(46,64,52,.035); }
.home-pillar-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 14px; background: var(--orange-soft); color: var(--orange-600); font-size: 13px; font-weight: 800; }
.home-pillar h3 { margin: 22px 0 9px; font-size: 20px; letter-spacing: -.02em; }
.home-pillar p { margin-bottom: 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.home-experience { padding-bottom: 100px; }
.home-experience > .home-section-head { margin-bottom: 52px; }
.home-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 570px; margin-bottom: 26px; overflow: hidden; border: 1px solid var(--border); border-radius: 32px; }
.home-feature:last-child { margin-bottom: 0; }
.home-feature-cream { background: #f3f0e5; }
.home-feature-sage { background: #e7eee4; }
.home-feature-peach { background: #f7ede0; }
.home-feature-sky { background: #e9f1ee; }
.home-feature-reverse .home-feature-copy { order: 2; }
.home-feature-reverse .home-feature-visual { order: 1; }
.home-feature-copy { padding: clamp(32px, 6vw, 82px); }
.home-feature-number { color: var(--orange-600); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.home-feature-copy h3 { margin: 20px 0 20px; max-width: 450px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; letter-spacing: -.04em; }
.home-feature-copy p { max-width: 435px; color: #536657; font-size: 16px; line-height: 1.9; }
.home-feature-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.home-feature-tags span { padding: 8px 12px; border: 1px solid rgba(61,101,75,.16); border-radius: 999px; color: #4a6852; background: rgba(255,255,255,.45); font-size: 12px; font-weight: 700; }
.home-feature-visual { height: 570px; display: flex; align-items: flex-start; justify-content: center; padding-top: 54px; }
.home-feature-visual .home-phone { width: 248px; flex: none; box-shadow: 0 20px 45px rgba(40,66,47,.12); }
.home-phone-dialogue { line-height: normal; }
.home-dialogue-stage {
  position: relative;
  height: 490px;
  overflow: hidden;
  border-radius: 32px;
  background: #9dc873 url("./images/xiaozhi-treehouse.webp") center center / cover no-repeat;
}
.home-dialogue-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(20,47,24,.35), transparent 28%, transparent 62%, rgba(22,48,25,.38));
}
.home-dialogue-head {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: white;
  text-shadow: 0 1px 4px rgba(18,46,22,.38);
  font-size: 12px;
}
.home-dialogue-head > span:first-child { font-size: 22px; line-height: 1; }
.home-dialogue-head strong { font-size: 16px; }
.home-dialogue-head-tag {
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  background: rgba(33,67,39,.26);
  font-size: 9px;
  font-weight: 700;
}
.home-phone .home-dialogue-character {
  position: absolute;
  z-index: 1;
  top: 44px;
  left: 50%;
  width: 150px;
  height: auto;
  transform: translateX(-50%);
  border-radius: 0;
  filter: drop-shadow(0 10px 16px rgba(38,58,27,.24));
}
.home-dialogue-messages {
  position: absolute;
  z-index: 2;
  top: 190px;
  right: 10px;
  left: 10px;
  display: grid;
  gap: 7px;
}
.home-dialogue-bubble {
  display: grid;
  gap: 2px;
  max-width: 178px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(25,60,33,.12);
  color: #294332;
  background: rgba(255,254,248,.94);
  font-size: 11px;
  line-height: 1.35;
}
.home-dialogue-bubble strong { font-size: 12px; font-weight: 750; }
.home-dialogue-bubble small { color: #667b65; font-size: 10px; }
.home-dialogue-speaker { color: #5e8750; font-size: 9px; font-weight: 800; }
.home-dialogue-bubble-user {
  justify-self: end;
  max-width: 160px;
  border-color: #e3efc5;
  background: rgba(241,250,217,.96);
}
.home-dialogue-bubble-user .home-dialogue-speaker { color: #879c43; }
.home-dialogue-voice {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #496747;
  background: rgba(255,254,248,.93);
  font-size: 10px;
  font-weight: 750;
}
.home-dialogue-voice span { color: #79a657; font-size: 15px; }
.home-journey { padding: 72px 0 112px; }
.home-journey-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.home-journey-steps li { padding: 26px; border-radius: 18px; background: rgba(255,254,250,.55); }
.home-journey-steps span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 20px; border-radius: 50%; background: #eaf1dc; color: var(--orange-600); font-size: 14px; font-weight: 800; }
.home-journey-steps strong { display: block; margin-bottom: 7px; font-size: 17px; }
.home-journey-steps p { margin-bottom: 0; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.home-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(32px, 5vw, 62px); border-radius: 30px; background: #dfeacc; }
.home-download h2 { margin: 12px 0; font-size: clamp(27px, 3.3vw, 40px); line-height: 1.3; letter-spacing: -.035em; }
.home-download p { margin-bottom: 0; color: #516b55; }
.home-download .site-btn-primary { min-height: 52px; white-space: nowrap; }
.home-contact { padding: 85px 0 100px; text-align: center; }
.home-contact h2 { margin-bottom: 10px; font-size: 25px; }
.home-contact p { margin-bottom: 16px; color: var(--text-muted); line-height: 1.7; }
.home-contact a { color: var(--orange-600); font-weight: 800; text-decoration: none; }
.home-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr 340px; gap: 10px; min-height: 610px; }
  .home-hero-art { min-height: 560px; }
  .home-orbit-one { width: 400px; height: 400px; top: 75px; }
  .home-orbit-two { width: 310px; height: 310px; top: 120px; }
  .home-phone-hero { width: 230px; }
  .home-art-note { right: -10px; bottom: 50px; }
}
@media (max-width: 720px) {
  .site-topbar-download { padding: 0 12px; }
  .home-hero-inner { display: block; min-height: 0; padding: 56px 24px 0; }
  .home-hero h1 { font-size: clamp(42px, 9vw, 58px); }
  .home-hero-art { min-height: 510px; margin-top: 20px; }
  .home-orbit-one { top: 44px; width: 420px; height: 420px; }
  .home-orbit-two { top: 92px; width: 320px; height: 320px; }
  .home-phone-hero { width: 230px; }
  .home-art-note { right: 0; bottom: 36px; }
  .home-intro { padding: 76px 0 86px; }
  .home-pillar-grid, .home-journey-steps { grid-template-columns: 1fr; }
  .home-pillar { padding: 24px; }
  .home-feature { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .home-feature-copy, .home-feature-reverse .home-feature-copy { order: 0; padding: 34px 30px 20px; }
  .home-feature-visual, .home-feature-reverse .home-feature-visual { order: 1; height: 430px; padding-top: 15px; }
  .home-feature-visual .home-phone { width: 220px; }
  .home-journey { padding: 20px 0 85px; }
  .home-download { flex-direction: column; align-items: flex-start; }
  .home-contact { padding: 70px 0 85px; }
}
@media (max-width: 430px) {
  .site-topbar { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .site-brand { gap: 7px; }
  .site-brand-mark { width: 34px; height: 34px; }
  .site-brand-name { font-size: 16px; }
  .site-brand-tag { font-size: 10px; }
  .site-topbar-nav a { font-size: 12px; }
  .site-topbar-download { font-size: 12px; min-height: 38px; }
  .home-hero-inner { padding-left: 20px; padding-right: 20px; }
  .home-hero-actions { flex-direction: column; align-items: stretch; }
  .home-hero-actions a { justify-content: space-between; }
  .home-hero-art { min-height: 480px; }
  .home-phone-hero { width: 210px; }
  .home-orbit-one { width: 360px; height: 360px; top: 62px; }
  .home-orbit-two { width: 270px; height: 270px; top: 105px; }
  .home-art-note { right: -6px; bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-btn-primary { transition: none; }
}
