/* ============================================================
   高校名单查询 · 统一视觉与响应式覆盖层
   加载顺序：global.css -> style.css -> responsive.css（本文件最后）
   ============================================================ */

:root {
  --brand: #1d3b8b;
  --brand-2: #2f6fef;
  --brand-soft: #f0f5fe;
  --ink: #1f2430;
  --muted: #5f6b7a;
  --line: #e5eaf2;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* 可访问性：恢复键盘焦点环 */
a:focus-visible, button:focus-visible, input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #ffb020;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99999;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 顶部横幅（替代第三方品牌图） ---------- */
.banner {
  position: relative;
  width: 100%;
  height: clamp(180px, 26vw, 300px);
  background: linear-gradient(120deg, #162f75 0%, #2f6fef 55%, #7fb2ff 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.18), transparent 42%);
  pointer-events: none;
}
.banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.banner-inner .eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .18em;
  opacity: .85;
}
.banner-inner h1 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 48px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 2px 14px rgba(0,0,0,.12);
}
.banner-inner .subtitle {
  margin: 14px 0 0;
  font-size: clamp(12px, 1.6vw, 15px);
  opacity: .9;
}

/* ---------- 布局容器 ---------- */
.container, .gkbox, .pcBtnBox {
  width: calc(100% - 32px) !important;
  max-width: 1190px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.containerbg { background: #f7f9fc; padding: 16px 12px; }
.bg { padding: 16px 12px; }
.font-old-red, font[color="#ff3300"], font[color="#FF3300"] {
  color: #b3261e !important;
}

.site-header {
  display: block;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.menu-top { border-bottom: 1px solid var(--line); padding: 12px 0; }
.menu-top .menu-top-left {
  border-bottom: 3px solid var(--brand-2);
  padding-bottom: 8px;
  font-size: clamp(18px, 2.2vw, 24px);
}
.menu-con a {
  border-radius: 6px;
  transition: background .18s ease, color .18s ease;
}
.menu-con a:hover, .menu-con a:focus-visible {
  background: var(--brand-2);
  color: #fff;
}
.menu-bg { background: #fff; padding: 4px 12px 12px; }

/* ---------- 搜索 ---------- */
.searchbox { padding-left: 0; }
.search { max-width: 100%; }
.search input { font-size: 14px; }
.search-but {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.search-status {
  margin: 0 0 14px;
  padding: 8px 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-2);
  border-radius: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 内容 ---------- */
main#main-content { display: block; }
.data-note, .policy-note {
  max-width: 1190px;
  margin: 18px auto 0;
  padding: 12px 16px;
  background: #fff8e6;
  border: 1px solid #f0a500;
  border-radius: 6px;
  font-size: 13px;
  color: #6b5317;
}
.policy-note { margin-top: 0; }

.box .title {
  height: auto !important;
  line-height: 1.4 !important;
  padding: 16px 0 14px;
  background: none !important;
  border-bottom: 2px solid var(--line);
  font-size: clamp(22px, 3vw, 32px) !important;
  text-align: left;
  margin-bottom: 18px;
}
.box .title span { color: #1b57c4 !important; font-size: inherit; }

.con .con-jianjie {
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 24px;
  line-height: 1.8;
}
.con .con-left, .con .con-right {
  float: none;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 24px;
}
.con .con-left + .con-right { margin-top: 16px; }

.table, .table-x {
  width: 100%;
  font-size: 14px;
  background: #fff;
  table-layout: auto;
  border-collapse: collapse;
}
.table td, .table-x td, .table-x th {
  min-height: 0;
  line-height: 1.55;
  padding: 10px 8px;
  overflow-wrap: anywhere;
}
.table-x thead { background: var(--brand-2); }
.table-x th { font-size: 16px; }
.table tr:nth-child(2n), .table-x tr:nth-child(2n) { background: #f7faff; }
.table a, .table-x a { color: #1b57c4; }

.box .button {
  background: var(--brand-2) !important;
  border-radius: 6px;
  height: auto;
  line-height: 1.5;
  width: 200px;
  padding: 10px 16px;
}
.box .button a { display: block; }

.gkbox .top { background: none !important; color: var(--brand-2); }
.mzk { background: none !important; padding-right: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  padding: 32px 16px 40px;
  background: #16213a;
  color: #c9d3e5;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 18px;
}
.footer-nav a { color: #dce6ff; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer .data-source { color: #a9bad6; max-width: 820px; margin: 0 auto 12px; }
.site-footer a { color: #dce6ff; }
.site-footer .contact { color: #e6edff; }
.site-footer .icp a { color: #a9bad6; }
.site-footer .copyright-line { color: #7f8da8; margin-bottom: 0; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  .menu-top { height: auto; padding: 12px 0; line-height: 1.6; }
  .menu-top .menu-top-left { height: auto; line-height: 1.6; border-bottom: 0; }
  .menu-top-right { float: right; }
  .searchbox { padding: 8px 0 0; }
  .search { width: 100%; }
  .search input { width: calc(100% - 44px); }

  .link { float: none; display: block; padding: 10px 0 0; line-height: 2; }

  .pc.menu-con { display: none; }
  .m.menu-con { display: block; }
  .menu-con a { float: none; display: inline-block; margin: 4px 6px; }

  .mtop { display: flex; align-items: center; justify-content: space-between; }
  .mtop-right { cursor: pointer; }
  .menu-bg { display: none; }
  .menu-bg.open { display: block; }

  .con { padding-top: 18px; }
  .table, .table-x { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-x th, .table-x td, .table td { min-width: 96px; }
  .con .con-jianjie { padding: 16px; }
}

@media (max-width: 560px) {
  .container, .gkbox { width: calc(100% - 24px) !important; }
  .banner { height: 180px; }
  .banner-inner h1 { font-size: 25px; }
  .banner-inner .subtitle { font-size: 12px; }
  .menu-con a { padding: 8px 12px; font-size: 14px; min-height: 44px; }
  .site-footer { padding: 24px 12px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .banner, .site-header, .site-footer, .skip-link { display: none !important; }
  body { background: #fff; }
  .table, .table-x { display: table; width: 100%; }
}
