/* 中华高考咨询网 (www.zh-edu.cn) - 现代学院蓝橙双色视觉系统 (全本地化零CDN) */
:root {
  --bg-page: #F4F7FB;
  --bg-tinted: #EAF0F7;
  --bg-card: #FFFFFF;
  --ink-900: #162133;
  --ink-700: #38465C;
  --ink-500: #63738A;
  --blue-800: #0F4485;
  --blue-700: #1456A3;
  --blue-600: #1D72C8;
  --blue-soft: #EBF4FF;
  --orange-700: #C85C00;
  --orange-600: #E66E00;
  --orange-soft: #FFF4E8;
  --teal-700: #0F766E;
  --teal-soft: #E8F7F4;
  --red-600: #C93B2B;
  --red-soft: #FFF0EE;
  --border: #DCE4F0;
  --shadow-sm: 0 2px 10px rgba(20, 48, 88, 0.05);
  --shadow-md: 0 12px 30px rgba(20, 48, 88, 0.09);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg-page);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow-container {
  max-width: 900px;
}

.site-main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-item {
  padding: 7px 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--blue-700);
  background: var(--blue-soft);
}

.nav-item.is-active {
  font-weight: 600;
}

.nav-search-btn {
  margin-left: 6px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-700);
  border: 1px solid #C2D7F0;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-search-btn:hover,
.nav-search-btn.is-active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink-900);
  border-radius: 2px;
}

/* Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, #EBF4FF 0%, #FFF4E8 100%);
  border-bottom: 1px solid #D5E2F2;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.announce-tag {
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--orange-600);
  border-radius: 4px;
  flex-shrink: 0;
}

.announce-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-900);
  flex: 1;
  min-width: 180px;
}

.announce-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-700);
  white-space: nowrap;
}

.announce-cta:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero-section {
  padding: 46px 0 54px;
  background:
    linear-gradient(135deg, #0E3C75 0%, #1556A3 58%, #1C6EC2 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #FFE4C4;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(27px, 3.8vw, 42px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: #FFB259;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Tool Card */
.hero-tool-card {
  background: #fff;
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 18px 40px rgba(8, 28, 58, 0.28);
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tool-card-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.orange-pill {
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--orange-600);
  border-radius: 4px;
  flex-shrink: 0;
}

.edu-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-900);
  background: #F8FAFD;
  border: 1px solid #CBD6E6;
  border-radius: var(--radius-sm);
  outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 114, 200, 0.14);
}

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--orange-600);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-orange:hover {
  background: var(--orange-700);
}

.btn-block {
  width: 100%;
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-700);
  background: #fff;
  border: 1px solid var(--blue-700);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-outline-sm:hover {
  background: var(--blue-700);
  color: #fff;
}

.tool-card-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
  flex-wrap: wrap;
}

.tool-card-foot a {
  color: var(--blue-700);
  font-weight: 600;
}

/* Sections */
.section-block {
  padding: 46px 0;
}

.section-tinted {
  background: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange-600);
  margin-bottom: 4px;
}

.section-title {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 700;
  color: var(--ink-900);
}

.section-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-700);
  white-space: nowrap;
}

.section-more:hover {
  text-decoration: underline;
}

/* Channels */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.channel-card:hover {
  border-color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-soft);
  border-radius: 6px;
}

.channel-card h3 {
  margin: 0;
  font-size: 18px;
}

.channel-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-500);
  flex: 1;
}

.channel-arrow {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-700);
}

/* University Cards */
.univ-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.univ-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.univ-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.univ-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.univ-card:hover {
  border-color: #B4C9E4;
  box-shadow: var(--shadow-md);
}

.univ-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.univ-name {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.35;
}

.univ-name a:hover {
  color: var(--blue-700);
}

.univ-loc {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-500);
}

.type-pill {
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.type-985 { background: #EBF4FF; color: #1456A3; }
.type-211 { background: #EEF2FF; color: #3730A3; }
.type-hezuo { background: #FFF4E8; color: #C85C00; }
.type-minban { background: #E8F7F4; color: #0F766E; }

.score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #F6F9FC;
  border-radius: var(--radius-sm);
}

.score-cell {
  display: flex;
  flex-direction: column;
}

.score-lbl {
  font-size: 11.5px;
  color: var(--ink-500);
}

.score-val {
  font-size: 16px;
  color: var(--blue-800);
}

.univ-majors,
.univ-summary {
  margin: 0;
  font-size: 13px;
  color: var(--ink-700);
}

.univ-card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #EEF2F7;
}

.text-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-700);
}

.text-link:hover {
  text-decoration: underline;
}

/* Major Cards */
.major-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.major-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.major-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.major-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.major-top h3,
.major-top h4 {
  margin: 0;
  font-size: 17.5px;
}

.ai-fit-badge {
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-700);
  background: var(--teal-soft);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.major-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--ink-500);
  background: #F1F5FA;
  border-radius: 4px;
}

.major-desc,
.major-tip {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-700);
}

.major-tip {
  padding: 10px 12px;
  background: #FFF9F2;
  border-left: 3px solid var(--orange-600);
  border-radius: 0 6px 6px 0;
}

/* Article Grid & Lists */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  border-color: #B4C9E4;
  box-shadow: var(--shadow-md);
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-500);
}

.cat-badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-soft);
  border-radius: 4px;
}

.article-card-title {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.45;
}

.article-card-title a:hover,
.article-row-title a:hover {
  color: var(--blue-700);
}

.article-card-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--ink-700);
  flex: 1;
}

.article-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #EEF2F7;
  font-size: 13px;
  color: var(--ink-500);
}

/* Page Banner & Filters */
.page-banner {
  padding: 32px 0;
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  margin: 8px 0 10px;
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.3;
}

.banner-desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-700);
  max-width: 780px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-500);
}

.breadcrumb a:hover {
  color: var(--blue-700);
}

.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 140px;
  gap: 14px;
  align-items: end;
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-row input {
  flex: 1;
}

.quick-bar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-bar.no-border-top {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.quick-label {
  font-size: 13px;
  color: var(--ink-500);
}

.mini-chip {
  padding: 4px 11px;
  font-size: 13px;
  color: var(--ink-700);
  background: #F4F7FB;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.mini-chip:hover,
.mini-chip.is-current {
  color: #fff;
  background: var(--blue-700);
  border-color: var(--blue-700);
}

/* Volunteer Tiers */
.summary-banner {
  background: var(--bg-card);
  border: 1px solid #C8DBF2;
  border-left: 4px solid var(--blue-700);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 26px;
}

.summary-banner h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.summary-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-700);
}

.tier-section {
  margin-bottom: 32px;
}

.tier-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.tier-head h3 {
  margin: 0 0 3px;
  font-size: 19px;
}

.tier-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-500);
}

.tier-pill {
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tier-chong { background: var(--red-soft); color: var(--red-600); border: 1px solid #F6C8C2; }
.tier-wen   { background: var(--blue-soft); color: var(--blue-700); border: 1px solid #C2DBF8; }
.tier-bao   { background: var(--teal-soft); color: var(--teal-700); border: 1px solid #B5E4DB; }

.empty-tier-note {
  padding: 18px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-500);
}

.disclaimer-box {
  margin-top: 24px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--ink-700);
  background: #FFF9F2;
  border: 1px solid #F5DEC2;
  border-radius: var(--radius-md);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.result-bar h2 {
  margin: 0;
  font-size: 20px;
}

.sub-title {
  margin: 26px 0 14px;
  font-size: 19px;
}

/* Detail & Sidebar Layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.univ-detail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-card,
.article-prose-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.detail-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.detail-card h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  color: var(--blue-800);
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kv-item {
  padding: 12px 14px;
  background: #F6F9FC;
  border: 1px solid #E5ECF5;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kv-item span {
  font-size: 12px;
  color: var(--ink-500);
}

.kv-item strong {
  font-size: 15px;
  color: var(--ink-900);
}

.prose-p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink-700);
}

.peer-card {
  padding: 14px 16px;
  background: #F8FAFD;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.peer-card:hover {
  border-color: var(--blue-600);
}

.peer-card span {
  font-size: 12.5px;
  color: var(--ink-500);
}

.article-list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.article-row-title {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.article-tags-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-500);
}

.article-lead-box {
  padding: 15px 18px;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--ink-700);
  background: #F4F8FD;
  border-left: 4px solid var(--blue-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose-body {
  font-size: 15.8px;
  line-height: 1.85;
  color: var(--ink-900);
}

.prose-body h2 {
  margin: 28px 0 12px;
  padding-bottom: 8px;
  font-size: 21px;
  border-bottom: 1px solid var(--border);
}

.prose-body h3 {
  margin: 20px 0 8px;
  font-size: 17.5px;
  color: var(--blue-800);
}

.prose-body p { margin: 0 0 15px; }
.prose-body ul, .prose-body ol { margin: 0 0 16px; padding-left: 22px; }
.prose-body li { margin-bottom: 8px; }
.prose-body blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  background: #FFF9F2;
  border-left: 3px solid var(--orange-600);
  color: var(--ink-700);
}

.article-footer-tags {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-500);
}

.article-tool-banner {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #EBF4FF 0%, #FFF4E8 100%);
  border: 1px solid #D3E1F2;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-tool-banner h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--ink-900);
}

.article-tool-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-700);
}

.banner-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.center-btns { justify-content: center; }

.related-block {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.related-block h3 { margin: 0 0 14px; font-size: 19px; }

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

.related-card {
  padding: 15px;
  background: #F8FAFD;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.related-card:hover { border-color: var(--blue-600); }
.related-card h4 { margin: 8px 0 6px; font-size: 15.5px; }
.related-card p { margin: 0; font-size: 13px; color: var(--ink-500); }

/* Sidebar */
.side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-card h3 { margin: 0 0 10px; font-size: 17px; }
.side-desc { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-500); }

.side-list,
.side-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-list li + li,
.side-cat-list li + li {
  border-top: 1px solid #EEF2F7;
}

.side-list a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
}

.side-list strong { font-size: 14.5px; color: var(--ink-900); }
.side-list span { font-size: 12px; color: var(--ink-500); }
.side-list a:hover strong { color: var(--blue-700); }

.side-cat-list a {
  display: block;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--ink-700);
}

.side-cat-list a:hover,
.side-cat-list a.is-current {
  color: var(--blue-700);
  font-weight: 600;
}

/* Pagination */
.pagination {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-num {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.page-num.is-current,
.page-num:hover {
  color: #fff;
  background: var(--blue-700);
  border-color: var(--blue-700);
}

/* 404 */
.not-found-box {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 46px 24px;
}

.badge-404 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  background: var(--blue-700);
  border-radius: 16px;
}

/* Footer */
.site-footer {
  background: #10233D;
  color: #C4D0E2;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 42px 20px 34px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #9CB0CC;
}

.footer-col h4 { margin: 0 0 12px; font-size: 15px; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 12.5px;
  color: #8EA4C2;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.beian-link {
  color: #C4D4EA;
}

.beian-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive Breakpoints (100% overflow-free at 375px!) */
@media (max-width: 1060px) {
  .univ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .major-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-submit { grid-column: 1 / -1; }
  .content-with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .nav-item, .nav-search-btn {
    margin-left: 0;
    padding: 10px 12px;
    text-align: left;
  }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .site-logo { height: 38px; }
  .hero-section { padding: 28px 0 34px; }
  .hero-tool-card { padding: 20px 16px; }
  .form-row-2,
  .kv-grid,
  .univ-grid,
  .univ-grid-3,
  .univ-grid-2,
  .channel-grid,
  .major-grid,
  .major-grid-2,
  .article-grid,
  .related-grid,
  .filter-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-block { padding: 32px 0; }
  .search-row { flex-direction: column; }
  .detail-card, .article-prose-card { padding: 20px 16px; }
}
