﻿/* 志恒教育招生资讯 · 列表 / 详情共用样式 */
:root {
  --green: #117543;
  --green-dark: #056635;
  --green-soft: #eaf3ed;
  --green-line: #d8e8de;
  --gold: #c8923b;
  --text: #26332c;
  --muted: #6f7d75;
  --bg: #f2f6f3;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(17, 117, 67, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 0 74px;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ============ 顶部 ============ */
.site-header {
  background: #fff;
  box-shadow: 0 3px 16px rgba(15, 63, 40, .07);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 10px 0;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { color: var(--green); font-size: 22px; letter-spacing: 1px; white-space: nowrap; }
.brand-text small { margin-top: 4px; color: #7e8b83; font-size: 11px; letter-spacing: .5px; white-space: nowrap; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 30px;
  background: #fff7e8;
  border: 1px solid #f0d9b4;
  color: #7a5721;
  transition: .25s ease;
}
.header-call:hover { background: #fff0d6; transform: translateY(-1px); }
.header-call .phone-svg { width: 20px; height: 20px; fill: var(--gold); }
.header-call small { display: block; font-size: 11px; color: #9a7b4a; line-height: 1.2; }
.header-call b { font-size: 18px; letter-spacing: .5px; line-height: 1.2; }

.main-nav { background: var(--green-dark); }
.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: 13px 22px;
  color: #fff;
  font-size: 15px;
  transition: .2s ease;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255, 255, 255, .13); }

/* ============ 列表页头部 ============ */
.page-intro {
  margin: 26px 0 22px;
  padding: 28px 30px;
  background: linear-gradient(120deg, #0f6d40, #178655 62%, #2a9b67);
  border-radius: 16px;
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.page-intro::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, .08);
}
.page-intro .eyebrow {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: .9;
}
.page-intro h1 { margin: 12px 0 8px; font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: 2px; }
.page-intro p { margin: 0; max-width: 760px; color: rgba(255, 255, 255, .88); font-size: 14px; }
.page-intro .list-stat { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .75); }

/* ============ 新闻卡片 ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.news-card {
  display: flex;
  min-height: 178px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(18, 66, 44, .045);
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(18, 66, 44, .12); }

.news-card .thumb {
  flex: 0 0 218px;
  width: 218px;
  overflow: hidden;
  background: var(--green-soft);
}
.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.news-card:hover .thumb img { transform: scale(1.04); }

.news-card .card-body {
  flex: 1;
  min-width: 0;
  padding: 17px 18px 14px;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9aa69f;
  font-size: 12px;
}
.card-meta .date { color: #6d7e73; }
.card-meta .views { margin-left: auto; white-space: nowrap; }

.news-card h2 {
  margin: 9px 0 7px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
}
.news-card h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1f3328;
  transition: color .2s ease;
}
.news-card h2 a:hover { color: var(--green); }

.news-card .summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--green);
  font-size: 13px;
}
.read-more span { transition: transform .2s ease; }
.news-card:hover .read-more span { transform: translateX(4px); }

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 20px;
  border: 1px dashed #cfded5;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

/* ============ 分页 ============ */
.pager {
  margin: 26px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 4px;
}
.pager-info { color: #7f8d85; font-size: 13px; }
.pager-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-links a, .pager-links span {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #dbe6df;
  border-radius: 8px;
  background: #fff;
  color: #415247;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pager-links a:hover { border-color: var(--green); color: var(--green); }
.pager-links .current { border-color: var(--green); background: var(--green); color: #fff; }
.pager-links .disabled { color: #b5c0b9; background: #f6f8f6; }

/* ============ 详情 ============ */
.breadcrumb {
  margin: 22px 0 14px;
  color: #87958c;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: #bdc8c1; }

.article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 46px 38px;
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.article-head { text-align: center; padding-bottom: 18px; border-bottom: 1px solid #edf2ee; }
.article-head h1 {
  margin: 0 0 16px;
  color: #1e3327;
  font-size: 30px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .5px;
  text-align: left;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #99a59d;
  font-size: 13px;
}
.article-meta .source { color: #63766a; }

.article-hero { margin: 22px 0 8px; }
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
  background: #f3f7f4;
  box-shadow: 0 6px 20px rgba(17, 64, 42, .10);
}

.article-body {
  margin-top: 18px;
  color: #3b4a40;
  font-size: 16.5px;
  line-height: 1.95;
  word-break: break-word;
}
.article-body p { margin: 0 0 17px; }
.article-body h2 {
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--green);
  color: #173325;
  font-size: 21px;
  line-height: 1.55;
}
.article-body h3 {
  margin: 24px 0 10px;
  color: #234534;
  font-size: 18px;
  line-height: 1.55;
}
.article-body h4 {
  margin: 20px 0 8px;
  color: #2f4c3a;
  font-size: 16px;
  line-height: 1.6;
}
.article-body strong { color: #173c29; }
.article-body img { width: 100%; height: auto; border-radius: 10px; margin: 8px 0 10px; }
.article-body figure { margin: 20px 0; }
.article-body figcaption {
  margin-top: 6px;
  color: #94a198;
  font-size: 12px;
  text-align: center;
}
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 4px solid #cfe3d6;
  background: #f7faf8;
  color: #52685b;
}

.article-tags {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed #e2ebe5;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #8b998f;
  font-size: 13px;
}
.article-tags .tag {
  padding: 4px 12px;
  border: 1px solid #d8e8de;
  border-radius: 20px;
  background: #f3f9f5;
  color: var(--green);
  font-size: 13px;
}

.article-cta {
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: 12px;
  background: linear-gradient(120deg, #eaf5ee, #f7fbf8);
  border: 1px solid #d8e8de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.article-cta .cta-copy strong { display: block; color: #1b422d; font-size: 18px; }
.article-cta .cta-copy span { display: block; margin-top: 3px; color: #6c8074; font-size: 13px; }
.article-cta .cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  transition: .2s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 5px 14px rgba(17, 117, 67, .2); }
.btn-primary:hover { background: var(--green-dark); }
.btn-light { background: #fff; color: var(--green); border: 1px solid #cfe1d6; }
.btn-light:hover { border-color: var(--green); }

.back-list { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--green); font-size: 14px; }

.article-copyright {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid #edf2ee;
  color: #96a29a;
  font-size: 12px;
  line-height: 1.8;
}

/* ============ 学校性质 ============ */
.school-nature {
  margin: 30px 0 6px;
  padding: 28px 30px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dfeae3;
  box-shadow: 0 5px 22px rgba(17, 64, 42, .05);
  position: relative;
  overflow: hidden;
}
.school-nature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(var(--green), #42ae78);
}
.school-nature .nature-label {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
}
.school-nature h2 {
  margin: 8px 0 10px;
  color: #1d3a2a;
  font-size: 22px;
  line-height: 1.5;
}
.school-nature .nature-desc {
  margin: 0;
  max-width: 1000px;
  color: #5f7467;
  font-size: 14px;
  line-height: 1.9;
}
.nature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.nature-grid div {
  padding: 12px 14px;
  background: #f6faf7;
  border: 1px solid #e5efe8;
  border-radius: 10px;
}
.nature-grid strong { display: block; color: #29543b; font-size: 13px; margin-bottom: 3px; }
.nature-grid span { display: block; color: #708479; font-size: 12px; line-height: 1.65; }

/* ============ 页脚 ============ */
.site-footer {
  position: relative;
  margin-top: 46px;
  padding: 40px 0 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(83, 186, 132, .16), transparent 34%),
    linear-gradient(135deg, #0c2117 0%, #123526 58%, #0a1d14 100%);
  border-top: 3px solid #2f9b63;
  color: #c7d8ce;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .025), 0 0 0 92px rgba(255, 255, 255, .018);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 0 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.footer-top > div { min-width: 0; }
.footer-top strong {
  display: block;
  padding-left: 15px;
  border-left: 4px solid #52bd86;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: .5px;
}
.footer-top p {
  margin: 10px 0 0 19px;
  color: #a9c1b4;
  font-size: 13.5px;
  line-height: 1.8;
}
.footer-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 260px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1px;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.footer-phone:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(94, 201, 145, .7);
  transform: translateY(-2px);
}
.footer-phone small {
  display: block;
  margin-top: 8px;
  color: #a9c1b4;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: right;
}
.copyright {
  padding: 22px 0 26px;
  text-align: center;
  color: #9bb3a5;
  font-size: 12px;
  line-height: 1.9;
}
.copyright a { color: #c3dacb; text-decoration: none; }
.copyright a:hover { color: #fff; text-decoration: underline; }
.copyright .line { display: block; }
.disclaimer {
  max-width: 1000px;
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, .12);
  color: #809b8d;
  font-size: 12px;
  line-height: 1.8;
}

/* ============ 手机底部导航 ============ */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid #dfe8e2;
  box-shadow: 0 -4px 16px rgba(18, 50, 34, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar ul { display: flex; }
.mobile-bar li { flex: 1; }
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  color: #4c6254;
  font-size: 12px;
}
.mobile-bar a svg { width: 20px; height: 20px; fill: #5c7565; }
.mobile-bar a.call { color: var(--green); font-weight: 700; }
.mobile-bar a.call svg { fill: var(--green); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card .thumb { flex-basis: 190px; width: 190px; }
  .nature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .container { padding: 0 14px; }

  .site-header .container.topbar { padding-left: 12px; padding-right: 12px; }
  .topbar { min-height: 82px; gap: 10px; padding: 9px 0; justify-content: space-between; }
  .brand { gap: 10px; flex: 1; width: auto; min-width: 0; }
  .brand-logo { width: 64px; height: 64px; }
  .brand-text { flex: 1; min-width: 0; }
  .brand-text strong { font-size: 20px; letter-spacing: .5px; }
  .brand-text small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: .5px;
    line-height: 1.35;
    white-space: normal;
  }
  .header-call {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .header-call > span { display: none; }
  .header-call .phone-svg { width: 20px; height: 20px; }

  .main-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-nav ul { justify-content: flex-start; flex-wrap: nowrap; min-width: max-content; }
  .main-nav a { padding: 10px 16px; font-size: 14px; }

  .page-intro { margin-top: 16px; padding: 22px 20px; border-radius: 12px; }
  .page-intro h1 { font-size: 25px; }
  .page-intro p { font-size: 13px; }

  .news-card { flex-direction: column; min-height: 0; }
  .news-card .thumb { width: 100%; flex: none; height: 185px; }
  .news-card .card-body { padding: 14px 15px 15px; }
  .news-card h2 { font-size: 16px; }
  .summary { display: none; }

  .pager { margin-top: 18px; }
  .pager-links a, .pager-links span { min-width: 31px; height: 31px; }

  .breadcrumb { margin: 15px 0 10px; font-size: 12px; }
  .article-shell { padding: 22px 17px 26px; border-radius: 12px; }
  .article-head h1 { font-size: 23px; line-height: 1.5; }
  .article-meta { justify-content: flex-start; gap: 10px; font-size: 12px; }
  .article-body { font-size: 16px; line-height: 1.9; }
  .article-body h2 { font-size: 19px; margin-top: 25px; }
  .article-body h3 { font-size: 17px; }
  .article-hero img { max-height: none; }
  .article-cta { padding: 17px; }
  .article-cta .cta-copy strong { font-size: 16px; }
  .btn { flex: 1; padding: 0 12px; }

  .school-nature { padding: 22px 18px; border-radius: 12px; }
  .school-nature h2 { font-size: 19px; }
  .nature-grid { grid-template-columns: 1fr; gap: 8px; }
  .nature-grid div { padding: 10px 12px; }

  .footer-top { grid-template-columns: 1fr; gap: 20px; padding-bottom: 22px; }
  .footer-top strong { font-size: 20px; }
  .footer-top p { margin-left: 19px; font-size: 12.5px; }
  .footer-phone {
    width: 100%;
    min-width: 0;
    align-items: center;
    padding: 13px 16px;
    font-size: 23px;
    text-align: center;
  }
  .footer-phone small { text-align: center; }
  .copyright { padding: 18px 0 22px; font-size: 11.5px; }
  .disclaimer { margin-top: 12px; padding-top: 12px; }
  .site-footer { margin-top: 28px; padding-top: 28px; }

  .mobile-bar { display: block; }
}

@media (max-width: 430px) {
  .brand-text strong { font-size: 19px; }
}

.faq-block { margin-top: 26px; padding: 26px 28px; background: #fff; border: 1px solid #e2ebe5; border-radius: 14px; box-shadow: 0 10px 26px rgba(17, 117, 67, 0.06); }
.faq-block h2 { margin: 10px 0 6px; color: #173f2b; font-size: 22px; line-height: 1.45; }
.faq-list { margin: 0; }
.faq-item { padding: 14px 0 13px; border-top: 1px solid #edf3ef; }
.faq-item:first-child { border-top: 0; }
.faq-item dt { color: #204c34; font-size: 15px; font-weight: 700; line-height: 1.65; }
.faq-item dd { margin: 6px 0 0; color: #5f7267; font-size: 14px; line-height: 1.85; }
.faq-item dd a { color: #117543; font-weight: 700; }

@media (max-width: 720px) {
  .faq-block { padding: 20px 18px; border-radius: 12px; }
  .faq-block h2 { font-size: 19px; }
  .faq-item dt { font-size: 14px; }
  .faq-item dd { font-size: 13px; }
}

/* 相关资讯（文章详情页底部随机推荐） */
.related-news { margin-top: 26px; padding: 24px 26px; background: #fff; border: 1px solid #e2ebe5; border-radius: 14px; box-shadow: 0 10px 26px rgba(17, 117, 67, 0.06); }
.related-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #edf3ef; }
.related-head h2 { margin: 0; color: #173f2b; font-size: 19px; line-height: 1.5; }
.related-more { font-size: 13px; color: #117543; font-weight: 700; text-decoration: none; }
.related-more:hover { text-decoration: underline; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { border-bottom: 1px dashed #edf3ef; }
.related-list li:last-child { border-bottom: 0; }
.related-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 2px; color: #204c34; font-size: 14.5px; line-height: 1.7; text-decoration: none; }
.related-list a:hover { color: #117543; }
.related-list .rt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-list .rd { flex: 0 0 auto; color: #93a79a; font-size: 12.5px; }
@media (max-width: 720px) {
  .related-news { padding: 18px 16px; border-radius: 12px; }
  .related-head h2 { font-size: 17px; }
  .related-list a { font-size: 13.5px; }
  .related-list .rd { display: none; }
}

/* 招生范围：不予招收情形说明 */
.nature-exclude {
  margin: 14px 0 18px;
  padding: 14px 16px 14px 18px;
  border-left: 3px solid #c9863c;
  border-radius: 8px;
  background: #fbf7f2;
}
.nature-exclude .ne-title {
  margin: 0 0 6px;
  color: #7a4a1d;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.75;
}
.nature-exclude .ne-list {
  margin: 0;
  padding-left: 18px;
  color: #5b5a56;
  font-size: 13.5px;
  line-height: 1.95;
}
.nature-exclude .ne-list li { list-style: disc; }
@media (max-width: 720px) {
  .nature-exclude { padding: 12px 14px; }
  .nature-exclude .ne-title { font-size: 14px; }
  .nature-exclude .ne-list { font-size: 13px; line-height: 1.9; }
}
