/* ============ 设计系统 · 绿色农业风 + 教育元素 ============ */
:root {
  --primary: #15803D;        /* 深林绿 green-700 */
  --primary-dark: #166534;   /* green-800 */
  --primary-light: #22C55E;  /* green-500 */
  --primary-50: #F0FDF4;     /* green-50 */
  --primary-100: #DCFCE7;    /* green-100 */
  --accent: #EA580C;         /* 暖橙-教育/活力点缀 orange-600 */
  --accent-50: #FFF7ED;      /* orange-50 */
  --ink: #0F1A12;            /* 深林墨 */
  --text: #1F2A22;
  --muted: #5B6B60;
  --bg: #FFFFFF;
  --bg-soft: #F6FAF4;        /* 浅绿白 */
  --bg-deep: #0B1F14;        /* 深林 */
  --border: #E3EBE4;
  --shadow-sm: 0 1px 2px rgba(15,26,18,.06);
  --shadow: 0 10px 30px rgba(21,128,61,.08);
  --shadow-lg: 0 24px 60px rgba(15,26,18,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --grad: linear-gradient(135deg, #166534 0%, #22C55E 55%, #4ADE80 100%);
  --grad-soft: linear-gradient(135deg, #F0FDF4 0%, #F6FAF4 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(21,128,61,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(21,128,61,.34); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary-100); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); }
.btn-block { width: 100%; }

/* ============ 顶部导航 ============ */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow-sm);
}
.brand-text i { font-style: normal; color: var(--primary); font-weight: 600; font-size: 13px; margin-left: 4px; }
.nav-links { display: flex; gap: 6px; }
.nav-link { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: all .2s; }
.nav-link:hover { color: var(--primary); background: var(--primary-50); }
.nav-link.active { color: var(--primary); background: var(--primary-50); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(74,222,128,.30), transparent 60%), var(--bg-deep);
  color: #fff; padding: 96px 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(800px 400px at 70% 0%, #000, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em;
  color: #BBF7D0; background: rgba(34,197,94,.16); border: 1px solid rgba(74,222,128,.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin-top: 22px; font-size: 19px; color: #CBE7D4; max-width: 640px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.1); }
.hero-stats { margin-top: 56px; display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stats .stat .n { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats .stat .l { font-size: 14px; color: #8FB89C; margin-top: 2px; }

/* ============ 通用区块 ============ */
section.block { padding: 84px 0; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.section-head .tag { color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--ink); margin-top: 10px; letter-spacing: -.01em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.bg-soft { background: var(--bg-soft); }
.bg-grad-soft { background: var(--grad-soft); }

/* 小标签（教育/业务角标） */
.badge { display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--primary-100); color: var(--primary); margin-bottom: 16px; }
.badge.edu { background: var(--accent-50); color: var(--accent); }

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: all .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; background: var(--primary-50); color: var(--primary);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .price { display: inline-block; margin-top: 16px; font-weight: 800; font-size: 22px; color: var(--primary); }
.card .price small { font-size: 13px; color: var(--muted); font-weight: 500; }

/* 课程/学堂卡（教育元素） */
.course-card { display: flex; flex-direction: column; border-top: 3px solid var(--primary); }
.course-card .cc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.course-card .cc-no { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.course-card h3 { font-size: 20px; color: var(--ink); }
.course-card .cc-desc { color: var(--muted); font-size: 15px; flex: 1; }
.course-card .cc-list { margin-top: 16px; display: grid; gap: 9px; }
.course-card .cc-list li { list-style: none; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.course-card .cc-list .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 12px; flex: none; margin-top: 2px; }

/* ============ 特性列表 ============ */
.feature-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-copy h2 { font-size: clamp(24px,3vw,34px); color: var(--ink); font-weight: 800; }
.feature-copy p { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.feature-list { margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.feature-list .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 13px; flex: none; margin-top: 2px; }
.visual {
  border-radius: 20px; min-height: 320px; background: var(--grad);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  display: grid; place-items: center; color: #fff;
}
.visual svg { width: 78%; opacity: .95; }

/* ============ 数据条 ============ */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 8px; }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-box .n { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat-box .n small { font-size: 16px; }
.stat-box .l { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ============ CTA 条 ============ */
.cta-band { background: var(--grad); color: #fff; border-radius: 24px; padding: 54px 48px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(24px,3vw,34px); font-weight: 800; }
.cta-band p { margin-top: 12px; color: #DCFCE7; font-size: 17px; }
.cta-band .hero-cta { justify-content: center; }

/* ============ 页脚 ============ */
#site-footer { background: var(--bg-deep); color: #9FB8A8; padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
#site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
#site-footer a { color: #9FB8A8; font-size: 14.5px; display: block; margin-bottom: 10px; transition: color .2s; }
#site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 38px; padding-top: 20px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ============ 表单 ============ */
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: #EF4444; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-error { color: #DC2626; font-size: 13px; margin-top: 6px; min-height: 16px; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px; font-size: 14.5px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #16A34A; }
.toast.err { background: #DC2626; }

/* ============ 工具类 ============ */
.center { text-align: center; }
.mt-12 { margin-top: 12px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 80px; }
  .hero-stats { gap: 28px; }
  section.block { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
}
