/* ===== 设计变量（教育咨询 · 专业蓝 + 温暖橙） ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f7f2;
  --text: #233027;
  --muted: #5d6b60;
  --green: #2f6b46;
  --green-dark: #1e4a30;
  --green-soft: #e8f1ea;
  --gold: #c9a45c;
  --gold-dark: #a9853f;
  --border: #e2e9e2;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(30, 74, 48, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ===== 导航栏 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(20, 40, 90, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 21px; color: var(--green); text-decoration: none; letter-spacing: 0.5px; display: flex; align-items: baseline; gap: 8px; }
.logo-sub { font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: 2px; }
.logo-img { height: 44px; width: auto; display: block; }
.footer-logo { height: 56px; width: auto; display: block; margin: 0 auto 14px; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* ===== 首屏 Hero ===== */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, #dcebe0 0%, transparent 60%),
    linear-gradient(165deg, #eef6ef 0%, #ffffff 65%);
  padding: 120px 0 100px;
  text-align: center;
}
.tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 720px; margin: 22px auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green-soft); }

/* ===== 通用区块 ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  text-align: center;
  margin-bottom: 12px;
  font-weight: 800;
}
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin: 16px auto 0;
}
.section-sub { text-align: center; color: var(--muted); margin-bottom: 8px; font-size: 16px; }
.block-h { font-size: 21px; font-weight: 700; margin: 8px 0 24px; color: var(--green); }
.block-h:not(:first-of-type) { margin-top: 48px; }
.about-text { max-width: 800px; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 17px; }
.about-text strong { color: var(--green); }

/* 关于：愿景使命 */
.vision-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.vm-card {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  border-left: 4px solid var(--green);
}
.vm-card h4 { font-size: 18px; margin-bottom: 10px; color: var(--green); }
.vm-card p { color: var(--muted); font-size: 15.5px; }

/* ===== 核心特色（5 列） ===== */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; }
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  background: var(--green-soft);
  border-radius: 14px;
  font-size: 24px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 8px; line-height: 1.4; }
.feature p { color: var(--muted); font-size: 14px; }

/* ===== 业务矩阵（统一 3 列 · 等高卡片） ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30, 74, 48, 0.13); border-color: var(--green-soft); }
.service-cat {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.service-icon { font-size: 32px; margin-bottom: 12px; line-height: 1; }
.service-card h4 { font-size: 18px; margin-bottom: 10px; color: var(--text); }
.service-card p { color: var(--muted); font-size: 14.5px; line-height: 1.75; flex: 1; }
/* 主推业务：金色描边 + 顶部强调条 */
.service-card--featured {
  background: linear-gradient(180deg, #fdfaf3 0%, #ffffff 42%);
  border-color: #eadfc4;
  position: relative;
  overflow: hidden;
}
.service-card--featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}
.service-card--featured:hover { border-color: var(--gold); }
.service-cat--gold { color: #8a6a24; background: #f6ebd2; }
.service-card .card-link { margin-top: 18px; align-self: flex-start; }

/* ===== 发展历程（竖向时间线） ===== */
.history { position: relative; max-width: 820px; margin: 44px auto 0; padding-left: 8px; }
.history::before {
  content: "";
  position: absolute;
  left: 92px; top: 6px; bottom: 6px;
  width: 3px;
  background: var(--green-soft);
}
.history-item { position: relative; display: flex; gap: 24px; padding: 0 0 36px; }
.history-year {
  flex: 0 0 76px;
  font-size: 24px; font-weight: 800; color: var(--gold);
  text-align: right; padding-top: 2px;
}
.history-body { position: relative; padding-left: 28px; }
.history-body::before {
  content: "";
  position: absolute; left: -8px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--green-soft);
}
.history-body h4 { font-size: 18px; margin-bottom: 6px; color: var(--text); }
.history-body p { color: var(--muted); font-size: 15px; }

/* ===== 核心教研团队 / 创始人 ===== */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 1000px; margin: 44px auto 0;
}
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 124px; height: 124px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(47, 107, 70, 0.18);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-info { width: 100%; }
.team-info h3 { font-size: 21px; margin-bottom: 10px; }
.team-role { display: block; font-size: 13px; font-weight: 600; color: var(--gold); margin: 6px 0 0; }
.team-motto {
  font-size: 14px; color: var(--green); font-style: italic;
  margin-bottom: 12px; padding: 8px 12px;
  background: var(--green-soft); border-radius: 10px;
}
.team-bio { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.team-creds { list-style: none; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.team-creds li {
  position: relative; padding-left: 18px; color: var(--muted); font-size: 14px;
}
.team-creds li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }
.team-creds strong { color: var(--green); }
.team-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); background: var(--bg-alt); padding: 10px 14px; border-radius: 10px; text-align: left; }

/* ===== 部分教师风采展示 ===== */
.faculty-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px;
}
.faculty-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(47, 107, 70, 0.16);
}
.faculty-card img {
  width: 100%; height: auto; display: block;
}
.faculty-card figcaption {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 3px solid var(--gold);
}
.f-name { font-size: 18px; font-weight: 700; color: var(--text); }
.f-subject { font-size: 13px; font-weight: 600; color: var(--green); }
.f-motto { font-size: 12.5px; color: var(--muted); font-style: italic; }
.faculty-tip {
  text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--border); border-radius: 12px;
  padding: 10px 16px; max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ===== 校区实拍画廊 ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; background: var(--bg);
}
.gallery-item img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(20,32,60,0.78));
  color: #fff; font-size: 14px; padding: 26px 14px 12px; text-align: center;
}

/* ===== 资质与工商信息 ===== */
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.cred-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.cred-item span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cred-item strong { font-size: 15.5px; color: var(--text); word-break: break-all; }
.cred-foot { max-width: 900px; margin: 24px auto 0; text-align: center; color: var(--muted); font-size: 14px; }

/* ===== 家长常问（FAQ） ===== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.t-q { font-size: 17px; font-weight: 700; color: var(--green); line-height: 1.6; margin-bottom: 14px; }
.t-q::before { content: "Q  "; color: var(--gold); font-weight: 800; }
.t-text { font-size: 14.5px; color: var(--muted); line-height: 1.9; margin-bottom: 0; }
.t-tip { max-width: 820px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 14.5px; background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 16px 20px; }
.t-tip strong { color: var(--green); }

/* ===== 单词速记系统板块 ===== */
.card-link { display: inline-block; margin-top: 14px; color: var(--green); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.card-link:hover { color: var(--gold-dark); }

.wm-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 48px; }
.wm-intro-text p { color: var(--muted); font-size: 16.5px; }
.wm-points { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.wm-points li { color: var(--text); font-size: 15px; line-height: 1.6; }
.wm-points strong { color: var(--green); }
.wm-intro-visual { text-align: center; }
.wm-report-img { width: 100%; max-width: 470px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); cursor: zoom-in; background: #fff; }
.wm-report-cap { margin-top: 12px; font-size: 13px; color: var(--muted); padding: 0 10px; }

.wm-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
.wm-step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; transition: transform 0.25s, box-shadow 0.25s; }
.wm-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.wm-step-no { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wm-step h4 { font-size: 16px; margin-bottom: 8px; color: var(--green); }
.wm-step p { font-size: 13.5px; color: var(--muted); }

.wm-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 30px; }
.wm-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 12px; text-align: center; box-shadow: var(--shadow); }
.wm-stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--green); line-height: 1.1; }
.wm-stat span { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }
.wm-stat-green strong { color: #1a9e5c; font-size: 19px; letter-spacing: 0.5px; }
.wm-note { max-width: 880px; margin: 22px auto 0; text-align: center; font-size: 13.5px; color: var(--muted); background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 12px 16px; }

/* ===== 教培 IP 孵化板块 ===== */
.ip-intro { max-width: 880px; margin: 44px auto 0; text-align: center; }
.ip-intro p { color: var(--muted); font-size: 16.5px; }
.ip-accounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.ip-account { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.ip-account-name { font-size: 19px; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.ip-account p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.ip-tag { display: inline-block; background: var(--gold); color: #fff; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }

/* ===== 联系表单 ===== */
.contact-intro { text-align: center; color: var(--muted); margin-bottom: 34px; }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); gap: 8px; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 70, 0.12);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.form-note { font-size: 14px; min-height: 20px; }
.form-note.success { color: #1a9e5c; }
.form-note.error { color: #d64545; }

/* ===== 咨询结果框（整理信息 + 一键拨号/复制） ===== */
.form-result {
  max-width: 640px; margin: 26px auto 0; padding: 26px 24px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-left: 4px solid var(--green); border-radius: var(--radius);
  text-align: left;
}
.form-result h3 { font-size: 19px; color: var(--green); margin-bottom: 10px; }
.fr-hint { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.fr-hint strong { color: #b4472f; }
.form-result textarea {
  width: 100%; font: inherit; font-size: 14px; line-height: 1.8;
  padding: 14px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); resize: vertical; box-sizing: border-box;
}
.fr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.fr-copy-note { font-size: 13.5px; color: var(--green); margin-top: 12px; min-height: 18px; }

.contact-info { max-width: 640px; margin: 40px auto 0; text-align: center; color: var(--muted); font-size: 16px; line-height: 2.1; }
.contact-info a { color: var(--green); text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }

/* ===== 页脚 ===== */
.footer { background: #1c2e22; color: #c4d2c8; padding: 30px 0; text-align: center; font-size: 14px; }
.footer-sub { color: var(--gold); margin-top: 6px; font-size: 13px; letter-spacing: 1px; }

/* ===== 图片放大层 ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 20, 16, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* ===== 滚动进入动画 ===== */
.section-title, .section-sub, .about-text, .vm-card, .feature, .service-card,
.history-item, .team-card, .gallery-item, .testimonial, .cred-item,
.wm-intro-text, .wm-intro-visual, .wm-step, .wm-stat, .ip-intro, .ip-account {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.in { opacity: 1 !important; transform: none !important; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  /* 2 列时让最后一张主推卡通栏收尾，避免出现孤零零的单卡 */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > .service-card:last-child { grid-column: 1 / -1; }
  .services-grid > .service-card:last-child p { max-width: 720px; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .wm-intro { grid-template-columns: 1fr; }
  .wm-flow { grid-template-columns: repeat(3, 1fr); }
  .wm-stats { grid-template-columns: repeat(3, 1fr); }
  .ip-accounts { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 13px 24px; border-top: 1px solid var(--border); }
  .vision-mission, .features, .services-grid, .cred-grid, .gallery { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr; }
  .wm-flow, .wm-stats { grid-template-columns: repeat(2, 1fr); }
  .history::before { left: 56px; }
  .history-year { flex-basis: 44px; font-size: 19px; }
  .history-item { gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 70px; }
  .section { padding: 64px 0; }
}
