/* Gramtopia 语法社 · 官网首页样式 */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Kalam:wght@400;700&display=swap');

:root {
  --paper: #FAF6F0;
  --paper-deep: #F3EDE2;
  --paper-card: #fffdf8;
  --tan: #C4956A;
  --tan-dark: #A67B52;
  --tan-deep: #8a6742;
  --ink: #2C2C2C;
  --ink-soft: #5b564e;
  --board: #1e3a2e;
  --chalk: #f2efe6;
  --wechat: #07C160;
  --wechat-dark: #06ad56;
  --note: #F5E6A3;
  --note-pink: #F5CAC3;
  --note-blue: #cfe3f5;
  --note-green: #d8ecd4;
  --coral: #F28482;
  --gold: #e8d56a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(196, 149, 106, 0.35); }

.font-hand { font-family: "Caveat", "Kalam", cursive; }
.font-kalam { font-family: "Kalam", -apple-system, "PingFang SC", "Microsoft YaHei", cursive; }

.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) { .max-w-7xl { padding-left: 2rem; padding-right: 2rem; } }

/* Navbar */
.home-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  transition: background .3s ease, box-shadow .3s ease;
}
.home-navbar.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(44, 44, 44, 0.08);
}
.home-navbar-inner {
  max-width: 80rem; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px;
}
@media (min-width: 768px) { .home-navbar-inner { padding: 0 2rem; } }
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink);
}
.brand-logo { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.brand-title { display: inline-flex; align-items: baseline; gap: 0.35rem; font-family: "Caveat", cursive; font-size: 1.5rem; font-weight: 700; }
.brand-title .main { font-family: "Caveat", cursive; }
.brand-title .sub { font-size: 0.65em; letter-spacing: 0.1em; color: var(--ink-soft); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a, .nav-links button {
  background: none; border: none; cursor: pointer;
  padding: 0.5rem 0.875rem; font-size: 0.875rem; font-weight: 500;
  color: var(--ink-soft); border-radius: 9999px; text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links button:hover { color: var(--ink); background: rgba(0,0,0,0.05); }

.btn-login {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-weight: 700; text-decoration: none;
  background: var(--wechat); color: #fff; border-radius: 9999px;
  padding: 0.625rem 1.5rem; font-size: 0.875rem;
  box-shadow: 0 4px 0 var(--wechat-dark), 0 8px 18px rgba(7, 193, 96, 0.28);
  transition: transform .15s, box-shadow .15s;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--wechat-dark), 0 10px 22px rgba(7, 193, 96, 0.32); }
.btn-login:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wechat-dark); }

.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

.mobile-menu {
  display: none; background: rgba(250, 246, 240, 0.98); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,0.05); padding: 1rem 1.5rem;
  flex-direction: column; gap: 0.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button {
  text-align: left; padding: 0.75rem 0; font-size: 1rem; font-weight: 500;
  color: var(--ink); background: none; border: none; border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer; text-decoration: none;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 68px; }
.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }
.hero-backdrop .blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45;
}
.hero-backdrop .blob-yellow { top: -8rem; right: -10rem; width: 28rem; height: 28rem; background: var(--note); }
.hero-backdrop .blob-pink { top: 16rem; left: -12rem; width: 24rem; height: 24rem; background: var(--note-pink); opacity: 0.35; }

.hero-inner {
  position: relative; max-width: 80rem; margin: 0 auto; padding: 3.5rem 1rem 4rem;
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; padding: 6rem 2rem 6rem; } }

.hero-content { text-align: center; }
@media (min-width: 1024px) { .hero-content { text-align: left; } }
.hero-badges {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem; border-radius: 9999px;
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600;
}
@media (min-width: 768px) { .badge { font-size: 0.875rem; padding: 0.375rem 1rem; } }
.badge-green { background: var(--wechat); color: #fff; }
.badge-outline { border: 1px solid rgba(196,149,106,0.6); background: rgba(255,255,255,0.7); color: var(--tan-deep); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wechat); animation: pinPulse 2s ease-in-out infinite; }

h1 { font-size: 2.25rem; font-weight: 800; line-height: 1.18; margin-top: 1.5rem; }
@media (min-width: 768px) { h1 { font-size: 3.6rem; } }
.hl-marker {
  background-image: linear-gradient(104deg, rgba(245,230,163,0) 0.9%, rgba(245,230,163,0.95) 2.4%, rgba(245,230,163,0.6) 5%, rgba(245,230,163,0.85) 96%, rgba(245,230,163,0) 98%);
  background-repeat: no-repeat; background-size: 100% 46%; background-position: 0 78%;
}

.hero-desc { margin-top: 1.5rem; font-size: 1rem; line-height: 1.75; color: var(--ink-soft); max-width: 32rem; margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { .hero-desc { margin-left: 0; margin-right: 0; font-size: 1.125rem; } }
.hero-desc strong { color: var(--ink); }

.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
@media (min-width: 1024px) { .hero-actions { justify-content: flex-start; } }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; font-weight: 800; text-decoration: none; border-radius: 9999px; padding: 0.875rem 2rem; font-size: 1rem; line-height: 1.25; white-space: nowrap; background: var(--wechat); color: #fff; box-shadow: 0 4px 0 var(--wechat-dark), 0 10px 22px rgba(7,193,96,0.3); transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--wechat-dark), 0 14px 26px rgba(7,193,96,0.35); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wechat-dark); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(44,44,44,0.7); cursor: pointer; font-weight: 700; text-decoration: none; border-radius: 9999px; padding: calc(0.875rem - 2px) 1.75rem; font-size: 1rem; line-height: 1.25; white-space: nowrap; background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(44,44,44,0.75); transition: transform .15s, box-shadow .15s; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(44,44,44,0.75); }

.hero-primary-group, .hero-ghost-group { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.btn-primary { gap: 0.5rem; }
.btn-primary .original-price { font-size: 0.75em; font-weight: 600; opacity: 0.85; text-decoration: line-through; }
.btn-primary-desc, .btn-ghost-desc, .community-cta-desc { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); text-align: center; }

.hero-points { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; font-size: 0.875rem; color: var(--ink-soft); }
@media (min-width: 1024px) { .hero-points { justify-content: flex-start; } }
.hero-points span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); }

/* Hero visual */
.hero-visual { position: relative; max-width: 28rem; margin: 0 auto; }
.floating-tag {
  position: absolute; z-index: 10; display: none; border-radius: 9999px; padding: 0.375rem 1rem;
  font-size: 0.875rem; font-weight: 700; color: var(--ink); box-shadow: 0 6px 16px rgba(44,44,44,0.14);
  animation: floaty 5.5s ease-in-out infinite; pointer-events: none;
}
@media (min-width: 768px) { .floating-tag { display: inline-block; } }

/* Demo quiz card */
.demo-card {
  position: relative; background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08);
  border-radius: 22px; padding: 1.5rem; box-shadow: 0 2px 6px rgba(44,44,44,0.06), 0 14px 34px rgba(44,44,44,0.07);
  transform: rotate(1.2deg); text-align: left;
}
.demo-tape { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); width: 112px; height: 28px; background: rgba(245,230,163,0.9); border-left: 1px dashed rgba(0,0,0,0.08); border-right: 1px dashed rgba(0,0,0,0.08); box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.demo-tag-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.25rem; }
.demo-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: #fff; background: var(--tan); border-radius: 9999px; padding: 0.25rem 0.75rem; }
.demo-tts-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); background: #fff; cursor: pointer; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, background .2s, box-shadow .2s; }
.demo-tts-btn:hover { transform: scale(1.08); background: var(--note); box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.demo-tts-btn.loading { opacity: 0.6; cursor: wait; }
.demo-tts-btn.speaking { background: var(--wechat); color: #fff; border-color: var(--wechat); animation: ttsPulse 1.2s ease-in-out infinite; }
@keyframes ttsPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(7,193,96,0.35); } 50% { box-shadow: 0 0 0 8px rgba(7,193,96,0); } }
.demo-stem { margin-top: 1rem; font-family: "Kalam", cursive; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.demo-options { margin-top: 1rem; display: grid; gap: 0.625rem; }
.demo-opt {
  position: relative; overflow: hidden; isolation: isolate; text-align: left;
  border: 2px solid rgba(0,0,0,0.1); background: #fff; border-radius: 12px; padding: 0.625rem 1rem;
  font-family: "Kalam", cursive; font-size: 0.95rem; color: var(--ink); cursor: pointer; transition: border-color .2s;
}
.demo-opt::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(0.22,1,0.36,1); background: rgba(196,149,106,0.18); }
.demo-opt:hover::before { transform: scaleX(1); }
.demo-opt.correct { border-color: var(--wechat); }
.demo-opt.correct::before { transform: scaleX(1); background: rgba(7,193,96,0.18); }
.demo-opt.wrong { border-color: var(--coral); }
.demo-opt.wrong::before { transform: scaleX(1); background: rgba(242,132,130,0.22); }
.demo-opt-letter { font-family: "Caveat", cursive; font-weight: 700; margin-right: 0.5rem; color: var(--tan-deep); }
.demo-feedback { margin-top: 1rem; border-radius: 12px; padding: 1rem; font-size: 0.875rem; display: none; }
.demo-feedback.show { display: block; }
.demo-feedback.correct { background: rgba(7,193,96,0.08); }
.demo-feedback.wrong { background: rgba(242,132,130,0.1); }
.demo-feedback-title { font-weight: 700; }
.demo-feedback.correct .demo-feedback-title { color: var(--wechat-dark); }
.demo-feedback.wrong .demo-feedback-title { color: #c0392b; }
.demo-feedback p { margin-top: 0.5rem; color: var(--ink-soft); line-height: 1.6; }
.demo-actions { margin-top: 0.75rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.demo-actions button { background: none; border: none; cursor: pointer; font-size: 0.875rem; font-weight: 600; }
.demo-actions .reset { color: var(--tan-deep); }
.demo-actions .login { color: var(--wechat-dark); }

/* Marquee & Pain Points */
.pain-band { position: relative; background: var(--tan); padding: 4rem 0 3rem; }
.pain-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
}
.pain-grid { position: relative; display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pain-grid { grid-template-columns: repeat(4, 1fr); } }
.pain-note {
  position: relative; padding: 1.5rem; min-height: 140px; display: flex; align-items: center;
  border-radius: 2px 2px 14px 2px;
  box-shadow: 0 10px 24px rgba(44,44,44,0.16), 0 2px 4px rgba(44,44,44,0.1);
  font-family: "Kalam", cursive; font-size: 1.05rem; line-height: 1.6; color: var(--ink);
}
.pain-note::after { content: ""; position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 86px; height: 26px; background: rgba(245,230,163,0.55); border-left: 1px dashed rgba(0,0,0,0.08); border-right: 1px dashed rgba(0,0,0,0.08); box-shadow: 0 2px 4px rgba(0,0,0,0.08); }

.torn-edge { display: block; width: 100%; height: 42px; }

/* Section head */
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head.left { text-align: left; }
.section-eyebrow { font-family: "Caveat", cursive; font-size: 1.5rem; font-weight: 600; color: var(--tan-deep); margin-bottom: 0.5rem; }
.section-title { font-size: 1.875rem; font-weight: 800; line-height: 1.2; }
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
.hl-green {
  background-image: linear-gradient(104deg, rgba(7,193,96,0) 0.9%, rgba(7,193,96,0.28) 2.4%, rgba(7,193,96,0.16) 5%, rgba(7,193,96,0.25) 96%, rgba(7,193,96,0) 98%);
  background-repeat: no-repeat; background-size: 100% 46%; background-position: 0 78%;
}
.section-sub { margin-top: 1rem; color: var(--ink-soft); line-height: 1.7; max-width: 40rem; margin-left: auto; margin-right: auto; }
.section-head.left .section-sub { margin-left: 0; margin-right: 0; }

.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.bg-paper-deep { background: var(--paper-deep); }

/* Audience tabs */
.audience-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-bottom: 2.5rem; }
.audience-tab {
  border: none; cursor: pointer; border-radius: 9999px; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 700;
  background: transparent; color: var(--ink-soft); transition: all .3s;
}
@media (min-width: 768px) { .audience-tab { padding: 0.625rem 1.75rem; font-size: 1rem; } }
.audience-tab.active { background: var(--ink); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.audience-panel {
  background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 28px; padding: 2rem;
  box-shadow: 0 2px 6px rgba(44,44,44,0.06), 0 14px 34px rgba(44,44,44,0.07);
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 768px) { .audience-panel { grid-template-columns: 1.1fr 0.9fr; padding: 3rem; } }
.audience-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.audience-title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
@media (min-width: 768px) { .audience-title { font-size: 1.8rem; } }
.audience-desc { margin-top: 1rem; color: var(--ink-soft); line-height: 1.7; }
.audience-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.audience-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; }
.audience-list .check { margin-top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(7,193,96,0.15); color: var(--wechat-dark); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; flex-shrink: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.tag-pill { border-radius: 9999px; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; color: var(--ink); box-shadow: 0 2px 4px rgba(0,0,0,0.06); }

/* Features */
.feature-grid { display: grid; gap: 1.25rem; grid-auto-rows: minmax(180px, auto); }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(220px, auto); } }
.feature-card {
  background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 24px; padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(44,44,44,0.06), 0 14px 34px rgba(44,44,44,0.07);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(44,44,44,0.12); }
.feature-card.tall { grid-row: span 2; display: flex; flex-direction: column; }
.feature-card h3 { font-size: 1.125rem; font-weight: 700; }
.feature-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.7; color: var(--ink-soft); }
.progress-bars { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.progress-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.progress-row span { width: 3.5rem; color: var(--ink-soft); flex-shrink: 0; }
.progress-track { flex: 1; height: 10px; border-radius: 9999px; background: rgba(0,0,0,0.08); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 9999px; transform-origin: left; animation: growX 1.1s cubic-bezier(.22,1,.36,.1) both; }
.progress-row .pct { width: 2.5rem; text-align: right; font-weight: 700; }

/* How it works */
.steps-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .steps-layout { grid-template-columns: 0.9fr 1.1fr; } }
.steps-sticky { position: relative; }
@media (min-width: 1024px) { .steps-sticky { position: sticky; top: 7rem; align-self: start; } }
.steps-loop {
  margin-top: 2rem; display: inline-flex; flex-wrap: wrap; gap: 0.5rem;
  background: var(--paper-deep); border: 1px solid rgba(0,0,0,0.08); border-radius: 20px; padding: 1.25rem;
}
.steps-loop span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; }
.steps-loop .box { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); border-radius: 9999px; padding: 0.375rem 0.875rem; }
.steps-loop .arrow { color: var(--tan-deep); }
.steps-loop .loop { font-family: "Caveat", cursive; font-size: 1.25rem; }
.step-card {
  background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 24px; padding: 1.75rem;
  box-shadow: 0 2px 6px rgba(44,44,44,0.06), 0 14px 34px rgba(44,44,44,0.07);
  display: flex; gap: 1.25rem; margin-bottom: 1.5rem;
}
.step-num { font-family: "Caveat", cursive; font-size: 2.5rem; font-weight: 700; color: var(--tan); line-height: 1; flex-shrink: 0; }
.step-title { font-size: 1.25rem; font-weight: 700; }
.step-desc { margin-top: 0.625rem; color: var(--ink-soft); line-height: 1.7; font-size: 0.95rem; }
.step-chip { display: inline-block; margin-top: 1rem; background: var(--note); border-radius: 9999px; padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 700; }

/* Coverage */
.coverage-grid { display: grid; gap: 1.5rem; align-items: start; position: relative; }
@media (min-width: 1024px) { .coverage-grid { grid-template-columns: repeat(3, 1fr); } }
.coverage-card { background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 24px; overflow: hidden; box-shadow: 0 2px 6px rgba(44,44,44,0.06), 0 14px 34px rgba(44,44,44,0.07); transition: transform .3s; }
.coverage-card:hover { transform: translateY(-6px); }
.coverage-header { padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: baseline; }
.coverage-header .cn { font-size: 1.25rem; font-weight: 900; }
.coverage-header .en { font-family: "Caveat", cursive; font-size: 1.25rem; color: var(--ink-soft); }
.coverage-body { padding: 1.5rem; }
.coverage-badge { display: inline-block; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 700; border-radius: 9999px; padding: 0.375rem 0.875rem; }
.coverage-desc { margin-top: 1rem; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; }
.coverage-topics { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.coverage-topics span { font-size: 0.75rem; border: 1px solid rgba(0,0,0,0.12); background: #fff; border-radius: 9999px; padding: 0.375rem 0.75rem; }
.coverage-keywords { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1.25rem 0 0.75rem; }
.kw-item { display: flex; align-items: center; gap: 0.5rem; background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 9999px; padding: 0.5rem 1rem 0.5rem 0.5rem; box-shadow: 0 2px 6px rgba(44,44,44,0.05); }
.kw-char { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Kalam", cursive; font-size: 1.125rem; font-weight: 700; color: #fff; background: var(--ink); flex-shrink: 0; }
.kw-label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) {
  .coverage-card:nth-child(1) { transform: translateY(4rem); }
  .coverage-card:nth-child(2) { transform: translateY(2rem); }
}

/* Philosophy board */
.philosophy { position: relative; background: var(--board); color: var(--chalk); }
.philosophy-inner { position: relative; padding: 5rem 0; text-align: center; }
.philosophy-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
}
.philosophy-title { position: relative; font-family: "Kalam", cursive; font-size: 1.75rem; font-weight: 700; line-height: 1.35; }
@media (min-width: 768px) { .philosophy-title { font-size: 2.5rem; } }
.chalk-underline { background-image: linear-gradient(90deg, rgba(232,213,106,0.9), rgba(232,213,106,0.6)); background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 96%; border-radius: 2px; }
.chalk-glow { animation: chalkGlow 3.2s ease-in-out infinite; }
.philosophy-desc { position: relative; margin-top: 2rem; color: rgba(242,239,230,0.75); line-height: 1.8; max-width: 42rem; margin-left: auto; margin-right: auto; }
.philosophy-formula { position: relative; margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.formula-box { border-radius: 16px; border: 2px dashed rgba(242,239,230,0.35); background: rgba(255,255,255,0.05); padding: 1rem 1.25rem; }
.formula-box.gold { border-color: var(--gold); background: rgba(232,213,106,0.1); }
.formula-main { font-family: "Kalam", cursive; font-size: 1.125rem; font-weight: 700; }
@media (min-width: 768px) { .formula-main { font-size: 1.5rem; } }
.formula-box.gold .formula-main { color: var(--gold); }
.formula-sub { margin-top: 0.25rem; font-size: 0.75rem; color: rgba(242,239,230,0.6); }
.formula-op { align-self: center; font-family: "Caveat", cursive; font-size: 2rem; color: rgba(242,239,230,0.6); }

/* Community */
.community-layout { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .community-layout { grid-template-columns: 1fr 1fr; } }
.community-values { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.community-value { display: flex; gap: 1rem; }
.community-value-icon { width: 44px; height: 44px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: "Caveat", cursive; font-size: 1.25rem; font-weight: 700; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); flex-shrink: 0; }
.community-value h4 { font-weight: 700; }
.community-value p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; }
.community-quote { margin-top: 1.5rem; background: rgba(245,230,163,0.7); border: 1px solid rgba(232,213,106,0.6); border-radius: 16px; padding: 1.25rem; }
.community-quote p { font-family: "Kalam", cursive; font-weight: 700; color: var(--ink); }
.community-quote small { display: block; margin-top: 0.5rem; font-size: 0.75rem; color: var(--ink-soft); }
.chat-card { position: relative; background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 26px; padding: 1.25rem; box-shadow: 0 2px 6px rgba(44,44,44,0.06), 0 14px 34px rgba(44,44,44,0.07); transform: rotate(-1deg); }
.chat-header { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wechat); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; }
.chat-title { font-weight: 700; font-size: 0.875rem; }
.chat-meta { font-size: 0.75rem; color: var(--ink-soft); }
.chat-badge { margin-left: auto; background: rgba(7,193,96,0.12); color: var(--wechat-dark); font-size: 0.75rem; font-weight: 700; border-radius: 9999px; padding: 0.375rem 0.75rem; }
.chat-body { padding-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { display: flex; gap: 0.625rem; }
.chat-msg.right { flex-direction: row-reverse; }
.chat-msg-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; flex-shrink: 0; }
.chat-msg.right .chat-msg-avatar { background: var(--wechat); color: #fff; }
.chat-msg.left .chat-msg-avatar { background: var(--note-blue); }
.chat-msg-content { max-width: 82%; }
.chat-msg-name { font-size: 10px; color: var(--ink-soft); margin-bottom: 0.25rem; }
.chat-msg.right .chat-msg-name { text-align: right; }
.chat-msg-bubble { display: inline-block; border-radius: 16px; padding: 0.625rem 1rem; font-size: 0.8125rem; line-height: 1.6; text-align: left; }
.chat-msg.left .chat-msg-bubble { background: rgba(0,0,0,0.05); color: var(--ink); border-top-left-radius: 4px; }
.chat-msg.right .chat-msg-bubble { background: rgba(7,193,96,0.12); color: var(--ink); border-top-right-radius: 4px; }
.chat-sticker { position: absolute; top: -1.25rem; left: -1rem; bottom: auto; background: var(--note); border-radius: 12px; padding: 0.625rem 1rem; box-shadow: 0 6px 16px rgba(0,0,0,0.12); font-family: "Kalam", cursive; font-size: 0.875rem; font-weight: 600; transform: rotate(-4deg); }
.community-cta { margin-top: 1.75rem; text-align: left; }
.community-cta-btn {
  display: inline-flex; align-items: center; gap: 0.625rem;
  background: var(--wechat); color: #fff; border-radius: 9999px;
  padding: 0.75rem 1.25rem; font-size: 0.9375rem; font-weight: 800;
  text-decoration: none; box-shadow: 0 4px 0 var(--wechat-dark), 0 10px 22px rgba(7,193,96,0.28);
  transition: transform .15s, box-shadow .15s;
}
.community-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--wechat-dark), 0 12px 26px rgba(7,193,96,0.32); }
.community-cta-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wechat-dark); }
.community-cta-btn .original-price { font-size: 0.8em; font-weight: 600; opacity: 0.8; text-decoration: line-through; }
.community-cta-desc { margin-top: 0.625rem; font-size: 0.8125rem; color: var(--ink-soft); text-align: left; }

/* Teachers */
.teacher-dashboard {
  background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 26px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(44,44,44,0.06), 0 14px 34px rgba(44,44,44,0.07); transform: rotate(1deg);
}
.teacher-dash-header { background: var(--ink); color: #fff; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.teacher-dash-header span { font-weight: 700; font-size: 0.875rem; }
.teacher-invite { background: var(--wechat); color: #fff; font-size: 0.75rem; font-weight: 700; border-radius: 9999px; padding: 0.375rem 0.75rem; }
.teacher-row { padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.teacher-row:hover { background: rgba(0,0,0,0.02); }
.teacher-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(196,149,106,0.25); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--tan-deep); font-size: 0.875rem; }
.teacher-row-info { min-width: 0; }
.teacher-row-info .name { font-weight: 600; font-size: 0.875rem; }
.teacher-row-info .days { font-size: 0.75rem; color: var(--ink-soft); }
.teacher-row-weak { margin-left: auto; text-align: right; }
.teacher-row-weak span { background: var(--note-pink); border-radius: 9999px; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 700; }
.teacher-row-rate { width: 3.5rem; text-align: right; }
.teacher-row-rate .num { font-family: "Kalam", cursive; font-weight: 700; }
.teacher-row-rate .label { font-size: 10px; color: var(--ink-soft); }
.teacher-dash-foot { padding: 0.875rem 1.5rem; background: rgba(0,0,0,0.03); font-size: 0.75rem; color: var(--ink-soft); }
.teacher-perks { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .teacher-perks { grid-template-columns: repeat(2, 1fr); } }
.teacher-perk { background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 20px; padding: 1.5rem; box-shadow: 0 2px 6px rgba(44,44,44,0.06), 0 14px 34px rgba(44,44,44,0.07); transition: transform .3s; }
.teacher-perk:hover { transform: translateY(-4px); }
.teacher-perk-num { font-family: "Caveat", cursive; font-size: 1.75rem; font-weight: 700; color: var(--tan); }
.teacher-perk h4 { margin-top: 0.5rem; font-weight: 700; }
.teacher-perk p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; }

/* FAQ */
.faq-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.875rem; }
.faq-item { background: var(--paper-card); border: 1px solid rgba(44,44,44,0.08); border-radius: 16px; box-shadow: 0 2px 6px rgba(44,44,44,0.06); overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem; background: none; border: none; cursor: pointer; text-align: left; font-size: 1rem; font-weight: 700; }
.faq-icon { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--tan); color: var(--tan-deep); display: flex; align-items: center; justify-content: center; font-weight: 700; transition: transform .3s, background .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--note); }
.faq-a { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s ease; }
.faq-item.open .faq-a { max-height: 300px; opacity: 1; }
.faq-a p { padding: 0 1.25rem 1.25rem; font-size: 0.95rem; line-height: 1.75; color: var(--ink-soft); }

/* Final CTA */
.final-cta { position: relative; background: var(--tan); text-align: center; }
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
}
.final-cta-inner { position: relative; padding: 5rem 1rem; }
.final-cta-logo { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto; box-shadow: 0 14px 34px rgba(44,44,44,0.25); transform: rotate(-3deg); }
.final-cta h2 { margin-top: 2rem; font-size: 1.875rem; font-weight: 800; color: #fff; line-height: 1.2; }
@media (min-width: 768px) { .final-cta h2 { font-size: 3rem; } }
.final-cta p { margin-top: 1.25rem; color: rgba(255,255,255,0.85); font-size: 1rem; line-height: 1.7; max-width: 32rem; margin-left: auto; margin-right: auto; }
.final-cta .btn-white { display: inline-flex; margin-top: 2rem; background: #fff; color: var(--tan-deep); border-radius: 9999px; padding: 1rem 2.25rem; font-size: 1.125rem; font-weight: 900; border: none; cursor: pointer; box-shadow: 0 6px 0 rgba(138,103,66,0.9), 0 16px 32px rgba(44,44,44,0.25); transition: transform .15s; }
.final-cta .btn-white:hover { transform: translateY(-2px); }
.final-cta .btn-white:active { transform: translateY(2px); }
.final-cta .copy-wechat { margin-top: 1.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.75); }
.final-cta .copy-wechat button { background: none; border: none; color: #fff; text-decoration: underline; cursor: pointer; font-weight: 600; }

/* Footer */
.home-footer { background: var(--ink); color: rgba(250,246,240,0.75); }
.home-footer-inner { max-width: 80rem; margin: 0 auto; padding: 3.5rem 1rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand p { margin-top: 1rem; font-size: 0.875rem; line-height: 1.7; max-width: 24rem; }
.footer-col h4 { color: var(--paper); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a, .footer-col button { color: rgba(250,246,240,0.75); font-size: 0.875rem; text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; }
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.75rem; color: rgba(250,246,240,0.55); }
.footer-bottom p { margin: 0.375rem 0; }
.footer-bottom a { color: rgba(250,246,240,0.75); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom img { height: 16px; vertical-align: middle; margin-right: 4px; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(42px); transition: opacity .95s cubic-bezier(.22,1,.36,1), transform .95s cubic-bezier(.22,1,.36,1); }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Animations */
@keyframes pinPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); } }
@keyframes chalkGlow { 0%,100% { text-shadow: 0 0 1px rgba(242,239,230,0.6); } 50% { text-shadow: 0 0 10px rgba(242,239,230,0.9); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
