﻿/* ═══════════════════════════════════════════════════════════
   jishifa-override.css · 对标 jishifa.com 视觉语言覆盖层
   原则：只覆盖视觉，不动 PHP 结构和数据绑定
   ═══════════════════════════════════════════════════════════ */

/* ① 字体切换：标题用宋体衬线，正文用系统无衬线 */
:root {
  --font-display: "STSong", "SimSun", "Noto Serif SC", "Songti SC", serif !important;
  --font-serif: "STSong", "SimSun", "Noto Serif SC", serif !important;
}

/* ② 全局背景统一米白 */
body {
  background: #F5F1E8 !important;
  color: #1C1917;
}

/* ③ 导航：白底，菜单下划线选中 */
.site-header, header.site, .nav, .site-nav {
  background: #fff !important;
  border-bottom: 1px solid #E7E5E4 !important;
}
.nav a, .nav-links a {
  color: #44403C !important;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active, .nav a.active {
  color: #0F766E !important;
  border-bottom-color: #0F766E !important;
}
.brand-name, .logo-text .cn {
  font-family: "STKaiti", "KaiTi", serif !important;
  font-weight: 700 !important;
}

/* ④ Hero：纯渐变，去掉背景图，居中大标题 */
.hero, .ym-cover, section.hero {
  background: linear-gradient(135deg, #0B4A45 0%, #0F766E 50%, #14B8A6 100%) !important;
  position: relative;
  overflow: hidden;
}
.hero-media, .hero-media img, .hero-bg img {
  display: none !important;
}
.hero-in, .ym-cover-in {
  text-align: center !important;
  color: #fff;
}
.hero h1, .ym-cover h1, section.hero h1 {
  font-family: "STSong", "SimSun", "Noto Serif SC", serif !important;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;
  text-align: center !important;
  color: #fff !important;
}
.hero h1 em, .ym-cover h1 em {
  font-style: normal !important;
  color: #FCD34D !important;
  border-bottom: none !important;
}
.hero-sub, .ym-cover-sub {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  color: rgba(255,255,255,.85) !important;
}
.ym-kicker, .hero-badge {
  margin-left: auto !important;
  margin-right: auto !important;
}
.ym-search, .hero-search {
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 4px !important;
}
.ym-search .ym-btn, .hero-search button {
  background: #B91C1C !important;
  border-radius: 0 4px 4px 0 !important;
}
.ym-hot, .hero-tags {
  text-align: center !important;
  justify-content: center !important;
}

/* ⑤ 区块标题：英文小字 + 红色下划线 + 宋体大标题 */
.sec-head h2, section h2, .section-title, .ym-section h3 {
  font-family: "STSong", "SimSun", "Noto Serif SC", serif !important;
  font-weight: 700 !important;
}
.sec-head .eyebrow, .eyebrow, .ym-en {
  color: #B91C1C !important;
  font-size: .78rem !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
}

/* ⑥ 卡片：白底、细边框、小圆角、无厚重阴影 */
.school-card, .ym-card, .path-card, .news-card, .org-card,
.ym-layer-card, .major-card, .rank-row, .list-card {
  background: #fff !important;
  border: 1px solid #E7E5E4 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.school-card:hover, .path-card:hover, .news-card:hover, .org-card:hover {
  border-color: #0F766E !important;
  box-shadow: 0 4px 12px rgba(15,118,110,.08) !important;
}

/* ⑦ 按钮：小圆角 */
.btn, button.btn, a.btn {
  border-radius: 4px !important;
}
.btn-primary, .btn-red, .ym-btn-primary {
  background: #B91C1C !important;
}
.btn-primary:hover, .btn-red:hover {
  background: #991B1B !important;
}

/* ⑧ 标签：小圆角、方角 */
.tag, .chip, .badge, .sf-badge {
  border-radius: 2px !important;
}

/* ⑨ 数据带：半透明深色卡片 */
.ym-statband, .stat-band, .data-band {
  background: rgba(15, 23, 42, .85) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 8px !important;
}
.ym-stat, .stat-item {
  background: transparent !important;
}

/* ⑩ 页脚：深色 */
footer, .site-footer, .footer {
  background: #1C1917 !important;
  color: #78716C !important;
}
footer h4, .footer h4 {
  color: #E7E5E4 !important;
}
footer a, .footer a {
  color: #78716C !important;
}
footer a:hover, .footer a:hover {
  color: #fff !important;
}

/* ⑪ 朱砂红印章 logo */
.logo-mark, .brand-badge, .site-logo-mark {
  background: #B91C1C !important;
  border-radius: 4px !important;
  color: #fff !important;
  font-family: "STKaiti", "KaiTi", serif !important;
}

/* ⑫ 分页/筛选/输入：小圆角 */
.pagination .page-btn, .f-input, .select, .chip {
  border-radius: 4px !important;
}
.chip.on, .f-submit, .f-submit:hover {
  background: #0F766E !important;
  border-color: #0F766E !important;
}

/* ⑬ 5列升学路径：细边框分隔 */
.path-grid, .paths-grid, .ym-paths {
  gap: 1px !important;
  background: #E7E5E4 !important;
  border: 1px solid #E7E5E4 !important;
}
.path-card, .ym-path {
  background: #fff !important;
  border: none !important;
  border-radius: 0 !important;
}
.path-num, .ym-path .num, .path-index {
  font-family: "STSong", "SimSun", serif !important;
  color: #B91C1C !important;
}
