:root {
  --ink: #2b2037;
  --muted: #76677f;
  --forest: #8b4cc7;
  --forest-dark: #52247b;
  --mint: #f4ecfc;
  --lotus: #ffe68a;
  --lotus-soft: #fff5ce;
  --gold: #d6a13a;
  --cream: #fcfaff;
  --paper: #ffffff;
  --line: rgba(82, 36, 123, .13);
  --shadow: 0 24px 70px rgba(82, 36, 123, .13);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 236, 252, .95), transparent 31rem),
    radial-gradient(circle at 100% 22%, rgba(255, 230, 138, .24), transparent 25rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--forest-dark);
  border-radius: 12px;
}
.skip-link:focus { top: 16px; }

.draft-banner {
  padding: 8px 18px;
  color: #5b3d00;
  background: #fff1bd;
  border-bottom: 1px solid rgba(114, 77, 0, .15);
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 250, 255, .88);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(82, 36, 123, .16);
}
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; line-height: 1.05; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--forest); background: rgba(139, 76, 199, .09); }
.language-toggle, .menu-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .75);
  color: var(--forest-dark);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 750;
}
.menu-toggle { display: none; }

.lang-zh .lang-en, .lang-en .lang-zh { display: none !important; }
.lang-zh .lang-zh, .lang-en .lang-en { display: initial; }

.hero { padding: 76px 0 54px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 58px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--forest);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lotus); }
.hero h1, .page-hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.hero h1 { font-size: clamp(3rem, 6.3vw, 6rem); }
.hero h1 em { color: var(--forest); font-style: normal; }
.hero .lead { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 780;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--forest); box-shadow: 0 12px 28px rgba(82, 36, 123, .20); }
.button.secondary { color: var(--forest); background: rgba(255,255,255,.65); }

.product-stage { position: relative; min-height: 540px; }
.product-stage::before, .product-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.product-stage::before { width: 330px; height: 330px; right: -60px; top: -28px; background: rgba(217, 196, 238, .72); }
.product-stage::after { width: 210px; height: 210px; left: 4px; bottom: -16px; background: rgba(255, 230, 138, .42); }
.phone {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(340px, 78vw);
  transform: translate(-50%, -50%) rotate(2deg);
  border: 10px solid var(--forest-dark);
  border-radius: 45px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-top { width: 35%; height: 22px; margin: -1px auto 8px; border-radius: 0 0 18px 18px; background: var(--forest-dark); }
.phone-content { padding: 18px 22px 25px; }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head img { width: 52px; height: 52px; border-radius: 16px; }
.app-head strong { font-family: Georgia, serif; font-size: 1.15rem; }
.app-head small { display: block; color: var(--muted); }
.lesson-card { margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: linear-gradient(145deg, #f4ecfc, #fffaf0); }
.hanzi { color: var(--forest-dark); font-family: "Songti SC", Georgia, serif; font-size: 5.6rem; line-height: 1; }
.pinyin { color: var(--forest); font-weight: 800; letter-spacing: .04em; }
.translation { margin-top: 4px; font-size: 1.05rem; }
.progress-label { display: flex; justify-content: space-between; margin: 17px 0 7px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.progress { height: 8px; border-radius: 99px; background: #eadff4; overflow: hidden; }
.progress span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest-dark), var(--forest)); }
.mini-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 17px; }
.mini-actions span { padding: 10px 4px; border-radius: 13px; color: var(--forest); background: white; border: 1px solid var(--line); text-align: center; font-size: .76rem; font-weight: 750; }
.stage-note {
  position: absolute;
  z-index: 4;
  right: -12px;
  bottom: 62px;
  max-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 16px 36px rgba(82, 36, 123, .13);
  backdrop-filter: blur(12px);
  font-size: .78rem;
}
.stage-note strong { display: block; color: var(--forest); margin-bottom: 2px; }

.section { padding: 82px 0; }
.section-soft { background: rgba(244, 236, 252, .62); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.section-head h2, .content-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 500;
}
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .80); box-shadow: 0 12px 32px rgba(82, 36, 123, .06); }
.card-index { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: var(--forest); background: var(--mint); font-weight: 850; }
.card h3 { margin: 36px 0 9px; font-family: Georgia, "Songti SC", serif; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 42px; align-items: start; }
.story-mark { padding: 34px; border-radius: var(--radius); background: var(--forest-dark); color: white; box-shadow: var(--shadow); }
.story-mark img { width: 82px; border-radius: 24px; margin-bottom: 30px; }
.story-mark blockquote { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 1.8rem; line-height: 1.35; }
.story-copy h2 { margin: 0 0 20px; font-family: Georgia, "Songti SC", serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
.story-copy p { color: var(--muted); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.value { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.64); }
.value strong { display: block; color: var(--forest); }
.value span { color: var(--muted); font-size: .88rem; }

.cta { padding: 78px 0; }
.cta-panel { position: relative; overflow: hidden; padding: clamp(34px, 7vw, 72px); border-radius: 36px; color: white; background: var(--forest-dark); box-shadow: var(--shadow); }
.cta-panel::after { content: "汉"; position: absolute; right: -12px; top: -62px; color: rgba(255,255,255,.06); font-family: Georgia, serif; font-size: 18rem; line-height: 1; }
.cta-panel h2 { position: relative; z-index: 1; max-width: 690px; margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; line-height: 1.1; }
.cta-panel p { position: relative; z-index: 1; max-width: 610px; color: rgba(255,255,255,.72); }
.cta-panel .button { position: relative; z-index: 1; border-color: white; color: var(--forest-dark); background: white; }

.page-hero { padding: 68px 0 42px; }
.page-hero h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.status-pill { display: inline-flex; margin-top: 12px; padding: 7px 12px; border-radius: 999px; color: #744b00; background: #fff0b9; font-size: .8rem; font-weight: 800; }
.legal-card, .support-card { margin-bottom: 72px; padding: clamp(26px, 5vw, 54px); border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,.82); box-shadow: 0 18px 56px rgba(82,36,123,.07); }
.legal-card h2, .support-card h2 { margin: 2.2em 0 .55em; font-family: Georgia, "Songti SC", serif; font-size: 1.55rem; }
.legal-card h2:first-child, .support-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li, .support-card p { color: #5f5268; }
.legal-card li + li { margin-top: 8px; }
.legal-card a, .support-card a { color: var(--forest); font-weight: 720; }
.callout { padding: 18px 20px; border-left: 4px solid var(--lotus); border-radius: 0 16px 16px 0; background: var(--lotus-soft); }
.legal-meta { color: var(--muted); font-size: .88rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 17px 0; }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.faq p { margin-bottom: 4px; }
.contact-box { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 24px; border-radius: 22px; background: var(--mint); }
.contact-box p { margin: 4px 0 0; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.46); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: end; }
.footer-company { margin: 10px 0 0; color: var(--muted); font-size: .84rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .86rem; }
.footer-links a:hover { color: var(--forest); }

@media (max-width: 900px) {
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .product-stage { min-height: 500px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none;
    position: absolute;
    inset: 76px 20px auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .nav-actions { display: flex; gap: 8px; }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: min(100% - 28px, 1160px); }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: 3.15rem; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .cards, .values { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { margin-top: 22px; }
  .stage-note { right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .contact-box { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
