/* ============================================================
   邯郸市第十二中学 · 官网样式
   蓝白书香主题：校徽蓝 + 深海军蓝，衬线标题 + 无衬线正文
   ============================================================ */

:root {
  --blue: #1A5DAD;
  --blue-soft: #EAF1FA;
  --navy: #0C2D57;
  --navy-card: #163B6E;
  --navy-deep: #0A2547;
  --ink: #0C2D57;
  --body: #43546B;
  --muted: #5B6B7F;
  --dim: #8A99AE;
  --bg: #FFFFFF;
  --bg-alt: #F4F8FC;
  --bg-card: #F8FBFE;
  --border: #E3EAF4;
  --topbar-text: #9FB6D4;
  --footer-text: #8FA9CC;
  --footer-dim: #6E87A8;
  --footer-line: #1E3F66;
  --accent-red: #E0655A;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 14px;
  --shadow: 0 12px 28px rgba(12, 45, 87, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--blue);
  margin-bottom: 12px;
}
.eyebrow.light { color: #7FA8DC; }

.section { padding: 88px 0; scroll-margin-top: 90px; }
.section h2 { font-size: 36px; font-weight: 700; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.section-head.center {
  flex-direction: column;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #155099; box-shadow: 0 8px 20px rgba(26,93,173,.28); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- 顶部信息栏 ---------- */
.topbar {
  background: var(--navy);
  color: var(--topbar-text);
  font-size: 12px;
  padding: 9px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- 页头导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: 0 6px 20px rgba(12,45,87,.08); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-logo { width: 48px; height: 48px; border-radius: 50%; }
.brand-name { display: flex; flex-direction: column; gap: 2px; }
.brand-name strong {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--navy);
  line-height: 1.2;
}
.brand-name small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #7A8BA3;
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  font-size: 15px;
  color: #33465E;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease;
}
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.header-cta { flex-shrink: 0; padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- 首屏主视觉 ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  background: url("../img/hero.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 38, 82, 0.94) 0%,
    rgba(13, 51, 107, 0.62) 52%,
    rgba(15, 61, 122, 0.20) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.10);
  font-size: 13px;
  color: #D7E4F5;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}
.hero h1 {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  line-height: 1.15;
}
.hero-sub {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 2px;
  color: #C9DAF0;
}
.hero-actions { display: flex; gap: 16px; margin-top: 8px; }

/* ---------- 学校概况 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 64px;
  align-items: center;
  margin-bottom: 48px;
}
.about-text p { font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.about-text h2 { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip {
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 6px;
}
.about-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 28px 32px;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 新闻动态 ---------- */
.news { background: var(--bg-alt); }
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}
.more-link:hover { text-decoration: underline; }
.news-grid {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 28px;
  align-items: start;
}
.news-featured {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.news-featured img { width: 100%; height: 340px; object-fit: cover; }
.news-featured-body { padding: 24px 28px 28px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tag {
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
}
time { font-size: 12px; color: var(--dim); }
.news-featured-body h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.news-featured-body p { font-size: 14px; color: var(--muted); }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card img {
  width: 176px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.news-card time { display: block; margin-bottom: 8px; }
.news-card h3 { font-size: 15px; line-height: 1.55; font-weight: 600; }

/* ---------- 办学特色 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card .icon {
  width: 30px; height: 30px;
  color: var(--blue);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 12px; }
.feature-card p { font-size: 13px; line-height: 1.7; color: var(--muted); }

/* ---------- 师资队伍 ---------- */
.faculty { background: var(--navy); }
.faculty h2 { color: #fff; }
.faculty-note { color: var(--footer-text); font-size: 14px; margin-top: 12px; }
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.teacher-card {
  background: var(--navy-card);
  border-radius: 16px;
  padding: 28px 26px;
  transition: transform .2s ease, background .2s ease;
}
.teacher-card:hover { transform: translateY(-3px); background: #1A4480; }
.avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2A5B96;
  color: #fff;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}
.teacher-card h3 { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.teacher-card p { color: var(--footer-text); font-size: 12px; line-height: 1.7; }

/* ---------- 校园风采 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 170px 170px 190px;
  gap: 20px;
  grid-template-areas:
    "big big s1 s1"
    "big big s2 s2"
    "a b c d";
}
.gallery-grid .g-big { grid-area: big; }
.gallery-grid .g-s1 { grid-area: s1; }
.gallery-grid .g-s2 { grid-area: s2; }
.gallery-grid .g:nth-of-type(4) { grid-area: a; }
.gallery-grid .g:nth-of-type(5) { grid-area: b; }
.gallery-grid .g:nth-of-type(6) { grid-area: c; }
.gallery-grid .g:nth-of-type(7) { grid-area: d; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .3s ease;
}
.gallery-grid .g { overflow: hidden; border-radius: 12px; }
.gallery-grid .g:hover img { transform: scale(1.04); }

/* ---------- 招生信息 · 联系我们 ---------- */
.admissions { background: var(--bg-alt); }
.admissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card { border-radius: 16px; padding: 36px; }
.card-light { background: #fff; border: 1px solid var(--border); }
.card-dark { background: var(--navy); color: #D7E4F5; }
.card h3 { font-size: 20px; margin-bottom: 20px; }
.card-dark h3 { color: #fff; }
.dot-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.contact-list svg {
  width: 18px; height: 18px;
  color: #7FA8DC;
  flex-shrink: 0;
  margin-top: 3px;
}
.card-dark-note { color: #7FA8DC; font-size: 13px; line-height: 1.7; margin-top: 6px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-deep); padding: 64px 0 36px; }
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand strong { font-family: var(--serif); font-size: 18px; color: #fff; }
.footer-brand p { color: var(--footer-text); font-size: 13px; margin-top: 14px; }
.footer-brand p.dim { color: var(--footer-dim); margin-top: 6px; }
.footer-brand .brand-logo { width: 40px; height: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.footer-col a { color: var(--footer-text); font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-divider {
  border: 0;
  border-top: 1px solid var(--footer-line);
  margin: 36px 0 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--footer-dim);
  font-size: 12px;
}

/* ---------- 响应式：≤1024px ---------- */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 30px rgba(12,45,87,.10);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active { border-bottom: 1px solid var(--border); color: var(--blue); }

  .hero { min-height: 540px; }
  .hero h1 { font-size: 44px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo img { height: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .admissions-grid { grid-template-columns: 1fr; }
}

/* ---------- 响应式：≤640px ---------- */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section h2 { font-size: 28px; }
  .topbar-inner span:last-child { display: none; }
  .brand-name small { display: none; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 32px; letter-spacing: 2px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 20px; }
  .stat strong { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr; }
  .news-card img { width: 120px; height: 96px; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 140px 140px 140px;
    grid-template-areas:
      "big big"
      "s1 s2"
      "a b"
      "c d";
    gap: 12px;
  }
  .footer-main { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   二级页面：页头横幅 / 面包屑 / 新闻列表 / 文章正文
   ============================================================ */

.page-hero {
  background: linear-gradient(120deg, #0A2547 0%, #0C2D57 55%, #155099 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.3;
}
.page-hero .sub { color: #C9DAF0; margin-top: 14px; font-size: 15px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #9FB6D4;
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: #D7E4F5; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13px;
  color: #9FB6D4;
}
.hero-meta .tag {
  background: rgba(255,255,255,.12);
  color: #D7E4F5;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
}

/* ---------- 新闻列表页 ---------- */
.news-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-date {
  flex-shrink: 0;
  width: 88px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 14px 0;
}
.news-date strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.15;
}
.news-date span { font-size: 12px; color: var(--muted); }
.news-item-body { flex: 1; }
.news-item-body h3 { font-size: 19px; line-height: 1.5; margin-bottom: 8px; }
.news-item-body h3 a:hover { color: var(--blue); }
.news-item-body p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.news-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--dim);
}
.news-item-meta .tag {
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.read-more { color: var(--blue); font-weight: 500; }
.read-more:hover { text-decoration: underline; }

/* ---------- 文章详情页 ---------- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-body { font-size: 16px; line-height: 1.9; color: #33465E; }
.article-body p { margin-bottom: 20px; }
.article-body .lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 500;
  border-left: 4px solid var(--blue);
  padding-left: 18px;
  margin-bottom: 30px;
}
.article-body h3 {
  font-size: 21px;
  margin: 38px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-credit {
  margin-top: 44px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.article-source {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}
.article-source a { color: var(--blue); font-weight: 500; word-break: break-all; }
.article-source a:hover { text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  color: var(--blue);
  font-weight: 500;
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  font-size: 14px;
}
.article-table th, .article-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.article-table th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.article-table tr.hl td { background: #EAF1FA; font-weight: 600; color: var(--navy); }

/* ---------- 二级页通用内容 ---------- */
.prose p { font-size: 15px; line-height: 1.85; margin-bottom: 18px; }
.prose h3 { font-size: 22px; margin: 40px 0 18px; }
.honor-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.timeline { position: relative; margin: 32px 0 8px; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--blue-soft);
}
.timeline-item .t-year {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}
.timeline-item p { font-size: 14px; color: var(--muted); margin: 0; }
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}
.info-table th, .info-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
.info-table th { background: var(--bg-alt); color: var(--ink); font-weight: 600; width: 180px; }
.gallery-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-full figure { overflow: hidden; border-radius: 12px; }
.gallery-full img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-full figure:hover img { transform: scale(1.04); }
.gallery-full figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 4px 0;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

@media (max-width: 1024px) {
  .gallery-full { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 44px 0 40px; }
  .page-hero h1 { font-size: 26px; }
  .news-item { flex-direction: column; gap: 14px; padding: 20px; }
  .news-date {
    width: auto;
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 8px 14px;
  }
  .news-date strong { font-size: 20px; }
  .gallery-full { grid-template-columns: 1fr; }
  .info-table th { width: 110px; }
}
