/* ============================================================
   圆梦教育 · 港澳台侨联考辅导官网（重设计版）
   现代橙蓝渐变 · 专业教育风 · 响应式
   配色：深蓝主色 + 橙色强调 + 浅灰背景
   ============================================================ */

:root {
  --navy: #0a1a4f;
  --blue: #1450c8;
  --blue-2: #2e7df6;
  --blue-soft: #eaf1ff;
  --accent: #ff6a1a;
  --accent-2: #ffb020;
  --ink: #1f2a44;
  --muted: #6b7689;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e7ecf5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(16, 38, 96, 0.10);
  --shadow-sm: 0 6px 18px rgba(16, 38, 96, 0.08);
  --maxw: 1200px;
  --grad-brand: linear-gradient(135deg, #0a1a4f 0%, #1450c8 55%, #2e7df6 100%);
  --grad-accent: linear-gradient(135deg, #ff6a1a 0%, #ffb020 100%);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 26, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 106, 26, .45); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #06123a; transform: translateY(-2px); }

/* ---------- 区块标题 ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 52px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block; color: var(--accent); font-weight: 700; letter-spacing: 2px;
  font-size: 13px; text-transform: uppercase; margin-bottom: 12px;
}
.section-head h2 {
  font-size: 34px; line-height: 1.25; color: var(--navy); font-weight: 800; letter-spacing: .5px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }
.lead-accent { color: var(--accent); }
.divider-line { width: 64px; height: 4px; background: var(--grad-accent); border-radius: 4px; margin: 16px auto 0; }

/* ---------- 导航 ---------- */
.nav-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(16,38,96,.05);
  transition: .3s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 92px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo .logo-img { display: block; height: 60px; width: auto; max-width: 200px; object-fit: contain; }
@media (max-width: 560px) { .logo .logo-img { height: 46px; } }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li > a {
  display: block; padding: 12px 17px; font-size: 16px; font-weight: 600; color: var(--ink);
  border-radius: 10px; transition: .2s; position: relative;
}
.nav-menu > li > a:hover { color: var(--blue); background: var(--blue-soft); }
.nav-menu > li.active > a { color: var(--blue); font-weight: 800; background: transparent; }
.nav-menu > li.active > a::after {
  content: ""; position: absolute; left: 17px; right: 17px; bottom: 4px; height: 3px;
  border-radius: 3px; background: var(--grad-accent);
}
.nav-cta { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
/* 咨询卡片：图标 + 标签 + 两位老师号码 */
.phone-card {
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px;
  background: linear-gradient(120deg, #f2f7ff, #e9f1ff);
  border: 1px solid rgba(20,80,200,.10); border-radius: 14px;
}
.phone-card .pc-icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px;
  background: var(--grad-accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 5px 12px rgba(255,106,26,.28);
}
.phone-card .pc-icon svg { width: 19px; height: 19px; }
.phone-card .pc-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.phone-card .pc-nums { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.phone-card .pc-nums span { color: var(--accent); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nav-consult { padding: 13px 22px; font-size: 15px; display: inline-flex; align-items: center; gap: 9px; }
.nav-consult .btn-arrow { font-size: 17px; line-height: 1; transition: transform .2s; }
.nav-consult:hover .btn-arrow { transform: translateX(3px); }
@media (max-width: 1180px) {
  .nav-inner { gap: 12px; }
  .nav-menu > li > a { padding: 10px 11px; font-size: 14px; }
  .phone-card { padding: 7px 11px 7px 8px; gap: 8px; }
  .phone-card .pc-icon { width: 32px; height: 32px; border-radius: 9px; }
  .phone-card .pc-icon svg { width: 16px; height: 16px; }
  .phone-card .pc-nums span { font-size: 12.5px; }
  .nav-cta { gap: 12px; }
  .nav-consult { padding: 11px 16px; font-size: 14px; }
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  border: none; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--grad-brand);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255,106,26,.35), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(46,125,246,.45), transparent 60%);
}
.hero.has-banner { background: transparent; }
.hero.has-banner::before { display: none; }
.hero-bg { position: absolute; inset: 0; z-index: 0; display: none;
  background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-bg.has-img { display: block; }
/* 横幅遮罩：轻压暗保留画面明快，左侧仅保证白字可读；叠加暖橙光晕呼应品牌色 */
.hero-bg.has-img::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,20,58,.88) 0%, rgba(6,20,58,.76) 20%, rgba(6,20,58,.58) 36%, rgba(6,20,58,.22) 62%, rgba(6,20,58,.05) 100%),
    linear-gradient(0deg, rgba(6,20,58,.34) 0%, transparent 42%),
    radial-gradient(760px 440px at 86% 8%, rgba(255,138,40,.24), transparent 72%); }
/* 白字文字区加柔和暗衬，保证在人群背景上依然清晰（不影响右侧画面亮度） */
.hero.has-banner .hero-text { position: relative; z-index: 0; }
.hero.has-banner .hero-text::before { content: ""; position: absolute; z-index: -1;
  left: -40px; right: -20px; top: -26px; bottom: -26px;
  background: radial-gradient(ellipse at 28% 42%, rgba(5,16,48,.52), rgba(5,16,48,.18) 62%, transparent 78%);
  pointer-events: none; }
/* 底部用轻微暗化收尾，保持图片完整、不出现硬切白带 */
.hero.has-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(0deg, rgba(6,20,58,.22), transparent); z-index: 1; pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  align-items: center; padding: 78px 20px 88px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(255,176,32,.3); }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: 1px; }
.hero h1 .hl { color: var(--accent-2); }
.hero p.sub { margin-top: 18px; font-size: 18px; color: #d6e0fb; max-width: 540px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .s { }
.hero-stats .s b { font-size: 30px; font-weight: 800; color: #fff; display: block; }
.hero-stats .s span { font-size: 13px; color: #b9c7ec; }

/* 倒计时卡 */
.count-card {
  background: linear-gradient(145deg, rgba(24,52,104,.55), rgba(8,20,56,.48));
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 22px; padding: 30px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(4,12,38,.30), inset 0 1px 0 rgba(255,255,255,.22);
}
.count-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.count-card .target { color: var(--accent-2); font-weight: 700; font-size: 15px; }
.countdown { display: flex; gap: 12px; margin-top: 18px; }
.countdown .cd-box {
  flex: 1; background: rgba(255,255,255,.14); border-radius: 14px; text-align: center;
  padding: 16px 8px;
}
.countdown .cd-box b { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.countdown .cd-box span { font-size: 12px; color: #cdd8f3; }
.count-note { margin-top: 16px; font-size: 12px; color: #aebde6; }

/* ---------- 快捷入口条 ---------- */
.quick-bar { background: #fff; border-bottom: 1px solid var(--line); }
.quick-bar .container { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; justify-content: center; }
.quick-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--bg); color: var(--ink); font-weight: 600; font-size: 14px; transition: .2s;
}
.quick-pill:hover { background: var(--blue-soft); color: var(--blue); }
.quick-pill .qi { color: var(--accent); font-weight: 800; }

/* ---------- 卡片网格通用 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 优势 12 宫格：主题图标 + 渐变顶线 + 精致排版 */
.adv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; transition: .3s cubic-bezier(.2,.7,.3,1);
  position: relative; overflow: hidden; min-height: 218px;
}
.adv-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-accent); transform: scaleX(0); transform-origin: left; transition: .3s;
}
.adv-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(20,80,200,.07), transparent 70%);
  opacity: 0; transition: .3s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(16,38,96,.14); border-color: rgba(20,80,200,.18); }
.adv-card:hover::before { transform: scaleX(1); }
.adv-card:hover::after { opacity: 1; }
.adv-card .ico {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, #eef4ff, #e2ecff);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(20,80,200,.08);
  transition: .3s;
}
.adv-card .ico svg { width: 28px; height: 28px; }
.adv-card .ico .ico-fallback { font-size: 26px; line-height: 1; }
.adv-card:hover .ico { background: var(--grad-brand); color: #fff; transform: scale(1.06); box-shadow: 0 8px 20px rgba(20,80,200,.28); }
.adv-card h4 { font-size: 18px; color: var(--navy); font-weight: 800; margin-bottom: 10px; letter-spacing: .3px; }
.adv-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; position: relative; z-index: 1; }
.adv-card .num { position: absolute; right: 20px; top: 20px; font-size: 30px; font-weight: 800;
  color: #e6ecf8; letter-spacing: -1px; transition: .3s; }
.adv-card:hover .num { color: rgba(255,106,26,.28); }
.adv-card .adv-arrow { position: absolute; right: 22px; bottom: 18px; font-size: 18px; color: #d5def0;
  transition: .3s; }
.adv-card:hover .adv-arrow { color: var(--accent); transform: translate(3px,-3px); }

/* 课程卡片 */
.course-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: .25s;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-thumb {
  height: 178px; position: relative; display: grid; place-items: center; color: #fff;
  background: var(--grad-brand);
}
.course-thumb .tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.course-thumb.has-img { background-size: cover; background-position: center; }
.course-thumb.has-img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,20,58,.42), rgba(6,20,58,0) 55%); }
.course-thumb.has-img .tag { z-index: 1; }
.course-thumb .cico { font-size: 46px; }
.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 20px; color: var(--navy); font-weight: 800; }
.course-body .desc { color: var(--muted); font-size: 14px; margin: 10px 0 14px; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.course-meta span { font-size: 12px; background: var(--bg); color: var(--ink); padding: 5px 10px; border-radius: 8px; }

/* 联考知识 6 项 */
.know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.know-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: .25s;
}
.know-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.know-card .kstep {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad-accent); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.know-card h4 { color: var(--navy); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.know-card p { color: var(--muted); font-size: 14px; }

/* 数据条 */
.stats-band { background: var(--grad-brand); color: #fff; border-radius: 24px; padding: 44px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; position: relative; overflow: hidden; }
.stats-band::after { content:""; position:absolute; right:-60px; top:-60px; width:240px; height:240px; border-radius:50%; background: rgba(255,106,26,.25); }
.stats-band .st b { font-size: 42px; font-weight: 800; display: block; }
.stats-band .st span { color: #cdd8f3; font-size: 14px; }

/* 资讯列表 */
.news-list { display: grid; gap: 14px; }
.news-item {
  display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; transition: .2s;
}
.news-item:hover { box-shadow: var(--shadow-sm); border-color: var(--blue-2); }
.news-item .date {
  flex: none; width: 64px; text-align: center; border-right: 1px solid var(--line); padding-right: 12px;
}
.news-item .date b { font-size: 22px; color: var(--blue); display: block; font-weight: 800; }
.news-item .date span { font-size: 12px; color: var(--muted); }
.news-item .txt { flex: 1; }
.news-item .txt h4 { font-size: 15px; font-weight: 600; color: var(--ink); }
.news-item .txt .cat { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.news-item .arrow { color: var(--muted); font-size: 18px; }

/* 校园风采 占位网格 */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .ph {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); position: relative; overflow: hidden;
  background: linear-gradient(135deg, #c9d6f5, #e7eefc); display: grid; place-items: center;
  color: #5b6b93; font-size: 13px; font-weight: 600; border: 1px dashed #b9c7ec;
}
.gallery .ph::before { content: "📷"; font-size: 26px; display: block; margin-bottom: 6px; }
.gallery .ph.has-img { border: none; background: none; }
.gallery .ph.has-img::before { content: none; }
.gallery .ph .cap { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(10,26,79,.72);
  color: #fff; font-size: 12px; padding: 6px 10px; }

/* 报名表单 */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-card h3 { color: var(--navy); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.form-card .fh-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: var(--font); color: var(--ink); background: #fbfcff; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-2); background: #fff; box-shadow: 0 0 0 4px rgba(46,125,246,.12);
}
.field textarea { min-height: 96px; resize: vertical; }
.radio-row { display: flex; flex-wrap: nowrap; gap: 28px; align-items: center; margin-top: 6px; }
.radio-row label { font-weight: 500; margin: 0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.radio-row input[type="radio"] { width: 16px; height: 16px; padding: 0; margin: 0; accent-color: var(--blue-2); flex: none; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

.side-info { background: var(--grad-brand); color: #fff; border-radius: var(--radius); padding: 30px; }
.side-info h3 { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.side-info .info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.side-info .info-row:last-child { border-bottom: none; }
.side-info .info-row .ic { color: var(--accent-2); font-size: 18px; }
.side-info .info-row b { display: block; font-size: 14px; color: #cdd8f3; font-weight: 600; }
.side-info .info-row span { font-size: 15px; }

/* 联系页地图：腾讯地图嵌入（裁剪掉侧栏/顶部，只留纯地图） */
.map-embed { height: 380px; border-radius: var(--radius); overflow: hidden; background: #eef3fc;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.map-embed iframe { position: absolute; left: -290px; top: -122px;
  width: calc(100% + 290px); height: calc(100% + 122px); border: 0; display: block; }
.map-caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }
@media (max-width: 760px) {
  .map-embed { height: 320px; }
  .map-embed iframe { left: -290px; }
}

/* 关于页 */
.about-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.about-intro .ph { aspect-ratio: 16/10; border-radius: var(--radius); background: linear-gradient(135deg,#0a1a4f,#2e7df6);
  display: grid; place-items: center; color: #fff; font-size: 15px; border: 1px dashed rgba(255,255,255,.3); }
.about-intro h2 { font-size: 30px; color: var(--navy); font-weight: 800; line-height: 1.3; }
.about-intro p { color: var(--muted); margin-top: 16px; }

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; position: relative; }
.step .n { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: var(--grad-brand);
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; }
.step h4 { color: var(--navy); font-size: 16px; font-weight: 700; }
.step p { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* FAQ / 报考对象 */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list span { background: var(--blue-soft); color: var(--blue); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; }
.pill-list span:hover { filter: brightness(.97); }
.pill-list span.active { background: var(--grad-accent); color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy); color: #c3cff0; margin-top: 20px; }
.footer .container { padding: 56px 20px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer .f-logo { display: flex; align-items: center; margin-bottom: 18px; }
.footer .f-logo .f-logo-img { display: block; height: 70px; width: auto; max-width: 220px; object-fit: contain; }
.footer h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover { color: #fff; }
.footer .contact-line { font-size: 14px; margin-bottom: 8px; }
.footer .contact-line b { color: #fff; }
.footer .links-row a { color: #9fb0db; font-size: 13px; margin-right: 8px; }
.footer .links-row a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #93a3cf; }
.footer-bottom a { color: #93a3cf; }
.footer-bottom a:hover { color: #fff; }

/* 浮动咨询 */
.float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-cta a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-size: 22px; box-shadow: var(--shadow); transition: .2s; }
.float-cta a:hover { transform: scale(1.08); }
.float-cta .fc-phone { background: var(--accent); }
.float-cta .fc-top { background: var(--navy); font-size: 18px; }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* 提示条 */
.toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%) translateY(-80px);
  background: var(--navy); color: #fff; padding: 14px 24px; border-radius: 12px; box-shadow: var(--shadow);
  z-index: 200; opacity: 0; transition: .4s; font-size: 15px; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .count-card { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .know-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 15px; }
  .hero h1 { font-size: 32px; }
  .hero p.sub { font-size: 16px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .countdown .cd-box b { font-size: 28px; }
  .nav-menu { position: fixed; top: 104px; left: 12px; right: 12px; background: #fff; border-radius: 16px;
    box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 12px; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s;
    max-height: calc(100vh - 124px); overflow-y: auto; }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu > li > a { padding: 12px 16px; }
  .nav-cta .phone-card { display: none; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2, .know-grid, .about-intro, .form-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
}
/* 窄屏导航压缩：保证logo/按钮/汉堡在375~560px均完整显示 */
@media (max-width: 560px) {
  .nav-inner { gap: 8px; }
  .logo { gap: 8px; }
  .logo .logo-img { height: 44px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 9px 12px; font-size: 13px; }
  .nav-toggle { width: 38px; height: 38px; }
}
/* 超小屏（手机竖屏）精细适配 */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 14px; }
  .hero .container { padding: 54px 14px 60px; }
  .hero h1 { font-size: 25px; line-height: 1.32; overflow-wrap: anywhere; word-break: break-word; }
  .hero p.sub { font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; }
  .hero-text { min-width: 0; }
  .hero-actions { flex-direction: column !important; display: flex !important; gap: 12px !important; }
  .hero-actions .btn { width: 100% !important; box-sizing: border-box; }
  .hero-stats { gap: 16px; }
  .hero-stats .s b { font-size: 24px; }
  .count-card { padding: 22px 18px; }
  .countdown .cd-box { padding: 12px 4px; }
  .countdown .cd-box b { font-size: 24px; }
  .countdown .cd-box span { font-size: 11px; }
  .nav-inner { height: 60px; }
  .nav-menu { top: 70px; }
  .grid { gap: 16px; }
  .adv-card, .know-card, .form-card, .side-info { padding: 20px 18px; }
  .adv-card h4, .know-card h4 { font-size: 16px; }
  .stats-band { padding: 28px 14px; gap: 14px; }
  .stats-band .st b { font-size: 30px; }
  .news-item { padding: 12px 12px; gap: 12px; }
  .news-item .date { width: 52px; padding-right: 10px; }
  .news-item .txt h4 { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .quick-bar .container { gap: 7px; padding: 12px 14px; }
  .quick-pill { font-size: 13px; padding: 7px 12px; }
  .field input, .field textarea, .field select { padding: 11px 12px; font-size: 16px; }
  .btn { padding: 12px 22px; }
  .footer .container { padding: 44px 14px 20px; }
  .footer-bottom { font-size: 12px; }
  .float-cta { right: 14px; bottom: 14px; }
  .float-cta a { width: 48px; height: 48px; font-size: 20px; }
}

/* ========== 内页 Banner（实拍图 + 渐变遮罩） ========== */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.page-hero-bg { position: absolute; inset: 0;
  background-image: var(--page-bg); background-size: cover; background-position: center 42%;
}
.page-hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,20,58,.82), rgba(6,20,58,.48) 55%, rgba(6,20,58,.28)),
    linear-gradient(0deg, rgba(6,20,58,.36), transparent 55%),
    radial-gradient(600px 300px at 88% 0%, rgba(255,130,30,.20), transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; text-align: center; padding: 76px 20px 82px; }
.page-hero .hero-badge { margin-bottom: 18px; background: rgba(255,255,255,.14); }
.page-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 1px; line-height: 1.3; }
.page-hero p { color: #dbe6ff; margin-top: 12px; font-size: 17px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
@media (max-width: 760px) {
  .page-hero-inner { padding: 54px 16px 58px; }
  .page-hero h1 { font-size: 29px; }
  .page-hero p { font-size: 14px; }
}

/* ========== 图库：有图时铺满、悬停放大 ========== */
.gallery .ph.has-img { background: var(--navy); border: none; display: block; }
.gallery .ph.has-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease; }
.gallery .ph.has-img:hover img { transform: scale(1.06); }
.gallery .ph.has-img .cap { z-index: 1; }

/* ========== 报名 CTA：校园背景卡片式 ========== */
.cta-section { position: relative; overflow: hidden; background: var(--navy); padding: 0; }
.cta-section .cta-bg { position: absolute; inset: 0;
  background: url('../assets/banner/cta-students.jpg?v=20261124d') center 42% / cover no-repeat;
}
.cta-section .cta-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,20,58,.86), rgba(10,40,110,.72) 50%, rgba(6,20,58,.62)),
              linear-gradient(0deg, rgba(6,20,58,.45), transparent 60%);
}
.cta-card { position: relative; z-index: 1; text-align: center; color: #fff; padding: 68px 24px 72px; }
.cta-card .cta-tag { display: inline-block; font-size: 12px; letter-spacing: 2px; font-weight: 700;
  color: #ffb26b; border: 1px solid rgba(255,178,107,.45); border-radius: 999px;
  padding: 5px 14px; margin-bottom: 18px; }
.cta-card h2 { color: #fff; font-size: 32px; font-weight: 800; margin: 0; line-height: 1.35; }
.cta-card p { color: #d6e0fb; margin: 14px 0 28px; font-size: 17px; }
.cta-card .btn { font-size: 16px; padding: 16px 40px; box-shadow: 0 10px 30px rgba(255,106,26,.4); }
@media (max-width: 760px) {
  .cta-card { padding: 48px 16px 52px; }
  .cta-card h2 { font-size: 24px; }
  .cta-card p { font-size: 14px; }
}
