/* 圆梦英才教育官网 - 简约大气风格 */
:root {
  --navy: #14213d;
  --navy-2: #1d2f57;
  --red: #c8102e;
  --red-dark: #a50d26;
  --gold: #d4a24c;
  --ink: #2b2f36;
  --muted: #6b7280;
  --line: #e7eaf0;
  --bg: #f7f8fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; color: var(--navy); letter-spacing: 1px; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a.nav-link {
  padding: 10px 18px; font-size: 15.5px; color: var(--ink);
  border-radius: 8px; transition: all 0.2s;
}
.main-nav a.nav-link:hover { color: var(--red); background: #fdf1f3; }
.main-nav a.nav-link.active { color: var(--red); font-weight: 600; }

.nav-user { position: relative; margin-left: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; transition: all 0.2s; font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: #f1f3f7; color: var(--navy); padding: 9px 20px; }
.btn-ghost:hover { background: #e5e9f1; }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 34px; font-size: 16.5px; }

.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); width: 170px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; display: none;
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button {
  display: block; width: 100%; text-align: left; padding: 10px 14px;
  border-radius: 8px; font-size: 14.5px; color: var(--ink); background: none; border: none; cursor: pointer; font-family: inherit;
}
.dropdown a:hover, .dropdown button:hover { background: #f5f6f9; color: var(--red); }
.avatar-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--navy); color: #fff; border-radius: 999px; cursor: pointer; font-size: 14.5px; border: none; font-family: inherit;
}
.avatar-chip .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ============ 首屏 ============ */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 23, 46, 0.92) 0%, rgba(20, 33, 61, 0.78) 45%, rgba(20, 33, 61, 0.35) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px;
  border: 1px solid rgba(212, 162, 76, 0.6); border-radius: 999px;
  color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.25; font-weight: 700; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.sub { margin-top: 22px; font-size: clamp(15px, 2vw, 19px); color: rgba(255, 255, 255, 0.85); max-width: 640px; }
.hero-actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--navy); }

/* ============ 数据亮点 ============ */
.stats-band { background: var(--navy); color: #fff; }
.stats-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; padding: 44px 0;
}
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); color: var(--gold); font-weight: 700; line-height: 1.1; }
.stat b sup { font-size: 0.5em; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.75); letter-spacing: 1px; }

/* ============ 通用区块 ============ */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker {
  color: var(--red); font-size: 14px; letter-spacing: 4px; font-weight: 600; text-transform: uppercase;
}
.section-head h2 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); letter-spacing: 1px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.head-rule { width: 46px; height: 3px; background: var(--red); margin: 18px auto 0; border-radius: 2px; }

/* 卡片 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }

.card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; transition: all 0.25s; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .card-media { aspect-ratio: 4 / 3; overflow: hidden; background: #eef1f5; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 24px 24px 26px; }
.card-tag {
  display: inline-block; font-size: 12.5px; color: var(--red); background: #fdf1f3;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; letter-spacing: 1px;
}
.card-body h3 { font-size: 19.5px; color: var(--navy); }
.card-body p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.card-body .more { display: inline-block; margin-top: 16px; color: var(--red); font-size: 14px; font-weight: 600; }

/* 服务编号卡 */
.svc-card { padding: 34px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all 0.25s; position: relative; overflow: hidden; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card .num { font-size: 46px; font-weight: 800; color: #eef1f6; position: absolute; top: 14px; right: 22px; line-height: 1; }
.svc-card:hover .num { color: #f6e8ea; }
.svc-card .icon { font-size: 34px; }
.svc-card h3 { margin-top: 16px; font-size: 20px; color: var(--navy); }
.svc-card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.svc-card ul { margin-top: 14px; }
.svc-card ul li { position: relative; padding-left: 20px; font-size: 14px; color: #4a5160; margin-bottom: 6px; }
.svc-card ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* 五步教学 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; position: relative; transition: all 0.25s; }
.step-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-item::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-weight: 700; font-size: 16px;
}
.step-item h4 { margin-top: 14px; font-size: 16.5px; color: var(--navy); }
.step-item p { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* 关于页 */
.about-lead { font-size: 17.5px; color: #3a4150; }
.about-lead strong { color: var(--red); }
.mission-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px 34px; }
.mission-card.gold { background: linear-gradient(135deg, #b57f2c, var(--gold)); color: #2b1d05; }
.mission-card h3 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.mission-card p { font-size: 15.5px; opacity: 0.92; }

.founder-box { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: center; }
.founder-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.founder-photo img { width: 100%; }
.founder-box h3 { font-size: 26px; color: var(--navy); }
.founder-box .title-line { color: var(--red); font-weight: 600; margin-top: 4px; }
.founder-box ul { margin-top: 18px; }
.founder-box ul li { position: relative; padding: 7px 0 7px 26px; color: #4a5160; font-size: 15px; border-bottom: 1px dashed var(--line); }
.founder-box ul li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); }

/* 时间轴 */
.timeline { position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 34px 64px; }
.tl-item::before {
  content: ""; position: absolute; left: 12px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 4px solid var(--red);
}
.tl-item .year { font-size: 21px; font-weight: 700; color: var(--navy); }
.tl-item h4 { display: inline-block; margin-left: 12px; font-size: 16.5px; color: var(--red); }
.tl-item p { margin-top: 8px; color: var(--muted); font-size: 14.5px; max-width: 720px; }

/* 师资 */
.teacher-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: all 0.25s; }
.teacher-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.teacher-card .ph { aspect-ratio: 3 / 3.6; overflow: hidden; background: #f0f2f6; }
.teacher-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.teacher-card .info { padding: 16px 14px 20px; }
.teacher-card .info h4 { font-size: 16.5px; color: var(--navy); }
.teacher-card .info .role { display: block; margin-top: 3px; font-size: 12.5px; color: var(--red); }
.teacher-card .info p { margin-top: 10px; font-size: 12.8px; color: var(--muted); text-align: left; }
.teacher-card.poster .ph { aspect-ratio: auto; background: none; }
.teacher-card.poster .ph img { height: auto; object-fit: contain; }

/* 成果横向滚动 */
.report-scroll { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.report-scroll::-webkit-scrollbar { height: 8px; }
.report-scroll::-webkit-scrollbar-thumb { background: #d4d9e3; border-radius: 4px; }
.report-item { flex: 0 0 auto; width: 280px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; scroll-snap-align: start; transition: all 0.25s; }
.report-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.report-item img { width: 100%; }
.report-item .cap { padding: 14px 16px; font-size: 14.5px; color: var(--navy); font-weight: 600; text-align: center; background: #fff; }

/* 表单 */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fbfcfe; transition: border 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field .err { display: none; color: var(--red); font-size: 12.5px; margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }

/* 联系页 */
.contact-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.way-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; transition: all 0.25s; }
.way-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.way-card .icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: #fdf1f3; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.way-card h4 { margin-top: 16px; font-size: 16px; color: var(--navy); }
.way-card p { margin-top: 8px; font-size: 15px; color: #4a5160; font-weight: 600; }
.way-card span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

.campus-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.campus-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.campus-tag { padding: 8px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: #3a4150; }
.campus-tag.flag { border-color: var(--red); color: var(--red); font-weight: 600; }

.my-leads { margin-top: 30px; }
.lead-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.lead-row .l-main { font-size: 14.5px; color: var(--ink); }
.lead-row .l-main b { color: var(--navy); }
.lead-row .l-meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; background: #e8f6ec; color: #1d7a3e; }
.badge.pending { background: #fdf3e3; color: #b57f2c; }
.link-danger { color: var(--red); font-size: 13px; background: none; border: none; cursor: pointer; font-family: inherit; }
.link-danger:hover { text-decoration: underline; }

/* CTA 条 */
.cta-band { background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 64px 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); }
.cta-band p { margin-top: 10px; color: rgba(255, 255, 255, 0.78); }
.cta-band .phone-big { font-size: clamp(24px, 3.4vw, 34px); color: var(--gold); font-weight: 700; }

/* 页脚 */
.site-footer { background: #0e1830; color: rgba(255, 255, 255, 0.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { font-size: 14px; line-height: 2; color: rgba(255, 255, 255, 0.65); display: block; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.45); }
.footer-phone { font-size: 22px; color: var(--gold); font-weight: 700; }
/* CTA 横幅二维码区（电话号码旁）：上 2 下 3 */
.cta-qr { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.cta-qr .qr-row { display: flex; gap: 16px; }
.cta-qr .qr-item { text-align: center; }
.cta-qr .qr-item img { width: 72px; height: 72px; object-fit: contain; background: #fff; padding: 5px; border-radius: 8px; display: block; margin: 0 auto; }
.cta-qr .qr-item span { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.65); }
.agree-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.7; cursor: pointer; justify-content: center; }
.agree-row input[type="checkbox"] { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--red); flex: none; cursor: pointer; }
.agree-row a { color: var(--red); text-decoration: underline; }
.agree-row.invalid { color: var(--red); }
dialog.privacy-dialog { border: none; border-radius: 14px; max-width: 560px; width: calc(100% - 40px); padding: 28px 26px; box-shadow: 0 24px 60px rgba(20, 33, 61, 0.35); }
dialog.privacy-dialog::backdrop { background: rgba(14, 24, 48, 0.55); }
dialog.privacy-dialog h3 { margin: 0 0 12px; color: var(--navy); font-size: 18px; }
dialog.privacy-dialog .policy-body { font-size: 13.5px; color: #3a4150; line-height: 1.9; max-height: 46vh; overflow: auto; }
dialog.privacy-dialog .policy-body p { margin: 6px 0; }
dialog.privacy-dialog .dialog-close { margin-top: 16px; width: 100%; }

/* 浮动咨询 */
.float-contact { position: fixed; right: 22px; bottom: 26px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer; box-shadow: 0 8px 22px rgba(20, 33, 61, 0.25); display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; transition: transform 0.2s; }
.float-btn:hover { transform: scale(1.08); }
.float-btn.call { background: var(--red); }
.float-btn.top { background: var(--navy); }

/* Toast */
.toast {
  position: fixed; left: 50%; top: 88px; transform: translateX(-50%) translateY(-16px);
  background: var(--navy); color: #fff; padding: 13px 26px; border-radius: 999px;
  font-size: 14.5px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: all 0.3s; z-index: 200; max-width: 86%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #1d7a3e; }
.toast.error { background: var(--red); }

/* 页面内页 banner */
.page-banner { position: relative; padding: 92px 0; color: #fff; overflow: hidden; }
.page-banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 23, 46, 0.9), rgba(20, 33, 61, 0.55)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner .crumb { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); letter-spacing: 2px; margin-bottom: 10px; }
.page-banner h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: 2px; }
.page-banner p { margin-top: 12px; color: rgba(255, 255, 255, 0.82); max-width: 620px; }

/* 对比表 */
.vs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.vs-table th, .vs-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.vs-table thead th { background: var(--navy); color: #fff; font-size: 15px; }
.vs-table td:first-child { font-weight: 600; color: var(--navy); width: 120px; }
.vs-table tr:last-child td { border-bottom: none; }
.vs-table .col-hl { background: #fdf6f7; }
.vs-table thead th.col-hl { background: var(--red); color: #fff; }

/* 全日制六步 */
.hex-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hex-item { text-align: center; padding: 26px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: all 0.25s; }
.hex-item:hover { border-color: var(--red); transform: translateY(-4px); }
.hex-item .zi { width: 56px; height: 56px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--gold); font-size: 21px; font-weight: 700; }
.hex-item h4 { margin-top: 14px; font-size: 15px; color: var(--navy); }
.hex-item p { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* 多师协同 */
.team-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center; transition: all 0.25s; }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.team-card .emoji { font-size: 30px; }
.team-card h4 { margin-top: 12px; font-size: 16px; color: var(--navy); }
.team-card p { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* 服务要点列表 */
.svc-list { margin-top: 6px; }
.svc-list li { padding: 9px 0 9px 4px; font-size: 15px; color: #3a4150; border-bottom: 1px dashed var(--line); }
.svc-list li:last-child { border-bottom: none; }

/* 校区环境画廊 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .g-item { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; }

/* 首页校区名卡片 */
.campus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.campus-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(20, 33, 61, 0.05);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
.campus-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--gold));
  opacity: 0;
  transition: opacity 0.25s;
}
.campus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(200, 16, 46, 0.25); }
.campus-card:hover::before { opacity: 1; }
.campus-no {
  font-size: 26px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--gold);
  letter-spacing: 1px;
  flex: none;
}
.campus-name { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.campus-tag {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  color: var(--red);
  background: rgba(200, 16, 46, 0.07);
  border: 1px solid rgba(200, 16, 46, 0.18);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery .g-item:hover img { transform: scale(1.06); }
.gallery .g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(13, 23, 46, 0.75)); color: #fff; font-size: 14px;
}

/* 响应式 */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .grid-3, .grid-4, .gallery, .campus-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hex-grid { grid-template-columns: repeat(3, 1fr); }
  .team-flow { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .founder-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; top: 72px; right: 0; width: min(300px, 80vw); height: calc(100vh - 72px);
    background: #fff; flex-direction: column; align-items: stretch; padding: 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08); transform: translateX(100%); transition: transform 0.3s;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .contact-ways { grid-template-columns: 1fr; }
}

/* ============ 新闻动态板块 ============ */
.news-home { background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%); }
.grid-3.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  padding: 0 0 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(19, 41, 75, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(19, 41, 75, 0.12); }
.news-cover { aspect-ratio: 16/9; overflow: hidden; background: #eef2f7; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-cover-lg { aspect-ratio: 21/9; border-radius: 14px; margin-bottom: 18px; }
.news-meta { display: flex; align-items: center; gap: 12px; padding: 16px 22px 0; font-size: 13px; color: var(--muted, #6b7280); }
.news-cat {
  background: rgba(200, 16, 46, 0.08);
  color: var(--red, #c8102e);
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
}
.news-card h3, .news-detail-item h2 { padding: 10px 22px 0; color: var(--navy, #13294b); font-size: 18px; line-height: 1.5; }
.news-card p { padding: 8px 22px 0; color: #4b5563; font-size: 14px; line-height: 1.8; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { display: inline-block; padding: 12px 22px 0; color: var(--red, #c8102e); font-weight: 700; font-size: 14px; }
.news-empty { grid-column: 1 / -1; text-align: center; color: var(--muted, #6b7280); padding: 40px 0; }
.news-back { display: inline-block; margin-bottom: 18px; color: var(--red, #c8102e); font-weight: 600; text-decoration: none; }
.news-detail-item { background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 16px; padding: 30px 32px; box-shadow: 0 8px 22px rgba(19, 41, 75, 0.05); }
.news-detail-item p { color: #4b5563; font-size: 15px; line-height: 1.8; }
.news-body { margin-top: 16px; color: #2b3340; font-size: 15.5px; line-height: 1.95; white-space: pre-wrap; }

/* ============ 内容发布后台（publish.html） ============ */
.publish-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 70px; }
.publish-wrap h1 { color: var(--navy, #13294b); font-size: 26px; border-left: 5px solid var(--gold, #c9a24b); padding-left: 14px; }
.publish-card { background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 16px; padding: 26px; margin-top: 22px; box-shadow: 0 8px 22px rgba(19, 41, 75, 0.05); }
.publish-card h3 { margin: 0 0 16px; color: var(--navy, #13294b); font-size: 17px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: #2b3340; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; font-size: 15px; font-family: inherit;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.pub-msg { min-height: 20px; font-size: 14px; margin-top: 10px; }
.pub-msg.err { color: var(--red, #c8102e); }
.pub-msg.ok { color: #1d7a3e; }
.pub-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pub-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.pub-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; background: #fbfcfe; }
.pub-item .pi-title { font-weight: 600; color: var(--navy, #13294b); }
.pub-item .pi-date { font-size: 12.5px; color: var(--muted, #6b7280); margin-left: 8px; }
.pub-item .pi-btns { display: flex; gap: 8px; flex: none; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; border: 1px solid var(--line, #e5e7eb); background: #fff; cursor: pointer; text-decoration: none; color: #2b3340; }
.btn-sm.primary { background: var(--red, #c8102e); color: #fff; border-color: var(--red, #c8102e); }
.btn-sm.danger { background: #fff; color: var(--red, #c8102e); border-color: var(--red, #c8102e); }
.pub-login input { margin-bottom: 12px; }
.pub-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted, #6b7280); margin-bottom: 6px; }
.pub-user b { color: var(--navy, #13294b); }

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .gallery, .campus-grid, .steps, .hex-grid, .team-flow { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 26px 20px; }
  .auth-card { padding: 32px 22px; }
  .brand-text { display: none; }
}
