/* ===== 变量与重置 ===== */
:root {
  --red-primary: #C8102E;
  --red-dark: #A00D24;
  --red-light: #E8384F;
  --white: #FFFFFF;
  --bg-light: #F7F7F7;
  --bg-section: #FAFAFA;
  --border: #EEEEEE;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: all 0.3s ease;
  /* 全站宽度策略：流式 + 左右各 20px 留白，超大屏设上限并居中 */
  --container-max: 1680px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ===== 顶部信息条 ===== */
.top-bar {
  background: #222;
  color: #bbb;
  font-size: 12px;
  height: 36px;
  display: flex;
  align-items: center;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.top-bar a { color: #bbb; margin-left: 16px; }
.top-bar a:hover { color: var(--red-light); }
.top-bar .date { color: #999; }

/* ===== 头部 ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.logo-text span { color: var(--red-primary); }

/* 导航 */
.nav {
  display: flex;
  flex: 1;
  align-items: center;
  /* 两端与项目间隙均等：Logo、首末导航项、搜索框之间都有可见留白 */
  justify-content: space-evenly;
  margin: 0;
  white-space: nowrap;
}
.nav a {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: transparent;
  border-radius: 1px;
}
.nav a.active,
.nav a:hover {
  color: var(--red-primary);
  background: transparent;
}
.nav a.active::after,
.nav a:hover::after {
  background: var(--red-primary);
}

/* 搜索按钮（图标） */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
}
.search-toggle:hover {
  border-color: var(--red-primary);
  background: rgba(200,16,46,0.06);
  color: var(--red-primary);
}
.search-toggle svg {
  width: 17px;
  height: 17px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.search-toggle:hover svg { color: var(--red-primary); }

/* 搜索弹窗 */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.search-overlay-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.search-overlay-box {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -20px);
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  transition: transform 0.35s ease;
}
.search-overlay.open .search-overlay-box {
  transform: translate(-50%, 0);
}
.search-overlay-inner {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 32px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.search-overlay-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}
.search-overlay-form {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  transition: var(--transition);
}
.search-overlay-form:focus-within {
  border-color: var(--red-primary);
}
.search-overlay-form svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-overlay-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 12px;
  font-size: 16px;
  background: transparent;
  color: var(--text-primary);
}
.search-overlay-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-overlay-close:hover {
  background: #F5F5F5;
  color: var(--red-primary);
}
.search-overlay-close svg {
  width: 18px;
  height: 18px;
}
.search-hot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.search-hot-label {
  font-size: 12px;
  color: var(--text-muted);
}
.search-hot a {
  font-size: 13px;
  color: var(--text-secondary);
  background: #F5F5F5;
  padding: 5px 14px;
  border-radius: 14px;
  transition: var(--transition);
}
.search-hot a:hover {
  background: var(--red-primary);
  color: white;
}
.btn-login {
  background: var(--red-primary);
  color: white;
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.btn-login:hover {
  background: var(--red-dark);
  color: white;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ===== 焦点轮播 ===== */
.hero {
  position: relative;
  background: #111;
  overflow: hidden;
  height: 480px;
}
/* 没有「首页大图」文章时整块隐藏（脚本未执行时的兜底） */
.hero:not(:has(.hero-slide)) { display: none; }
.hero-slides {
  height: 100%;
  position: relative;
}
.hero-slide {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
/* 首屏常驻，避免脚本未执行/图片未加载时轮播空白 */
.hero-slide:first-child { opacity: 1; }
.hero-slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* 文章封面多为截图/海报，模糊后当作底色纹理，避免与标题文字打架 */
  filter: blur(10px);
  transform: scale(1.1);
}
/* 无大图时用站点 Logo 占位，不显示破图 */
.hero-slide-bg.no-img {
  background: #1a1a1a;
  filter: none;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-ph {
  width: auto;
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
  opacity: 0.55;
  filter: blur(1px);
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.88) 100%);
}
.hero-slide-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
}
.hero-slide-content .container {
  position: relative;
}
.hero-tag {
  display: inline-block;
  background: var(--red-primary);
  color: white;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 18px;
  border-radius: 2px;
}
.hero-title {
  color: white;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 800px;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  max-width: 680px;
  margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: flex;
  gap: 20px;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dots span {
  width: 28px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.hero-dots span.active {
  background: var(--red-primary);
  width: 40px;
}

/* ===== 分类快捷栏 ===== */
.category-bar {
  background: var(--white);
  border-bottom: 2px solid var(--red-primary);
}
.category-bar .container {
  display: flex;
  justify-content: space-evenly;
  gap: 0;
  overflow-x: auto;
}
.category-bar .container::-webkit-scrollbar { display: none; }
.category-bar a {
  padding: 16px 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
}
/* 当前栏目：居中 18×2 短下划线，与顶部导航一致 */
.category-bar a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 15px;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: transparent;
  border-radius: 1px;
}
.category-bar a:hover,
.category-bar a.active {
  color: var(--red-primary);
}
.category-bar a:hover::after,
.category-bar a.active::after {
  background: var(--red-primary);
}
.category-bar a .count {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ===== 主内容区 ===== */
.main {
  padding: 40px 0;
  background: var(--bg-light);
}
.main .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

/* 板块标题 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text-primary);
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--red-primary);
  border-radius: 2px;
}
.section-more {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { color: var(--red-primary); }

/* ===== 要闻区 ===== */
.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  transition: var(--transition);
}
.featured-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.featured-card .card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.featured-card:hover .card-img { transform: scale(1.06); }
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.featured-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px;
}
.featured-tag {
  display: inline-block;
  background: var(--red-primary);
  color: white;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.featured-title {
  color: white;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  display: flex;
  gap: 14px;
}

/* ===== 资讯列表 ===== */
.news-list {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
}
.news-item {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover .news-title { color: var(--red-primary); }

.news-thumb {
  width: 220px;
  height: 140px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: var(--transition);
}
.news-item:hover .news-thumb { transform: scale(1.02); }

.news-body { flex: 1; display: flex; flex-direction: column; }
.news-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 10px;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
}
.news-meta .tag {
  background: #FFF0F2;
  color: var(--red-primary);
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 500;
}
.news-meta svg { width: 14px; height: 14px; }
.news-meta-item { display: flex; align-items: center; gap: 4px; }

/* 加载更多 */
.load-more {
  text-align: center;
  margin-top: 28px;
}
.load-more-btn {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  background: white;
}
.load-more-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: white;
}

/* ===== 侧边栏 ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--red-primary);
}
/* ===== 双栏页面右栏吸顶（首页 / 列表 / 文章详情共用） =====
   头部吸顶高度 72px，故顶部偏移 72+16=88px；
   不设 max-height / overflow，右栏保持自然高度，高于视口时随栅格末端自然露出；
   仅 ≥1025px 生效（≤1024px 栅格已塌成单列，取消吸顶避免卡在屏幕中间）。 */
@media (min-width: 1025px) {
  .main .container .sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
  }
}

/* 热门排行 */
.rank-list { display: flex; flex-direction: column; gap: 14px; }
.rank-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.rank-num {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: #F0F0F0;
  color: var(--text-muted);
}
.rank-item:nth-child(1) .rank-num { background: var(--red-primary); color: white; }
.rank-item:nth-child(2) .rank-num { background: #FF6B7E; color: white; }
.rank-item:nth-child(3) .rank-num { background: #FFB3BC; color: white; }
.rank-title {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.rank-item:hover .rank-title { color: var(--red-primary); }

/* 推荐课程 */
.course-list { display: flex; flex-direction: column; gap: 16px; }
.course-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.course-item:hover {
  border-color: var(--red-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.course-img {
  height: 150px;
  background-color: var(--white);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
/* 院校封面多为校徽/Logo，完整显示不裁切 */
.course-img .thumb-real { object-fit: contain; }
.course-body { padding: 12px 14px; }
.course-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.course-price { color: var(--red-primary); font-weight: 700; }
.course-students { color: var(--text-muted); }

/* 友情链接 */
.links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.links-list a {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-light);
  padding: 5px 12px;
  border-radius: 3px;
  transition: var(--transition);
}
.links-list a:hover {
  background: var(--red-primary);
  color: white;
}

/* ===== 底部 ===== */
.footer {
  background: #222222;
  color: rgba(255,255,255,0.72);
  padding: 48px 0 0;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-brand {
  flex: 0 0 190px;
  text-align: center;
}
.footer-logo { display: block; }
.footer-logo img {
  height: 54px;
  margin: 0 auto 20px;
  filter: invert(1) saturate(0) brightness(1.5);
  mix-blend-mode: screen;
}
.footer-qr-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-qr-main img,
.footer-qr-main .footer-qr-empty {
  width: 152px;
  height: 152px;
}
.footer-qr-main img {
  object-fit: contain;
  padding: 6px;
  background: var(--white);
  border-radius: 4px;
}
.footer-qr-cap {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 10px;
  white-space: nowrap;
}
.footer-qr-cap:empty { display: none; }
.footer-qr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 4px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 1px;
}
.footer-info {
  flex: 1;
  min-width: 0;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 36px;
  text-align: center;
}
.footer-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 10px;
}
.footer-campus {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
}
.footer-wechat {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 16px 0 18px;
}
.footer-qrs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px 46px;
}
.footer-qr { width: 136px; }
.footer-qr img,
.footer-qr .footer-qr-empty {
  width: 104px;
  height: 104px;
  margin: 0 auto;
}
.footer-qr img {
  object-fit: contain;
  padding: 4px;
  background: var(--white);
  border-radius: 4px;
}
.footer-qr .footer-qr-cap {
  font-size: 12px;
  color: rgba(255,255,255,0.68);
  margin-top: 10px;
  white-space: nowrap;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--red-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .category-bar a { padding: 14px 8px; font-size: 14px; }
  .main .container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-main {
    gap: 24px;
  }
  .footer-brand { flex: 0 0 170px; }
  .footer-info { padding-left: 24px; }
  .footer-qrs { gap: 18px; }
  .hero-title { font-size: 28px; }
  .news-thumb { width: 180px; height: 120px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 4px; }
  .menu-toggle { display: flex; }
  .btn-login { padding: 6px 14px; font-size: 12px; }
  .category-bar a { padding: 12px 8px; font-size: 13px; }
  .category-bar a .count { font-size: 10px; margin-left: 3px; }

  .hero { height: 360px; }
  .hero-title { font-size: 22px; }
  .hero-desc { font-size: 13px; }
  .hero-slide-content { bottom: 40px; }

  .featured-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .featured-card { height: 200px; }
  .featured-title { font-size: 17px; }

  .news-list { padding: 20px; }
  .news-item {
    flex-direction: column;
    gap: 12px;
  }
  .news-thumb {
    width: 100%;
    height: 180px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .footer-brand { flex: none; }
  .footer-info {
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 28px 0 0;
  }
  .footer-title { font-size: 20px; }
  .footer-qrs { gap: 16px; }

  .section-title { font-size: 17px; }

  /* 分页：手机端允许换行并缩小按钮，避免撑出横向滚动 */
  .pagination {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pagination a,
  .pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .header .container { height: 60px; }
  .logo-text { font-size: 16px; letter-spacing: 0; }
  .logo img { height: 34px; }
  .hero { height: 300px; }
  .hero-title { font-size: 19px; }
  .main { padding: 24px 0; }
  .news-list { padding: 16px; }
  .sidebar-card { padding: 18px; }
  .btn-login { display: none; }
}

/* ============================================================
   列表页 / 详情页 共用样式
   ============================================================ */

/* 面包屑 */
.breadcrumb-bar {
  background: #FAFAFA;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--red-primary); }
.breadcrumb-bar .sep { color: #CCC; }
.breadcrumb-bar .current { color: var(--text-primary); font-weight: 500; }

/* 分类标题区（列表页） */
.category-hero {
  background: linear-gradient(135deg, #C8102E 0%, #E8384F 100%);
  color: white;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.category-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.category-hero::after {
  content: "";
  position: absolute;
  right: 80px;
  bottom: -100px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.category-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.category-hero-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.category-hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.category-hero-stats {
  display: flex;
  align-items: center;
  gap: 18px;
}
.category-hero-stats > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.category-hero-stats strong {
  font-size: 26px;
  font-weight: 700;
}
.category-hero-stats span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.category-hero-stats .divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.3);
}

/* 筛选排序（列表页） */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.filter-left {
  display: flex;
  flex: 1;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 0;
}
.filter-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
}
/* 栏目页筛选项：与顶部导航同款文字链接 + 居中短下划线 */
.filter-chip {
  font-size: 15px;
  font-weight: 400;
  padding: 8px 14px;
  background: transparent;
  color: var(--text-secondary);
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}
.filter-chip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  background: transparent;
  border-radius: 1px;
}
.filter-chip:hover {
  color: var(--red-primary);
  background: transparent;
}
.filter-chip.active {
  background: transparent;
  color: var(--red-primary);
}
.filter-chip:hover::after,
.filter-chip.active::after {
  background: var(--red-primary);
}
.sort-select {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  background: white;
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--red-primary); }

/* 列表页的 news-thumb 变成可点击链接 */
.news-item .news-thumb { display: block; cursor: pointer; }

/* 列表页标题链接颜色（继承父） */
.news-title a { color: inherit; }
.news-title a:hover { color: var(--red-primary); }

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 28px 0 8px;
}
.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0 12px;
  transition: var(--transition);
}
.pagination a:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}
.pagination .page-num.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: white;
}
.pagination .page-ellipsis {
  border: none;
  color: var(--text-muted);
}

/* ============================================================
   详情页专属样式
   ============================================================ */

/* 文章主体容器 */
.article-main {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 56px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

/* 文章头部 */
.article-header {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.article-cat {
  display: inline-block;
  background: #FFF0F2;
  color: var(--red-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.article-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.article-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
}
.author-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
}
.author-bio {
  font-size: 12px;
  color: var(--text-muted);
}
.article-meta-items {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.article-meta-items svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
}

/* 摘要 */
.article-summary {
  background: #FAFAFA;
  border-left: 3px solid var(--red-primary);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  border-radius: 0 4px 4px 0;
}
.article-summary strong { color: var(--text-primary); }

/* 正文 */
.article-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-primary);
}
.article-body p {
  margin-bottom: 22px;
  text-indent: 2em;
}
.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--red-primary);
}
.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 14px;
}
.article-body ul,
.article-body ol {
  padding-left: 2em;
  margin-bottom: 22px;
}
.article-body li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-body ol li::marker { color: var(--red-primary); font-weight: 600; }
.article-body strong { color: var(--text-primary); }

/* 引用块 */
.article-body blockquote {
  border-left: 4px solid var(--red-primary);
  background: #FAFAFA;
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-secondary);
}
.article-body blockquote p {
  text-indent: 0;
  margin-bottom: 8px;
}
.article-body blockquote cite {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
  text-indent: 0;
}

/* 图片 */
.article-figure {
  margin: 28px 0;
  text-align: center;
}
.article-figure img {
  width: 100%;
  border-radius: 6px;
}
.article-figure figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.article-end {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

/* 文章底部：标签 + 分享 */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.article-tags a {
  background: #F5F5F5;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.article-tags a:hover {
  background: var(--red-primary);
  color: white;
}
.article-share {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F5F5F5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 0;
}
.share-btn:hover {
  background: var(--red-primary);
  color: white;
}
.share-btn svg {
  width: 18px;
  height: 18px;
}

/* 上下篇 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.article-nav-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.article-nav-item:hover {
  border-color: var(--red-primary);
  box-shadow: var(--shadow-sm);
}
.article-nav-item.next { text-align: right; align-items: flex-end; }
.nav-label {
  font-size: 12px;
  color: var(--text-muted);
}
.nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-nav-item:hover .nav-title { color: var(--red-primary); }

/* 相关推荐 */
.related-news {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: block;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.related-thumb {
  position: relative;
  height: 130px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.related-body {
  padding: 12px 14px;
}
.related-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  transition: var(--transition);
}
.related-card:hover .related-title { color: var(--red-primary); }
.related-date {
  font-size: 12px;
  color: var(--text-muted);
}
.related-empty {
  grid-column: 1 / -1;
  padding: 34px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 1px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

/* 院校详情页：去掉右侧栏，单栏布局，容器宽度与全站一致 */
.main.school-detail .container {
  grid-template-columns: minmax(0, 1fr);
}
/* 院校详情页「相关文章」：按条数自适应的横向卡片（只作用于该区块，不影响「其他院校」） */
.school-related .related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.school-related .related-card {
  flex: 1 1 420px;
  max-width: 820px;
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
}
.school-related .related-thumb {
  flex: 0 0 220px;
  width: 220px;
  height: 118px;
  background-color: var(--bg-light);
}
.school-related .related-body {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.school-related .related-title {
  font-size: 16px;
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
}
/* 只有 1 条时：整行大卡片，标题与日期左右分布，避免右侧空旷 */
.school-related .related-card:only-child {
  flex: 1 1 100%;
  max-width: none;
}
.school-related .related-card:only-child .related-thumb {
  flex: 0 0 320px;
  width: 320px;
  height: 168px;
}
.school-related .related-card:only-child .related-body {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 32px;
}
.school-related .related-card:only-child .related-title {
  flex: 1;
  font-size: 19px;
  margin-bottom: 0;
  -webkit-line-clamp: 1;
}
.school-related .related-card:only-child .related-date {
  flex: none;
  font-size: 13px;
  white-space: nowrap;
}
.school-related .related-empty {
  flex: 1 1 100%;
}
@media (max-width: 768px) {
  .school-related .related-card,
  .school-related .related-card:only-child { flex: 1 1 100%; max-width: none; }
  .school-related .related-thumb,
  .school-related .related-card:only-child .related-thumb {
    flex: 0 0 150px;
    width: 150px;
    height: 104px;
  }
  .school-related .related-body,
  .school-related .related-card:only-child .related-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 16px;
  }
  .school-related .related-card:only-child .related-title {
    flex: none;
    font-size: 16px;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
  }
}
@media (max-width: 480px) {
  .school-related .related-card,
  .school-related .related-card:only-child { display: block; }
  .school-related .related-thumb,
  .school-related .related-card:only-child .related-thumb { width: 100%; height: 150px; }
  .school-related .related-body,
  .school-related .related-card:only-child .related-body { padding: 14px 16px; }
}
/* 大屏下正文稍增字号/行距，缓解 1680 宽下每行字过多 */
@media (min-width: 1200px) {
  .main.school-detail .article-body { font-size: 17px; line-height: 2.0; }
  .main.school-detail .article-body p { margin-bottom: 26px; }
}
.main.school-detail .related-news + .related-news {
  margin-top: 24px;
}

/* ============================================================
   列表页 / 详情页 响应式
   ============================================================ */
@media (max-width: 1024px) {
  .article-main { padding: 36px 32px; }
  .article-title { font-size: 24px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .category-hero-title { font-size: 32px; }
}

@media (max-width: 768px) {
  .category-hero { padding: 40px 0 36px; }
  .category-hero-title { font-size: 26px; letter-spacing: 1px; }
  .category-hero-stats { gap: 14px; }
  .category-hero-stats strong { font-size: 22px; }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .article-main { padding: 28px 20px; }
  .article-title { font-size: 22px; margin-bottom: 18px; }
  .article-body { font-size: 15px; }
  .article-meta-items { gap: 12px; flex-wrap: wrap; justify-content: center; }

  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item.next { text-align: left; align-items: flex-start; }

  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .article-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .article-title { font-size: 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .category-hero-title { font-size: 22px; }
  .filter-chip { font-size: 12px; padding: 4px 10px; }
}

/* ============================================================
   易优CMS 模板适配（动态数据容器 / 分页 / 空状态）
   ============================================================ */

/* 动态卡片改成链接后的样式归一 */
a.hero-title, .hero-title a { color: #fff; text-decoration: none; }
a.news-thumb, a.course-item, .rank-item { text-decoration: none; display: block; }
a.news-thumb { display: block; }
a.course-item { display: block; color: inherit; }
a.rank-item { display: flex; }
a.featured-card { text-decoration: none; color: inherit; }
.news-title a, .related-title a, .course-title a { color: inherit; text-decoration: none; }
.news-title a:hover, .related-title a:hover { color: var(--red-primary); }

/* 热门排行：纯 CSS 序号（1-7） */
.rank-list { counter-reset: rank; }
.rank-item { counter-increment: rank; }
.rank-num::before { content: counter(rank); }

/* 空数据时自动隐藏，避免出现空白块 */
.hero-slide .hero-tag:empty,
.featured-row:empty,
.news-meta .tag:empty,
.article-tags:empty,
.links-list:empty,
.course-list:empty,
.rank-list:empty { display: none; }
.featured-row:empty { margin-bottom: 0; }
.category-bar:empty { display: none; }

/* 搜索弹窗提交按钮 */
.search-overlay-submit {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: var(--transition);
}
.search-overlay-submit:hover { color: var(--red-primary); }
.search-overlay-submit svg { width: 18px; height: 18px; }

/* 分页：兼容易优 {eyou:pagelist} 输出的 li 结构 */
.pagination li { display: inline-flex; }
.pagination li a,
.pagination li span,
.pagination > a,
.pagination > span {
  min-width: 38px;
  height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0 12px;
  text-decoration: none;
  transition: var(--transition);
}
.pagination li a:hover,
.pagination > a:hover { border-color: var(--red-primary); color: var(--red-primary); }
.pagination li.active a,
.pagination li.active span,
.pagination a.active,
.pagination .active > a {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #fff;
}

/* 面包屑：兼容 {eyou:position/} 生成的链接串 */
.breadcrumb-bar { font-size: 13px; }
.breadcrumb-bar a { text-decoration: none; }
.breadcrumb-bar span { color: var(--text-primary); }

/* 详情页正文里的富文本图片 */
.article-body img { max-width: 100%; height: auto; display: block; margin: 24px auto; border-radius: 6px; }
.article-body table { max-width: 100%; }

/* 作者圆标文字：红底白字，不加粗，完整居中 */
.author-avatar { font-size: 10px; font-weight: 400; letter-spacing: 0; }

/* 页脚联系方式：后台未填写的项自动隐藏 */
.footer-contact span:has(.cv:empty) { display: none; }

/* ============================================================
   院校库专属样式（lists_article_yuanxiao / view_article_yuanxiao）
   ============================================================ */

/* 院校卡片网格 */
.school-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
}
.school-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.school-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-primary);
}
.school-card-img {
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--white);
  background-origin: content-box;
  padding: 14px;
  transition: transform 0.6s ease;
}
.school-card-body { padding: 16px 18px; }
.school-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.school-card:hover .school-card-title { color: var(--red-primary); }
.school-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  height: 44px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.school-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* 院校详情页头部 */
.school-profile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.school-profile-head {
  display: flex;
  align-items: center;
  gap: 36px;
}
.school-profile-logo {
  width: 200px;
  height: 134px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--white);
  background-origin: content-box;
  padding: 12px;
  border: 1px solid var(--border);
}
.school-profile-info { flex: 1; min-width: 0; }
.school-profile-name {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px;
  line-height: 1.4;
}
.school-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--text-muted);
}
.school-profile-meta svg {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: middle;
}
.school-profile-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* 其他院校：LOGO 完整显示不裁切，标题居中 */
.related-school .related-thumb {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--white);
  background-origin: content-box;
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.related-school .related-body { text-align: center; }

/* 其他院校：大屏一排 4 个，逐级降列 */
@media (min-width: 1200px) {
  .related-school .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .related-school .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .related-school .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .related-school .related-grid { grid-template-columns: 1fr; }
}

/* 院校库响应式 */
@media (max-width: 1024px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .school-profile { padding: 32px; }
  .school-profile-head { gap: 24px; }
  .school-profile-logo { width: 170px; height: 116px; }
}

@media (max-width: 768px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 14px; }
  .school-profile { padding: 24px 20px; }
  .school-profile-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .school-profile-logo { width: 100%; height: 170px; }
  .school-profile-name { font-size: 22px; }
}

@media (max-width: 480px) {
  .school-grid { grid-template-columns: 1fr; }
  .school-profile-name { font-size: 20px; }
}

/* ===== 无图占位 ===== */
.news-thumb, .card-img, .course-img, .related-thumb { position: relative; }
.thumb-ph { display: none; }
.news-thumb.no-img,
.card-img.no-img,
.course-img.no-img,
.related-thumb.no-img {
  background-image:
    radial-gradient(circle at 84% 10%, rgba(200,16,46,0.12) 0%, rgba(200,16,46,0) 44%),
    radial-gradient(circle at 10% 94%, rgba(200,16,46,0.08) 0%, rgba(200,16,46,0) 48%),
    linear-gradient(135deg, #FFFFFF 0%, #F6F7FA 50%, #FBEDEF 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.no-img .thumb-ph {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52%;
  height: auto;
  max-height: 54%;
  object-fit: contain;
  opacity: 0.92;
  pointer-events: none;
}
.news-thumb.no-img { border: 1px solid var(--border); }
/* 首页主标题（视觉隐藏，供搜索引擎识别页面主题） */
.seo-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 真实封面图（供搜索引擎与 AI 抓取，同时承担视觉展示） */
.thumb-real {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* 栏目页筛选项响应式（须置于 .filter-chip 基础样式之后，避免被覆盖） */
@media (max-width: 1024px) {
  .filter-chip { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 768px) {
  /* .filter-bar 在 768 断点变为纵向排列，需让筛选行占满整行才能均分 */
  .filter-left { width: 100%; }
  .filter-chip { padding: 7px 6px; font-size: 13px; }
}
@media (max-width: 520px) {
  .filter-chip { padding: 6px 5px; font-size: 12.5px; }
}
