/* 科教视界 · 门户视觉 */
:root {
  --navy: #0b3d8c;
  --navy-2: #0a3278;
  --navy-deep: #072a68;
  --red: #c8102e;
  --red-2: #b71c32;
  --red-bar: #9a1730;
  --blue-title: #163e8c;
  --ink: #222;
  --muted: #667085;
  --line: #e6e8ee;
  --bg: #f7f8fb;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(10, 40, 90, .08);
  --container: 1180px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-title); text-decoration: none; }
a:hover { color: var(--red); }
h1,h2,h3,h4 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 0.6em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font-family: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px);
}
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 860px); }

/* Header */
.site-header { background: #fff; }
.header-top { padding: 12px 0 10px; border-bottom: 1px solid #f0f2f6; }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { color: inherit; }
.brand-logo {
  width: 72px; height: 72px; background: var(--red); display: grid; place-items: center;
  color: #fff; font-weight: 800; overflow: hidden; flex: 0 0 72px;
}
.brand-logo img, .brand-logo .custom-logo { width: 72px; height: 72px; object-fit: cover; }
.brand-title { display: flex; align-items: baseline; gap: 10px; }
.brand-title em { font-style: normal; font-size: 30px; font-weight: 900; color: var(--red); letter-spacing: 1px; }
.brand-title small { font-size: 22px; font-weight: 800; color: var(--blue-title); }
.brand-tagline { display: block; margin-top: 4px; color: #6b7c99; font-size: 13px; letter-spacing: 1px; }
.header-search { display: flex; border: 1px solid #d9dee8; border-radius: 2px; overflow: hidden; min-width: 280px; }
.header-search input {
  border: 0; outline: 0; padding: 8px 12px; width: 240px; font-size: 13px; background: #fff;
}
.header-search button {
  width: 42px; border: 0; background: var(--navy); color: #fff; cursor: pointer;
}
.header-search button:hover { background: var(--navy-2); }

.main-nav { background: var(--navy); }
.nav-inner { display: flex; align-items: stretch; }
.nav-menu { display: flex; width: 100%; }
.nav-menu li { flex: 1; text-align: center; }
.nav-menu a {
  display: block; color: #fff; font-size: 15px; font-weight: 500;
  padding: 14px 8px; letter-spacing: .5px;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.kjs-home .nav-menu li:first-child > a {
  background: var(--red); color: #fff;
}
.nav-toggle { display: none; }

.hero-inner-page { min-height: 220px; }
.hero-inner-page .hero-inner { min-height: 220px; padding: 36px 0 28px; }
.section-intro { margin: 24px 0; }
.section-body { padding: 8px 0 32px; }
.section-heading { font-size: 28px; color: var(--blue-title); margin: 28px 0 18px; }

/* Hero */
.hero {
  position: relative; min-height: 280px;
  background: #123c86 center/cover no-repeat;
  color: #fff; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(180,18,42,.92) 0%, rgba(180,18,42,.15) 28%, rgba(12,50,120,.2) 55%, rgba(12,50,120,.55) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  min-height: 280px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 42px 0 36px; text-align: center;
}
.hero-copy h1 {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: 4px;
}
.hero-copy .divider { width: 2px; height: 42px; background: rgba(255,255,255,.7); }
.hero-sub {
  margin-top: 14px; display: flex; align-items: center; gap: 16px;
  font-size: 16px; letter-spacing: 3px; color: #eef3ff;
}
.hero-sub .line { width: 48px; height: 1px; background: rgba(255,255,255,.7); }
.hero-script {
  position: absolute; right: 8%; top: 28%;
  font-size: 22px; font-weight: 700; letter-spacing: 2px;
  transform: rotate(-8deg); text-shadow: 0 4px 16px rgba(0,0,0,.25);
  font-family: "STKaiti", "KaiTi", "Noto Sans SC", serif;
}
.hero-dots { position: absolute; bottom: 16px; display: flex; gap: 8px; z-index: 3; }
.hero-dots span, .hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7);
  border: 0; padding: 0; cursor: pointer;
}
.hero-dots .on { background: var(--red); }

.kjs-slider { position: relative; min-height: 280px; }
.kjs-slider.hero-inner-page { min-height: 220px; }
.kjs-slider .kjs-slide {
  position: absolute; inset: 0;
  background: #123c86 center/cover no-repeat;
  opacity: 0; transition: opacity .7s ease;
  z-index: 0;
}
.kjs-slider .kjs-slide.is-on { opacity: 1; z-index: 1; }
.kjs-slider .kjs-slide .hero-inner { min-height: 280px; }
.kjs-slider.hero-inner-page .kjs-slide .hero-inner { min-height: 220px; }

/* Home mid */
.home-mid, .home-lower, .partners-section { padding: 28px 0 8px; }
.mid-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: stretch; }
.feature-card {
  position: relative; min-height: 250px; border-radius: 10px; overflow: hidden;
  background: #0b2a5c center/cover no-repeat; color: #fff; display: flex; align-items: center;
}
.feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,24,60,.55), rgba(6,24,60,.2)); }
.feature-body { position: relative; z-index: 1; padding: 36px 40px; }
.feature-body h2 { font-size: 30px; letter-spacing: 2px; margin-bottom: 10px; }
.feature-body p { font-size: 16px; opacity: .92; margin-bottom: 22px; }
.btn-ghost {
  display: inline-flex; align-items: center; color: #fff !important;
  border: 1px solid rgba(255,255,255,.8); border-radius: 999px;
  padding: 8px 22px; font-size: 14px;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.sec-head h2 { font-size: 20px; color: var(--blue-title); position: relative; padding-bottom: 8px; }
.sec-head h2::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 56px; height: 3px; background: var(--red); }
.sec-head .more { color: #7a8899; font-size: 13px; }
.news-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed #edf0f5; }
.news-list li:last-child { border-bottom: 0; }
.news-date { min-width: 52px; text-align: center; color: var(--red); line-height: 1.15; }
.news-date .d { display: block; font-size: 16px; font-weight: 800; }
.news-date .y { display: block; font-size: 12px; color: #98a2b3; margin-top: 2px; }
.news-body a { color: #1d2939; font-weight: 700; font-size: 15px; }
.news-body p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* Videos + activities */
.lower-grid { display: grid; grid-template-columns: 1.7fr .9fr; gap: 28px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-grid-page { grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
.video-card h3 { font-size: 15px; margin: 10px 0 4px; }
.video-card h3 a { color: #1d2939; }
.video-card p { color: var(--muted); font-size: 12px; }
.thumb { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #0b2a5c; aspect-ratio: 16/9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92);
}
.thumb .play::after {
  content: ""; position: absolute; left: 16px; top: 13px;
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--navy);
}
.thumb .dur {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65);
  color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 2px;
}
.act-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #edf0f5; font-size: 14px; }
.act-list li a { color: #1d2939; position: relative; padding-left: 12px; flex: 1; }
.act-list li a::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #98a2b3; }
.act-list li span { color: #98a2b3; white-space: nowrap; font-size: 13px; }

/* Partners */
.partner-row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line); background: #fff;
}
.partner-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 88px; padding: 10px 8px; text-align: center;
  border-right: 1px solid var(--line); color: inherit;
}
.partner-item:last-child { border-right: 0; }
.partner-name { font-size: 20px; font-weight: 900; color: var(--navy); letter-spacing: 1px; }
.partner-item small { color: #667085; font-size: 12px; }
.partner-item:nth-child(1) .partner-name { color: #111; }
.partner-item:nth-child(2) .partner-name { color: #1a56c4; }
.partner-item:nth-child(3) .partner-name { color: var(--red); font-size: 18px; }
.partner-item:nth-child(4) .partner-name { color: #1a8cff; }
.partner-item:nth-child(5) .partner-name { color: #07c160; font-size: 15px; }
.partner-item:nth-child(6) .partner-name { color: #0b6ebd; font-size: 16px; }

/* Footer */
.site-footer { margin-top: 28px; color: #d7e3f5; }
.footer-main { background: var(--navy); padding: 28px 0 24px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.footer-brand { display: flex; gap: 14px; flex: 1 1 44rem; min-width: min(100%, 44rem); }
.footer-contact { min-width: min(100%, 30rem); }
.footer-contact p, .footer-contact h4 { white-space: nowrap; }
.footer-related, .footer-qr { flex: 0 0 auto; }
.footer-logo {
  width: 78px; height: 78px; background: #9aa3b2; color: #fff;
  display: grid; place-items: center; font-weight: 800; flex: 0 0 78px;
}
.footer-logo img { width: 78px; height: 78px; object-fit: cover; }
.footer-contact h4, .footer-nav-block h4, .footer-related h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-contact p, .footer-contact a { color: #d7e3f5; font-size: 13px; margin: 0 0 6px; }
.footer-nav, .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.footer-nav a, .footer-links a { color: #d7e3f5; font-size: 13px; }
.footer-nav a:hover, .footer-links a:hover { color: #fff; }
.footer-qr { display: flex; gap: 16px; }
.qr-item { text-align: center; color: #d7e3f5; font-size: 12px; }
.qr-item img, .qr-placeholder { width: 78px; height: 78px; background: #c5ccd6; margin-bottom: 6px; }
.footer-bar { background: var(--red-bar); color: #fff; text-align: center; font-size: 12px; padding: 10px 0; }
.footer-bar .sep { margin: 0 10px; opacity: .7; }

/* Inner pages */
.page-wrap { padding-bottom: 40px; background: var(--bg); min-height: 50vh; }
.archive-banner {
  background: linear-gradient(90deg, var(--navy), #1a5bb8);
  color: #fff; padding: 28px 0 22px; margin-bottom: 28px;
}
.archive-banner h1 { font-size: 28px; }
.crumb, .crumb a { color: rgba(255,255,255,.8); font-size: 13px; margin-bottom: 8px; }
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 28px; color: var(--blue-title); }
.page-head .meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.page-grid { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.entry, .archive-item, .widget, .query-form { background: #fff; border-radius: 8px; }
.entry { padding: 28px 32px; box-shadow: var(--shadow); }
.entry-content { font-size: 16px; line-height: 1.9; color: #333; }
.entry-content p { margin-bottom: 1em; }
.entry-hero { margin: 0 0 20px; border-radius: 8px; overflow: hidden; }
.video-frame { margin: 0 0 20px; aspect-ratio: 16/9; background: #000; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; }
.archive-list { display: flex; flex-direction: column; gap: 14px; }
.archive-item { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 14px; box-shadow: var(--shadow); }
.archive-item h2 { font-size: 18px; margin-bottom: 6px; }
.archive-item h2 a { color: #1d2939; }
.archive-thumb { display: block; border-radius: 6px; overflow: hidden; background: #0b2a5c; min-height: 120px; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget { padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.widget-title { font-size: 16px; color: var(--blue-title); border-left: 3px solid var(--red); padding-left: 8px; margin-bottom: 10px; }
.widget li { padding: 7px 0; border-bottom: 1px dashed #eee; }
.pagination { margin: 24px 0; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination a, .pagination span { background: #fff; padding: 6px 12px; border-radius: 4px; color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; }

.query-form { padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.query-row { display: grid; grid-template-columns: 1fr 160px 96px; gap: 10px; }
.query-row input, .query-row select {
  border: 1px solid #d9dee8; padding: 10px 12px; border-radius: 4px; font-size: 14px;
}
.query-row button { background: var(--navy); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
.query-count { color: var(--muted); margin-bottom: 12px; }
.about-intro { margin-bottom: 18px; }
.about-intro .lead { color: var(--muted); font-size: 16px; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.about-cards div { background: #f6f8fc; padding: 16px; border-radius: 8px; }
.about-cards h3 { color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.partner-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-card { background: #fff; padding: 24px; text-align: center; border-radius: 8px; box-shadow: var(--shadow); }
.partner-logo-box { min-height: 64px; display: grid; place-items: center; margin-bottom: 8px; }
.btn-link { display: inline-block; margin-top: 8px; color: var(--navy); font-weight: 700; }

@media (max-width: 980px) {
  .mid-grid, .lower-grid, .page-grid { grid-template-columns: 1fr; }
  .footer-brand { min-width: 0; flex-basis: 100%; }
  .footer-contact { min-width: 0; }
  .footer-contact p, .footer-contact h4 { white-space: normal; }
  .video-grid, .video-grid-page, .partner-row, .about-cards, .partner-page-grid { grid-template-columns: 1fr 1fr; }
  .hero-script { position: static; transform: none; margin-top: 16px; }
  .archive-item { grid-template-columns: 1fr; }
  .header-search { min-width: 0; }
}
@media (max-width: 720px) {
  .header-top-inner { flex-direction: column; align-items: stretch; }
  .brand-title em { font-size: 24px; }
  .brand-title small { font-size: 16px; }
  .nav-toggle {
    display: block; margin: 8px 0; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4);
    padding: 8px 12px;
  }
  .nav-menu { display: none; flex-direction: column; }
  .nav-menu.is-open { display: flex; }
  .hero-copy h1 { flex-direction: column; gap: 8px; letter-spacing: 2px; }
  .hero-copy .divider { width: 40px; height: 2px; }
  .video-grid, .video-grid-page, .partner-row, .about-cards, .partner-page-grid, .query-row { grid-template-columns: 1fr; }
  .footer-nav, .footer-links { grid-template-columns: 1fr; }
}

.kjs-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.kjs-info-card h3 { font-size: 16px; margin: 10px 0 4px; }
.kjs-info-card h3 a { color: #1d2939; }
.kjs-info-card p { color: var(--muted); font-size: 13px; }
.kjs-block { margin-bottom: 8px; }
.kjs-widget-block .sec-head h2 { font-size: 16px; }
.kjs-empty { color: var(--muted); font-size: 14px; }
