:root {
  --bg: #f7fbf8;
  --white: #ffffff;
  --text: #143020;
  --muted: #5d6f64;
  --primary: #4c9a64;
  --primary-deep: #2f6f46;
  --accent: #ff9b42;
  --line: #dce9e0;
  --radius: 18px;
  --shadow: 0 4px 20px rgba(33, 68, 49, 0.06), 0 1px 3px rgba(33, 68, 49, 0.04);
  --shadow-hover: 0 12px 40px rgba(33, 68, 49, 0.12), 0 2px 6px rgba(33, 68, 49, 0.06);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #f8fcf9 0%, #f3f8f5 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(220, 233, 224, 0.7);
  border-bottom: 1px solid rgba(220, 233, 224, 0.7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 253, 251, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(220, 233, 224, 0.65);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
}

.menu {
  display: inline-flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-ico {
  display: inline-block;
  margin-right: 6px;
  color: var(--primary);
  font-size: 10px;
  transform: translateY(-1px);
}

.menu a:hover {
  color: var(--primary-deep);
}

.hero {
  background: radial-gradient(ellipse at 30% 0%, rgba(76, 154, 100, 0.10) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, rgba(255, 155, 66, 0.06) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: stretch;
}

.glass-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(7px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--primary-deep);
  font-weight: 600;
}

.eyebrow::before {
  content: none;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.28;
}

h1 {
  font-size: clamp(30px, 4.4vw, 46px);
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 20px;
}

.lead {
  font-size: 17px;
  color: #294638;
  max-width: 60ch;
}

.lead strong {
  color: var(--primary-deep);
  font-weight: 700;
}

.lead mark {
  background: linear-gradient(transparent 60%, rgba(76, 154, 100, 0.18) 60%);
  color: inherit;
  padding: 0 2px;
}

.hero-title {
  margin: 2px 0 16px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
  color: #133524;
  text-wrap: balance;
}

.lead.compact {
  max-width: 80ch;
}

.lead-sub {
  margin-top: 4px;
  font-size: 16px;
  color: #3f5a4a;
}

.hero-cta {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-cta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}

.hero-qr {
  margin: 0;
  text-align: center;
  flex-shrink: 0;
}

.hero-qr img {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  border: 1px solid #d8e7dc;
  background: #fff;
  padding: 4px;
  box-shadow: 0 4px 16px rgba(33, 68, 49, 0.08);
}

.hero-qr figcaption {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.btn {
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  box-shadow: 0 8px 22px rgba(51, 119, 72, 0.28);
}

.btn-secondary {
  color: var(--primary-deep);
  background: #fff;
  border: 1px solid var(--line);
}

.card {
  background: var(--white);
  border: 1px solid rgba(220, 233, 224, 0.95);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

details.card:hover {
  transform: none;
}

.card-ico {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 16px;
  font-size: 28px;
  line-height: 1;
  color: var(--primary-deep);
  background: #edf7f1;
  border: 1px solid #d5e7dc;
}

.hero-visual {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  width: min(100%, 240px);
  background: #101713;
  border-radius: 34px;
  padding: 8px 12px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
  width: 104px;
  height: 14px;
  border-radius: 10px;
  margin: 0 auto 8px;
  background: #1b2520;
}

.phone-mockup img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid #d6e5db;
  background: #fff;
}

.phone-single {
  width: min(100%, 300px);
}

.phone-screen {
  height: 585px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #d6e5db;
  background: #eef5f0;
  position: relative;
}

.screen-track {
  width: 200%;
  height: 100%;
  display: flex;
  animation: phoneSlideX 11s ease-in-out infinite;
}

.screen-page {
  width: 50%;
  height: 100%;
  padding: 14px;
}

.screen-header {
  background: linear-gradient(135deg, #5cae74, #4c9a64);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.screen-header strong {
  font-size: 15px;
}

.screen-header span {
  font-size: 12px;
  opacity: 0.95;
}

.schedule-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  color: #3e5a49;
  background: #fff;
  border: 1px solid #d7e7dc;
  border-radius: 999px;
  padding: 4px 8px;
}

.tag.green {
  background: #edf7f1;
  color: #2f6f46;
}

.schedule-list {
  display: grid;
  gap: 8px;
}

.lesson-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #dbe9e0;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.lesson-card h4 {
  margin: 0;
  font-size: 13px;
  color: #214333;
}

.lesson-card p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #587160;
}

.state {
  font-style: normal;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.state.done {
  color: #2f6f46;
  background: #edf7f1;
}

.state.wait {
  color: #c46a1f;
  background: #fff1e4;
}

.canvas-topbar {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.month-pill {
  background: #5ba972;
  color: #fff;
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
  display: grid;
  align-content: center;
}

.month-pill b {
  font-size: 11px;
  line-height: 1.1;
}

.month-pill span {
  font-size: 10px;
  opacity: 0.95;
}

.week-head {
  background: #fff;
  border: 1px solid #dbe9e0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.week-head span {
  text-align: center;
  font-size: 10px;
  color: #4f6758;
  padding: 4px 0;
  border-left: 1px solid #edf3ef;
}

.week-head span:first-child {
  border-left: 0;
}

.week-head em {
  display: block;
  font-style: normal;
  color: #1f3f30;
  font-weight: 700;
  font-size: 11px;
}

.canvas-board {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
}

.time-col {
  background: #fff;
  border: 1px solid #dbe9e0;
  border-radius: 10px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}

.time-col span {
  font-size: 10px;
  color: #60786a;
  display: grid;
  place-items: center;
  border-top: 1px solid #edf3ef;
}

.time-col span:first-child {
  border-top: 0;
}

.grid-wrap {
  height: 250px;
  background: #fff;
  border: 1px solid #dbe9e0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(219, 233, 224, 0.7) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(219, 233, 224, 0.7) 1px, transparent 1px);
  background-size: calc(100% / 4) calc(100% / 5);
}

.grid-event {
  position: absolute;
  border-radius: 8px;
  padding: 6px;
  color: #fff;
  line-height: 1.15;
  box-shadow: 0 4px 10px rgba(33, 90, 56, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 3px;
  overflow: hidden;
}

.grid-event b {
  display: block;
  font-size: 9px;
  margin-top: 2px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evt-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  padding: 2px 4px;
  border-radius: 999px;
  color: #8a5318;
  background: rgba(255, 243, 226, 0.98);
  border: 1px solid rgba(255, 206, 152, 0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.evt-status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ff9b42;
  box-shadow: 0 0 0 1.5px rgba(255, 155, 66, 0.2);
}

.evt-done {
  color: #1f6a3f;
  background: rgba(232, 246, 236, 0.98);
  border: 1px solid rgba(170, 222, 187, 0.95);
}

.evt-done::before {
  background: #34a566;
  box-shadow: 0 0 0 1.5px rgba(52, 165, 102, 0.2);
}

.grid-event.e1 {
  left: 2%;
  top: 4%;
  width: 22%;
  height: 30%;
  background: linear-gradient(135deg, #5aaa73, #489962);
}

.grid-event.e2 {
  left: 27%;
  top: 22%;
  width: 22%;
  height: 26%;
  background: linear-gradient(135deg, #62b97c, #55ad6e);
}

.grid-event.e3 {
  left: 52%;
  top: 8%;
  width: 22%;
  height: 28%;
  background: linear-gradient(135deg, #4f9d67, #3f8c58);
}

.grid-event.e4 {
  left: 77%;
  top: 36%;
  width: 21%;
  height: 24%;
  background: linear-gradient(135deg, #ff9b42, #f08930);
}

.canvas-footnote {
  margin: 7px 2px 0;
  font-size: 10px;
  color: #6c8476;
}

.stats-page .mini-chart-card {
  background: #fff;
  border: 1px solid #dbe9e0;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 9px;
}

.stats-page .mini-chart-card p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #234334;
  font-weight: 600;
}

.mini-bars {
  height: 82px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  align-items: end;
}

.mini-bars span {
  width: 100%;
  border-radius: 7px 7px 3px 3px;
  min-height: 10px;
  background: linear-gradient(180deg, #76d990, #4c9a64);
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-kpis > div {
  background: #fff;
  border: 1px solid #dbe9e0;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.mini-kpis label {
  display: block;
  font-size: 11px;
  color: #637c6d;
}

.mini-kpis strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1;
  color: #2f6f46;
}

@keyframes phoneSlideX {
  0%, 40% {
    transform: translateX(0);
  }
  50%, 90% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.value-grid,
.feature-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.mock-dashboard {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-card {
  padding: 18px 18px 16px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.chart-head h3 {
  margin: 0;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chart-total {
  font-size: 13px;
  color: var(--muted);
}

.mini-ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: var(--primary-deep);
  background: #edf7f1;
  border: 1px solid #d5e7dc;
  font-size: 18px;
  line-height: 1;
}

.bar-chart {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.bar-col {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 6px;
}

.bar-col .bar {
  display: block;
  width: 100%;
  border-radius: 8px 8px 4px 4px;
  min-height: 6px;
  background: linear-gradient(180deg, #76d990 0%, #4c9a64 100%);
  box-shadow: 0 4px 12px rgba(76, 154, 100, 0.2);
  align-self: end;
}

.bar-col em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.stats-kpi-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  padding: 16px;
  text-align: center;
}

.kpi-ico {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary-deep);
  background: #edf7f1;
  border: 1px solid #d5e7dc;
  font-size: 22px;
  line-height: 1;
}

.kpi-card span:not(.kpi-ico) {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.kpi-card strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
  line-height: 1;
  color: var(--primary-deep);
}

.mock-tip {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  background: #fff;
  border: 1px solid #d8e7dc;
  color: #355a45;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: default;
}

.chips span:hover {
  background: #edf7f1;
  border-color: var(--primary);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.section-cta {
  background: radial-gradient(circle at top right, rgba(76, 154, 100, 0.14), transparent 58%);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(76, 154, 100, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-wrap {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.qr-box {
  margin: 0;
  width: 188px;
  text-align: center;
}

.qr-box img {
  border: 1px solid #d8e7dc;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
}

.qr-box figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.faq-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: #234334;
}

details p {
  margin: 10px 0 0;
  color: #365646;
}

.site-footer {
  padding: 34px 0 46px;
}

.site-footer .container {
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #7f8f86;
  font-size: 13px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.landing-footer-icp a {
  color: #8b9991;
  font-size: 12px;
  text-decoration: none;
}

.landing-footer-icp a:hover {
  color: #1a73e8;
  text-decoration: underline;
  text-decoration-color: #1a73e8;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .mock-dashboard {
    grid-template-columns: 1fr;
  }

  .stats-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    width: min(100%, 300px);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }

  .hero-copy,
  .card {
    padding: 18px;
  }

  .menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .lead {
    font-size: 15px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta-left {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .hero-qr {
    align-self: center;
    margin-top: 4px;
  }

  .bar-chart {
    height: 120px;
    gap: 6px;
  }

  .kpi-card strong {
    font-size: 22px;
  }

  .qr-box {
    width: 160px;
    margin: 0 auto;
  }

  .cta-wrap {
    text-align: center;
    justify-items: center;
  }

  .phone-single {
    width: min(100%, 260px);
  }

  .phone-screen {
    height: 480px;
  }
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 30;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 移动端菜单展开 */
@media (max-width: 640px) {
  .menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 253, 251, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 25;
    font-size: 16px;
  }

  .menu.open {
    display: flex;
  }
}
