/* ============================================
   桃李满园家庭教育 · 品牌视觉规范
   设计理念：温暖 / 专业 / 可信赖 / 有质感
   ============================================ */

:root {
  /* 主色系 —— 沉稳森林绿，传递专业与信任 */
  --primary: #1a5c3a;
  --primary-light: #24824d;
  --primary-pale: #eef5f0;
  --primary-glow: rgba(26, 92, 58, 0.06);

  /* 辅助暖色 —— 温柔的琥珀调，传递温度 */
  --warm: #b8860b;
  --warm-light: #fdf6e8;
  --warm-glow: rgba(184, 134, 11, 0.08);

  /* 文字层级 */
  --text: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-muted: #8a8a8a;

  /* 背景与分割 */
  --bg: #fdfcfa;
  --bg-card: #ffffff;
  --line: #ececea;
  --line-warm: #f0ebe0;

  /* 圆角与阴影（偏柔和，不尖锐） */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow: 0 4px 20px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.07);
  --shadow-hover: 0 8px 30px rgba(26,92,58,.10);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  font-size: 16.5px;
  letter-spacing: .2px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--primary-light); text-decoration: underline; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   顶部导航 —— 品牌感 + 层次
   ============================================ */
header.site {
  background: linear-gradient(135deg, #1a5c3a 0%, #145234 50%, #0f4429 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* 导航区底部微光分隔线 */
header.site::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: .82;
  letter-spacing: .8px;
  margin-top: 3px;
  line-height: 1.4;
}

nav.site a {
  color: rgba(255,255,255,.9);
  margin-left: 20px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all .25s;
}
nav.site a:hover {
  color: #fff;
  opacity: 1;
  text-decoration: none;
  border-bottom-color: rgba(255,255,255,.55);
}

/* ============================================
   首屏 Hero 区域
   ============================================ */
.hero {
  padding: 64px 0 48px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.35;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  letter-spacing: .5px;
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.85;
}

/* ============================================
   标签
   ============================================ */
.tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 500;
  margin: 0 8px 8px 0;
  letter-spacing: .3px;
}

/* ============================================
   内容区块
   ============================================ */
section {
  padding: 40px 0;
}

h2 {
  font-size: 27px;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .3px;
  position: relative;
  padding-bottom: 12px;
}
/* h2 底部装饰线 */
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

h3 {
  font-size: 20px;
  margin: 30px 0 12px;
  font-weight: 600;
  color: var(--text);
}

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

/* ============================================
   卡片网格
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
/* 卡片顶部微装饰 */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }

.card h3 {
  margin-top: 0;
  font-size: 18.5px;
  color: var(--text);
}
.card .meta {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   面包屑导航
   ============================================ */
.breadcrumb {
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 18px 0 6px;
  letter-spacing: .2px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ============================================
   FAQ 手风琴
   ============================================ */
.faq { margin-top: 16px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.faq details[open] {
  border-color: var(--primary-pale);
  box-shadow: 0 2px 12px var(--primary-glow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all .25s;
}
.faq details[open] summary::before {
  content: "−";
  background: var(--primary);
  color: #fff;
}
.faq p {
  margin: 12px 0 0 30px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

/* ============================================
   CTA 行动号召区
   ============================================ */
.cta {
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--warm-light) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 32px 0;
  text-align: center;
  border: 1px solid var(--line-warm);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--warm-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta p {
  color: var(--text);
  font-size: 17px;
  margin-bottom: 16px;
  position: relative;
}
.cta a {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 13px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5px;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(26,92,58,.2);
  transition: all .3s;
}
.cta a:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 24px rgba(26,92,58,.3);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================
   页脚
   ============================================ */
footer.site {
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 13.5px;
  padding: 36px 0;
  margin-top: 48px;
  letter-spacing: .2px;
}
footer.site p { margin: 6px 0; color: var(--text-muted); }

/* ============================================
   提示框
   ============================================ */
.note {
  background: var(--warm-light);
  border-left: 4px solid var(--warm);
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  color: #7a5b00;
  margin: 20px 0;
  line-height: 1.7;
}

/* ============================================
   列表
   ============================================ */
ul.clean {
  margin: 0 0 18px;
  padding-left: 22px;
}
ul.clean li {
  margin: 8px 0;
  color: var(--text-secondary);
  line-height: 1.75;
}
ul.clean li::marker { color: var(--primary); }

/* ============================================
   关于页特殊样式
   ============================================ */
.page-about .hero h1 { font-size: 32px; }
.page-about .subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.page-about section h2 { font-size: 24px; }
.page-about .credential-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.page-about .credential-list li {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  font-size: 15.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-about .credential-list li::before {
  content: "✦";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   人物照片 —— 品牌信任感核心元素
   ============================================ */

/* about 页 hero 主形象照（正面照） */
.portrait-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 28px 0 36px;
  text-align: center;
}
.portrait-hero img {
  width: 260px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg), 0 0 0 6px var(--primary-pale);
  transition: transform .4s ease;
}
.portrait-hero img:hover { transform: scale(1.03); }
.portrait-hero .caption {
  font-size: 14.5px;
  color: var(--text-muted);
  font-style: italic;
}

/* 图文并排（活动照 / 讲解照） */
.photo-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin: 24px 0;
}
.photo-row img {
  width: 220px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  object-fit: cover;
}
.photo-row .photo-text { flex: 1; }
.photo-row.reverse { flex-direction: row-reverse; }

/* 首页 CTA 区带照片 */
.cta-with-photo {
  display: flex;
  align-items: center;
  gap: 32px;
  text-align: left;
  padding: 36px 36px;
}
.cta-with-photo img {
  width: 180px;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.cta-with-photo .cta-text { flex: 1; }
.cta-with-photo h2 { margin-top: 0; }

/* 响应式：手机端照片堆叠 */
@media (max-width: 680px) {
  .portrait-hero img { width: 200px; }
  .photo-row {
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }
  .photo-row img { width: 100%; max-width: 320px; }
  .cta-with-photo {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .cta-with-photo img { width: 140px; height: 140px; }
}

/* ============================================
   响应式适配
   ============================================ */
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  header.site .wrap { padding: 16px 20px; }
  .brand { font-size: 19px; }
  .brand small { font-size: 11px; }
  nav.site a { margin-left: 14px; font-size: 13.5px; }
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 16.5px; }
  h2 { font-size: 23px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px; }
  .cta { padding: 28px 20px; }
}

@media (max-width: 400px) {
  nav.site { width: 100%; margin-top: 8px; }
  nav.site a { margin-left: 12px; font-size: 13px; }
}
