/* ===== 大眼面点坊 · 全局样式 ===== */
:root {
  --red: #e60012;
  --red-deep: #b0000e;
  --red-soft: #ff4d5e;
  --gold: #c9a24b;
  --gold-light: #e6c878;
  --cream: #fbf6ee;
  --cream-2: #f3e9d8;
  --ink: #2a211c;
  --muted: #6b5d52;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(42, 33, 28, 0.10);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

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

/* 无障碍：跳转链接 & 焦点样式 */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--cream-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; height: 56px; }
.brand-mark img { height: 100%; width: auto; object-fit: contain; display: block; }
.brand-text { font-weight: 800; font-size: 1.15rem; display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-weight: 500; font-size: .72rem; color: var(--muted); }

.nav-menu { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-menu a {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  white-space: nowrap;        /* 防止窄屏时中文链接逐字换行竖排 */
  flex-shrink: 0;             /* 不被压缩；放不下时整项换行而非压成竖排 */
}
.nav-menu a:hover { color: var(--red); text-decoration: none; }
.nav-cta {
  background: var(--red); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--red-deep); }

.nav-external {
  color: var(--muted) !important;
  font-size: .9rem;
}
.nav-external:hover { color: var(--red) !important; }

.nav-club {
  background: var(--gold); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
  font-size: .95rem;        /* 与 .nav-cta 对齐字号 */
  font-weight: 600;         /* 与 .nav-cta 对齐字重 */
  line-height: 1.2;
  white-space: nowrap;       /* 禁止文字换行 */
  flex-shrink: 0;            /* 右侧不被压缩 */
  text-align: center;
}
.nav-club:hover { background: #b0822b; }
.nav-club span { margin-left: 4px; }

@media (max-width: 860px) {
  .nav-club { padding: 7px 12px; font-size: .9rem; }
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { background: transparent; color: var(--red); border-color: var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }

/* ===== 首屏 ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201,162,75,.18), transparent 60%),
    linear-gradient(160deg, #fff 0%, var(--cream) 60%, var(--cream-2) 100%);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--cream-2);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--red); font-weight: 700; letter-spacing: .04em; margin: 0 0 12px; font-size: .9rem; }
.eyebrow.center { text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 14px; }
.hero h1 strong { color: var(--red); }
.hero-sub { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.hero-desc { color: var(--muted); font-size: 1.05rem; max-width: 32em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-phone { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; background: var(--cream-2); border: 1px solid var(--gold-light); padding: 11px 20px; border-radius: 999px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.hero-phone svg { width: 18px; height: 18px; flex: 0 0 18px; fill: var(--red); }
.hero-phone a { font-weight: 800; color: var(--red); font-size: 1.18rem; letter-spacing: .4px; white-space: nowrap; }
.hero-phone a:hover { color: var(--red-deep); text-decoration: none; }
.hero-art { display: flex; justify-content: center; margin: 0; }
.hero-art img { max-width: 420px; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== 数据条 ===== */
.stats { background: var(--red); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 26px 20px; text-align: center; }
.stat strong { display: block; font-size: 2rem; line-height: 1; }
.stat strong span { font-size: 1rem; margin-left: 2px; }
.stat span:last-child { font-size: .85rem; opacity: .9; }

/* ===== 通用区块 ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-2); }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.section-title.center { text-align: center; margin-bottom: 32px; }

/* 核心教学承诺（已移至「谁来教」之后，独立白底 section） */
.promise { background: #fff; border-bottom: 1px solid var(--cream-2); }
.promise .section-title { margin-bottom: 28px; }
.promise-list { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; display: grid; gap: 14px; }
.promise-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--cream); border: 1px solid var(--cream-2);
  border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow);
}
.promise-cond { flex: 1 1 auto; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.promise-arrow { color: var(--red); font-size: 1.5rem; font-weight: 800; flex: 0 0 auto; line-height: 1; }
.promise-result { flex: 1 1 auto; font-weight: 800; color: var(--red-deep); text-align: right; font-size: 1.05rem; }
.promise-bottom {
  margin: 22px auto 0; max-width: 880px;
  background: var(--red); color: #fff;
  text-align: center; font-weight: 800; font-size: 1.15rem;
  padding: 16px 22px; border-radius: var(--radius);
}
.promise-bottom strong { color: var(--gold-light); }


/* 品牌 */
.timeline { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; }
.timeline li { display: flex; gap: 18px; align-items: baseline; background: #fff; border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 10px; box-shadow: var(--shadow); }
.timeline .year { font-weight: 800; color: var(--red); font-size: 1.2rem; min-width: 56px; }
.genes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.gene { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.gene h3 { font-size: 2rem; color: var(--gold); margin: 0 0 6px; }
.brand-note { background: var(--red); color: #fff; padding: 22px 26px; border-radius: var(--radius); font-size: 1.05rem; }
.brand-note strong { color: var(--gold-light); }

/* 照片占位（替换为真实图片后删除 .photo-placeholder 文字） */
.photo-placeholder {
  margin: 28px 0 0; aspect-ratio: 1200 / 520; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #efe2cc, #efe2cc 18px, #e7d6ba 18px, #e7d6ba 36px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); border: 2px dashed var(--gold);
}
.photo-placeholder span { background: rgba(255,255,255,.7); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.photo-placeholder small { font-weight: 500; }

/* 真实照片样式 */
.site-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.site-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-photo { aspect-ratio: 1200 / 520; margin-top: 28px; }
.env-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(111,18,18,.82); color: #fff;
  padding: 10px 14px; font-weight: 700; text-align: center;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 课程 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.card { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); border-top: 5px solid var(--red); display: flex; flex-direction: column; }
.card h3 { font-size: 1.3rem; margin: 0 0 14px; }
.card .meta { list-style: none; padding: 0; margin: 0 0 14px; display: flex; gap: 24px; flex-wrap: wrap; }
.card .meta li { font-weight: 700; }
.card .meta span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.card-desc { color: var(--muted); margin: 0 0 16px; }
.card-tag { background: var(--cream-2); color: var(--red-deep); font-weight: 700; padding: 8px 12px; border-radius: 8px; display: inline-block; font-size: .9rem; margin-top: auto; align-self: flex-start; }
.card.is-star { border-top-color: var(--red-deep); box-shadow: 0 16px 40px rgba(230, 0, 18, 0.20); }
.star-badge { position: absolute; top: -13px; right: 18px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 2px; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 10px rgba(230,0,18,.25); }
.certs { max-width: 820px; margin: 24px auto 0; }
.cert { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: 24px 30px; box-shadow: var(--shadow); }
.cert h3 { color: var(--red); margin: 0; flex: 0 0 auto; font-size: 1.25rem; padding-right: 22px; border-right: 2px solid var(--cream-2); }
.cert p { margin: 0; flex: 1 1 360px; color: var(--muted); }

/* 师资 */
.faculty-intro { background: #fff; border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); margin-bottom: 26px; }
.faculty-intro p { margin: 0 0 8px; }
.faculty-intro .standard { background: var(--cream-2); padding: 12px 14px; border-radius: 8px; margin: 0; }
.faculty-grid { list-style: none; padding: 4px 4px 16px; margin: 0; display: flex; gap: 16px; align-items: stretch; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.faculty-grid::-webkit-scrollbar { height: 8px; }
.faculty-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
.faculty-grid::-webkit-scrollbar-track { background: var(--cream-2); border-radius: 999px; }
.teacher { flex: 0 0 248px; min-height: 104px; scroll-snap-align: start; display: flex; align-items: flex-start; gap: 14px; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.teacher > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.teacher.lead { border: 2px solid var(--gold); }
.teacher .avatar { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.teacher .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teacher strong { display: block; }
.teacher small { color: var(--muted); font-size: .82rem; line-height: 1.5; white-space: pre-line; }
.teacher-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.teacher-head strong { display: inline; }
.tag { font-size: .66rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.6; white-space: nowrap; letter-spacing: .5px; }
.tag-academy { background: rgba(230, 0, 18, 0.10); color: var(--red); }
.tag-expert { background: rgba(201, 162, 75, 0.18); color: #a87f1f; }
.tag-special { background: var(--ink); color: #fff; }

/* 环境 */
.env-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.env-item { margin: 0; aspect-ratio: 4 / 3; }
.env-bottom { text-align: center; font-weight: 700; margin: 28px 0 16px; }
.rule-banner { background: var(--red); color: #fff; text-align: center; font-weight: 800; font-size: 1.15rem; padding: 16px; border-radius: var(--radius); }

/* 权威证书 */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: stretch; }
.cert-item { margin: 0; display: flex; flex-direction: column; }
.cert-frame { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--cream-2); display: flex; align-items: center; justify-content: center; height: 340px; }
.cert-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; border-radius: 8px; }
.cert-item figcaption { margin-top: 14px; text-align: center; }
.cert-item figcaption strong { display: block; color: var(--red); font-size: 1.15rem; margin-bottom: 4px; }
.cert-item figcaption span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* 出路 */
.batch { text-align: center; font-size: 1.1rem; margin-bottom: 26px; }
.batch strong { color: var(--red); }
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.path { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: relative; }
.path-no { color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.path h3 { margin: 6px 0 8px; color: var(--red); }

/* 招生费用 */
.fee { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 36px; }
.fee-col { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.fee-col h3 { color: var(--red); }
.fee-col ul { margin: 0; padding-left: 20px; }
.fee-col li { margin: 6px 0; }
.fee-note { margin-top: 14px; font-weight: 700; color: var(--muted); }
.block-title { text-align: center; font-size: 1.4rem; margin: 0 0 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; font-weight: 600; }
.steps li span { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 20px; }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--red); font-size: 1.4rem; font-weight: 800; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 16px; color: var(--muted); margin: 0; }

/* 薪资报告 CTA */
.report-cta-inner {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--red);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.report-cta-copy { flex: 1 1 320px; }
.report-cta-copy h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 0 0 10px; }
.report-cta-copy h2 strong { color: var(--red); }
.report-cta-copy p { margin: 0; color: var(--muted); max-width: 44em; }
.report-cta .btn-large { padding: 15px 34px; font-size: 1.05rem; }

/* 联系 */
.contact { background: linear-gradient(160deg, var(--cream-2), var(--cream)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-info h3 { color: var(--red); }
.contact-info p { color: var(--ink); }
.qr-placeholder { margin: 18px 0; aspect-ratio: 1 / 1; max-width: 200px; border-radius: 12px; background: repeating-linear-gradient(45deg, #efe2cc, #efe2cc 14px, #e7d6ba 14px, #e7d6ba 28px); border: 2px dashed var(--gold); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .85rem; }
.qr-code { margin: 18px 0; max-width: 180px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.qr-code img { width: 100%; height: auto; display: block; }
.contact-note { font-size: .9rem; color: var(--muted); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form h3 { color: var(--red); }
.contact-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.contact-form input, .contact-form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--cream-2);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: var(--cream);
}
.contact-form input:focus, .contact-form select:focus { border-color: var(--red); outline: none; background: #fff; }
.contact-form .btn { width: 100%; margin-top: 18px; }
.form-hint { font-weight: 700; min-height: 1.4em; margin: 12px 0 0; }
.form-hint.ok { color: #1d7a3a; }
.form-hint.err { color: var(--red); }
.form-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }

/* 页脚 */
.site-footer { background: var(--ink); color: #f3e9d8; padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-brand { font-weight: 800; font-size: 1.2rem; margin: 0; color: #fff; display: flex; align-items: center; gap: 10px; }
.footer-logo { height: 36px; width: auto; display: block; }
.footer-sub { margin: 0; font-size: .85rem; color: #c9bca8; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: #f3e9d8; font-weight: 600; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy { width: 100%; margin: 8px 0 0; font-size: .8rem; color: #b7a890; border-top: 1px solid #403730; padding-top: 16px; }

/* ===== 响应式：平板端（481px ~ 1024px）===== */
@media (max-width: 1024px) and (min-width: 481px) {
  .nav { flex-wrap: wrap; height: auto; gap: 10px; padding: 10px 0; }
  .nav-menu { flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; margin-left: 0; }
  .nav-menu a { font-size: .9rem; }
  .nav-club { margin-left: auto; }

  .hero { padding: 40px 0 50px; }
  .hero-inner { gap: 28px; }
  .hero-art img { max-width: 320px; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .genes { grid-template-columns: repeat(2, 1fr); }

  /* 师资卡片：平板端改为网格自动换行，避免横向滚动被截断 */
  .faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow-x: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  .teacher { flex: auto; min-height: auto; scroll-snap-align: none; }

  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-frame { height: auto; }
}

/* ===== 响应式：手机端 ===== */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-club { margin-left: auto; }
  .nav-menu {
    position: absolute; top: 68px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--cream-2);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-menu.open { max-height: 460px; }
  .nav-menu a { padding: 14px 20px; border-top: 1px solid var(--cream-2); }
  .nav-cta { margin: 10px 20px; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 280px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .promise-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .promise-arrow { transform: rotate(90deg); }
  .promise-result { text-align: left; }
  .line { flex-direction: column; align-items: flex-start; gap: 6px; }
  .line-desc { margin-left: 0; text-align: left; }
  .genes, .cards, .certs, .fee, .contact-grid, .env-grid, .cert-grid { grid-template-columns: 1fr; }
  .teacher { flex-basis: 220px; }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .timeline li { flex-direction: column; gap: 4px; }
  .report-cta-inner { flex-direction: column; text-align: center; padding: 28px 24px; }
  .report-cta-copy { text-align: center; }
  .cert { padding: 20px 22px; }
  .cert h3 { border-right: 0; padding-right: 0; }
  .cert-frame { height: auto; }
}

@media (max-width: 480px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .teacher { flex-basis: 190px; }
  .path-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

/* 尊重「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 移动端视口高度修正 */
.nav-menu { min-height: 0; }

/* ===== 预约表单滑块验证 ===== */
.captcha-slider { margin: 4px 0 2px; }
.captcha-track {
  position: relative;
  height: 44px;
  background: #f1f3f5;
  border: 1px solid var(--border, #e2e2e2);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}
.captcha-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  width: 0; background: linear-gradient(90deg, #ff9bb3, #FF1B6D);
  border-radius: 8px 0 0 8px;
}
.captcha-text {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #888; pointer-events: none;
}
.captcha-knob {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px;
  background: #fff; border: 1px solid var(--border, #e2e2e2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #FF1B6D; cursor: grab; z-index: 2;
}
.captcha-knob:active { cursor: grabbing; }
.captcha-track.done .captcha-knob { background: #FF1B6D; color: #fff; cursor: default; }
.captcha-track.done .captcha-text { color: #fff; }
