/* ============================================
   欣木教育 XINMU EDUCATION — 企业官网
   全方位仿制万网教育模板：深蓝#1a3a5c + 橙色点缀
   结构：导航/Hero/四卡/优势/关于/课程/师资/新闻/CTA/页脚
   ============================================ */
:root {
  --navy: #1a3a5c;
  --navy-2: #24507c;
  --orange: #f97316;
  --orange-2: #fb923c;
  --gray-bg: #f5f7fa;
  --text: #333;
  --text-2: #666;
  --text-3: #999;
  --border: #e8ecf1;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); font-size: 15px; line-height: 1.7; background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; outline: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 64px; }

/* ---------- 按钮 ---------- */
.btn-orange { display: inline-flex; align-items: center; justify-content: center; background: var(--orange); color: #fff; border-radius: 999px; font-weight: 600; transition: all .25s; box-shadow: 0 6px 18px rgba(249,115,22,.3); }
.btn-orange:hover { background: var(--orange-2); transform: translateY(-2px); }
.btn-blue { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; border-radius: 999px; font-weight: 600; padding: 11px 34px; transition: all .25s; }
.btn-blue:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-white { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--orange); border-radius: 999px; font-weight: 700; padding: 13px 40px; transition: all .25s; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.22); }
.btn-lg { padding: 13px 42px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航（fixed 深蓝） ---------- */
.top-nav { position: fixed; top: 0; left: 0; right: 0; height: 64px; background: var(--navy); z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; box-shadow: 0 3px 10px rgba(249,115,22,.4); }
.brand-name { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: rgba(255,255,255,.85); font-size: 15px; padding: 8px 18px; border-radius: 8px; transition: all .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.16); }
.nav-tel { display: flex; align-items: center; gap: 7px; color: #fff; font-size: 15px; font-weight: 600; flex-shrink: 0; }
.nav-tel:hover { color: var(--orange-2); }

/* ---------- Hero（600px 背景图+深蓝滤镜） ---------- */
.hero { position: relative; height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12,28,48,.94) 0%, rgba(12,28,48,.82) 45%, rgba(12,28,48,.5) 100%); }
.hero-body { position: relative; z-index: 1; max-width: 1200px; }
.hero-body h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.3; margin-bottom: 18px; }
.hero-body h1 .hl { color: var(--orange); }
.hero-body p { color: rgba(255,255,255,.88); font-size: 17px; max-width: 560px; margin-bottom: 34px; }

/* ---------- 四卡片（白底） ---------- */
.features { padding: 80px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feat-item { text-align: center; padding: 10px 8px; }
.feat-icon { position: relative; display: inline-flex; width: 64px; height: 64px; border-radius: 16px; background: #f0f5fb; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat-icon .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.18); }
.feat-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feat-item p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; }

/* ---------- 我们的优势（灰底+数据） ---------- */
.advantages { background: var(--gray-bg); padding: 80px 0; }
.adv-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.adv-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 20px; position: relative; padding-left: 16px; }
.adv-text h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--orange); }
.adv-text p { color: var(--text-2); font-size: 15px; line-height: 2; }
.adv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-item { background: #fff; border-radius: 14px; padding: 28px 12px; text-align: center; box-shadow: 0 4px 16px rgba(26,58,92,.06); }
.stat-item b { display: block; font-size: 36px; font-weight: 800; color: var(--navy); }
.stat-item span { font-size: 13px; color: var(--text-2); }

/* ---------- 关于我们（横幅式） ---------- */
.about { padding: 80px 0; }
.about-banner { position: relative; background: linear-gradient(135deg, #f0f6fd 0%, #e8f0fb 55%, #fdf3ec 100%); border: 1px solid var(--border); border-radius: 20px; padding: 58px 48px 54px; text-align: center; overflow: hidden; }
.about-banner::before { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(249,115,22,.07); top: -70px; right: -50px; }
.about-banner::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(26,58,92,.06); bottom: -60px; left: -40px; }
.ab-badge { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; font-size: 26px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 8px 22px rgba(249,115,22,.4); position: relative; z-index: 1; }
.ab-label { display: block; font-size: 11px; letter-spacing: 4px; color: var(--text-3); margin-bottom: 10px; position: relative; z-index: 1; }
.about-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 1; }
.ab-lead { font-size: 15.5px; color: var(--orange); font-weight: 600; margin-bottom: 18px; position: relative; z-index: 1; }
.ab-text { max-width: 780px; margin: 0 auto 26px; color: var(--text-2); font-size: 15px; line-height: 2.05; position: relative; z-index: 1; }
.ab-points { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; position: relative; z-index: 1; }
.ab-points span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 20px; font-size: 13.5px; color: var(--navy); font-weight: 600; box-shadow: 0 3px 10px rgba(26,58,92,.06); }
.about-banner .btn-orange { position: relative; z-index: 1; }

/* ---------- 区块标题 ---------- */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: 30px; font-weight: 800; position: relative; display: inline-block; padding-bottom: 14px; margin-bottom: 12px; }
.sec-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46px; height: 4px; border-radius: 2px; background: var(--orange); }
.sec-head p { color: var(--text-2); font-size: 15px; }

/* ---------- 特色课程 ---------- */
.courses { padding: 80px 0; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course-card { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 18px rgba(26,58,92,.07); transition: all .3s; cursor: pointer; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(26,58,92,.15); }
.course-card img { width: 100%; height: 210px; object-fit: cover; }
.cc-body { padding: 20px 22px 24px; }
.cc-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cc-body p { font-size: 13.5px; color: var(--text-2); }

/* ---------- 服务团队 ---------- */
.teachers { background: var(--gray-bg); padding: 80px 0; }
.founder-bar { background: linear-gradient(120deg, #1a3a5c, #2d5a8a); border-radius: 16px; padding: 30px 36px; display: flex; align-items: center; gap: 24px; margin-bottom: 26px; box-shadow: 0 10px 30px rgba(26,58,92,.18); }
.founder-badge { width: 62px; height: 62px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 18px rgba(249,115,22,.45); }
.founder-info { flex: 1; min-width: 0; }
.founder-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.founder-name b { color: #fff; font-size: 22px; }
.founder-role { color: rgba(255,255,255,.75); font-size: 14px; }
.founder-tag { background: var(--orange); color: #fff; font-size: 11px; padding: 3px 12px; border-radius: 999px; font-weight: 600; }
.founder-desc { color: rgba(255,255,255,.88); font-size: 14.5px; line-height: 1.9; margin-bottom: 10px; }
.founder-skills { display: flex; gap: 8px; flex-wrap: wrap; }
.founder-skills span { font-size: 12px; color: #fff; border: 1px solid rgba(255,255,255,.35); padding: 3px 12px; border-radius: 999px; }
.teacher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.teacher-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(26,58,92,.07); transition: all .3s; }
.teacher-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(26,58,92,.15); }
.t-icon { height: 110px; background: linear-gradient(135deg, rgba(249,115,22,.1), rgba(249,115,22,.04)); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.t-body { padding: 22px 26px 28px; }
.t-body h3 { font-size: 19px; font-weight: 700; }
.t-title { color: var(--orange); font-size: 13.5px; font-weight: 600; margin: 4px 0 12px; }
.t-cert { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.t-cert li { font-size: 12px; color: var(--text-2); background: #f0f5fb; padding: 3px 12px; border-radius: 999px; }
.t-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.t-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.t-skills span { font-size: 12px; color: var(--navy); border: 1px solid rgba(26,58,92,.25); padding: 3px 12px; border-radius: 999px; }
.t-more { text-align: center; margin-top: 34px; }
.t-more a { color: var(--navy); font-size: 15px; font-weight: 600; border-bottom: 2px solid var(--orange); padding-bottom: 3px; }
.t-more a:hover { color: var(--orange); }

/* ---------- 最新动态 ---------- */
.news { background: var(--gray-bg); padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(26,58,92,.07); transition: all .3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(26,58,92,.15); }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.n-body { padding: 22px 24px 26px; }
.n-cat { display: inline-block; background: rgba(249,115,22,.12); color: var(--orange); font-size: 12px; font-weight: 600; padding: 3px 14px; border-radius: 999px; margin-bottom: 12px; }
.n-body h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; line-height: 1.5; }
.n-body p { font-size: 13.5px; color: var(--text-2); line-height: 1.85; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-body a { color: var(--orange); font-size: 13.5px; font-weight: 600; }
.n-body a:hover { color: var(--orange-2); }

/* ---------- 预约 CTA（橙色渐变横幅） ---------- */
.cta { position: relative; background: linear-gradient(90deg, #f97316, #fb923c); padding: 64px 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); top: -90px; right: 8%; }
.cta::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.1); bottom: -60px; left: 6%; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.92); font-size: 15px; max-width: 640px; }
.cta-price { display: inline-block; margin-top: 14px; background: rgba(255,255,255,.18); padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; }

/* ---------- 联系咨询 ---------- */
.contact { padding: 80px 0; }
.contact-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; max-width: 1060px; margin: 0 auto; align-items: start; }
.contact-form { background: var(--gray-bg); border-radius: 16px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form input, .contact-form select { width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 14.5px; color: var(--text); background: #fff; transition: border-color .2s; }
.contact-form input:focus, .contact-form select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
.form-tip { text-align: center; margin-top: 14px; font-size: 14px; color: #16a34a; min-height: 20px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ci-card { background: var(--gray-bg); border-radius: 14px; padding: 18px 18px; display: flex; align-items: flex-start; gap: 13px; transition: all .25s; }
.ci-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,58,92,.1); }
.ci-ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(249,115,22,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-body b { display: block; font-size: 13px; color: var(--text-3); font-weight: 600; margin-bottom: 3px; }
.ci-body a, .ci-body span { font-size: 14.5px; color: var(--navy); font-weight: 700; word-break: break-all; }
.ci-body a:hover { color: var(--orange); }
.ci-card-wide { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-info { grid-template-columns: 1fr; }
  .ci-card-wide { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- 页脚（深蓝） ---------- */
.footer { background: var(--navy); color: #fff; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; padding-bottom: 44px; }
.f-about { display: flex; gap: 14px; }
.f-about b { font-size: 18px; display: block; margin-bottom: 8px; }
.f-about p { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.9; }
.f-col { display: grid; gap: 9px; align-content: start; }
.f-col b { font-size: 16px; margin-bottom: 8px; }
.f-col a, .f-col span { font-size: 13.5px; color: rgba(255,255,255,.65); transition: color .2s; }
.f-col a:hover { color: var(--orange-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; background: rgba(0,0,0,.18); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom span, .footer-bottom a { font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-tel { font-size: 13px; }
  .hero { height: 480px; }
  .hero-body h1 { font-size: 30px; }
  .feat-grid { grid-template-columns: 1fr; }
  .course-grid, .teacher-grid, .news-grid { grid-template-columns: 1fr; }
  .adv-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-item b { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { justify-content: center; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .about-banner { padding: 44px 24px 40px; }
  .about-banner h2 { font-size: 26px; }
  .founder-bar { flex-direction: column; text-align: center; padding: 26px 22px; }
  .founder-name { justify-content: center; }
  .founder-skills { justify-content: center; }
}
