/* ============================================================
   英本升学导航 · 全局样式
   ============================================================ */
:root {
  --primary: #1a3a6b;
  --primary-light: #2a5298;
  --accent: #c9a227;
  --accent-light: #f5e6b8;
  --bg: #f6f7f9;
  --card-bg: #ffffff;
  --text: #2c3440;
  --text-light: #6b7280;
  --border: #e3e6ea;
  --success: #2e7d32;
  --danger: #c62828;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(26, 58, 107, 0.08);
  --shadow-hover: 0 6px 22px rgba(26, 58, 107, 0.16);
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15.5px;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 顶部导航（毛玻璃现代风格） ---------- */
.topbar {
  background: rgba(16, 34, 64, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(8, 20, 42, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--primary);
  font-weight: 800;
}
.nav-menu { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 14.5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.nav-menu a.active { background: var(--accent); color: var(--primary); font-weight: 600; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 10px;
  }
  .nav-menu.open { display: flex; }
}

/* ---------- 页面容器 ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 30px 20px 60px; }

.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 30px; color: var(--primary); margin-bottom: 8px; }
.page-header .subtitle { color: var(--text-light); font-size: 15px; max-width: 860px; }

.breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-light); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(16, 34, 64, 0.05), 0 4px 16px rgba(16, 34, 64, 0.06);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s;
}
.card.hoverable:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(26, 58, 107, 0.18); }
.card h3 { color: var(--primary); font-size: 18px; margin-bottom: 8px; }
.card h3 a { color: inherit; }
.card .en-name { color: var(--text-light); font-size: 13px; font-weight: normal; }

.card .tags { margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  background: #eef2f8;
  color: var(--primary);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid #d5deeb;
}
.tag.gold { background: var(--accent-light); border-color: var(--accent); color: #7a5f10; }
.tag.green { background: #e6f2e7; border-color: #a5d3ab; color: var(--success); }
.tag.red { background: #fdecea; border-color: #f2b8b5; color: var(--danger); }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--primary) 0%, #24487e 60%, #2a5298 100%);
  color: #fff;
  border-radius: 20px;
  padding: 72px 52px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
/* 照片版 Hero（首页）：校园实景 + 渐变遮罩 */
.hero.hero-photo {
  background:
    linear-gradient(100deg, rgba(13, 28, 55, 0.92) 8%, rgba(26, 58, 107, 0.78) 45%, rgba(26, 58, 107, 0.35) 100%),
    var(--hero-img) center/cover no-repeat;
  box-shadow: 0 18px 50px rgba(10, 24, 50, 0.35);
}
.hero::after {
  content: "🎓";
  position: absolute;
  right: 40px; bottom: -20px;
  font-size: 160px;
  opacity: 0.12;
}
.hero-photo::after { opacity: 0.18; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.hero h1 {
  font-size: 42px;
  margin-bottom: 14px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fff 30%, var(--accent-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 16.5px; max-width: 720px; opacity: 0.94; }
.hero .cta-row { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.22s;
}
.btn-gold { background: linear-gradient(135deg, #e8c553, var(--accent)); color: #14294d; box-shadow: 0 4px 16px rgba(201, 162, 39, 0.4); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 162, 39, 0.5); text-decoration: none; }
.btn-outline { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); text-decoration: none; }

.section-title {
  font-size: 24px;
  color: var(--primary);
  margin: 40px 0 18px;
  padding-left: 14px;
  border-left: 5px solid var(--accent);
  line-height: 1.3;
}
.section-title small { display: block; font-size: 13px; color: var(--text-light); font-weight: normal; margin-top: 4px; }

/* ---------- 模块入口卡 ---------- */
.module-card { text-align: left; position: relative; }
.module-card .icon { font-size: 30px; margin-bottom: 10px; }
.module-card p { color: var(--text-light); font-size: 13.5px; margin-top: 6px; }
.module-card .go { margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- 详情区块 ---------- */
.detail-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.detail-block h2 {
  color: var(--primary);
  font-size: 21px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
}
.detail-block h3 { color: var(--primary); font-size: 17px; margin: 18px 0 8px; }
.detail-block p { margin-bottom: 10px; }
.detail-block ul, .detail-block ol { margin: 8px 0 12px 22px; }
.detail-block li { margin-bottom: 6px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 8px; border: 1px solid var(--border); }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13.5px;
  min-width: 560px;
}
table.data-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
table.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
table.data-table tr:nth-child(even) td { background: #f8fafc; }
table.data-table tr:hover td { background: #eef4fb; }
table.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 徽章/排名 ---------- */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  background: var(--primary); color: #fff;
  border-radius: 6px; font-size: 12.5px; font-weight: 700;
}

/* ---------- 链接清单 ---------- */
.link-list { list-style: none; }
.link-list li { margin-bottom: 8px; }
.link-list a::before { content: "🔗 "; }

/* ---------- 交叉跳转条 ---------- */
.cross-links {
  background: linear-gradient(90deg, #fff8e1, #fffdf5);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
}
.cross-links strong { color: #7a5f10; }
.cross-links a { margin-right: 12px; white-space: nowrap; }

/* ---------- 测评 ---------- */
.quiz-progress {
  height: 8px; background: #e5e7eb; border-radius: 6px; overflow: hidden; margin-bottom: 24px;
}
.quiz-progress .bar { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--accent)); width: 0; transition: width 0.3s; }
.quiz-question { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 18px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
  background: #fff; border: 2px solid var(--border); border-radius: 10px;
  padding: 15px 18px; cursor: pointer; font-size: 15px; transition: all 0.15s; text-align: left;
}
.quiz-option:hover { border-color: var(--primary-light); background: #f2f6fc; }
.quiz-option.selected { border-color: var(--accent); background: var(--accent-light); }
.result-dim-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.result-dim-bar .label { width: 96px; font-size: 13.5px; }
.result-dim-bar .track { flex: 1; height: 14px; background: #eceff3; border-radius: 8px; overflow: hidden; }
.result-dim-bar .fill { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--accent)); }

/* ---------- 时间轴 ---------- */
.timeline { position: relative; margin: 20px 0 20px 10px; padding-left: 26px; border-left: 3px solid var(--accent-light); }
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-item::before {
  content: "";
  position: absolute; left: -34px; top: 4px;
  width: 13px; height: 13px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item h4 { color: var(--primary); font-size: 16px; margin-bottom: 4px; }

/* ---------- 提示框 ---------- */
.note {
  background: #eaf3fb; border-left: 4px solid var(--primary-light);
  padding: 13px 18px; border-radius: 0 8px 8px 0; margin: 14px 0; font-size: 14px;
}
.note.warn { background: #fff8e1; border-color: var(--accent); }
.note.danger { background: #fdecea; border-color: var(--danger); }

/* ---------- 筛选器 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; align-items: center; }
.filter-bar .chip {
  padding: 6px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: #fff; cursor: pointer; font-size: 13.5px; transition: all 0.15s;
}
.filter-bar .chip:hover { border-color: var(--primary-light); }
.filter-bar .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-bar input[type="search"] {
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 20px;
  font-size: 14px; min-width: 220px; outline: none;
}
.filter-bar input[type="search"]:focus { border-color: var(--primary-light); }

/* ---------- 手风琴 ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.accordion-head {
  padding: 14px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--primary);
}
.accordion-head:hover { background: #f4f7fb; }
.accordion-head .arrow { transition: transform 0.2s; color: var(--text-light); }
.accordion-item.open .accordion-head .arrow { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 18px 16px; }
.accordion-item.open .accordion-body { display: block; }

/* ---------- 页脚 ---------- */
.footer {
  background: #12264a; color: rgba(255, 255, 255, 0.75);
  padding: 36px 20px 26px; margin-top: 40px; font-size: 13.5px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 22px; }
@media (max-width: 720px) { .footer .cols { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer a { color: rgba(255, 255, 255, 0.75); display: block; margin-bottom: 6px; }
.footer a:hover { color: var(--accent); }
.footer .disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 16px; font-size: 12.5px; opacity: 0.7; }

/* ---------- 工具 ---------- */
.text-muted { color: var(--text-light); font-size: 13px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hidden { display: none !important; }
.anchor-offset { scroll-margin-top: 80px; }

/* ============================================================
   现代化视觉升级 · 校园照片与动效
   ============================================================ */

/* 学校详情页头图 */
.uni-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 6px 0 26px;
  box-shadow: 0 16px 44px rgba(10, 24, 50, 0.25);
  animation: fadeUp 0.6s ease both;
}
.uni-hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}
.uni-hero:hover img { transform: scale(1.04); }
.uni-hero .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 24px 14px;
  background: linear-gradient(transparent, rgba(8, 18, 38, 0.85));
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}
.uni-hero .cap small { opacity: 0.7; }
@media (max-width: 720px) { .uni-hero img { height: 220px; } }

/* 学校卡片缩略图 */
.uni-thumb {
  margin: -22px -22px 14px;
  height: 160px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  position: relative;
}
.uni-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.card.hoverable:hover .uni-thumb img { transform: scale(1.07); }
.uni-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,34,64,0.05), rgba(16,34,64,0.28));
}

/* 章节标题现代化 */
.section-title {
  letter-spacing: 0.5px;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* 详情区块圆角与阴影升级 */
.detail-block { border-radius: 16px; }

/* 入场动效 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-header, .detail-block, .section-title { animation: fadeUp 0.55s ease both; }
.grid .card { animation: fadeUp 0.55s ease both; }
.grid .card:nth-child(2) { animation-delay: 0.06s; }
.grid .card:nth-child(3) { animation-delay: 0.12s; }
.grid .card:nth-child(4) { animation-delay: 0.18s; }
.grid .card:nth-child(5) { animation-delay: 0.24s; }
.grid .card:nth-child(6) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 手风琴与标签圆角细化 */
.accordion-item { border-radius: 12px; }
.tag { border-radius: 999px; }

/* 图片懒加载占位底色 */
.uni-thumb img, .uni-hero img { background: #dfe6ef; }

/* 子页面照片头图横幅 */
.page-banner {
  position: relative;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
  margin: 4px 0 26px;
  box-shadow: 0 12px 34px rgba(10, 24, 50, 0.22);
  animation: fadeUp 0.6s ease both;
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13, 28, 55, 0.78) 10%, rgba(26, 58, 107, 0.45) 60%, rgba(26, 58, 107, 0.15));
}
.page-banner .banner-title {
  position: absolute; left: 30px; bottom: 22px; z-index: 2;
  color: #fff; font-size: 27px; font-weight: 800; letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.page-banner .banner-sub {
  position: absolute; left: 30px; bottom: 0; z-index: 2;
  color: rgba(255, 255, 255, 0.85); font-size: 13px;
  transform: translateY(100%); padding-bottom: 6px;
}
@media (max-width: 720px) { .page-banner { height: 130px; } .page-banner .banner-title { font-size: 21px; left: 18px; bottom: 16px; } }
