/* ============================================================
   青禾教培官网 · 设计系统（v2 差异化布局）
   主色：青绿；布局参考小麦内容结构，但原创设计
   ============================================================ */

:root {
  --brand-50:  #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #166534;
  --brand-900: #14532d;

  --ink-900: #0f172a;
  --ink-800: rgba(15, 23, 42, .88);
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-400: #94a3b8;

  --bg: #ffffff;
  --bg-tint: #f6faf7;
  --bg-dark: #eef8f1;
  --footer: #e9f5ed;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 40px rgba(15, 23, 42, .06);
  --shadow-hover: 0 16px 48px rgba(22, 101, 52, .14);

  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-800);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-brand { color: var(--brand-600); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 12px; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 163, 74, .28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 163, 74, .38);
}

.btn-ghost {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--brand-200);
}
.btn-ghost:hover { border-color: var(--brand-500); background: var(--brand-50); }

.btn-light {
  background: var(--brand-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 101, 52, .28);
}
.btn-light:hover { transform: translateY(-2px); background: var(--brand-800); box-shadow: 0 12px 28px rgba(22, 101, 52, .36); }

.btn-outline-light {
  background: #fff;
  color: var(--brand-700);
  border-color: var(--brand-200);
}
.btn-outline-light:hover { border-color: var(--brand-500); background: var(--brand-50); }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(15, 23, 42, .08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--ink-900); letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 15px;
  color: var(--ink-700);
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--brand-600); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login {
  font-size: 15px;
  color: var(--brand-700);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: .25s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid #eef2f0;
  padding: 8px 24px 16px;
  background: #fff;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 4px;
  font-size: 15px;
  color: var(--ink-700);
  border-bottom: 1px solid #f5f7f6;
}

/* ---------------- Hero（居中式） ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 158px 0 0;
  background: linear-gradient(180deg, #f4faf6 0%, #ffffff 100%);
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.blob-1 { width: 460px; height: 460px; background: #bbf7d0; top: -140px; left: 50%; transform: translateX(-60%); }
.blob-2 { width: 340px; height: 340px; background: #ccfbf1; bottom: 0; right: -100px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22,163,74,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,163,74,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 40%, transparent 100%);
}

.hero-inner { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(22,163,74,.08);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
  50% { box-shadow: 0 0 0 7px rgba(34,197,94,.06); }
}

.hero h1 {
  margin-top: 26px;
  font-size: 50px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 1px;
}
.hero-sub {
  margin-top: 22px;
  font-size: 17px;
  color: #475569;
  line-height: 1.95;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero 数据条 */
.hero-stats {
  margin-top: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, #ffffff 0%, #ecf9f0 50%, #d9f3e2 100%);
  border: 1px solid var(--brand-200);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 40px 32px;
  box-shadow: 0 12px 36px rgba(22, 101, 52, .12);
}
.hstat { flex: 1; text-align: center; color: var(--brand-800); }
.hstat-num {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}
.hstat-num i { font-style: normal; font-size: 20px; margin-left: 2px; opacity: .85; }
.hstat-label { margin-top: 8px; font-size: 14px; color: #3f6249; }
.hstat-divider { width: 1px; height: 52px; background: rgba(22, 101, 52, .15); }

/* ---------------- 通用 Section ---------------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark {
  background: linear-gradient(180deg, #eef8f1 0%, #e5f5ea 100%);
  border-top: 1px solid var(--brand-200);
  border-bottom: 1px solid var(--brand-200);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 6px 16px;
  border-radius: 999px;
}
.eyebrow-light { background: #dcfce7; color: var(--brand-700); }
.section-title {
  margin-top: 18px;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: .5px;
}
.title-light { color: var(--brand-900); }
.section-desc {
  margin-top: 14px;
  font-size: 16px;
  color: #475569;
}
.desc-light { color: #4b6655; }

/* ---------------- 产品矩阵（1大2小网格） ---------------- */
.product-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid #eef2f0;
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.product-card.product-hero-card {
  grid-row: span 2;
  background: linear-gradient(160deg, #f0fdf4 0%, #dcfce7 60%, #ccf8e0 100%);
  border: 1px solid var(--brand-200);
  color: #14532d;
  display: flex;
  flex-direction: column;
}
.product-card.product-hero-card h3 { color: var(--brand-900); font-size: 22px; }
.product-card.product-hero-card p { color: #3f6249; font-size: 15px; }
.product-hero-card .product-icon { background: var(--brand-600); color: #fff; }
.hero-card-points {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  gap: 10px;
}
.hero-card-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #1e3a29;
}
.hero-card-points i {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.product-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.product-icon svg { width: 26px; height: 26px; }
.icon-green  { background: #dcfce7; color: #15803d; }
.icon-teal   { background: #ccfbf1; color: #0f766e; }
.icon-amber  { background: #fef3c7; color: #b45309; }
.icon-wechat { background: #d1fae5; color: #047857; }
.icon-indigo { background: #e0e7ff; color: #4338ca; }
.icon-rose   { background: #ffe4e6; color: #be123c; }

.product-card h3 { font-size: 19px; color: var(--ink-900); margin-bottom: 10px; }
.product-card p { font-size: 15px; color: #475569; line-height: 1.8; }

/* ---------------- 核心场景（深色 Tab） ---------------- */
.scene-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.scene-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1.5px solid #cfe8d6;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: .22s;
  box-shadow: 0 4px 14px rgba(22, 101, 52, .05);
}
.scene-tab:hover { background: var(--brand-50); border-color: var(--brand-300); }
.scene-tab.active {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: var(--brand-500);
  box-shadow: 0 8px 22px rgba(22, 163, 74, .14);
}
.tab-no {
  font-size: 26px;
  font-weight: 800;
  color: #b7d3c0;
  line-height: 1;
  flex-shrink: 0;
}
.scene-tab.active .tab-no { color: var(--brand-600); }
.tab-text b { display: block; font-size: 16px; color: var(--ink-900); }
.tab-text small { font-size: 13px; color: #64748b; }

.scene-panels { position: relative; }
.scene-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.scene-panel.active { display: grid; animation: fadeUp .45s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.panel-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 18px 44px rgba(22, 101, 52, .16);
}
.panel-copy h3 {
  font-size: 27px;
  color: var(--brand-900);
  margin-bottom: 26px;
  line-height: 1.35;
}
.panel-list { display: grid; gap: 22px; }
.panel-list li { display: flex; gap: 14px; }
.panel-list i {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.panel-list i svg { width: 14px; height: 14px; }
.panel-list b { color: var(--ink-900); font-size: 16px; }
.panel-list div { color: #475569; font-size: 15px; line-height: 1.8; }

/* ---------------- 行业方案（Bento 网格） ---------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 22px;
}
.bento-item {
  background: #fff;
  border: 1px solid #eef2f0;
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: .22s;
}
.bento-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.bento-large {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--brand-50), #fff);
  border-color: var(--brand-200);
  display: flex;
  flex-direction: column;
}
.bento-large p { flex: 0 0 auto; }
.bento-img {
  margin-top: auto;
  padding-top: 20px;
  border-radius: 12px;
  overflow: hidden;
}
.bento-img img { border-radius: 12px; }
.bento-item.bento-accent {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 1px solid var(--brand-200);
}
.bento-item.bento-accent h3 { color: var(--brand-900); }
.bento-item.bento-accent p { color: #3f6249; }

.bento-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-tint);
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
}
.bento-accent .bento-icon { background: var(--brand-600); }
.bento-item h3 { font-size: 18px; color: var(--ink-900); margin-bottom: 8px; }
.bento-item p { font-size: 15px; color: #475569; line-height: 1.8; }

/* ---------------- 核心优势（时间线式） ---------------- */
.adv-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.adv-step { position: relative; }
.adv-step-no {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.adv-step-no span {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1.5px solid var(--brand-200);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.adv-line { flex: 1; height: 1.5px; background: var(--brand-200); }

.adv-step-body {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .22s, box-shadow .22s;
  height: calc(100% - 68px);
}
.adv-step-body:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.adv-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.adv-icon svg { width: 23px; height: 23px; }
.adv-step-body h3 { font-size: 17px; color: var(--ink-900); margin-bottom: 8px; }
.adv-step-body p { font-size: 14.5px; color: #475569; line-height: 1.85; }

/* ---------------- 客户证言（1大2小） ---------------- */
.testi-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}
.testi-side { display: grid; gap: 24px; align-content: start; }
.testi-card {
  background: var(--bg-tint);
  border: 1px solid #e2f0e7;
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.testi-featured {
  background: linear-gradient(160deg, var(--brand-50), var(--bg-tint));
  border-color: var(--brand-200);
  padding: 40px 36px;
  justify-content: space-between;
}
.testi-featured blockquote { font-size: 17px; line-height: 2; }
.testi-stars { color: #f59e0b; letter-spacing: 3px; font-size: 15px; margin-bottom: 16px; }
.testi-card blockquote {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.9;
  flex: 1;
}
.testi-card figcaption {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
}
.testi-card figcaption b { display: block; font-size: 14.5px; color: var(--ink-900); }
.testi-card figcaption small { font-size: 13px; color: var(--ink-500); }

/* ---------------- CTA（浅绿卡片） ---------------- */
.cta-section { padding: 0 0 96px; }
.cta-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 55%, #cbf4d9 100%);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  box-shadow: 0 18px 44px rgba(22, 101, 52, .14);
}
.cta-content h2 { color: var(--brand-900); font-size: 30px; }
.cta-content p { color: #3f6249; margin-top: 10px; font-size: 15.5px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- 页脚（浅绿底） ---------------- */
.site-footer {
  background: #e9f5ed;
  border-top: 1px solid var(--brand-200);
  color: #3f5a48;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.brand-light .brand-name { color: var(--brand-900); }
.footer-slogan {
  margin-top: 18px;
  font-size: 14px;
  line-height: 2;
  color: #5a7464;
}
.footer-col h4 {
  color: var(--brand-900);
  font-size: 15.5px;
  margin-bottom: 18px;
}
.footer-col a, .footer-static {
  display: block;
  font-size: 14px;
  color: #5a7464;
  padding: 6px 0;
  transition: color .15s;
}
.footer-col a:hover { color: var(--brand-700); }

.footer-bottom {
  border-top: 1px solid #d3e8da;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #6f8a78;
}

/* ---------------- 滚动显现动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .nav-links, .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 130px 0 0; }
  .hero h1 { font-size: 34px; }
  .hero-stats { flex-wrap: wrap; gap: 20px 0; }
  .hstat { flex: 0 0 50%; }
  .hstat-divider { display: none; }

  .section { padding: 70px 0; }
  .section-title { font-size: 28px; }

  .product-layout { grid-template-columns: repeat(2, 1fr); }
  .product-hero-card { grid-row: span 1; grid-column: span 2; }

  .scene-tabs { grid-template-columns: 1fr; }
  .scene-panel { grid-template-columns: 1fr; gap: 32px; }

  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-large { grid-row: span 1; }

  .adv-timeline { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .adv-line { display: none; }

  .testi-layout { grid-template-columns: 1fr; }

  .cta-card { flex-direction: column; align-items: flex-start; padding: 44px 32px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .btn-lg { padding: 13px 26px; font-size: 15px; }
  .hstat-num { font-size: 32px; }

  .product-layout, .bento-grid, .adv-timeline { grid-template-columns: 1fr; }
  .product-hero-card { grid-column: span 1; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; }
}
