@charset "utf-8";
/* ==========================================================================
   拾阶教育 · 招生门户
   参照：luwen.cn / haoxue360.com / jupeiedu.com / hanxuew.com / pxto.com.cn
   版式语言：1200 固定宽 · 0 圆角 · 1px 描边分隔 · 单支橙主色 · 12/14px 密排
   ========================================================================== */

:root {
  --c1: #FF5A00;
  --c1d: #E04E00;
  --c1l: #FFF3EB;
  --c2: #1A7BD6;
  --ink: #333;
  --ink2: #666;
  --ink3: #999;
  --ink4: #AAA;
  --line: #E5E5E5;
  --line2: #DDD;
  --line3: #F1F1F1;
  --bg: #F5F7F9;
  --bg2: #FAFAFA;
  --w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 14px/1.6 "Microsoft YaHei", "微软雅黑", Tahoma, Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; border: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--c1); }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.wrap { width: var(--w); margin: 0 auto; }
.wrap::after { content: ""; display: block; clear: both; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }

/* ============================ 顶部工具条 ============================ */
.topbar {
  height: 36px;
  background: #F6F6F6;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink2);
  line-height: 36px;
}
/* .wrap::after 是浮动清除用的伪元素，在 flex 容器里会当成第三个 flex 子项，
   把右侧内容挤向中间，所以 flex 容器里必须关掉它 */
.topbar .wrap::after, .header .wrap::after, .nav .wrap::after { display: none; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.topbar-l, .topbar-r { display: flex; align-items: center; gap: 0; }
.topbar-r { margin-left: auto; }
.topbar a { color: var(--ink2); }
.topbar a:hover { color: var(--c1); }
.topbar .sep { color: var(--line2); padding: 0 9px; }
.city-pick { position: relative; }
.city-pick > button {
  background: none; border: 0; padding: 0 4px; cursor: pointer;
  font-size: 12px; color: var(--c1); line-height: 36px;
}
.city-pick > button::after { content: "▾"; margin-left: 3px; font-size: 10px; }
.city-pop {
  position: absolute; top: 36px; left: -60px; z-index: 60;
  width: 460px; background: #fff; border: 1px solid var(--line2);
  padding: 10px 14px 14px; line-height: 1.7; display: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}
.city-pop.on { display: block; }
.city-pop h4 { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.city-pop .cities { display: flex; flex-wrap: wrap; gap: 2px 0; }
.city-pop .cities a {
  display: inline-block; width: 68px; font-size: 12px; color: var(--ink2);
}
.city-pop .cities a:hover { color: var(--c1); }

/* ============================ 头部：logo + 搜索 ============================ */
.header { background: #fff; padding: 20px 0 18px; }
.header .wrap { display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.logo-mark {
  width: 52px; height: 52px; background: var(--c1); color: #fff;
  font-size: 26px; font-weight: 700; line-height: 52px; text-align: center;
  letter-spacing: 0;
}
.logo-txt b { display: block; font-size: 26px; font-weight: 700; color: var(--c1); letter-spacing: 1px; line-height: 1.2; }
.logo-txt small { display: block; font-size: 12px; color: var(--ink3); letter-spacing: .5px; }

.searchbox { flex: 1 1 auto; max-width: 560px; }
.search-row { display: flex; border: 2px solid var(--c1); height: 42px; }
.search-cat {
  width: 92px; border: 0; border-right: 1px solid var(--line2);
  background: #fff; font-size: 13px; color: var(--ink2);
  padding: 0 6px; cursor: pointer;
}
.search-input {
  flex: 1 1 auto; border: 0; padding: 0 12px; font-size: 14px; outline: none;
  color: var(--ink); background: #fff; min-width: 0;
}
.search-input::placeholder { color: var(--ink4); }
.search-btn {
  width: 96px; border: 0; background: var(--c1); color: #fff;
  font-size: 16px; cursor: pointer; letter-spacing: 2px;
}
.search-btn:hover { background: var(--c1d); }
.hotwords { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.hotwords a { color: var(--ink2); margin-right: 10px; }
.hotwords a:hover { color: var(--c1); }

.header-tel { flex: 0 0 auto; text-align: right; border-left: 1px solid var(--line); padding-left: 26px; }
.header-tel span { display: block; font-size: 12px; color: var(--ink3); }
.header-tel b { display: block; font-size: 24px; color: var(--c1); line-height: 1.25; letter-spacing: .5px; }
.header-tel small { font-size: 12px; color: var(--ink2); }

/* ============================ 主导航（橙实底） ============================ */
.nav { background: var(--c1); }
.nav .wrap { display: flex; align-items: stretch; }
.nav a {
  display: block; height: 44px; line-height: 44px; padding: 0 26px;
  color: #fff; font-size: 16px;
}
.nav a:first-child { padding-left: 22px; }
.nav a:hover, .nav a.on { background: var(--c1d); color: #fff; }
.nav .nav-cta {
  margin-left: auto; background: #C93F00; font-weight: 700; padding: 0 30px;
}
.nav .nav-cta:hover { background: #A83400; }

/* ============================ 首屏区：分类树 + 轮播 ============================ */
/* 首屏整体高度锁定，轮播是横向长方形（约 1.7:1），分类树用弹性均分填满同高 */
.hero-area { --hero-h: 442px; display: flex; gap: 10px; padding: 14px 0 0; }

.cat-tree {
  flex: 0 0 208px; background: #fff; border: 1px solid var(--line);
  height: var(--hero-h); display: flex; flex-direction: column; overflow: hidden;
}
.cat-tree > h2 {
  flex: 0 0 40px; line-height: 40px; background: var(--c1); color: #fff;
  font-size: 15px; font-weight: 700; padding-left: 16px;
}
.cat-tree ul { flex: 1 1 auto; display: flex; flex-direction: column; padding: 4px 0; }
.cat-tree li { position: relative; flex: 1 1 0; min-height: 0; }
.cat-tree > ul > li > a {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; padding: 0 24px 0 16px; font-size: 14px; color: var(--ink);
  border-bottom: 1px dashed var(--line3); line-height: 1.4;
}
.cat-tree > ul > li:last-child > a { border-bottom: 0; }
.cat-tree > ul > li > a::after {
  content: "›"; position: absolute; right: 10px; top: 50%; margin-top: -9px;
  color: var(--ink4); font-size: 14px;
}
.cat-tree > ul > li > a:hover { color: var(--c1); background: var(--c1l); }
.cat-tree .sub {
  font-size: 12px; color: var(--ink3); display: block; margin-top: 1px;
  font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.35;
}
.cat-tree .tree-foot {
  flex: 0 0 auto; border-top: 1px solid var(--line); padding: 8px 16px;
  font-size: 12px; color: var(--ink3); line-height: 1.55;
}
.cat-tree .tree-foot b { color: var(--c1); }

.hero-right { flex: 1 1 auto; min-width: 0; display: flex; gap: 10px; align-items: stretch; }

.slider {
  position: relative; flex: 1 1 auto; min-width: 0;
  height: var(--hero-h); overflow: hidden; background: #EDEDED;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  display: block;
}
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-txt {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 18px 24px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  color: #fff;
}
.slide-txt b { display: block; font-size: 24px; font-weight: 700; line-height: 1.3; }
.slide-txt p { font-size: 13px; color: rgba(255, 255, 255, .88); margin-top: 5px; }
.slide-txt i {
  display: inline-block; font-style: normal; font-size: 12px;
  background: var(--c1); padding: 2px 8px; margin-bottom: 8px;
}
.slider-dots { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; z-index: 3; }
.slider-dots button {
  width: 22px; height: 5px; border: 0; background: rgba(255, 255, 255, .55);
  cursor: pointer; padding: 0;
}
.slider-dots button.on { background: var(--c1); }

.hero-tiles { flex: 0 0 240px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.hero-tiles a {
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; text-align: center; padding: 8px;
}
.hero-tiles a:hover { border-color: var(--c1); background: var(--c1l); }
.hero-tiles em { font-style: normal; font-size: 22px; line-height: 1; }
.hero-tiles b { font-size: 14px; font-weight: 700; }
.hero-tiles span { font-size: 12px; color: var(--ink3); }

/* ============================ 数据条 ============================ */
.stat-bar { background: #fff; border: 1px solid var(--line); margin-top: 10px; }
.stat-bar ul { display: flex; }
.stat-bar li {
  flex: 1 1 0; text-align: center; padding: 14px 8px; border-right: 1px solid var(--line3);
}
.stat-bar li:last-child { border-right: 0; }
.stat-bar b { display: block; font-size: 22px; color: var(--c1); line-height: 1.2; }
.stat-bar b i { font-style: normal; font-size: 13px; font-weight: 400; margin-left: 2px; }
.stat-bar span { font-size: 12px; color: var(--ink2); }

/* ============================ 通用区块 ============================ */
.sec { background: #fff; border: 1px solid var(--line); margin-top: 14px; padding: 0 0 22px; }
.sec-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--line); padding: 0 20px; height: 50px;
}
.sec-head h2 {
  font-size: 20px; font-weight: 700; line-height: 50px; position: relative;
  padding-left: 12px; flex: 0 0 auto;
}
.sec-head h2::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 4px; height: 18px;
  background: var(--c1);
}
.sec-head .sub { font-size: 13px; color: var(--ink3); }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--ink3); }
.sec-head .more:hover { color: var(--c1); }
.sec-body { padding: 18px 20px 0; }

/* ============================ 课程卡 ============================ */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.course-card {
  border: 1px solid var(--line); background: #fff; display: block;
  transition: border-color .15s, box-shadow .15s;
  cursor: pointer; text-align: left; padding: 0; width: 100%;
}
.course-card:hover { border-color: var(--c1); box-shadow: 0 2px 8px rgba(255, 90, 0, .12); }
.course-ph { position: relative; height: 160px; overflow: hidden; background: #EEE; }
.course-ph img { width: 100%; height: 100%; object-fit: cover; }
.course-tag {
  position: absolute; left: 0; top: 0; font-size: 12px; color: #fff;
  background: rgba(0, 0, 0, .6); padding: 2px 8px; line-height: 18px;
}
.course-tag.hot { background: var(--c1); }
.course-body { padding: 12px 14px 14px; }
.course-body h3 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.course-card:hover .course-body h3 { color: var(--c1); }
.course-desc {
  font-size: 12px; color: var(--ink3); line-height: 1.65; margin-top: 6px;
  height: 40px; overflow: hidden;
}
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.course-meta li {
  font-size: 12px; color: var(--ink2); background: var(--bg);
  border: 1px solid var(--line3); padding: 0 6px; line-height: 20px;
}
.course-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line3);
}
.course-price { font-size: 12px; color: var(--ink3); }
.course-price b { font-size: 19px; color: var(--c1); font-weight: 700; margin-right: 2px; }
.course-go {
  font-size: 13px; color: var(--c1); border: 1px solid var(--c1);
  padding: 0 10px; line-height: 24px; white-space: nowrap;
}
.course-card:hover .course-go { background: var(--c1); color: #fff; }

/* 分类筛选 */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 14px 20px 0;
}
.filter-bar .lbl { font-size: 13px; color: var(--ink3); margin-right: 2px; }
.filter-bar button {
  border: 1px solid var(--line2); background: #fff; color: var(--ink2);
  font-size: 13px; padding: 0 14px; line-height: 28px; cursor: pointer;
}
.filter-bar button:hover { border-color: var(--c1); color: var(--c1); }
.filter-bar button.on { background: var(--c1); border-color: var(--c1); color: #fff; }

/* ============================ 开班日历表 ============================ */
.cal-table { border: 1px solid var(--line); }
.cal-table th {
  background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink);
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cal-table td {
  font-size: 13px; color: var(--ink2); padding: 11px 12px;
  border-bottom: 1px solid var(--line3); vertical-align: middle;
}
.cal-table tr:last-child td { border-bottom: 0; }
.cal-table tbody tr:hover { background: #FFFBF7; }
.cal-table .t-name { color: var(--ink); font-weight: 700; }
.cal-table .t-name small { display: block; font-weight: 400; font-size: 12px; color: var(--ink3); }
.cal-table .t-date { color: var(--ink); white-space: nowrap; }
.cal-table .t-left { color: var(--c1); font-weight: 700; }
.cal-table .t-left.zero { color: var(--ink4); font-weight: 400; }
.badge {
  display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px;
  border: 1px solid; white-space: nowrap;
}
.badge-open { color: #0E8A4A; border-color: #A8DDBE; background: #F2FBF6; }
.badge-hot { color: var(--c1); border-color: #FFC7A8; background: var(--c1l); }
.badge-full { color: var(--ink3); border-color: var(--line2); background: var(--bg); }
.cal-act {
  font-size: 13px; color: var(--c1); border: 1px solid var(--c1);
  padding: 0 10px; line-height: 24px; background: #fff; cursor: pointer; white-space: nowrap;
}
.cal-act:hover { background: var(--c1); color: #fff; }
.cal-act:disabled { color: var(--ink4); border-color: var(--line2); cursor: not-allowed; background: #fff; }

/* ============================ 师资 ============================ */
.fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fac-card { border: 1px solid var(--line); padding: 16px; text-align: center; background: #fff; }
.fac-card:hover { border-color: var(--c1); }
.fac-ava {
  width: 76px; height: 76px; margin: 0 auto 10px; background: var(--c1l);
  color: var(--c1); font-size: 30px; font-weight: 700; line-height: 76px;
  border: 1px solid #FFD3B8;
}
.fac-card h3 { font-size: 15px; font-weight: 700; }
.fac-role { font-size: 12px; color: var(--c1); margin-top: 2px; }
.fac-desc { font-size: 12px; color: var(--ink3); line-height: 1.7; margin-top: 8px; text-align: left; height: 60px; overflow: hidden; }
.fac-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.fac-chips li { font-size: 12px; color: var(--ink2); border: 1px solid var(--line3); background: var(--bg); padding: 0 6px; line-height: 20px; }

/* ============================ 成果 / 口碑 ============================ */
.result-row { display: flex; gap: 20px; }
.result-nums { flex: 0 0 300px; border: 1px solid var(--line); }
.result-nums li { padding: 12px 16px; border-bottom: 1px solid var(--line3); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.result-nums li:last-child { border-bottom: 0; }
.result-nums b { font-size: 22px; color: var(--c1); flex: 0 0 auto; }
.result-nums span { font-size: 13px; color: var(--ink2); text-align: right; }
.voice-grid { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-width: 0; }
.voice { border: 1px solid var(--line); padding: 16px; background: #fff; }
.voice:hover { border-color: var(--c1); }
.voice-top { display: flex; align-items: center; gap: 10px; }
.voice-ava {
  width: 38px; height: 38px; background: var(--bg); border: 1px solid var(--line2);
  font-size: 15px; font-weight: 700; color: var(--ink2); line-height: 36px; text-align: center;
  flex: 0 0 auto;
}
.voice-top b { font-size: 14px; display: block; }
.voice-top span { font-size: 12px; color: var(--ink3); }
.voice-stars { color: #FF9500; font-size: 13px; letter-spacing: 2px; margin: 10px 0 6px; }
.voice blockquote { font-size: 13px; color: var(--ink2); line-height: 1.8; }

/* ============================ 校区 ============================ */
.campus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.campus-card { border: 1px solid var(--line); background: #fff; }
.campus-card:hover { border-color: var(--c1); }
.campus-ph { height: 168px; overflow: hidden; background: #EEE; }
.campus-ph img { width: 100%; height: 100%; object-fit: cover; }
.campus-body { padding: 14px 16px 16px; }
.campus-body b { font-size: 15px; }
.campus-body b i { font-style: normal; font-size: 12px; color: #fff; background: var(--c1); padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.campus-body p { font-size: 13px; color: var(--ink2); margin-top: 6px; line-height: 1.7; }
.campus-body .pin { font-size: 12px; color: var(--ink3); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line3); display: block; }
.campus-act { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--c1); }

/* ============================ 报名 ============================ */
.enroll-wrap { display: flex; gap: 24px; }
.enroll-info { flex: 1 1 auto; min-width: 0; }
.enroll-info h2 { font-size: 22px; font-weight: 700; line-height: 1.4; }
.enroll-info h2 em { font-style: normal; color: var(--c1); }
.enroll-lead { font-size: 13px; color: var(--ink2); line-height: 1.85; margin-top: 10px; }
.enroll-perks { margin-top: 14px; }
.enroll-perks li { font-size: 13px; color: var(--ink2); line-height: 2; padding-left: 18px; position: relative; }
.enroll-perks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--c1); font-size: 13px;
}
.enroll-tel {
  display: block; margin-top: 16px; border: 1px solid var(--line); padding: 12px 16px;
  background: var(--bg2);
}
.enroll-tel span { font-size: 12px; color: var(--ink3); }
.enroll-tel b { display: block; font-size: 24px; color: var(--c1); line-height: 1.3; }
.enroll-tel small { font-size: 12px; color: var(--ink2); }

.enroll-card { flex: 0 0 452px; border: 1px solid var(--line); background: #fff; }
.enroll-card > h3 {
  height: 46px; line-height: 46px; background: var(--c1); color: #fff;
  font-size: 16px; font-weight: 700; padding-left: 18px;
}
.enroll-form { padding: 16px 18px 18px; }
.enroll-form .tip { font-size: 12px; color: var(--ink3); margin-bottom: 12px; }
.enroll-form .tip i { color: var(--c1); font-style: normal; }
.field { margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 5px; }
.field > span i { color: var(--c1); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line2); background: #fff;
  font: 14px/1.5 inherit; color: var(--ink); padding: 8px 10px; outline: none;
  border-radius: 0; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23999'/%3E%3C/svg%3E") no-repeat right 10px center; padding-right: 26px; }
.field textarea { resize: vertical; min-height: 66px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c1); }
.field.err input, .field.err select { border-color: #D93025; }
.field .msg { font-size: 12px; color: #D93025; margin-top: 4px; display: none; }
.field.err .msg { display: block; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1 1 0; min-width: 0; }
.btn-submit {
  width: 100%; height: 44px; border: 0; background: var(--c1); color: #fff;
  font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: 1px;
}
.btn-submit:hover { background: var(--c1d); }
.form-note { font-size: 12px; color: var(--ink3); margin-top: 8px; text-align: center; }
.form-done {
  display: none; border: 1px solid #A8DDBE; background: #F2FBF6; color: #0E8A4A;
  font-size: 13px; padding: 10px 12px; margin-bottom: 12px; line-height: 1.7;
}
.form-done.on { display: block; }

/* ============================ FAQ ============================ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line3); }
.faq-item summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 13px 4px; font-size: 14px; color: var(--ink); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q"; flex: 0 0 auto; width: 20px; height: 20px; line-height: 20px;
  text-align: center; background: var(--c1); color: #fff; font-size: 12px; font-weight: 700;
}
.faq-item summary:hover { color: var(--c1); }
.faq-item summary::after {
  content: "+"; margin-left: auto; color: var(--ink4); font-size: 18px; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--c1); }
.faq-body { padding: 0 4px 14px 30px; }
.faq-body p { font-size: 13px; color: var(--ink2); line-height: 1.9; }

/* ============================ 友链 ============================ */
.links { background: #fff; border: 1px solid var(--line); margin-top: 14px; padding: 14px 20px; }
.links h2 { font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 8px; }
.links ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
.links li { font-size: 12px; }
.links a { color: var(--ink3); padding: 0 10px; border-right: 1px solid var(--line3); }
.links li:last-child a { border-right: 0; }
.links a:hover { color: var(--c1); }

/* ============================ 页脚 ============================ */
.footer { background: #333; margin-top: 14px; padding: 30px 0 0; color: #999; }
.footer-grid { display: flex; gap: 40px; padding-bottom: 26px; }
.footer-brand { flex: 0 0 260px; }
.footer-brand .logo-mark { background: var(--c1); margin-bottom: 10px; }
.footer-brand b { display: block; font-size: 18px; color: #fff; }
.footer-brand p { font-size: 12px; line-height: 1.9; margin-top: 8px; color: #999; }
.footer-col { flex: 1 1 0; }
.footer-col h3 { font-size: 14px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-col a, .footer-col span { display: block; font-size: 12px; color: #999; line-height: 2; }
.footer-col a:hover { color: var(--c1); }
.footer-col .tel { font-size: 20px; color: var(--c1); font-weight: 700; line-height: 1.5; }
.footer-meta { border-top: 1px solid #444; padding: 14px 0 18px; }
.footer-meta p { font-size: 12px; color: #777; line-height: 1.9; }

/* ============================ 移动端浮动条 ============================ */
.float-bar { display: none; }

/* ============================ 课程详情弹层 ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.on { display: flex; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.lb-panel {
  position: relative; width: 760px; max-width: 100%; max-height: 90vh; overflow: auto;
  background: #fff; display: flex;
}
.lb-fig { flex: 0 0 300px; background: #EEE; }
.lb-fig img { width: 100%; height: 100%; object-fit: cover; }
.lb-body { flex: 1 1 auto; padding: 22px 24px; min-width: 0; }
.lb-close {
  position: absolute; right: 0; top: 0; width: 34px; height: 34px; border: 0;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--c1); }
.lb-kicker { font-size: 12px; color: var(--c1); margin-bottom: 6px; }
.lb-body h3 { font-size: 20px; font-weight: 700; }
.lb-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lb-facts li { font-size: 12px; color: var(--ink2); background: var(--bg); border: 1px solid var(--line3); padding: 0 8px; line-height: 22px; }
.lb-desc { font-size: 13px; color: var(--ink2); line-height: 1.9; }
.lb-cta {
  display: inline-block; margin-top: 16px; background: var(--c1); color: #fff;
  font-size: 14px; padding: 0 22px; line-height: 38px;
}
.lb-cta:hover { background: var(--c1d); color: #fff; }

/* ============================ 返回顶部 ============================ */
.to-top {
  position: fixed; right: 24px; bottom: 80px; z-index: 90;
  width: 44px; height: 44px; border: 1px solid var(--line2); background: #fff;
  color: var(--ink2); font-size: 12px; cursor: pointer; display: none;
  line-height: 1.2; padding: 0;
}
.to-top.on { display: block; }
.to-top:hover { border-color: var(--c1); color: var(--c1); }

/* ============================ 响应式 ============================ */
@media (max-width: 1240px) {
  .wrap { width: 100%; padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 1000px) {
  .header .wrap { flex-wrap: wrap; gap: 14px; }
  .searchbox { order: 3; flex: 1 1 100%; max-width: none; }
  .header-tel { border-left: 0; padding-left: 0; text-align: left; margin-left: auto; }
  .hero-area { flex-direction: column; --hero-h: auto; }
  .cat-tree { flex: 1 1 auto; width: 100%; height: auto; }
  .cat-tree ul { display: flex; flex-direction: row; flex-wrap: wrap; }
  .cat-tree li { flex: 0 0 33.333%; }
  .cat-tree > ul > li > a { border-bottom: 0; padding: 8px 30px 8px 16px; }
  .cat-tree .sub { display: none; }
  .cat-tree .tree-foot { display: none; }
  .hero-right { flex-direction: column; }
  .slider { height: 340px; }
  .hero-tiles { flex: 0 0 auto; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; }
  .hero-tiles a { padding: 12px 6px; }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .fac-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: 1fr; }
  .result-row { flex-direction: column; }
  .result-nums { flex: 1 1 auto; }
  .campus-grid { grid-template-columns: repeat(2, 1fr); }
  .enroll-wrap { flex-direction: column; }
  .enroll-card { flex: 1 1 auto; }
  .nav a { padding: 0 16px; font-size: 15px; }
  .footer-grid { flex-wrap: wrap; gap: 26px; }
  .footer-brand { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  body { font-size: 13px; }
  .topbar { display: none; }
  .header { padding: 12px 0; }
  .logo-mark { width: 40px; height: 40px; font-size: 20px; line-height: 40px; }
  .logo-txt b { font-size: 19px; }
  .logo-txt small { font-size: 11px; }
  .header-tel b { font-size: 17px; }
  .header-tel span, .header-tel small { display: none; }
  .search-row { height: 38px; }
  .search-cat { width: 74px; font-size: 12px; }
  .search-btn { width: 68px; font-size: 14px; letter-spacing: 0; }
  .hotwords { display: none; }
  .nav .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav a { padding: 0 13px; font-size: 14px; white-space: nowrap; height: 40px; line-height: 40px; }
  .nav .nav-cta { padding: 0 16px; }
  .cat-tree ul { display: none; }
  .cat-tree > h2 { flex: 0 0 auto; height: 38px; line-height: 38px; font-size: 14px; }
  .slider { height: 200px; }
  .slide-txt { padding: 10px 14px 12px; }
  .slide-txt b { font-size: 16px; }
  .slide-txt p { font-size: 12px; }
  .hero-tiles { grid-template-columns: repeat(2, 1fr); }
  .stat-bar ul { flex-wrap: wrap; }
  .stat-bar li { flex: 0 0 50%; border-bottom: 1px solid var(--line3); }
  .stat-bar li:nth-child(2n) { border-right: 0; }
  .sec-head { padding: 0 14px; height: 44px; flex-wrap: nowrap; overflow: hidden; }
  .sec-head h2 { font-size: 16px; line-height: 44px; padding-left: 10px; white-space: nowrap; }
  .sec-head h2::before { top: 14px; height: 15px; width: 3px; }
  .sec-head .sub { display: none; }
  .sec-body { padding: 14px 14px 0; }
  .filter-bar { padding: 12px 14px 0; }
  .course-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .course-ph { height: 110px; }
  .course-body { padding: 9px 10px 11px; }
  .course-body h3 { font-size: 14px; }
  .course-desc { display: none; }
  .course-price b { font-size: 16px; }
  .course-go { font-size: 12px; padding: 0 7px; line-height: 22px; }
  .cal-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .cal-wrap::before {
    content: "← 左右滑动查看完整开班表 →";
    display: block; font-size: 12px; color: var(--ink3);
    padding: 0 0 8px; text-align: center;
  }
  .cal-table { min-width: 640px; }
  .cal-table th, .cal-table td { padding: 8px 6px; }
  .fac-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fac-card { padding: 12px 10px; }
  .fac-ava { width: 56px; height: 56px; line-height: 56px; font-size: 22px; }
  .fac-desc { height: auto; max-height: none; overflow: visible; }
  .campus-grid { grid-template-columns: 1fr; gap: 12px; }
  .campus-ph { height: 150px; }
  .enroll-card { flex: 1 1 auto; width: 100%; }
  .field-row { flex-direction: column; gap: 0; }
  .enroll-info h2 { font-size: 19px; }
  .lb-panel { flex-direction: column; }
  .lb-fig { flex: 0 0 180px; }
  .lb-body { padding: 16px; }
  .float-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    border-top: 1px solid var(--line); background: #fff;
  }
  .float-bar a {
    flex: 1 1 0; text-align: center; height: 48px; line-height: 48px; font-size: 15px;
  }
  .float-tel { background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
  .float-enroll { background: var(--c1); color: #fff; font-weight: 700; }
  .footer { padding-bottom: 48px; }
  .footer-grid { gap: 20px; }
  .footer-col { flex: 0 0 calc(50% - 10px); }
  .to-top { bottom: 64px; right: 12px; width: 40px; height: 40px; }
  .links { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
