/* ==========================================================
   帧知教育官网样式
   设计基调：深蓝（信任/科技）+ 橙红 CTA（转化）+ 浅灰分区
   ========================================================== */

:root {
  --blue-900: #0a2472;
  --blue-800: #10318c;
  --blue-700: #1a4fd0;
  --blue-600: #2563eb;
  --blue-100: #dbe7ff;
  --blue-50: #eef4ff;
  --orange: #f05a28;
  --orange-dark: #d84a1c;
  --ink: #1b2437;
  --ink-2: #45506b;
  --ink-3: #7a869e;
  --line: #e4e9f2;
  --bg: #f5f7fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(16, 49, 140, .06), 0 4px 14px rgba(16, 49, 140, .05);
  --shadow-md: 0 6px 24px rgba(16, 49, 140, .10);
  --shadow-lg: 0 16px 44px rgba(10, 36, 114, .16);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 24px; border-radius: 10px; border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  font-family: var(--font);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff; box-shadow: 0 6px 18px rgba(240, 90, 40, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(240, 90, 40, .4); }
.btn-ghost {
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- 顶部通栏 ---------- */
.topbar { background: var(--blue-900); color: rgba(255, 255, 255, .88); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-left b { color: #ffd9a8; font-weight: 600; }
.topbar-sep { opacity: .4; }
.tag-listed {
  background: linear-gradient(135deg, #ffb84d, var(--orange)); color: #fff;
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px;
}
.topbar-phone { display: inline-flex; align-items: center; gap: 6px; color: #ffd9a8; font-weight: 600; }
.topbar-phone svg { width: 15px; height: 15px; }
.topbar-phone:hover { color: #fff; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 19px; font-weight: 800; color: var(--blue-900); letter-spacing: 1px; }
.brand-slogan { font-size: 9px; color: var(--ink-3); letter-spacing: 2.5px; font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.nav-link {
  font-size: 15px; color: var(--ink-2); font-weight: 500; padding: 8px 12px;
  border-radius: 8px; white-space: nowrap; position: relative; transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-link.active { color: var(--blue-700); font-weight: 600; }
.nav-link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--orange);
}
.header-cta { flex-shrink: 0; padding: 10px 20px; font-size: 14px; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--blue-900); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #071a4e 0%, #0a2472 45%, #10318c 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-1 { width: 420px; height: 420px; background: #2563eb; top: -120px; right: 8%; }
.orb-2 { width: 320px; height: 320px; background: #f05a28; bottom: -140px; left: -80px; opacity: .28; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center; padding: 84px 0 96px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  padding: 8px 16px; border-radius: 99px; margin-bottom: 24px; color: #dbe7ff;
}
.hero-badge svg { width: 16px; height: 16px; color: #ffc48a; }
.hero-title {
  font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.22;
  letter-spacing: 1px; margin-bottom: 22px;
}
.text-highlight {
  background: linear-gradient(135deg, #ffb84d, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { font-size: 16.5px; color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 16px 14px; text-align: center;
}
.stat-num { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.2; }
.stat-plus { font-size: 14px; font-weight: 600; color: #ffc48a; margin-left: 2px; }
.stat-label { font-size: 12.5px; color: rgba(255, 255, 255, .65); margin-top: 4px; }

/* Hero 视觉卡片 */
.hero-visual { position: relative; height: 420px; }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .96); border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--shadow-lg); color: var(--ink); width: 260px;
  animation: floaty 5s ease-in-out infinite;
}
.hero-card-1 { top: 24px; left: 4%; animation-delay: 0s; }
.hero-card-2 { top: 152px; right: 2%; animation-delay: 1.6s; }
.hero-card-3 { bottom: 34px; left: 10%; animation-delay: 3.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-card-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-card-icon svg { width: 24px; height: 24px; }
.icon-aigc { background: #fff2e8; color: #f05a28; }
.icon-vfx { background: #e8efff; color: #1a4fd0; }
.icon-code { background: #e6f7f2; color: #0a9d78; }
.hero-card-title { font-size: 15.5px; font-weight: 700; }
.hero-card-desc { font-size: 12.5px; color: var(--ink-3); }
.hero-float-badge {
  position: absolute; top: 8px; right: 0; display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #12b76a, #0a9d78); color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 99px; box-shadow: 0 10px 26px rgba(10, 157, 120, .35);
  animation: floaty 4.4s ease-in-out infinite 0.8s;
}
.hero-float-badge svg { width: 16px; height: 16px; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-gray { background: var(--bg); }
.section-dark { background: linear-gradient(160deg, #071a4e, #0a2472); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
  color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 4px 14px; border-radius: 99px; margin-bottom: 16px;
}
.section-dark .section-tag, .section-head-light .section-tag { color: #ffc48a; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.35; margin-bottom: 14px; }
.section-desc { color: var(--ink-2); font-size: 16px; }
.section-dark .section-desc, .section-head-light .section-desc { color: rgba(255,255,255,.78); }

/* ---------- 课程体系 ---------- */
.course-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--font); font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 9px 22px; cursor: pointer; transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--blue-600); color: var(--blue-700); }
.filter-btn.active { background: var(--blue-700); border-color: var(--blue-700); color: #fff; box-shadow: 0 4px 14px rgba(26, 79, 208, .3); }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.course-card.hide { display: none; }
.course-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.course-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.course-icon svg { width: 26px; height: 26px; }
.icon-drama { background: #fdeef4; color: #d6337f; }
.icon-cloud { background: #e8f2ff; color: #1a4fd0; }
.icon-security { background: #fff2e8; color: #f05a28; }
.icon-ai { background: #f0ebff; color: #6d3fd6; }
.icon-db { background: #e6f7f2; color: #0a9d78; }
.course-tag {
  font-size: 12px; font-weight: 600; color: var(--orange);
  background: #fff2e8; padding: 3px 10px; border-radius: 99px;
}
.course-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.course-desc { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.course-points { margin-bottom: 18px; flex: 1; }
.course-points li {
  font-size: 13.5px; color: var(--ink-2); padding-left: 20px; position: relative; margin-bottom: 7px;
}
.course-points li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue-50);
  box-shadow: inset 0 0 0 2px var(--blue-600);
}
.course-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px dashed var(--line); padding-top: 14px; font-size: 12.5px; color: var(--ink-3);
}
.course-meta span { background: var(--bg); padding: 3px 10px; border-radius: 6px; }
.course-link { margin-left: auto; color: var(--blue-700); font-weight: 600; font-size: 13.5px; }
.course-link:hover { color: var(--orange); }

/* ---------- 核心优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.adv-card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); transition: transform .22s ease, box-shadow .22s ease;
}
.adv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.adv-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #fff;
}
.adv-icon svg { width: 26px; height: 26px; }
.adv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--ink-2); }

/* ---------- 学习流程 ---------- */
.process-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.process-flow::before {
  content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--blue-100), var(--orange), var(--blue-100)); z-index: 0;
}
.process-step {
  position: relative; z-index: 1; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-num {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--blue-100);
}
.process-step:nth-child(6) .process-num { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); box-shadow: 0 0 0 6px #fff, 0 0 0 8px #ffe3d6; }
.process-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 12.8px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 师资教研 ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.faculty-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.faculty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.faculty-avatar {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 1px;
}
.avatar-aigc { background: linear-gradient(135deg, #ff9a5a, #f05a28); }
.avatar-vfx { background: linear-gradient(135deg, #4d7cf3, #1a4fd0); }
.avatar-cloud { background: linear-gradient(135deg, #2fbf9b, #0a9d78); }
.avatar-dev { background: linear-gradient(135deg, #8d63e8, #6d3fd6); }
.faculty-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 4px; }
.faculty-role { font-size: 13px; color: var(--blue-700); font-weight: 600; margin-bottom: 10px; }
.faculty-card > p:not(.faculty-role) { font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.faculty-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.faculty-tags span { font-size: 12px; color: var(--ink-2); background: var(--bg); padding: 3px 12px; border-radius: 99px; }
.faculty-note { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 26px; }

/* ---------- 就业成果 ---------- */
.career-layout { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.career-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
}
.career-commit { background: linear-gradient(160deg, var(--blue-800), var(--blue-900)); color: #fff; border: 0; }
.career-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.career-title svg { width: 22px; height: 22px; color: var(--blue-700); }
.career-commit .career-title svg { color: #ffc48a; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 13.5px; color: var(--ink-2); background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: 8px; padding: 6px 14px;
  transition: all .16s ease;
}
.chip:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
.commit-list li {
  position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 14.5px;
  color: rgba(255, 255, 255, .88);
}
.commit-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: rgba(255, 194, 138, .2);
  box-shadow: inset 0 0 0 2px #ffc48a;
}

/* ---------- 关于 ---------- */
.about-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.about-lead { font-size: 17.5px; font-weight: 600; color: var(--blue-900); margin-bottom: 16px; line-height: 1.8; }
.about-text p { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.about-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.about-badge {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 10px; text-align: center;
}
.about-badge b { display: block; font-size: 16.5px; color: var(--blue-700); }
.about-badge span { font-size: 12px; color: var(--ink-3); }

/* 总部大楼横幅 */
.campus-banner {
  position: relative; margin-top: 46px; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.campus-banner img { width: 100%; height: auto; display: block; }
.campus-caption {
  position: absolute; left: 20px; bottom: 18px;
  background: rgba(10, 36, 114, .72); color: #fff; font-size: 14px; font-weight: 500;
  padding: 8px 18px; border-radius: 99px; backdrop-filter: blur(4px); letter-spacing: .5px;
}
@media (max-width: 680px) {
  .campus-banner { margin-top: 30px; border-radius: 12px; }
  .campus-caption { left: 12px; bottom: 12px; font-size: 12.5px; padding: 6px 14px; }
}
.about-timeline { position: relative; padding-left: 30px; }
.about-timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--blue-700), var(--orange));
}
.tl-item { position: relative; padding: 0 0 30px 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -29px; top: 7px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--blue-100), inset 0 0 0 3px var(--blue-700);
}
.tl-item:last-child::before { box-shadow: 0 0 0 3px #ffe3d6, inset 0 0 0 3px var(--orange); }
.tl-year { font-size: 16px; font-weight: 700; color: var(--blue-900); margin-bottom: 4px; }
.tl-item:last-child .tl-year { color: var(--orange); }
.tl-body { font-size: 14px; color: var(--ink-2); }

/* ---------- 联系 / 报名 ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #ffc48a;
}
.contact-icon svg { width: 23px; height: 23px; }
.contact-label { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 2px; }
.contact-value { font-size: 19px; font-weight: 700; color: #fff; display: block; }
.contact-addr { font-size: 15.5px; line-height: 1.6; font-weight: 600; }
.contact-note { font-size: 13px; color: rgba(255, 255, 255, .6); }
.qr-image { margin-top: 10px; width: 190px; height: auto; border-radius: 10px; display: block; background: #fff; }
.signup-form {
  background: #fff; border-radius: 18px; padding: 34px 32px; color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.form-title { font-size: 21px; font-weight: 800; margin-bottom: 22px; color: var(--blue-900); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-row label i { color: var(--orange); font-style: normal; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  background: #fbfcfe; transition: border-color .16s ease, box-shadow .16s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); background: #fff;
}
.form-row input.error, .form-row select.error { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .1); }
.form-row textarea { resize: vertical; }
.form-tip { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; text-align: center; }
.form-success {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  background: #e9f9f1; border: 1px solid #a9e6c8; color: #0a7a4a;
  border-radius: 12px; padding: 14px 16px; font-size: 14px;
}
.form-success svg { width: 26px; height: 26px; flex-shrink: 0; }
.form-success b { display: block; font-size: 15px; }
.form-success span { font-size: 13px; color: #3d8f66; }
.form-error {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  background: #fdeeee; border: 1px solid #f3c2c2; color: #b42318;
  border-radius: 12px; padding: 14px 16px; font-size: 14px;
}
.form-error svg { width: 26px; height: 26px; flex-shrink: 0; }
.form-error b { display: block; font-size: 15px; }
.form-error span { font-size: 13px; color: #d17a6c; }

/* ---------- 页脚 ---------- */
.footer { background: #061437; color: rgba(255, 255, 255, .72); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 40px; }
.footer-logo-card { display: inline-block; background: #fff; padding: 9px 16px; border-radius: 10px; margin-bottom: 16px; }
.footer-logo-card img { height: 36px; width: auto; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; }
.footer-col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; margin-bottom: 10px; color: rgba(255, 255, 255, .65); transition: color .15s ease; }
.footer-col a:hover { color: #ffc48a; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0 26px; font-size: 13px; }
.footer-bottom a { color: rgba(255, 255, 255, .75); }
.footer-bottom a:hover { color: #ffc48a; }
.footer-ps { color: rgba(255, 255, 255, .4); font-size: 12px; margin-top: 6px; }

/* ---------- 浮动操作条 ---------- */
.floatbar {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 54px; height: 54px; border-radius: 14px; border: 0; cursor: pointer;
  background: #fff; color: var(--blue-800); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--font); font-size: 11px; font-weight: 600;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.float-btn svg { width: 20px; height: 20px; }
.float-btn:hover { transform: translateY(-3px); background: var(--blue-800); color: #fff; }
.float-btn:last-child { opacity: 0; pointer-events: none; transform: translateY(8px); transition: all .25s ease; }
.float-btn:last-child.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: repeat(3, 1fr); }
  .process-flow::before { display: none; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .career-layout { grid-template-columns: 1fr 1fr; }
  .career-commit { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav {
    position: fixed; top: 66px; left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 4%; max-height: 0; overflow: hidden; transition: max-height .3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav.open { max-height: 420px; padding: 10px 4%; }
  .nav-link { padding: 13px 12px; border-bottom: 1px solid var(--line); }
  .nav-link:last-child { border-bottom: 0; }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 70px; gap: 40px; }
  .hero-visual { height: 340px; max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-card { width: 235px; }
  .about-layout { grid-template-columns: 1fr; gap: 34px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .topbar-left span:not(.tag-listed):not(:first-of-type) { display: none; }
  .topbar-sep { display: none; }
  .section { padding: 58px 0; }
  .course-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr 1fr; }
  .faculty-grid { grid-template-columns: 1fr; }
  .career-layout { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .about-badges { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .signup-form { padding: 26px 20px; }
  .floatbar { right: 12px; bottom: 12px; }
  .float-btn { width: 48px; height: 48px; }
}
