/* ============ 赢星高考官网 ============ */
:root {
  --red: #9e1f2e;
  --red-dark: #7d1522;
  --red-deep: #5f0f18;
  --gold: #c9a25a;
  --gold-light: #e6cf9f;
  --ink: #22252a;
  --ink-2: #555b64;
  --bg: #ffffff;
  --bg-alt: #faf6f2;
  --line: #eee4da;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(94, 15, 24, .10);
  --shadow-lg: 0 18px 50px rgba(94, 15, 24, .18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 顶部通栏 ---------- */
.topbar {
  background: linear-gradient(90deg, var(--red-deep), var(--red));
  color: #f7e9c9;
  font-size: 13px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-tel b { color: #ffd98a; letter-spacing: .5px; }
.topbar-link { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
/* 毛玻璃放在伪元素上，避免 backdrop-filter 使 header 成为 fixed 后代的包含块 */
.header::before {
  content: ""; position: absolute; inset: 0;
  backdrop-filter: blur(10px); z-index: -1; pointer-events: none;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; font-size: 15px; color: var(--ink-2);
  border-radius: 8px; transition: all .25s; position: relative;
}
.nav-link:hover { color: var(--red); background: #fbf1ef; }
.nav-link.active { color: var(--red); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav-cta { background: var(--red); color: #fff !important; padding: 8px 20px; }
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-cta::after { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--red); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/hero-campus.jpg") center/cover no-repeat;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(70,8,15,.92) 0%, rgba(126,18,32,.82) 45%, rgba(126,18,32,.45) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 90px 0 70px; }
.hero-badge {
  display: inline-block; font-size: 13px; letter-spacing: 1px;
  color: #f3ddb4; border: 1px solid rgba(243,221,180,.45);
  padding: 5px 16px; border-radius: 99px; margin-bottom: 26px;
  background: rgba(255,255,255,.06);
}
.hero-title {
  font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; line-height: 1.25;
  letter-spacing: 2px; margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-title::after {
  content: ""; display: block; width: 84px; height: 4px; margin-top: 22px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px;
}
.hero-sub { font-size: clamp(16px, 2vw, 22px); color: #ffe9c8; letter-spacing: 3px; margin: 18px 0 8px; }
.hero-motto { font-size: clamp(13px, 1.4vw, 16px); color: rgba(255,255,255,.75); letter-spacing: 6px; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 99px;
  font-size: 16px; font-weight: 600; letter-spacing: 1px; transition: all .3s;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), #b58a3e); color: #fff; box-shadow: 0 8px 24px rgba(201,162,90,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,162,90,.55); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { width: 100%; text-align: center; }

.hero-stats { display: flex; gap: clamp(20px, 4vw, 56px); margin-top: 52px; flex-wrap: wrap; }
.stat b { font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--gold-light); }
.stat b span { font-size: .6em; }
.stat i { display: block; font-style: normal; font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }
.countdown {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 22px; border-radius: 99px; backdrop-filter: blur(6px);
}
.cd-label { font-size: 13px; color: rgba(255,255,255,.85); }
.cd-num { font-size: 26px; font-weight: 800; color: var(--gold-light); min-width: 56px; text-align: center; }

/* ---------- 通用 Section ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head.left { text-align: left; margin-bottom: 24px; }
.section-tag {
  font-size: 13px; letter-spacing: 6px; color: var(--gold); font-weight: 600;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--ink);
  margin: 10px 0 12px; letter-spacing: 2px;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 16px auto 0;
  background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 2px;
}
.section-head.left .section-title::after { margin-left: 0; }
.section-desc { color: var(--ink-2); font-size: 15px; }
.sub-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 20px; color: var(--red-deep); }

/* ---------- 课程 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-media { overflow: hidden; aspect-ratio: 16/10; }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-media img { transform: scale(1.06); }
.course-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 19px; font-weight: 700; color: var(--red-deep); margin-bottom: 8px; }
.course-body p { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.course-tags span {
  font-size: 12px; color: var(--red); background: #fbf1ef;
  padding: 3px 10px; border-radius: 99px; border: 1px solid #f3dcd8;
}
.course-more {
  align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--gold);
  padding: 0; transition: color .25s;
}
.course-more:hover { color: var(--red); }

.class-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.class-type {
  background: linear-gradient(135deg, #fff, #fdf8f1);
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 22px 24px;
}
.class-type h4 { font-size: 17px; color: var(--ink); }
.class-type h4 em {
  font-style: normal; font-size: 12px; color: #fff; background: var(--gold);
  border-radius: 99px; padding: 2px 10px; margin-left: 8px; vertical-align: 2px;
}
.class-type p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }

.course-info-bar {
  margin-top: 24px; background: var(--red-deep); color: #fff;
  border-radius: var(--radius); padding: 26px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  font-size: 13.5px;
}
.course-info-bar b {
  display: block; color: var(--gold-light); font-size: 14px; margin-bottom: 6px;
  letter-spacing: 1px;
}

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.adv-item {
  background: #fff; border-radius: var(--radius); padding: 34px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s, border-color .3s;
}
.adv-item:hover { transform: translateY(-6px); border-color: var(--gold); }
.adv-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--gold-light); font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.adv-item h3 { font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.adv-item p { font-size: 14px; color: var(--ink-2); }

/* ---------- 教学管理 ---------- */
.four-truths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.truth {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; border-radius: var(--radius); padding: 26px 24px;
  position: relative; overflow: hidden;
}
.truth::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.truth b { font-size: 22px; letter-spacing: 4px; color: var(--gold-light); }
.truth p { font-size: 13px; margin-top: 10px; color: rgba(255,255,255,.88); }

.manage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.manage-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.manage-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.manage-card .num {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--gold); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.steps li { position: relative; padding: 0 0 16px 26px; font-size: 13.5px; color: var(--ink-2); }
.steps li::before {
  content: ""; position: absolute; left: 6px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}
.steps li::after {
  content: ""; position: absolute; left: 9.5px; top: 20px; bottom: 2px;
  width: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--ink); font-size: 14.5px; }
.features li {
  padding: 8px 0; font-size: 13.5px; color: var(--ink-2);
  border-bottom: 1px dashed var(--line); display: flex; gap: 10px;
}
.features li:last-child { border-bottom: none; }
.features b { color: var(--red); flex: none; }
.manage-note {
  margin-top: 16px; font-size: 12.5px; color: var(--gold);
  background: #fdf8f1; border-radius: 8px; padding: 10px 14px;
}
.schedule-wrap { margin-top: 50px; }
.schedule-img {
  max-width: 960px; margin: 0 auto; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}

/* ---------- 师资 ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.teacher-photo { overflow: hidden; aspect-ratio: 3/3.6; background: #f4f4f4; }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.teacher-card:hover .teacher-photo img { transform: scale(1.05); }
.teacher-info { padding: 16px 18px 18px; }
.teacher-info b { font-size: 17px; }
.teacher-info i {
  font-style: normal; font-size: 12px; color: var(--red);
  background: #fbf1ef; border-radius: 99px; padding: 2px 10px; margin-left: 8px;
}
.teacher-info p { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.teacher-note {
  text-align: center; margin-top: 36px; font-size: 14px; color: var(--red-deep);
  font-weight: 600; letter-spacing: 1px;
}

/* ---------- 校园风采 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-item {
  position: relative; overflow: hidden; border-radius: 12px;
  aspect-ratio: 4/3; cursor: zoom-in; box-shadow: var(--shadow);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.08); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px; font-size: 13.5px; color: #fff;
  background: linear-gradient(transparent, rgba(60,5,10,.75));
}
.g-item:first-child { grid-column: span 2; grid-row: span 1; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.about-text p { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.about-quote {
  border-left: 4px solid var(--red); background: #fff;
  padding: 18px 22px; border-radius: 0 12px 12px 0;
  font-size: 14.5px; color: var(--red-deep); margin: 20px 0;
  box-shadow: var(--shadow);
}
.brand-four {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px;
}
.brand-four h4 { grid-column: 1/-1; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.brand-four div {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px;
}
.brand-four b { color: var(--red); display: block; font-size: 15px; }
.brand-four span { font-size: 12.5px; color: var(--ink-2); }
.about-side { display: grid; gap: 18px; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- 报名咨询 ---------- */
.consult-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }
.consult-form, .contact-card, .qr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
}
.consult-form h3, .contact-card h3 {
  font-size: 20px; color: var(--red-deep); margin-bottom: 22px;
  display: flex; align-items: center; gap: 8px;
}
.consult-form h3::before, .contact-card h3::before {
  content: ""; width: 4px; height: 18px; background: var(--red); border-radius: 2px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 14px; font-family: inherit;
  transition: border-color .25s, box-shadow .25s; background: #fcfcfc;
  outline: none; resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(158,31,46,.08);
}
.form-field.error input, .form-field.error select { border-color: #d43a3a; }
.form-tip { font-size: 12px; color: #999; text-align: center; margin-top: 12px; }
.consult-side { display: grid; gap: 20px; }
.c-tel { margin-bottom: 14px; }
.c-tel b, .c-item b { display: block; font-size: 13px; color: var(--gold); margin-bottom: 2px; }
.c-tel span { font-size: 24px; font-weight: 800; color: var(--red); letter-spacing: 1px; }
.c-item { margin-bottom: 12px; }
.c-item span { font-size: 14px; color: var(--ink); }
.qr-card { text-align: center; }
.qr-card img { width: 150px; margin: 0 auto 12px; border-radius: 10px; }
.qr-card p { font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.map-wrap {
  margin-top: 30px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}

/* ---------- 页脚 ---------- */
.footer { background: var(--red-deep); color: rgba(255,255,255,.82); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-logo { height: 40px; margin-bottom: 16px; border-radius: 4px; }
.footer-brand p { font-size: 13.5px; margin-bottom: 10px; }
.footer-license { font-size: 12px !important; color: rgba(255,255,255,.55); line-height: 1.8; }
.footer-col h4 {
  font-size: 15px; color: var(--gold-light); margin-bottom: 16px; letter-spacing: 1px;
}
.footer-col a { display: block; font-size: 13.5px; padding: 4px 0; transition: color .25s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0; font-size: 12.5px; text-align: center; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 移动端底部操作条 ---------- */
.mobile-bar { display: none; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 90px; width: 46px; height: 46px;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 20px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transform: translateY(14px); transition: all .3s; z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--red-dark); }

/* ---------- 弹窗 ---------- */
.modal, .lightbox { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open, .lightbox.open { display: block; }
.modal-mask, .lightbox-mask { position: absolute; inset: 0; background: rgba(20,4,6,.66); backdrop-filter: blur(4px); }
.modal-body {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(620px, 92vw); max-height: 82vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 40px 38px;
  animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
.modal-close, .lightbox-close {
  position: absolute; right: 14px; top: 12px; width: 36px; height: 36px;
  border-radius: 50%; background: #f3f0ec; color: var(--ink-2); font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.modal-close:hover, .lightbox-close:hover { background: var(--red); color: #fff; }
.modal-body h3 { font-size: 22px; color: var(--red-deep); margin-bottom: 6px; }
.modal-body .m-tag { font-size: 13px; color: var(--gold); margin-bottom: 16px; letter-spacing: 1px; }
.modal-body p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.modal-body ul { margin: 8px 0 16px; }
.modal-body li {
  font-size: 14px; color: var(--ink-2); padding: 6px 0 6px 20px; position: relative;
}
.modal-body li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
}
.modal-body .m-cta { display: inline-block; margin-top: 8px; }

#lightboxImg {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 90vw; max-height: 86vh; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close { color: #fff; background: rgba(255,255,255,.15); z-index: 2; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  background: rgba(30,8,10,.92); color: #fff; padding: 18px 34px;
  border-radius: 12px; font-size: 15px; z-index: 300;
  opacity: 0; visibility: hidden; transition: all .35s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

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

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid, .manage-grid { grid-template-columns: repeat(2, 1fr); }
  .four-truths { grid-template-columns: repeat(2, 1fr); }
  .course-info-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { font-size: 12px; }
  .topbar-slogan { display: none; }
  .topbar-inner { justify-content: center; gap: 14px; }

  .header-inner { height: 60px; }
  .logo img { height: 36px; }
  .nav {
    position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 6%; gap: 4px; transform: translateX(100%);
    transition: transform .35s; z-index: 99; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav-link { padding: 14px 10px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link.active::after { display: none; }
  .nav-cta { text-align: center; margin-top: 18px; border-radius: 99px; }
  .nav-toggle { display: flex; }

  .hero { min-height: 540px; }
  .hero-content { padding: 70px 0 60px; }
  .hero-stats { gap: 22px; }
  .stat b { font-size: 24px; }
  .hero-actions .btn { flex: 1; text-align: center; padding: 12px 10px; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  .course-grid, .adv-grid, .manage-grid, .teacher-grid,
  .four-truths, .class-types { grid-template-columns: 1fr; }
  .course-info-bar { grid-template-columns: 1fr; padding: 22px 24px; }

  .teacher-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g-item:first-child { grid-column: span 2; }

  .about-grid, .consult-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .brand-four { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer { padding-top: 44px; }

  body { padding-bottom: 56px; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  }
  .mb-item {
    flex: 1; text-align: center; padding: 14px 0 16px;
    font-size: 15px; font-weight: 600; color: var(--red);
  }
  .mb-item:first-child { color: var(--red); }
  .mb-item:last-child { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; }
  .back-top { right: 16px; bottom: 74px; width: 42px; height: 42px; }

  .modal-body { padding: 30px 22px; }
}

@media (max-width: 480px) {
  .teacher-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { letter-spacing: 0; }
  .countdown { padding: 6px 14px; }
}

/* ============ 多页面站点补充样式 ============ */

/* ---------- 内页横幅 ---------- */
.page-banner {
  position: relative; height: 240px; display: flex; align-items: center;
  background: url("../assets/img/hero-campus.jpg") center 35%/cover no-repeat;
  overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(70,8,15,.90) 0%, rgba(126,18,32,.78) 55%, rgba(126,18,32,.55) 100%);
}
.page-banner .container { position: relative; z-index: 2; color: #fff; }
.page-banner h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: 3px; }
.page-banner p { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.8); letter-spacing: 1px; }
.page-banner .pb-tag {
  display: inline-block; font-size: 12px; letter-spacing: 4px; color: var(--gold-light);
  border: 1px solid rgba(230,207,159,.4); padding: 3px 14px; border-radius: 99px; margin-bottom: 12px;
  background: rgba(255,255,255,.06);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0; font-size: 13px; color: var(--ink-2);
  border-bottom: 1px solid var(--line); background: #fff;
}
.breadcrumb a { color: var(--ink-2); transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 8px; color: #c8beb4; }
.breadcrumb .cur { color: var(--red); font-weight: 600; }

/* ---------- 课程详情页（图文交错） ---------- */
.course-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 70px 0; }
.course-detail + .course-detail { border-top: 1px solid var(--line); }
.course-detail .cd-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}
.course-detail .cd-img img { width: 100%; height: 100%; object-fit: cover; }
.course-detail .cd-num {
  font-size: 13px; letter-spacing: 4px; color: var(--gold); font-weight: 700;
}
.course-detail h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--red-deep); margin: 8px 0 4px; letter-spacing: 2px; }
.course-detail .cd-sub { font-size: 13.5px; color: var(--gold); margin-bottom: 14px; letter-spacing: 1px; }
.course-detail p.cd-desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.course-detail .cd-points li {
  position: relative; padding: 6px 0 6px 22px; font-size: 14px; color: var(--ink-2);
}
.course-detail .cd-points li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}
.course-detail .cd-cta { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-red {
  display: inline-block; padding: 12px 30px; border-radius: 99px; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff;
  box-shadow: 0 8px 22px rgba(158,31,46,.3); transition: all .3s;
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(158,31,46,.42); }
.btn-line {
  display: inline-block; padding: 11px 28px; border-radius: 99px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--ink-2); transition: all .3s;
}
.btn-line:hover { border-color: var(--red); color: var(--red); }
.course-detail.rev .cd-img { order: 2; }

/* ---------- 新闻列表 ---------- */
.news-filter { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.news-filter button {
  padding: 9px 26px; border-radius: 99px; font-size: 14.5px; color: var(--ink-2);
  border: 1.5px solid var(--line); background: #fff; transition: all .25s;
}
.news-filter button:hover { border-color: var(--red); color: var(--red); }
.news-filter button.active { background: var(--red); border-color: var(--red); color: #fff; }
.news-list { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.news-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.news-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-date {
  text-align: center; background: #fbf1ef; border-radius: 12px; padding: 12px 6px;
  border: 1px solid #f3dcd8;
}
.news-date b { display: block; font-size: 26px; font-weight: 800; color: var(--red); line-height: 1.1; }
.news-date i { font-style: normal; font-size: 12px; color: var(--gold); }
.news-item h3 { font-size: 17.5px; color: var(--ink); line-height: 1.5; transition: color .25s; }
.news-item a:hover h3 { color: var(--red); }
.news-item .n-meta { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.news-item .n-cat {
  font-size: 12px; color: #fff; background: var(--gold); border-radius: 99px; padding: 2px 12px;
}
.news-item p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 0 12px; transition: all .25s;
}
.pagination .cur { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a:hover { border-color: var(--red); color: var(--red); }

/* 首页新闻精选 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .nc-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card .nc-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.news-card .nc-cat { font-size: 12px; color: #fff; background: var(--gold); border-radius: 99px; padding: 2px 12px; }
.news-card time { font-size: 12.5px; color: #a39a90; }
.news-card h3 { font-size: 16.5px; line-height: 1.55; color: var(--ink); flex: 1; transition: color .25s; }
.news-card a:hover h3 { color: var(--red); }
.news-card .nc-more { margin-top: 14px; font-size: 13.5px; color: var(--gold); font-weight: 600; }
.news-card:hover .nc-more { color: var(--red); }

/* ---------- 新闻详情 ---------- */
.article-wrap { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 46px 50px; }
.article-head { text-align: center; border-bottom: 1px dashed var(--line); padding-bottom: 24px; margin-bottom: 30px; }
.article-head h1 { font-size: clamp(21px, 2.6vw, 28px); color: var(--ink); line-height: 1.5; }
.article-meta { display: flex; gap: 22px; justify-content: center; margin-top: 16px; font-size: 13px; color: #999; flex-wrap: wrap; }
.article-meta .n-cat { font-size: 12px; color: #fff; background: var(--gold); border-radius: 99px; padding: 2px 12px; }
.article-body p { font-size: 15px; color: #3c4148; margin: 16px 0; text-indent: 0; line-height: 1.9; }
.article-body h2 { font-size: 19px; color: var(--red-deep); margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--red); }
.article-body ul { margin: 12px 0 18px; }
.article-body ul li { position: relative; padding: 6px 0 6px 24px; font-size: 14.5px; color: #3c4148; line-height: 1.8; }
.article-body ul li::before { content: ""; position: absolute; left: 6px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.article-body blockquote {
  border-left: 4px solid var(--gold); background: #fdf8f1; padding: 16px 20px;
  border-radius: 0 10px 10px 0; font-size: 14.5px; color: var(--red-deep); margin: 20px 0;
}
.article-body img { border-radius: 12px; margin: 18px auto; box-shadow: var(--shadow); width: 100%; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; border-top: 1px dashed var(--line); padding-top: 24px; }
.article-nav a { font-size: 13.5px; color: var(--ink-2); transition: color .25s; min-width: 0; }
.article-nav a:hover { color: var(--red); }
.article-nav a:last-child { text-align: right; }
.article-nav .an-label { display: block; font-size: 12px; color: #b3aa9f; margin-bottom: 4px; }
.article-nav b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 联系我们 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 50px; }
.contact-card-i {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 20px; text-align: center; transition: transform .3s, border-color .3s;
}
.contact-card-i:hover { transform: translateY(-5px); border-color: var(--gold); }
.contact-card-i .ci-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.contact-card-i h3 { font-size: 14px; color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; font-weight: 600; }
.contact-card-i p { font-size: 13.5px; color: var(--ink); line-height: 1.7; word-break: break-all; }
.contact-card-i .ci-tel { font-size: 19px; font-weight: 800; color: var(--red); letter-spacing: .5px; }
.contact-card-i .ci-note { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; }

/* ---------- 关于页时间轴 ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), var(--gold)); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 26px 20px; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.tl-item b { display: block; font-size: 16px; color: var(--red-deep); margin-bottom: 4px; }
.tl-item p { font-size: 13.5px; color: var(--ink-2); }

/* ============ 新增响应式 ============ */
@media (max-width: 1024px) {
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .page-banner { height: 180px; }
  .course-detail, .course-detail.rev { grid-template-columns: 1fr; gap: 22px; padding: 46px 0; }
  .course-detail.rev .cd-img { order: 0; }
  .news-item { grid-template-columns: 76px 1fr; padding: 18px 18px; gap: 14px; }
  .news-date b { font-size: 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-layout { grid-template-columns: 1fr; }
  .article-wrap { padding: 28px 20px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { text-align: left; }
}

/* ---------- CTA 横幅 / 查看更多 ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--red-deep), var(--red) 70%);
  border-radius: 20px; padding: 46px 50px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow-lg); flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: 1px; margin-bottom: 8px; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,.8); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost-dark { border: 1.5px solid rgba(255,255,255,.6); color: #fff; padding: 12px 30px; border-radius: 99px; font-size: 15px; font-weight: 600; transition: all .3s; display: inline-block; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.teacher-more { text-align: center; margin-top: 36px; }


/* ---------- 课程页切换 tabs ---------- */
.course-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 46px 0 8px; }
.course-tabs a {
  padding: 10px 26px; border-radius: 99px; border: 1.5px solid var(--line);
  font-size: 14.5px; color: var(--ink-2); background: #fff; transition: all .25s; font-weight: 500;
}
.course-tabs a:hover { border-color: var(--red); color: var(--red); }
.course-tabs a.active { background: linear-gradient(135deg, var(--red), var(--red-dark)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(158,31,46,.28); }

/* ---------- 校园风采网格修复：首图两列宽但高度与同行对齐 ---------- */
.g-item:first-child { aspect-ratio: auto; }
.g-item:first-child img { height: 100%; }

/* ---------- 首屏高考倒计时卡片 ---------- */
.hero { flex-wrap: wrap; }
.hero-countdown {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); z-index: 3;
  width: 330px; padding: 30px 30px 26px; text-align: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px; backdrop-filter: blur(10px); color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.hero-countdown::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 45%);
}
.hc-tag {
  display: inline-block; font-size: 13px; letter-spacing: 3px; font-weight: 600;
  color: var(--gold-light); border: 1px solid rgba(230,207,159,.5);
  background: rgba(158,31,46,.45); padding: 5px 18px; border-radius: 99px;
}
.hc-lead { margin-top: 16px; font-size: 15px; letter-spacing: 2px; color: rgba(255,255,255,.88); }
.hc-nums { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.hc-cell {
  flex: 1; min-width: 0; padding: 10px 0 8px; border-radius: 12px;
  background: rgba(158,31,46,.5); border: 1px solid rgba(255,255,255,.2);
}
.hc-cell b {
  display: block; font-size: 26px; font-weight: 800; line-height: 1.15;
  color: var(--gold-light); font-variant-numeric: tabular-nums;
}
.hc-cell i { font-style: normal; font-size: 12px; color: rgba(255,255,255,.75); letter-spacing: 2px; }
.hc-slogan {
  margin-top: 16px; font-size: 17px; font-weight: 700; letter-spacing: 5px; color: #fff;
}
.hc-desc { margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: rgba(255,255,255,.82); }
.hc-btn {
  display: inline-block; margin-top: 16px; padding: 10px 28px; border-radius: 99px;
  font-size: 14px; font-weight: 600; color: var(--red-deep);
  background: linear-gradient(135deg, #f3ddb4, var(--gold-light));
  box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .3s;
}
.hc-btn:hover { transform: translateY(-2px); }
@media (max-width: 1200px) {
  .hero-countdown { width: 300px; padding: 24px 20px 20px; right: 2%; }
  .hc-cell b { font-size: 22px; }
}
@media (max-width: 1024px) {
  .hero-countdown {
    position: relative; right: auto; top: auto; transform: none;
    margin: 26px auto 0; max-width: 360px;
  }
  .hero-content { flex: 1 1 100%; }
}

/* ---------- 校园风采：竖版长图高卡 ---------- */
.g-item.g-tall { grid-row: span 2; aspect-ratio: auto; }
.g-item.g-tall img { height: 100%; }
@media (max-width: 768px) {
  .g-item.g-tall { grid-row: span 1; aspect-ratio: 4/3; }
}

/* ---------- 导航四大课程下拉菜单 ---------- */
.nav-sub { position: relative; }
.nav-sub > .nav-link::before {
  content: ""; position: absolute; right: 4px; top: 50%; margin-top: -2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .55; transition: transform .25s;
}
.nav-sub:hover > .nav-link::before { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 168px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(70,8,15,.16);
  padding: 8px; opacity: 0; visibility: hidden; transition: all .25s; z-index: 120;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.submenu a {
  display: block; padding: 10px 18px; font-size: 14.5px; color: var(--ink-2);
  border-radius: 8px; transition: all .2s; white-space: nowrap;
}
.submenu a:hover { background: #fbf1ef; color: var(--red); }
.nav-sub:hover .submenu, .nav-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
  .nav-sub { display: contents; }
  .nav-sub > .nav-link::before { display: none; }
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; background: transparent; border: none; box-shadow: none;
    padding: 0 0 4px 24px; display: block;
  }
  .submenu::before { display: none; }
  .submenu a { padding: 11px 10px; font-size: 15px; color: #8a7f75; border-radius: 0; }
  .submenu a:hover { background: transparent; }
}
