/* ===================================================
   诚华教育 - 全站样式
   品牌色取自 LOGO：金色 #C1913F / 深金 #A9762B / 炭黑 #2B2620
   =================================================== */
:root {
  --gold: #c1913f;
  --gold-dark: #a9762b;
  --gold-light: #f3e9d7;
  --ink: #2b2620;
  --ink-soft: #6b6156;
  --bg: #fdfcfa;
  --card: #ffffff;
  --line: #eae3d8;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(43, 38, 32, 0.08);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
  border-color: var(--gold);
}

/* 移动端汉堡菜单 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- 首屏 Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 400px at 85% 10%, var(--gold-light), transparent 65%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-dark);
}

.hero p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 34em;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(169, 118, 43, 0.35);
}

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

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
  margin-left: 12px;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

/* 首屏右侧徽章卡 */
.hero-badge {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  text-align: center;
}

.hero-badge img {
  width: 140px;
  margin: 0 auto 16px;
}

.hero-badge figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 2px;
}

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }

.section-head { text-align: center; margin-bottom: 44px; }

.section-head .kicker {
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 10px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.card h3 { font-size: 19px; margin-bottom: 10px; }

.card p { color: var(--ink-soft); font-size: 15px; }

.card .more {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 14px;
}

/* 课程列表条目 */
.course-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.course-item .num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 步骤流程 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

.step h4 { font-size: 16px; margin-bottom: 6px; }

.step p { font-size: 13px; color: var(--ink-soft); }

/* CTA 条幅 */
.cta-band {
  background: linear-gradient(135deg, #322b21, #55432a);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h3 { font-size: 24px; margin-bottom: 6px; }

.cta-band p { color: rgba(255, 255, 255, 0.75); font-size: 15px; }

.cta-band .btn { background: var(--gold); color: #fff; }

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-grid label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193, 145, 63, 0.15);
}

.form-hint { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 48px 0 32px;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 { font-size: 15px; margin-bottom: 14px; }

.footer-grid ul { list-style: none; }

.footer-grid li { margin-bottom: 8px; color: var(--ink-soft); font-size: 14px; }

.footer-grid a:hover { color: var(--gold-dark); }

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.copyright a {
  color: var(--ink-soft);
  margin: 0 6px;
}

.copyright a:hover { color: var(--gold-dark); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 99;
}

.back-top.show { opacity: 1; visibility: visible; }

.back-top:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 320px; }

  .nav-links li { border-top: 1px solid var(--line); }

  .nav-links a { display: block; padding: 14px 24px; border-bottom: none; }
}

@media (max-width: 600px) {
  .grid-3, .grid-2, .steps, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}
