/**
 * 西安老赵升学网 - 自定义样式
 * 基于 Tailwind CSS 风格，使用原生 CSS 实现
 */

/* ==================== 基础样式 ==================== */

/* 自定义滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 文本截断 */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 文本截断（单行） */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bootstrap 5 没有 min-w-0 这个工具类（那是 Tailwind），但模板里到处用它来
   收缩 flex 子项。没有它，nowrap + ellipsis 的标题会把卡片撑宽并横向溢出。 */
.min-w-0 {
  min-width: 0;
}

/* ==================== 颜色变量 ==================== */
:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --bg-slate-50: #f8fafc;
  --bg-gray-50: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --border-gray-200: #e5e7eb;
  --text-gray-500: #6b7280;
  --text-gray-600: #4b5563;
  --text-gray-700: #374151;
  --text-gray-800: #1f2937;
  --text-gray-900: #111827;
}

/* ==================== 全局样式 ==================== */

/* 移除链接下划线 */
a { text-decoration: none; }

/* 页面背景色 */
body { 
  background-color: var(--bg-slate-50); 
  min-height: 100vh;
}

/* ==================== 顶部 Header ==================== */
.top-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border-gray-200);
}

/* ==================== 主导航栏 ==================== */
.main-nav {
  background-color: var(--primary-blue);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.main-nav a:hover {
  background-color: var(--primary-blue-dark);
  color: #fff;
}

.main-nav a.active {
  color: #fff;
}

/* ==================== 分类网格 ==================== */
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.category-item:hover {
  background-color: var(--bg-gray-50);
}

.category-item:hover .category-icon {
  transform: scale(1.1);
}

.category-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease;
}

.category-icon i {
  color: #fff;
  font-size: 1rem;
}

/* 分类图标颜色 */
.category-icon.blue { background-color: #3b82f6; }
.category-icon.orange { background-color: #f97316; }
.category-icon.green { background-color: #22c55e; }
.category-icon.purple { background-color: #a855f7; }
.category-icon.red { background-color: #ef4444; }
.category-icon.pink { background-color: #ec4899; }
.category-icon.teal { background-color: #14b8a6; }
.category-icon.indigo { background-color: #6366f1; }

/* ==================== 卡片样式 ==================== */
.card {
  background-color: #fff;
  border-radius: 0.5rem;
  border: 1px solid var(--border-gray-200);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-gray-50);
  border-bottom: 1px solid var(--border-gray-200);
}

.card-header-title {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-800);
}

.card-header-title i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.card-body {
  padding: 1rem;
}

/* ==================== 学校卡片 ==================== */
.school-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.school-card:hover {
  background-color: var(--bg-gray-50);
}

.school-card:hover .school-thumb img {
  transform: scale(1.05);
}

.school-card:hover .school-title {
  color: var(--primary-blue);
}

.school-thumb {
  width: 6rem;
  height: 4rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
}

.school-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.school-info {
  flex: 1;
  min-width: 0;
}

.school-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-900);
  transition: color 0.2s ease;
}

.school-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.25rem 0;
}

.school-tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background-color: #eff6ff;
  color: var(--primary-blue);
  border-radius: 0.25rem;
}

.school-tag.gray {
  background-color: var(--bg-gray-100);
  color: var(--text-gray-600);
}

.school-desc {
  font-size: 0.75rem;
  color: var(--text-gray-500);
}

/* 热门标签 */
.hot-badge {
  font-size: 0.625rem;
  background-color: #ef4444;
  color: #fff;
  padding: 0.125rem 0.25rem;
  border-radius: 0.125rem;
}

/* ==================== 资讯列表 ==================== */
.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
}

.news-item:hover {
  background-color: var(--bg-gray-50);
}

.news-item:hover .news-title {
  color: var(--primary-blue);
}

/* 招生动态序号 */
.admission-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  font-variant-numeric: tabular-nums;
}

.admission-knowledge-list .news-item:nth-child(-n+3) .admission-index {
  color: #fff;
  background-color: var(--primary-blue);
}

.news-title {
  font-size: 0.875rem;
  color: var(--text-gray-700);
  transition: color 0.2s ease;
}

.news-category {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border-gray-200);
  color: var(--text-gray-500);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.news-date {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.news-date i {
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* ==================== 侧边栏 ==================== */
.sidebar-card {
  background-color: #fff;
  border-radius: 0.5rem;
  border: 1px solid var(--border-gray-200);
  overflow: hidden;
  margin-bottom: 1rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--bg-gray-50);
  border-bottom: 1px solid var(--border-gray-200);
}

.sidebar-header i {
  color: var(--primary-blue);
  margin-right: 0.5rem;
  font-size: 1rem;
}

.sidebar-header span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-800);
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--text-gray-700);
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: #eff6ff;
  color: var(--primary-blue);
}

.sidebar-divider {
  border-top: 1px solid #f3f4f6;
}

/* ==================== 热门标签 ==================== */
.tags-wrap {
  padding: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-gray-200);
  color: var(--text-gray-600);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.tag-item:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

/* 大号标签 */
.tag-item.large {
  padding: 0.375rem 0.75rem;
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

.tag-item.large:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  color: #fff;
}

/* 中号标签 */
.tag-item.medium {
  padding: 0.25rem 0.625rem;
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: var(--primary-blue);
}

.tag-item.medium:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

/* ==================== 免费咨询卡片 ==================== */
.consult-card {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  border-radius: 0.5rem;
  padding: 1rem;
  color: #fff;
}

.consult-card-title {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.consult-card-title i {
  margin-right: 0.5rem;
}

.consult-card-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
}

.consult-card-btn {
  display: block;
  width: 100%;
  padding: 0.5rem;
  background-color: #fff;
  color: var(--primary-blue);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.consult-card-btn:hover {
  background-color: #f0f9ff;
}

/* ==================== 热门文章 ==================== */
.hot-post-item {
  display: flex;
  align-items: flex-start;
  padding: 0.625rem 1rem;
  transition: background-color 0.2s ease;
}

.hot-post-item:hover {
  background-color: var(--bg-gray-50);
}

.hot-post-rank {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.625rem;
  border-radius: 0.25rem;
}

.hot-post-rank.top1 { background-color: #ef4444; color: #fff; }
.hot-post-rank.top2 { background-color: #f97316; color: #fff; }
.hot-post-rank.top3 { background-color: #eab308; color: #fff; }
.hot-post-rank.normal { background-color: var(--bg-gray-100); color: var(--text-gray-600); }

.hot-post-title {
  font-size: 0.8125rem;
  color: var(--text-gray-700);
  transition: color 0.2s ease;
}

.hot-post-item:hover .hot-post-title {
  color: var(--primary-blue);
}

/* ==================== 友情链接 ==================== */
.friend-links {
  background-color: #fff;
  border-top: 1px solid var(--border-gray-200);
  padding: 1rem;
}

.friend-links-title {
  font-size: 0.75rem;
  color: var(--text-gray-500);
  margin-bottom: 0.5rem;
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.friend-links-list a {
  font-size: 0.75rem;
  color: var(--text-gray-600);
  transition: color 0.2s ease;
}

.friend-links-list a:hover {
  color: var(--primary-blue);
}

/* ==================== 页脚 ==================== */
.site-footer {
  background-color: var(--text-gray-900);
  color: #9ca3af;
  padding: 2rem 0 1rem;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-link {
  display: block;
  font-size: 0.8125rem;
  color: #9ca3af;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  margin-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ==================== 问答区域 ==================== */
.qa-item {
  display: block;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
}

.qa-item:hover {
  background-color: var(--bg-gray-50);
}

.qa-item:hover .qa-title {
  color: var(--primary-blue);
}

.qa-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-800);
  margin-bottom: 0.375rem;
  transition: color 0.2s ease;
}

.qa-excerpt {
  font-size: 0.75rem;
  color: var(--text-gray-500);
  line-height: 1.5;
}

.qa-category {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background-color: var(--bg-gray-100);
  color: var(--text-gray-600);
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==================== 推荐学校筛选 ==================== */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-tab {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: var(--text-gray-600);
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background-color: var(--bg-gray-100);
}

.filter-tab.active {
  background-color: var(--primary-blue);
  color: #fff;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 991.98px) {
  .sidebar-card {
    margin-bottom: 0.75rem;
  }
  
  .school-card {
    padding: 0.625rem;
  }
  
  .school-thumb {
    width: 5rem;
    height: 3.5rem;
  }
}

@media (max-width: 767.98px) {
  .card-header {
    padding: 0.625rem 0.75rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .school-thumb {
    width: 4.5rem;
    height: 3rem;
  }
  
  .footer-title {
    font-size: 0.8125rem;
  }
  
  .footer-link {
    font-size: 0.75rem;
  }
}

/* ==================== 过渡动画 ==================== */
.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-transform {
  transition: transform 0.2s ease;
}

.transition-all {
  transition: all 0.2s ease;
}

/* ==================== 间距辅助类 ==================== */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ==================== H标签SEO优化样式 ==================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: inherit;
  font-size: inherit;
}

/* 品牌H1样式 */
.brand-h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
}

/* 区块标题H2样式 */
.section-h2 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-800);
  margin: 0;
}

/* 卡片标题H3样式 */
.card-h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-900);
  margin: 0;
}

/* 页脚栏目标题H4样式 */
.footer-h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 0.75rem 0;
}

/* ==================== 容器最大宽度 ==================== */
.container-main {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==================== 专题页面样式 ==================== */

/* 专题轮播图 */
.topic-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.topic-carousel img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 专题简介 */
.topic-intro {
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.topic-intro p {
  margin: 0;
  line-height: 1.8;
  color: #475569;
}

/* 专题栏目区块 */
.topic-column-section {
  margin-bottom: 2rem;
}

.topic-column-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3b82f6;
  display: inline-block;
}

/* 专题文章列表 */
.topic-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-article-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s;
}

.topic-article-item:hover {
  background: #f8fafc;
}

.topic-article-item:last-child {
  border-bottom: none;
}

.topic-article-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 0.375rem;
  overflow: hidden;
}

.topic-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-article-content {
  flex: 1;
  min-width: 0;
}

.topic-article-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-article-title a {
  color: inherit;
  text-decoration: none;
}

.topic-article-title a:hover {
  color: #3b82f6;
}

.topic-article-excerpt {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* 专题学校列表 */
.topic-schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.topic-school-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.topic-school-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.topic-school-thumb {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.topic-school-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-school-info {
  padding: 0.75rem;
}

.topic-school-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.topic-school-name a {
  color: inherit;
  text-decoration: none;
}

.topic-school-name a:hover {
  color: #3b82f6;
}

.topic-school-category {
  font-size: 0.75rem;
  color: #64748b;
}

/* 专题列表页 */
.topic-list-item {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
  text-decoration: none;
}

.topic-list-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.topic-list-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.topic-list-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-list-info {
  padding: 1rem;
}

.topic-list-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.topic-list-excerpt {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 响应式 */
@media (max-width: 767.98px) {
  .topic-article-thumb {
    width: 80px;
    height: 60px;
  }
  
  .topic-article-title {
    font-size: 0.875rem;
  }
  
  .topic-schools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== 专题页面额外样式 ==================== */

/* 热门标签容器 - 增加行距 */
.tags-container {
  line-height: 2.5;
}

/* 热门专题列表 - 与热门文章样式一致 */
.hot-topic-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
  text-decoration: none;
}

.hot-topic-item:hover {
  background-color: #f9fafb;
}

.hot-topic-item:last-child {
  border-bottom: none;
}

.hot-topic-title {
  font-size: 0.875rem;
  color: #4b5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.hot-topic-item:hover .hot-topic-title {
  color: #3b82f6;
}

/* 热门排名序号 - 与热门文章样式一致 */
.hot-post-rank {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  margin-right: 0.75rem;
}

.hot-post-rank.top1 {
  background: #f97316;
  color: #fff;
}

.hot-post-rank.top2 {
  background: #fb923c;
  color: #fff;
}

.hot-post-rank.top3 {
  background: #fdba74;
  color: #fff;
}

.hot-post-rank:not(.top1):not(.top2):not(.top3) {
  background: #f3f4f6;
  color: #9ca3af;
}

/* 相关专题列表 */
.related-topic-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.related-topic-item:hover {
  background-color: #f8fafc;
}

.related-topic-item:last-child {
  border-bottom: none;
}

.related-topic-thumb {
  width: 50px;
  height: 50px;
  border-radius: 0.375rem;
  object-fit: cover;
  flex-shrink: 0;
}

.related-topic-name {
  font-size: 0.875rem;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-topic-item:hover .related-topic-name {
  color: #3b82f6;
}

/* 文章列表增强样式 */
.topic-article-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid var(--border-gray-200);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.topic-article-item:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.topic-article-thumb {
  width: 120px;
  height: 80px;
  border-radius: 0.375rem;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f1f5f9;
}

.topic-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.topic-article-item:hover .topic-article-thumb img {
  transform: scale(1.05);
}

.topic-article-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topic-article-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.topic-article-title a {
  color: #1e293b !important;
  text-decoration: none;
}

.topic-article-title a:hover {
  color: #3b82f6;
}

.topic-article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.topic-article-excerpt {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 栏目标题样式增强 */
.topic-column-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--primary-blue);
}

/* ==================== 文章列表通用样式（.article-title 类名） ==================== */
.article-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b !important;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-title a {
  color: #1e293b !important;
  text-decoration: none;
}

.article-title a:hover {
  color: #3b82f6;
}

.article-excerpt {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* 文章项样式 */
.article-item {
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.article-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* 文章链接整体样式 - 链接包裹整个文章，但要控制颜色 */
.article-item a {
  color: #1e293b !important;
  text-decoration: none;
}

.article-item a:hover {
  color: #1e293b !important;
}

/* 文章标题悬停变蓝 */
.article-item a:hover .article-title {
  color: #3b82f6 !important;
}

.article-thumb {
  width: 160px;
  height: 112px;
  border-radius: 0.375rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-item:hover .article-thumb img {
  transform: scale(1.05);
}

/* 简化文章项样式 - 只显示标题 */
.article-item-simple {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.article-item-simple .article-title {
  font-size: 0.95rem;
  color: #1e293b !important;
}

.article-item-simple:hover .article-title {
  color: #3b82f6 !important;
}

.article-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
  .topic-article-thumb {
    width: 80px;
    height: 60px;
  }
  
  .topic-article-title {
    font-size: 0.875rem;
  }
  
  .related-topic-thumb {
    width: 40px;
    height: 40px;
  }
  
  .sidebar-card .p-3 {
    line-height: 2;
  }
}

/* ==================== 强制覆盖样式 ==================== */

/* 文章标题链接颜色强制黑色 */
.article-title,
.article-title a,
.topic-article-title,
.topic-article-title a {
  color: #1e293b !important;
  text-decoration: none !important;
}

.article-title a:hover,
.topic-article-title a:hover {
  color: #3b82f6 !important;
}

/* 右侧板块列表项增加间隙 */
.sidebar-card > div {
  padding: 0.5rem 0 !important;
}

.hot-topic-item,
.related-topic-item {
  padding: 1rem 1.25rem !important;
  margin: 0.25rem 0 !important;
}

/* 板块之间的间距 */
.sidebar-card {
  margin-bottom: 1.25rem !important;
}

/* ==================== 专题列表页样式 ==================== */

/* 专题卡片 - 与文章列表样式一致 */
.topic-card-item {
  display: flex;
  flex-direction: row;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
}

.topic-card-item:last-child {
  margin-bottom: 0;
}

.topic-card-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* 专题卡片缩略图 - 160px x 112px，与文章列表一致 */
.topic-card-thumb {
  width: 160px;
  height: 112px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #f3f4f6;
}

.topic-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.topic-card-item:hover .topic-card-thumb img {
  transform: scale(1.05);
}

/* 专题卡片占位符 */
.topic-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.topic-card-placeholder i {
  font-size: 2rem;
  color: #fff;
  opacity: 0.8;
}

/* 专题卡片内容 */
.topic-card-content {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* 专题卡片标题 */
.topic-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937 !important;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  text-decoration: none !important;
}

.topic-card-item:hover .topic-card-title {
  color: #3b82f6 !important;
}

/* 专题卡片副标题/描述 */
.topic-card-subtitle {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 专题卡片元信息 */
.topic-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

.topic-card-articles,
.topic-card-category {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.topic-card-articles i,
.topic-card-category i {
  font-size: 0.875rem;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
  .topic-card-thumb {
    width: 120px;
    height: 84px;
  }
  
  .topic-card-title {
    font-size: 0.9375rem;
  }
}

@media (max-width: 767.98px) {
  .topic-card-thumb {
    width: 100px;
    height: 70px;
  }
  
  .topic-card-title {
    font-size: 0.875rem;
  }
  
  .topic-card-subtitle {
    font-size: 0.75rem;
  }
  
  .topic-card-meta {
    font-size: 0.625rem;
  }
}

/* ==================== 分类页/专题列表页样式 ==================== */
.hot-post-rank.top1 {
  background: #f97316;
  color: #fff;
}

.hot-rank.top2,
.hot-post-rank.top2 {
  background: #fb923c;
  color: #fff;
}

.hot-rank.top3,
.hot-post-rank.top3 {
  background: #fdba74;
  color: #fff;
}

.hot-rank:not(.top1):not(.top2):not(.top3),
.hot-post-rank:not(.top1):not(.top2):not(.top3) {
  background: #f1f5f9;
  color: #94a3b8;
}

/* 热门标题 - 完善版 */
.hot-title,
.hot-topic-title {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-article-item:hover .hot-title,
.hot-topic-item:hover .hot-topic-title {
  color: #3b82f6;
}

/* 分页样式 - 完善版 */
.pagination-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.pagination-nav a,
.pagination-nav span {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: #475569;
  transition: all 0.2s ease;
}

.pagination-nav a:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.pagination-nav .current {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* 排序标签 */
.sort-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.875rem;
  color: #94a3b8;
}

.sort-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: #64748b;
  transition: all 0.2s ease;
}

.sort-btn:hover {
  background: #f1f5f9;
}

.sort-btn.active {
  background: #3b82f6;
  color: #fff;
}

/* ==================== 分类页/专题列表页样式 ==================== */

/* 面包屑导航 */
.breadcrumb-section {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 0;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-link {
  font-size: 0.875rem;
  color: #6b7280;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #3b82f6;
}

.breadcrumb-separator {
  font-size: 0.75rem;
  color: #9ca3af;
}

.breadcrumb-current {
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 500;
}

/* 内容卡片 */
.content-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.content-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.category-h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* 侧边栏卡片 */
.sidebar-card-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}

.sidebar-card-header i {
  margin-right: 0.5rem;
  font-size: 1rem;
  color: #3b82f6;
}

.sidebar-card-header i.bi-fire {
  color: #f97316;
}

.sidebar-card-body {
  padding: 0.5rem 0;
}

/* 分类列表项 */
.category-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  color: #4b5563;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
}

.category-list-item:hover {
  background: #f3f4f6;
  color: #3b82f6;
}

.category-list-item.active {
  background: #eff6ff;
  color: #3b82f6;
  font-weight: 500;
}

.category-list-item .badge {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.badge-active {
  background: #3b82f6;
  color: #fff;
}

.badge-normal {
  background: #f3f4f6;
  color: #6b7280;
}

/* 热门标签容器 */
.tags-container {
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.tag-link:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

/* 文章列表 */
.article-list {
  padding: 0.75rem;
}

.article-item {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: all 0.2s;
}

.article-item:last-child {
  margin-bottom: 0;
}

.article-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.article-link {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.article-thumb {
  width: 160px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #f3f4f6;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-item:hover .article-thumb img {
  transform: scale(1.05);
}

.article-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.article-category {
  padding: 0.125rem 0.5rem;
  background: #eff6ff;
  color: #3b82f6;
  border-radius: 0.25rem;
}

.article-date {
  color: #9ca3af;
}

.article-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-item:hover .article-title {
  color: #3b82f6;
}

.article-excerpt {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-views {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.article-views i {
  font-size: 0.875rem;
}

/* 热门文章列表 */
.hot-articles-list {
  padding: 0;
}

.hot-article-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  transition: background 0.2s;
}

.hot-article-item:last-child {
  border-bottom: none;
}

.hot-article-item:hover {
  background: #f9fafb;
}

.hot-rank {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  margin-right: 0.75rem;
}

.hot-rank.top1 {
  background: #f97316;
  color: #fff;
}

.hot-rank.top2 {
  background: #fb923c;
  color: #fff;
}

.hot-rank.top3 {
  background: #fdba74;
  color: #fff;
}

.hot-rank:not(.top1):not(.top2):not(.top3) {
  background: #f3f4f6;
  color: #9ca3af;
}

.hot-title {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-article-item:hover .hot-title {
  color: #3b82f6;
}

/* 推荐院校 */
.recommended-school-link {
  display: block;
  padding: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.recommended-school-link:hover {
  background: #f9fafb;
}

.recommended-school-img {
  width: 100%;
  height: 120px;
  border-radius: 0.375rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.recommended-school-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommended-school-info {
  text-align: center;
}

.recommended-school-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.recommended-school-desc {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.recommended-school-link:hover .recommended-school-title {
  color: #3b82f6;
}

/* 免费咨询卡片 */
.consult-card {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 0.5rem;
  padding: 1rem;
  color: #fff;
}

.consult-header {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.consult-header i {
  margin-right: 0.5rem;
}

.consult-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0.75rem 0;
}

.consult-link {
  display: block;
  width: 100%;
  padding: 0.5rem;
  background: #fff;
  color: #3b82f6;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.consult-link:hover {
  background: #f0f9ff;
}

/* 广告 Banner */
.ad-banner {
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
}

.ad-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 分页样式 */
.pagination-section {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.pagination-nav a,
.pagination-nav span {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination-nav a:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.pagination-nav .current {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* 空状态 */
.empty-state {
  padding: 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.empty-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.empty-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: #fff;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: background 0.2s;
}

.empty-btn:hover {
  background: #1d4ed8;
}

/* 响应式 */
@media (max-width: 991.98px) {
  .article-thumb {
    width: 120px;
    height: 84px;
  }
  
  .category-h1 {
    font-size: 1rem;
  }
  
  .content-card-header {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 767.98px) {
  .article-thumb {
    width: 100px;
    height: 70px;
  }
  
  .article-title {
    font-size: 0.875rem;
  }
  
  .sort-tabs {
    flex-wrap: wrap;
  }
  
  .recommended-school-img {
    height: 100px;
  }
}

/* ============================================
   学校详情页样式 (single-school.php)
   ============================================ */

/* 学校Logo */
.school-logo-wrap {
  width: 128px;
  height: 128px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #f0f9ff;
}

.school-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f9ff;
}

/* 学校详情标题 */
.school-detail-h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* 学校详情头部：校徽 + 标题 + 事实栏 */
.school-head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.school-head-info {
  flex: 1 1 0;
  min-width: 0;
}

/* 事实栏取代了原来的三个 badge：性质/层次/类型/创办/电话/官网/地址一次排完。
   按内容宽度弹性排布而不是等分网格：等分时「国家级重点技工学校」这类 9 字值会被挤到第二行，
   断在词中间；flex-wrap 的换行判断用内容基准宽度，一行放不下的整条移到下一行，条目内部不断行。 */
.school-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px dashed #e2e8f0;
}

.school-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
}

.school-facts li > span {
  color: #64748b;
  flex-shrink: 0;
}

.school-facts li > b,
.school-facts li > a {
  color: #1e293b;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* 两级选择器：.school-facts li 的 flex 简写会盖掉单类名的整行声明 */
.school-facts .school-facts-wide {
  flex: 1 0 100%;
}

/* 分区卡片：取代 Tabs，四块内容常态可见 */
.school-sec {
  overflow: hidden;
  scroll-margin-top: 3.5rem;
}

.school-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.school-sec-body {
  padding: 1.25rem;
}

.school-sec-body--flush {
  padding: 0.25rem 0;
}

.school-sec-link {
  font-size: 0.8125rem;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.school-sec-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.school-sec-more {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

/* 折叠的长名单（如开设 60+ 专业的院校）：summary 做成按钮，剩余条目仍在 DOM 里 */
.school-expand {
  margin-top: 1rem;
  text-align: center;
}

.school-expand summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.375rem 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.school-expand summary::-webkit-details-marker {
  display: none;
}

.school-expand summary:hover {
  background: #dbeafe;
}

.school-expand[open] > summary {
  margin-bottom: 1rem;
}

/* 手机端分区导读条 */
.school-secnav {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e2e8f0;
}

.school-secnav::-webkit-scrollbar {
  display: none;
}

.school-secnav a {
  flex: 0 0 auto;
  padding: 0.375rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.8125rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.school-secnav a:active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* 正文里的表格：后台贴进来的档案卡常见，窄屏要能横向滚而不是撑破卡片 */
.school-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.school-content th,
.school-content td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.625rem;
  text-align: left;
  vertical-align: top;
}

.school-content th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 600;
}

/* 学校内容区域 */
.school-content {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.school-content p {
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.school-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  margin: 1.75rem 0 0.875rem;
}

.school-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.5;
  color: #111827;
  margin: 1.625rem 0 0.75rem;
}

.school-content h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1f2937;
  margin: 1.5rem 0 0.625rem;
}

.school-content h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.25rem 0 0.5rem;
}

.school-content h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1rem 0 0.5rem;
}

.school-content h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0.875rem 0 0.375rem;
}

.school-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem auto;
  display: block;
}

/* 学校Section标题：只出现在 .school-sec-head 里，间距由头部条负责 */
.school-section-h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1e293b;
}

.school-section-h2 i {
  font-size: 1.05em;
  color: #2563eb;
}

/* 学校数据卡片 */
.school-data-card {
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.school-data-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* 专业卡片 */
/* display 必须显式声明：卡片是 <a>，默认 inline，而里面装的是 div/p/h3 这类块级内容，
   浏览器会把 inline 盒拆成一串行内片段，边框只画在片段左右，看上去就是卡片左侧那条竖线和圆角残影。
   height:100% 配合 .row 的 stretch，让同一行的两张卡片等高。 */
.program-card {
  display: block;
  height: 100%;
  color: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.2s;
}

.program-card:hover {
  border-color: #93c5fd;
}

.program-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
}

/* 问答列表 */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qa-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.qa-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.qa-badge-q {
  background: #dbeafe;
  color: #3b82f6;
}

.qa-badge-a {
  background: #dcfce7;
  color: #22c55e;
}

/* 学校详情页问答：.qa-item 在首页侧栏也在用，这里按分区卡片作用域收窄，
   并去掉「家长 · 日期」那行——_school_qa 里根本没有提问时间和提问者。 */
.school-sec .qa-item {
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  background: #fcfdfe;
}

.school-sec .qa-badge {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
}

.qa-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.qa-row-a {
  margin-top: 0.625rem;
}

.qa-text {
  min-width: 0;
  margin: 0;
}

.qa-question {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
  color: #1e293b;
}

.qa-answer {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #475569;
}

/* 侧边栏卡片标题 */
.sidebar-card-header {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

/* 同类学校链接 */
.similar-school-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.similar-school-link:hover {
  background: #f0f9ff;
  border-color: #bfdbfe;
}

.similar-school-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.similar-school-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 快速导航按钮 */
.quick-link-btn {
  display: block;
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.quick-link-btn:hover {
  background: #eff6ff;
  color: #3b82f6;
}

/* 学校详情响应式 */
@media (max-width: 767.98px) {
  .school-detail-h1 {
    font-size: 1.35rem;
  }

  .school-head {
    gap: 0.75rem;
  }

  .school-logo-wrap {
    width: 80px;
    height: 80px;
    border-radius: 10px;
  }

  .school-facts {
    gap: 0.375rem 1.125rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .school-facts li {
    font-size: 0.75rem;
  }

  .school-sec-head {
    padding: 0.75rem 1rem;
  }

  .school-sec-body {
    padding: 1rem 0.875rem;
  }

  .school-sec-body--flush {
    padding: 0.125rem 0;
  }

  .school-sec-more {
    padding: 0.625rem 0.875rem;
  }

  .school-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    font-size: 0.8125rem !important;
  }

  /* 学校简介正文：后台贴进来的内容自带内联字号（0.8em~1.3em 混排，375px 屏上最小只有 12px）。
     这里只统一字号、行高和字体，!important 是用来压过内联 style 的；
     内容自己的边框、底色、间距不动，避免把版式改花。 */
  .school-content article,
  .school-content p,
  .school-content li {
    font-size: 0.9375rem !important;
    line-height: 1.7 !important;
    font-family: inherit !important;
  }

  /* 内容头部那三行（文内标题/副题/来源）：文内标题和页面 H1 重复，手机端压到 18px，另两行统一 13px */
  .school-content header p {
    font-size: 0.8125rem !important;
    line-height: 1.6 !important;
  }

  .school-content header p:first-child {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
  }

  /* 文内分节标题只保留一级，1.3em 在窄屏上比板块标题还重 */
  .school-content h2,
  .school-content h3 {
    font-size: 1.0625rem !important;
    line-height: 1.45 !important;
  }

  .school-content th,
  .school-content td {
    padding: 0.5rem 0.625rem !important;
    line-height: 1.6 !important;
  }

  .school-feature-card {
    gap: 0.625rem;
    padding: 0.75rem;
  }

  .school-feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
  }

  .program-card {
    padding: 0.875rem;
  }

  .school-sec .qa-item {
    padding: 0.75rem 0.875rem;
  }
}

/* ============================================================
   【新增开始】 咨询表单页面样式
   ============================================================ */

/* 咨询表单卡片 */
.consultation-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(30, 136, 229, 0.08);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* 标题区 */
.consult-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.consult-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.consult-header-icon i {
  font-size: 1.4rem;
  color: #ffffff;
}

.consult-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.consult-page-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* 信任标签栏 */
.consult-trust-bar {
  display: flex;
  gap: 0;
  background: #f8fafc;
  border-radius: 0.625rem;
  padding: 0.75rem 0;
  margin-bottom: 1.75rem;
}

.consult-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #475569;
  border-right: 1px solid #e2e8f0;
}

.consult-trust-item:last-child {
  border-right: none;
}

.consult-trust-item i {
  color: #1e88e5;
  font-size: 0.9rem;
}

/* 表单项 */
.form-group-item {
  margin-bottom: 1.25rem;
}

.form-label-consult {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-label-consult i {
  color: #1e88e5;
  margin-right: 0.25rem;
}

.consult-form-control {
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.consult-form-control:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}

/* 提交按钮 */
.btn-consult-submit {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  border: none;
  border-radius: 0.625rem;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn-consult-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
  color: #ffffff;
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.btn-consult-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 隐私提示 */
.consult-privacy {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 1rem;
}

.consult-privacy i {
  color: #10b981;
}

/* 提交成功 */
.consult-success {
  text-align: center;
  padding: 2rem 1rem;
}

.consult-success-icon {
  font-size: 3.5rem;
  color: #10b981;
  margin-bottom: 1rem;
}

.consult-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.consult-success-text {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.consult-success-contact {
  background: #f8fafc;
  border-radius: 0.625rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.consult-success-contact p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #374151;
}

.consult-success-contact i {
  color: #1e88e5;
}

.btn-consult-back {
  display: inline-block;
  padding: 0.65rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e88e5;
  background: #e3f2fd;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-consult-back:hover {
  background: #bbdefb;
  color: #1565c0;
}

/* 底部联系方式卡片 */
.consult-bottom-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
}

.consult-contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.625rem;
  background: #f8fafc;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.consult-contact-card:hover {
  background: #e3f2fd;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.1);
}

/* 微信那张卡片不是链接（没有可跳转的地址），悬停不该给可点的错觉 */
.consult-contact-card--static:hover {
  background: #f8fafc;
  box-shadow: none;
}

.consult-contact-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.consult-contact-icon.wechat-icon {
  color: #07c160;
}

.consult-contact-icon.phone-icon {
  color: #1e88e5;
}

.consult-contact-label {
  font-size: 0.8rem;
  color: #64748b;
}

.consult-contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

/* ============================================================
   手机端浮动咨询按钮
   ============================================================ */

.mobile-consult-float {
  display: none; /* 默认隐藏，手机端显示 */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: #ffffff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}

/* 底部两个入口并排：左边直接拨号，右边进预约表单。
   两栏等宽，触控高度靠各自 padding 撑到 44px 以上。 */
.mobile-consult-row {
  display: flex;
  gap: 0.625rem;
}

.mobile-consult-row > a {
  flex: 1 1 0;
  min-width: 0;
}

.mobile-consult-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-consult-call:hover,
.mobile-consult-call:focus {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.mobile-consult-call i {
  font-size: 1.15rem;
}

.mobile-consult-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-consult-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
}

.mobile-consult-link i {
  font-size: 1.15rem;
}

/* 手机端显示浮动按钮 */
@media (max-width: 767.98px) {
  .mobile-consult-float {
    display: block;
  }

  /* 为手机端页面底部留出浮动按钮空间 */
  .site-footer {
    padding-bottom: 4.5rem;
  }

  /* 咨询表单卡片手机端适配：字号统一 + 纵向间距收紧。
     输入框字号必须 ≥16px，否则 iOS Safari 聚焦时会自动放大整页。 */
  .consultation-card {
    padding: 1.125rem;
    border-radius: 0.75rem;
  }

  .consult-card-header {
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }

  .consult-header-icon {
    width: 44px;
    height: 44px;
  }

  .consult-header-icon i {
    font-size: 1.2rem;
  }

  .consult-page-title {
    font-size: 1.25rem;
  }

  .consult-page-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* 信任标签手机端排成 2×2：左右两格用竖线分隔，
     去掉原来「左对齐 + 上排下边框」那套，两行高度不一致时线会错位。 */
  .consult-trust-bar {
    flex-wrap: wrap;
    gap: 0;
    padding: 0.5rem 0;
    margin-bottom: 1.25rem;
  }

  .consult-trust-item {
    width: 50%;
    justify-content: center;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
  }

  .consult-trust-item:nth-child(odd) {
    border-right: 1px solid #e2e8f0;
  }

  .consult-trust-item:nth-child(even),
  .consult-trust-item:last-child {
    border-right: none;
  }

  .form-group-item {
    margin-bottom: 1rem;
  }

  .form-label-consult {
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
  }

  .consult-form-control {
    font-size: 1rem;
    padding: 0.6rem 0.75rem;
  }

  .btn-consult-submit {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .consult-privacy {
    font-size: 0.8125rem;
    margin-top: 0.75rem;
  }

  .consult-bottom-card {
    padding: 1rem;
  }

  .consult-contact-card {
    gap: 0.625rem;
    padding: 0.75rem;
  }

  .consult-contact-icon {
    font-size: 1.5rem;
  }

  .consult-contact-label {
    font-size: 0.8125rem;
  }

  .consult-contact-value {
    font-size: 0.9375rem;
  }
}

/* 咨询页面在手机端隐藏浮动按钮（避免重复） */
.page-template-page-consultation .mobile-consult-float {
  display: none !important;
}

/* 浮动条在这页不显示，返回顶部就可以落回正常高度 */
.page-template-page-consultation .back-to-top {
  bottom: 2rem;
}

/* 【新增结束】 咨询表单页面样式 */

/* ============================================================
   返回顶部（PC 与手机端都显示，右下角）
   ============================================================ */

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 2rem;
  z-index: 9998;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  color: var(--primary-blue);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

@media (max-width: 767.98px) {
  /* 手机端要浮在底部咨询条上方，否则被 z-index 9999 的条盖住；尺寸保持 44px 触控下限 */
  .back-to-top {
    right: 0.75rem;
    bottom: 5rem;
  }
}

/* ============================================================
   学校特色卡片样式
   ============================================================ */

.school-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.school-feature-card:hover {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.school-feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.school-feature-content {
  flex: 1;
  min-width: 0;
}

.school-feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.school-feature-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ==================== 文章详情页 ==================== */
.article-card {
  background: #fff;
  border: 1px solid var(--border-gray-200);
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-gray-200);
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: #eff6ff;
  color: var(--primary-blue);
  border-radius: 0.25rem;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-gray-900);
  line-height: 1.4;
}

.article-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #334155;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.article-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-gray-200);
  background: #f9fafb;
}

.nav-article {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid var(--border-gray-200);
  border-radius: 0.5rem;
  color: var(--text-gray-700);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-article:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.nav-article .label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.nav-article .title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-800);
  line-height: 1.4;
}

.related-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-gray-700);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-item:hover {
  background: var(--bg-gray-50);
  color: var(--primary-blue);
}

.related-item .title {
  font-size: 0.875rem;
  line-height: 1.5;
}

.sticky-sidebar {
  position: sticky;
  top: 1rem;
}

.phone-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0.25rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  color: var(--text-gray-700);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.hot-item:hover {
  background: var(--bg-gray-50);
}

.hot-item .rank {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.hot-item .rank.top {
  background: #ef4444;
  color: #fff;
}

.hot-item .rank.normal {
  background: var(--bg-gray-100);
  color: var(--text-gray-600);
}

.hot-item .title {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.school-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--text-gray-700);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.school-item:hover {
  background: var(--bg-gray-50);
}

.school-item .thumb {
  flex-shrink: 0;
  width: 5rem;
  height: 3.5rem;
  border-radius: 0.375rem;
  overflow: hidden;
}

.school-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-item .info {
  flex: 1;
  min-width: 0;
}

.school-item .info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-gray-900);
  margin-bottom: 0.25rem;
}

.school-item .info p {
  font-size: 0.75rem;
  color: var(--text-gray-500);
  line-height: 1.5;
  margin: 0;
}

.divider {
  border-top: 1px solid #f3f4f6;
}

/* ==================== 文章详情页精细排版 ==================== */
.article-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.article-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #eef0f3;
  background: #ffffff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.article-meta .text-secondary {
  font-size: 0.8125rem;
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
  margin: 0 0 1.25rem 0;
}

/* 文章页署名条：一行放完「头像 + 名字 + 一句资质 + 入口」，整行可点到作者页。
   完整自我介绍由作者页承载，不再在每篇文章的 H1 下面重复一遍。 */
.article-byline {
  margin: 0 0 1.25rem;
}

.article-byline-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.article-byline-link:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: inherit;
}

.article-byline-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #dbeafe;
  border-radius: 50%;
  color: var(--primary-blue);
  font-size: 0.875rem;
}

.article-byline-name {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

.article-byline-cred {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8125rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-byline-more {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: var(--primary-blue);
}

.article-byline-more i {
  margin-left: 0.125rem;
  font-size: 0.75rem;
}

.article-content {
  padding: 2rem;
  font-size: 1rem;
  line-height: 2;
  color: #334155;
  word-break: break-word;
}

.article-content p {
  margin: 0 0 1.25rem 0;
}

.article-content h1 {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  margin: 2.25rem 0 1.125rem;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #111827;
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: #1f2937;
  margin: 1.75rem 0 0.875rem;
}

.article-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 0.75rem;
}

.article-content h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.25rem 0 0.625rem;
}

.article-content h6 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #4b5563;
  margin: 1.125rem 0 0.5rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem 1.5rem;
  padding: 0;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}
@media (min-width: 992px) {
  .article-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #475569;
}

.article-content table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.625rem 0.75rem;
}

.article-content th {
  background: #f8fafc;
  font-weight: 600;
}

.article-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid #eef0f3;
  background: #f9fafb;
}

/* ==================== 学校列表行 ==================== */
.school-list-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  overflow: hidden;
  margin-bottom: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.school-list-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.school-list-link {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.875rem;
  text-decoration: none;
}

.school-list-thumb {
  flex-shrink: 0;
  width: 9rem;
  height: 6.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f1f5f9;
}

.school-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.school-list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.school-list-name {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.4;
}

.school-list-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.school-list-badge.light {
  background: #f3f4f6;
  color: #4b5563;
}

/* 资质/荣誉 badge 里会出现「陕西省高水平高职学校和专业建设计划建设单位」这种长句，
   nowrap 会把整行撑出院校卡右边界，手机端改成可换行。 */
@media (max-width: 767.98px) {
  .school-list-badge.light {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.school-list-address,
.school-list-phone {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

.school-list-meta {
  margin-top: 0.5rem;
}

.school-list-score {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f59e0b;
}

.school-list-score.muted {
  font-weight: 400;
  color: #9ca3af;
}

@media (max-width: 575.98px) {
  .school-list-thumb {
    width: 6.5rem;
    height: 5rem;
  }

  .school-list-name {
    font-size: 0.9375rem;
  }
}

/* ==================== 分页页码通用样式 ==================== */
.pagination-section {
  text-align: center;
}

.page-numbers {
  display: inline-block;
  min-width: 2.25rem;
  padding: 0.4rem 0.65rem;
  margin: 0 0.15rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.page-numbers.current {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
}

.page-numbers.prev,
.page-numbers.next {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

/* 专题详情页列表排版 */
.single-topic .article-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.single-topic .article-list .article-item {
  margin-bottom: 0;
  padding: 1rem;
}

.single-topic .article-list .article-item-simple {
  padding: 0.875rem 1rem;
}

.single-topic .article-list .article-thumb {
  width: 160px;
  height: 112px;
}

.single-topic #related-schools .row > div {
  min-width: 0;
}

.single-topic #related-schools .ratio {
  width: 100%;
}

@media (max-width: 767.98px) {
  .single-topic .article-list .article-thumb {
    width: 100px;
    height: 70px;
  }
}

/* ==================== 专题详情页分类文章列表 - 隔离文章详情样式 ==================== */
.single-topic .article-list {
  padding: 0;
}

.single-topic .article-list .article-item {
  padding: 1rem;
}

.single-topic .article-list .article-content {
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #64748b;
}

.single-topic .article-list .article-content h3.article-title,
.single-topic .article-list .article-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
}

.single-topic .article-list .article-excerpt {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #64748b;
}

.single-topic .article-list .article-meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
}

.single-topic .article-list .article-item-simple .article-content {
  min-height: 0;
}

.single-topic .article-list .article-item-simple {
  padding: 0.75rem 1rem;
}

.single-topic .article-list .article-item-simple .article-title {
  margin: 0;
}

/* ==================== 专题中心右侧栏细节 ==================== */
.sidebar-card .consult-cta-inner {
  padding: 1rem !important;
}

.recommended-school-link {
  padding: 1rem;
}

.recommended-school-info {
  text-align: left;
}

.recommended-school-title {
  margin: 0 0 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.recommended-school-desc {
  line-height: 1.55;
  color: #6b7280;
}

/* ==================== 首页资讯与推荐学校分类 - 手机端细节 ==================== */
@media (max-width: 767.98px) {
  .news-item {
    min-width: 0;
    padding: 0.625rem 0.75rem;
  }

  .news-item > div,
  .news-item > div > div {
    min-width: 0;
  }

  .news-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .news-date {
    white-space: nowrap;
  }

  .news-item:first-child .news-date {
    display: none;
  }

  /* 招生动态列表：手机端第一条日期仍显示月日 */
  .admission-knowledge-list .news-item:first-child .news-date {
    display: inline-flex;
  }

  .admission-index {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.6875rem;
  }

  /* 招生动态：手机端栏目标签已通过 d-none 隐藏，序号+标题+月日布局优化 */
  .admission-knowledge-list .news-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-filter-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .home-filter-header .filter-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-filter-header .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .home-filter-header .filter-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 575.98px) {
  .home-filter-header .filter-tabs {
    gap: 0.375rem;
  }

  .home-filter-header .filter-tab {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .homepage-sidebar-hide-mobile {
    display: none !important;
  }
}

/* ==================== 学校详情页 - 手机端细节 ==================== */
@media (max-width: 767.98px) {
  .school-breadcrumb {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
  }

  .breadcrumb-school-name {
    display: none !important;
  }

  .school-content {
    font-size: 0.875rem;
    line-height: 1.75;
  }

  .school-content p {
    font-size: 0.875rem;
    line-height: 1.75;
  }

  .school-section-h2 {
    font-size: 1rem;
  }

  .school-feature-title {
    font-size: 0.9375rem;
  }

  .school-feature-desc {
    font-size: 0.8125rem;
  }
}

/* ==================== 文章详情页 - 手机端排版 ==================== */
@media (max-width: 767.98px) {
  .article-card .article-header {
    padding: 1rem 0.875rem 0.875rem;
  }

  .article-card .article-title {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .article-card .article-byline-link {
    /* 整行可点，竖向补到 44px 触控下限；横向收紧到能让资质那一行不被截字 */
    gap: 0.25rem;
    padding: 0.6875rem 0.5rem;
  }

  .article-card .article-byline-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.6875rem;
  }

  .article-card .article-byline-more {
    font-size: 0.75rem;
  }

  .article-card .article-content {
    padding: 1rem 0.875rem 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.75;
    letter-spacing: 0.04em;
  }

  .article-card .article-content p {
    margin: 0 0 0.875rem;
    letter-spacing: 0.04em;
  }

  .article-card .article-content h2 {
    font-size: 1rem;
    margin: 1.25rem 0 0.625rem;
  }

  .article-card .article-content h3 {
    font-size: 0.9375rem;
    margin: 1.125rem 0 0.5rem;
  }

  .article-card .article-content h4 {
    font-size: 0.875rem;
    margin: 1rem 0 0.5rem;
  }

  .article-card .article-content ul,
  .article-card .article-content ol {
    margin: 0 0 0.875rem 1.25rem;
  }

  .article-card .article-content blockquote {
    margin: 1rem 0;
    padding: 0.75rem 0.875rem;
  }

  .article-card .article-content table {
    font-size: 0.8125rem;
    margin: 1rem 0;
  }

  .article-card .article-footer {
    padding: 0.875rem;
  }
}

/* 页脚电话：手机端一键拨号，触控高度不低于 44px */
.footer-phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: #fff;
}

/* ==================== 移动端侧栏折叠 ==================== */
/* lg 以下不再整块隐藏侧栏：改为默认收起的导航区，保住内链的可发现性 */
.sidebar-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--bg-gray-50);
  border: 1px solid var(--border-gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-gray-800);
  cursor: pointer;
}

.sidebar-collapse-toggle::after {
  content: "展开";
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-gray-500, #6b7280);
}

.sidebar-collapse-toggle[aria-expanded="true"]::after {
  content: "收起";
}

@media (min-width: 992px) {
  .sidebar-collapse-toggle {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .sidebar-collapse {
    display: none;
  }

  .sidebar-collapse.is-open {
    display: block;
  }

  /* 折叠区在窄屏下不需要吸顶，避免遮住正文 */
  .sidebar-collapse .sticky-top {
    position: static;
  }
}

/* ==================== 首页枢纽卡与最新专题卡 ==================== */

/* 卡头右侧的条数就是这一组链接的条数，由模板数出来，不是内容总量 */
.sidebar-header .sidebar-card-count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-gray-500);
  font-variant-numeric: tabular-nums;
}

/* 名录与专业大类链接右端的篇数/专业数（taxonomy 的真实 count） */
.sidebar-link .sidebar-link-count {
  flex: 0 0 auto;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-gray-500);
  font-variant-numeric: tabular-nums;
}

/* 首页最新专题：图文卡，PC 两列、手机端一列（列宽由 bootstrap 的 col-sm-6 给） */
.home-topic-card {
  display: block;
  height: 100%;
  padding: 0;
  border: 1px solid var(--border-gray-200);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-topic-card:hover {
  border-color: var(--primary-blue-light);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.home-topic-card:hover .home-topic-title {
  color: var(--primary-blue);
}

.home-topic-cover {
  height: 6.25rem;
  overflow: hidden;
  background-color: var(--bg-gray-50);
}

.home-topic-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-topic-body {
  padding: 0.5625rem 0.6875rem 0.6875rem;
}

.home-topic-title {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-topic-sub {
  margin-top: 0.3125rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-topic-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.4375rem;
  font-size: 0.6875rem;
  color: var(--text-gray-500);
}

.home-topic-count {
  padding: 0.0625rem 0.375rem;
  border-radius: 0.625rem;
  background-color: #eff6ff;
  color: var(--primary-blue);
}

@media (max-width: 575.98px) {
  .home-topic-cover {
    height: 7.5rem;
  }
}

/* `.sidebar-card > div`（custom.css:1350）把左右内距压成 0，卡头条数贴右边框、标签贴左边框；同 !important 下靠多一个类名赢。
   .sidebar-card-header 是文章页侧栏那张（推荐院校 / 专题推荐 / 热门标签 / 热门文章）的卡头，
   标题在左、右侧链接（全部专题）在右，两头都贴框，和 .sidebar-header 一样补左右 1rem；上下维持原有的 0.5rem，行高不动。 */
.sidebar-card > .sidebar-header,
.sidebar-card > .sidebar-card-header,
.sidebar-card > .tags-wrap {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* 问答摘要电脑端最多两行，手机端仍整段显示。 */
@media (min-width: 768px) {
  .qa-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}

/* 专题推荐里没设特色图的专题：图位照旧占 80×56，用图标居中顶上，
   行高与有图的行一致，不会出现图文行和纯文字行混排。 */
.school-item .thumb.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #9ca3af;
  font-size: 1.25rem;
}

/* logo、主导航「首页」、面包屑「首页」三条左边线对齐到同一处。
   三者都在 .container-main 里，只有主导航第一项带 Bootstrap 的 px-4（左右各 1.5rem），
   文字比 logo 再往右 1.5rem；工具类自带 !important，这里同样带 !important，靠多一层限定赢。
   第一项之外的间距不动，导航条内部的条目间隔保持原样。 */
.main-nav .d-flex > a:first-child {
  padding-left: 0 !important;
}
