/* ==========================================================================
   泓锦驾校官网 · 全站样式
   移动优先；无外部字体/图标依赖，所有图标用内联 SVG 或纯 CSS 绘制
   ========================================================================== */

:root {
  --navy: #0E2A47;
  --navy-2: #16395C;
  --navy-3: #0A1F36;
  --green: #07C160;
  --green-2: #0FA35A;
  --green-soft: #E8F9EF;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FA;
  --bg-warm: #FBFCFD;
  --text: #12202F;
  --text-2: #5B6B7C;
  --text-3: #8A99A8;
  --line: #E3E9EF;
  --line-2: #EEF2F6;
  --danger: #E5484D;
  --warn: #F5A524;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 22px;
  --shadow-s: 0 2px 10px rgba(14, 42, 71, 0.05);
  --shadow: 0 10px 30px rgba(14, 42, 71, 0.09);
  --shadow-l: 0 20px 50px rgba(14, 42, 71, 0.14);
  --maxw: 1100px;
  --nav-h: 58px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 46px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 32px 0; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; color: var(--navy); letter-spacing: 0.01em; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(140deg, var(--green) 0%, var(--green-2) 100%);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.28);
}
.brand small { display: block; font-size: 10px; font-weight: 400; color: var(--text-3); letter-spacing: 0.16em; }

.nav__links { display: none; gap: 26px; font-size: 13.5px; color: var(--text-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--navy); }
.nav__links a.is-active { color: var(--navy); font-weight: 600; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--green);
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 600;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}
.nav__cta:active { transform: scale(0.97); background: var(--navy-2); }
.nav__cta svg { width: 14px; height: 14px; }

/* ---------- 首屏主视觉 ----------
   说明：素材库的实拍图均为带文案的宣传图，直接做整屏背景会与首屏文案打架，
   因此首屏用深蓝渐变 + 细网格 + 绿色光晕构成，实拍图放到下方图集里展示 */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(158deg, #15405F 0%, #0E2A47 46%, #0A1F36 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(72% 72% at 28% 18%, #000 0%, transparent 76%);
  mask-image: radial-gradient(72% 72% at 28% 18%, #000 0%, transparent 76%);
}
.hero__glow {
  position: absolute; left: -20%; top: -36%; width: 82%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.24) 0%, transparent 62%);
}
.hero__inner { position: relative; padding: 46px 0 38px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  height: 27px; padding: 0 11px; margin-bottom: 16px;
  border-radius: 999px; font-size: 11.5px; letter-spacing: 0.04em;
  background: rgba(7, 193, 96, 0.16); color: #7BE7A9;
  border: 1px solid rgba(7, 193, 96, 0.32);
}
.hero__eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: 30px; line-height: 1.28; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: #7BE7A9; }
.hero__sub { margin-top: 12px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.76); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.btn:active { transform: scale(0.975); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(7, 193, 96, 0.3); }
.btn--primary:hover { background: var(--green-2); }
.btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.17); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--line { background: #fff; color: var(--navy); border: 1px solid var(--line); }

/* 数据条 */
.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; margin-top: 30px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); overflow: hidden;
  backdrop-filter: blur(10px);
}
.stats__item { background: rgba(10, 31, 54, 0.55); padding: 16px 14px; text-align: center; }
.stats__num { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.stats__num span { font-size: 12px; font-weight: 500; margin-left: 2px; color: rgba(255, 255, 255, 0.7); }
.stats__label { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }

/* ---------- 区块标题 ---------- */
.head { margin-bottom: 22px; }
.head__eyebrow {
  display: inline-block; margin-bottom: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--green-2); text-transform: uppercase;
}
.head h2 { color: var(--navy); }
.head__desc { margin-top: 8px; font-size: 13.5px; color: var(--text-2); max-width: 34em; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head__more { flex: none; font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.head__more:hover { color: var(--green-2); }

/* ---------- 优势卡 ---------- */
.features { display: grid; gap: 12px; }
.feature {
  display: flex; gap: 14px; padding: 18px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #DCE6EE; }
.feature__icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-2);
}
.feature__icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 15px; color: var(--navy); }
.feature p { margin-top: 4px; font-size: 12.8px; color: var(--text-2); line-height: 1.65; }

/* ---------- 班型卡 ---------- */
.courses { display: grid; gap: 12px; }
.course {
  position: relative; padding: 18px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.course:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.course--hot { border-color: rgba(7, 193, 96, 0.45); }
.course__badge {
  position: absolute; top: -9px; right: 14px;
  height: 20px; padding: 0 9px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; letter-spacing: 0.05em;
}
.course__name { font-size: 16.5px; font-weight: 700; color: var(--navy); }
.course__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag {
  height: 21px; padding: 0 8px; border-radius: 6px;
  display: inline-flex; align-items: center;
  font-size: 11px; color: var(--text-2);
  background: var(--bg-soft); border: 1px solid var(--line-2);
}
.tag--green { color: var(--green-2); background: var(--green-soft); border-color: rgba(7, 193, 96, 0.2); }
.course__price { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.course__price strong { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.course__price strong i { font-size: 14px; font-style: normal; font-weight: 600; margin-right: 1px; }
.course__price del { font-size: 12.5px; color: var(--text-3); }
.course__meta { margin-top: 6px; font-size: 12px; color: var(--text-2); }
.course__list { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.course__list li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.9; }
.course__list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}

/* ---------- 图集 ----------
   素材为带文案的宣传图，一律按原始比例完整展示（瀑布式分栏），不做裁切 */
.gallery { columns: 1; column-gap: 10px; }
.gallery__item {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-s); background: var(--bg-soft);
  break-inside: avoid; margin-bottom: 10px;
}
.gallery__item img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 12px 10px;
  font-size: 11.5px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 31, 54, 0.75));
}

/* ---------- 公告 ---------- */
.notices { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
  transition: background 0.2s var(--ease);
}
.notice:last-child { border-bottom: 0; }
.notice:hover { background: var(--bg-warm); }
.notice__date {
  flex: none; width: 46px; text-align: center;
  font-size: 10.5px; color: var(--text-3); line-height: 1.35;
  padding-top: 1px;
}
.notice__date b { display: block; font-size: 15px; color: var(--navy); font-weight: 700; }
.notice__body { min-width: 0; }
.notice__title { font-size: 13.5px; color: var(--text); font-weight: 600; }
.notice__text {
  margin-top: 2px; font-size: 12.2px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notice__pin {
  display: inline-block; margin-right: 5px; padding: 0 5px; height: 16px; line-height: 16px;
  border-radius: 4px; font-size: 10px; font-weight: 600;
  background: var(--green-soft); color: var(--green-2);
}

/* ---------- 页头（内页） ---------- */
.pagehead {
  position: relative; padding: 40px 0 30px;
  background:
    radial-gradient(80% 100% at 12% 0%, #1B4166 0%, var(--navy) 55%, var(--navy-3) 100%);
  color: #fff; overflow: hidden;
}
.pagehead::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.28), transparent 68%);
}
.pagehead__eyebrow { font-size: 11.5px; letter-spacing: 0.18em; color: #7BE7A9; text-transform: uppercase; }
.pagehead h1 { margin-top: 8px; font-size: 25px; }
.pagehead p { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); max-width: 34em; }

/* ---------- 对比表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff; }
table.cmp { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
table.cmp th, table.cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.cmp th { background: var(--bg-soft); color: var(--navy); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
table.cmp td { color: var(--text-2); }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp .yes { color: var(--green-2); font-weight: 600; }
table.cmp .no { color: var(--text-3); }

/* ---------- 教练卡 ---------- */
.coaches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.coach {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.coach:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.coach__photo {
  position: relative; aspect-ratio: 3 / 4; background: linear-gradient(160deg, #16395C, #0A1F36);
  display: grid; place-items: center;
}
.coach__photo img { width: 100%; height: 100%; object-fit: cover; }
.coach__initial { font-size: 30px; font-weight: 700; color: rgba(255, 255, 255, 0.42); letter-spacing: 0.04em; }
.coach__body { padding: 12px 13px 14px; }
/* 无照片时用首字圆形头像，避免大面积空图占位 */
.coach__body--plain { padding-top: 18px; }
.coach__avatar {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; margin-bottom: 12px;
  background: linear-gradient(150deg, #1B4166, #0A1F36);
  color: #7BE7A9; font-size: 19px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.coach__name { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.coach__meta { margin-top: 3px; font-size: 11.5px; color: var(--text-3); }
.coach__intro { margin-top: 7px; font-size: 12.2px; color: var(--text-2); line-height: 1.6; }

/* ---------- 设施 ---------- */
.facility { display: grid; gap: 12px; }
.facility__item {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
}
.facility__item img { width: 100%; height: auto; display: block; background: var(--bg-soft); }
.facility__body { padding: 14px 16px 16px; }
.facility__body h3 { font-size: 15px; color: var(--navy); }
.facility__body p { margin-top: 4px; font-size: 12.8px; color: var(--text-2); }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 12px;
  width: 2px; background: linear-gradient(180deg, var(--green) 0%, rgba(7, 193, 96, 0.12) 100%);
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item__dot {
  position: absolute; left: -34px; top: 1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green); color: var(--green-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.1);
}
.tl-item__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-item__title h3 { font-size: 15px; color: var(--navy); }
.tl-item__days {
  height: 19px; padding: 0 7px; border-radius: 5px;
  font-size: 10.5px; font-weight: 600; color: var(--green-2);
  background: var(--green-soft); display: inline-flex; align-items: center;
}
.tl-item p { margin-top: 5px; font-size: 12.8px; color: var(--text-2); line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 15px 16px; text-align: left;
  font-size: 13.8px; font-weight: 600; color: var(--navy);
}
.faq__q i {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-2);
  display: grid; place-items: center; font-size: 13px; font-style: normal;
  transition: transform 0.25s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s var(--ease);
}
.faq__a > div { padding: 0 16px 15px; font-size: 12.8px; color: var(--text-2); line-height: 1.75; }
.faq__item.is-open .faq__a { max-height: 480px; }

/* ---------- 关于我们 ---------- */
.prose p { font-size: 13.5px; line-height: 1.95; color: var(--text-2); margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy); }
.honors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.honor { position: relative; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-soft); }
.honor img { width: 100%; height: auto; display: block; }
.honor span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px; font-size: 11.5px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10, 31, 54, 0.8));
}

/* ---------- 联系卡 ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-s);
}
.contact-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row__icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; background: var(--bg-soft); color: var(--navy);
}
.contact-row__icon svg { width: 17px; height: 17px; }
.contact-row__label { font-size: 11.5px; color: var(--text-3); }
.contact-row__value { font-size: 14px; font-weight: 600; color: var(--navy); word-break: break-all; }
.contact-row__value a { color: var(--navy); }
.map-box { margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); }
.map-box img { width: 100%; object-fit: cover; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-3); color: rgba(255, 255, 255, 0.6); padding: 34px 0 26px; }
.footer__grid { display: grid; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 15px; }
.footer__brand .brand__mark { box-shadow: none; }
.footer__desc { margin-top: 10px; font-size: 12.2px; line-height: 1.8; max-width: 30em; }
.footer h4 { color: #fff; font-size: 12.5px; letter-spacing: 0.06em; margin-bottom: 9px; }
.footer__links { display: grid; gap: 7px; font-size: 12.5px; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px; color: rgba(255, 255, 255, 0.38); line-height: 1.9;
}

/* ---------- 底部固定咨询条 ---------- */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottombar__info { flex: 1; min-width: 0; }
.bottombar__label { font-size: 10.5px; color: var(--text-3); line-height: 1.3; }
.bottombar__phone { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }
.bottombar__btn {
  flex: none; height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
}
.bottombar__btn:active { transform: scale(0.975); }
.bottombar__btn svg { width: 15px; height: 15px; }

/* ---------- 空态 / 骨架 ---------- */
.empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--text-3); }
.skeleton {
  background: linear-gradient(90deg, #EEF2F6 25%, #F7FAFC 37%, #EEF2F6 63%);
  background-size: 400% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: var(--radius-s);
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 入场动画 ----------
   默认可见（无 JS / JS 失败时内容不会消失），
   仅当 html 上存在 has-js 时才隐藏待入场 */
.reveal { opacity: 1; }
html.has-js .reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
html.has-js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.has-js .reveal { opacity: 1; transform: none; transition: none; }
  .faq__a { transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 28px; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 62px 0 46px; }
  .hero h1 { font-size: 40px; }
  .hero__sub { font-size: 15px; }
  .stats { grid-template-columns: repeat(4, 1fr); margin-top: 38px; }
  .stats__num { font-size: 26px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .coaches { grid-template-columns: repeat(3, 1fr); }
  .gallery { columns: 2; }
  .facility { grid-template-columns: repeat(2, 1fr); }
  .honors { grid-template-columns: repeat(3, 1fr); }
  .pagehead { padding: 56px 0 40px; }
  .pagehead h1 { font-size: 30px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .nav__links { display: flex; }
  .hero__inner { padding: 92px 0 64px; }
  .hero__copy { max-width: 44em; }
  .hero h1 { font-size: 46px; max-width: 15em; }
  .hero__sub { font-size: 15.5px; }
  .section { padding: 76px 0; }
  .courses { grid-template-columns: repeat(3, 1fr); }
  .coaches { grid-template-columns: repeat(4, 1fr); }
  .gallery { columns: 2; }
  .facility { grid-template-columns: repeat(3, 1fr); }
  .bottombar { display: none; }
  .footer { padding: 48px 0 32px; }
  .pagehead { padding: 72px 0 52px; }
  .pagehead h1 { font-size: 34px; }
  .two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
}

/* ==========================================================================
   附加组件：横向滑动、灯箱、行动号召、图片、工具类
   ========================================================================== */

/* 数字条：数值与单位 */
.stats__num b { font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 横向滑动卡片（移动端）→ 网格（平板以上） */
.hscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 76%;
  gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 -20px; padding: 2px 20px 6px;
  scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 640px) {
  .hscroll { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 12px; overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1024px) { .hscroll { grid-template-columns: repeat(3, 1fr); } }

/* 标签行 */
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 行动号召横幅 */
.cta-band {
  position: relative; overflow: hidden;
  padding: 26px 22px; border-radius: var(--radius-l);
  background: linear-gradient(125deg, var(--navy) 0%, var(--navy-2) 58%, #17456B 100%);
  color: #fff;
}
.cta-band::after {
  content: ""; position: absolute; right: -50px; bottom: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.34), transparent 68%);
}
.cta-band h3 { font-size: 18px; letter-spacing: -0.01em; }
.cta-band p { position: relative; margin-top: 9px; font-size: 12.8px; line-height: 1.75; color: rgba(255, 255, 255, 0.7); max-width: 32em; }
.cta-band__actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* 宽幅图：按原始比例完整展示，不裁切海报文案 */
.wide-img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); background: var(--bg-soft);
}

/* 小字说明 */
.note {
  padding: 12px 14px; border-radius: var(--radius-s);
  background: var(--bg-soft); border-left: 3px solid var(--green);
  font-size: 12.2px; line-height: 1.75; color: var(--text-2);
}

/* 图片与 figure 默认清零 */
figure { margin: 0; }

/* 班型说明 */
.course__desc { margin-top: 10px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }

/* 工具类 */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.muted { color: var(--text-2); }
.center { text-align: center; }
.is-broken { display: none !important; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6, 16, 28, 0.93);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88%; border-radius: 12px; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }
.lightbox__close {
  position: absolute; top: 14px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); color: #fff;
}
[data-zoom] { cursor: zoom-in; }
