/* 首页、栏目页和正文页共用的字体、页头和内容视觉。 */
:root {
  --site-ink: #172b3b;
  --site-muted: #6e7e8b;
  --site-line: #e5ebef;
  --site-font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --font-serif: var(--site-font);
  --font-sans: var(--site-font);
}

html,
body {
  font-family: var(--site-font);
}

body {
  color: var(--site-ink);
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6,
.target-logo,
.teacher-info h4,
.article-title,
.page-intro h1,
.list-item h2,
.side-card h3 {
  font-family: var(--site-font);
}

.header .target-logo {
  font-family: var(--site-font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.header .nav-menu > li > a {
  font-family: var(--site-font);
  font-size: 15px;
}

.header .nav {
  display: flex;
  position: static;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.header .logo {
  padding: 0;
  border: 0;
}

.header .target-logo img {
  display: block;
  width: auto;
  height: 45px;
  object-fit: contain;
}

.section-title h2 {
  font-size: 32px;
}

.teacher-info h4 {
  font-size: 20px;
}

.teachers-carousel { overflow: hidden; }
.teachers-carousel .teachers-grid {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.teachers-carousel .teachers-grid::-webkit-scrollbar { display: none; }
.teachers-carousel .teacher-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}
.teachers-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
  color: #9f1623;
  font-weight: 700;
}
.teachers-controls[hidden] { display: none; }
.teachers-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid #b41220;
  border-radius: 50%;
  background: #fff;
  color: #9f1623;
  font-size: 24px;
  cursor: pointer;
}
@media (min-width: 769px) and (max-width: 1024px) {
  .teachers-carousel .teacher-card { flex-basis: calc((100% - 24px) / 2); }
}

/* 内页采用首页的导航结构，内容卡片也使用同一组红白与深色文字。 */
.listing-page,
.article-page {
  background: #fff;
}

.listing-page .page-intro {
  background: #f7f9fb;
  border-color: var(--site-line);
}

.listing-page .page-intro .wrap {
  padding-block: 42px 46px;
}

.listing-page .page-intro h1 {
  margin: 0 0 8px;
  color: var(--site-ink);
  font-size: 35px;
  line-height: 1.35;
}

.listing-page .page-intro p {
  color: var(--site-muted);
  font-size: 16px;
}

.listing-page .content-layout,
.article-page .content-layout {
  gap: 48px;
  padding-block: 48px 90px;
}

.crumb {
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.7;
}

.article-page .crumb {
  margin-bottom: 28px;
}

.listing-page .list-item {
  border-color: var(--site-line);
  border-radius: 8px;
  box-shadow: none;
}

.listing-page .article-list {
  border-top: 0;
}

.listing-page .list-item:first-child {
  border-top: 1px solid var(--site-line);
}

.listing-page .list-item h2 {
  color: var(--site-ink);
  font-size: 20px;
  font-weight: 600;
}

.listing-page .list-item:hover h2 {
  color: var(--site-ink);
}

.listing-page .list-date,
.listing-page .list-arrow {
  color: var(--site-muted);
}

.sidebar .side-card {
  border-color: var(--site-line);
  border-top-color: #b41220;
  border-radius: 8px;
}

.sidebar .side-card h3 {
  color: var(--site-ink);
  font-size: 18px;
}

.article-page .article-title {
  max-width: 860px;
  color: var(--site-ink);
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.article-page .article-meta {
  color: var(--site-muted);
  font-size: 13px;
  border-color: var(--site-line);
}

.article-page .article-body {
  color: #26394a;
  font-size: 16px;
  line-height: 1.95;
}

.article-page .article-body h2,
.article-page .article-body h3,
.article-page .article-body h4,
.article-page .article-body strong,
.article-page .article-body b {
  color: var(--site-ink);
}

.article-page .article-body h2,
.article-page .article-body h3,
.article-page .article-body h4 {
  font-family: var(--site-font);
}

.article-page .article-body h2 {
  border-left-color: #cbd6df;
  font-size: 24px;
}

.article-page .article-body h3 {
  font-size: 20px;
}

.article-page .article-body a,
.article-page .article-next a {
  color: #28669b;
}

.article-page .article-body .lead {
  background: #f7f9fb;
  border-left-color: #cbd6df;
  color: #26394a;
}

.article-pagination {
  display: grid;
  gap: 12px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--site-line);
}

.article-pagination > div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  color: var(--site-muted);
  font-size: 15px;
}

.article-pagination a {
  color: var(--site-ink);
  font-weight: 600;
}

.article-pagination a:hover {
  color: #b41220;
}

.site-footer {
  padding: 55px 0 28px;
  background: #840b16;
  color: #f9e9eb;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 42px;
}

.site-footer-brand a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 5px;
  background: #fff;
}

.site-footer-brand img {
  display: block;
  width: auto;
  height: 41px;
}

.site-footer-brand p {
  margin: 17px 0 0;
  color: #f3cdd2;
  font-size: 14px;
}

.site-footer-links h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 17px;
}

.site-footer-links a,
.site-footer-links span {
  display: block;
  margin: 9px 0;
  color: #f3cdd2;
  font-size: 14px;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: #f3cdd2;
  font-size: 13px;
}

.site-footer-bottom a {
  color: inherit;
}

.float-consult-item {
  border: 0;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

@media (min-width: 769px) {
  .float-consult-phone { display: none; }
}

.top-bar-phone {
  white-space: nowrap;
}

.consult-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 30px 24px 24px;
  overflow-y: auto;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .2);
  color: var(--site-ink);
}

/* 首页倒计时：白色区块承托红色计时卡，整块文字保持白色。 */
.countdown-strip {
  background: #fff;
}

.countdown-strip .countdown-card {
  background: #a71929;
  border-color: #a71929;
  color: #fff;
}

.countdown-strip .countdown-label,
.countdown-strip .countdown-encourage,
.countdown-strip .countdown-encourage strong,
.countdown-strip .countdown-unit {
  color: #fff;
}

.countdown-strip .countdown-number {
  background: #c3313e;
  color: #fff;
}

.countdown-strip .countdown-encourage {
  border-color: rgba(255, 255, 255, .38);
}

.news-grid .news-item {
  min-height: 72px;
  padding: 12px 18px;
}

.news-grid .news-item h3 {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.35;
}

.news-grid .news-item .news-meta {
  font-size: 12px;
}

.consult-dialog::backdrop {
  background: rgba(20, 31, 45, .62);
}

.consult-dialog-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--site-muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.consult-dialog h2 {
  margin: 0 0 5px;
  color: #a41422;
  font-size: 24px;
  text-align: center;
}

.consult-dialog > p {
  margin: 0 0 22px;
  color: var(--site-muted);
  font-size: 14px;
  text-align: center;
}

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

.consult-dialog-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.consult-dialog-grid input,
.consult-dialog-grid select {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 8px 10px;
  border: 1px solid #d5e0ec;
  border-radius: 5px;
  background: #fff;
  color: var(--site-ink);
  font: inherit;
  font-weight: 400;
}

.consult-dialog-submit {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: 5px;
  background: #b41220;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.consult-dialog-note {
  margin: 12px 0 0;
  color: var(--site-muted);
  font-size: 12px;
  text-align: center;
}

.consult-dialog .form-result {
  min-height: 20px;
  margin-top: 8px;
  color: #a41422;
  font-size: 13px;
  text-align: center;
}

.mobile-actions {
  display: none !important;
}

@media (max-width: 900px) {
  .listing-page .content-layout,
  .article-page .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #programs {
    padding: 24px 0;
  }

  #programs .section-title {
    margin-bottom: 16px;
  }

  #programs .section-title .label {
    margin-bottom: 4px;
    font-size: 12px;
  }

  #programs .section-title h2 {
    margin-bottom: 6px;
    font-size: 24px;
  }

  #programs .section-title p {
    font-size: 13px;
    line-height: 1.45;
  }

  #programs .section-title .divider {
    margin-top: 8px;
  }

  #programs .program-card-img {
    height: 148px;
  }

  #programs .program-card-body {
    padding: 14px 18px;
  }

  #programs .program-card-body h3 {
    margin-bottom: 5px;
    font-size: 18px;
  }

  #programs .program-card-body p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  #programs .program-card-features {
    margin-bottom: 9px;
  }

  #programs .program-card-features li {
    padding: 2px 0;
    font-size: 12px;
  }

  .top-bar {
    display: none;
  }

  .listing-page .sidebar,
  .article-page .sidebar {
    display: none;
  }

  .float-consult-item .tooltip,
  .float-consult-item:hover .tooltip {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  .header .nav {
    min-height: 72px;
  }

  .header .nav-toggle {
    display: flex;
    position: relative;
  }

  .header .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 30;
  }

  .header .nav-menu.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0 10px;
    padding: 10px 18px;
  }

  .header .nav-menu > li > a {
    min-height: 50px;
    padding: 14px 10px;
    font-size: 14px;
  }

  .header .target-logo {
    font-size: 20px;
  }

  .header .target-logo img {
    height: 39px;
  }

  .hero .hero-content {
    padding-right: 22px;
    padding-left: 22px;
  }

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

  .hero .hero-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 10px 6px;
    font-size: 14px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .teachers-carousel {
    overflow: hidden;
  }

  .teachers-carousel .teachers-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 12px;
  }

  .teachers-carousel .teachers-grid::-webkit-scrollbar {
    display: none;
  }

  .teachers-carousel .teacher-card {
    flex: 0 0 calc(100% - 4px);
    scroll-snap-align: start;
  }

  .teachers-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
    color: #9f1623;
    font-weight: 700;
  }

  .teachers-arrow {
    width: 38px;
    height: 38px;
    border: 1px solid #b41220;
    border-radius: 50%;
    background: #fff;
    color: #b41220;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .listing-page .page-intro h1,
  .article-page .article-title {
    font-size: 28px;
  }

  .listing-page .page-intro .wrap {
    padding-block: 18px 22px;
  }

  .listing-page .page-intro .crumb {
    margin-bottom: 6px;
  }

  .listing-page .page-intro h1 {
    margin-bottom: 0;
    font-size: 25px;
  }

  .listing-page .page-intro p {
    display: none;
  }

  .listing-page .content-layout,
  .article-page .content-layout {
    gap: 28px;
    padding-block: 32px 70px;
  }

  .listing-page .list-item h2 {
    font-size: 18px;
  }

  .article-page .article-body {
    font-size: 16px;
  }

  .article-page .article-body h2 {
    font-size: 22px;
  }

  .site-footer {
    padding: 40px 0 95px;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-bottom: 30px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 5px;
  }

  .float-consult {
    right: 12px;
    bottom: 18px;
  }

  .back-to-top {
    display: none !important;
  }
}


/* Article sidebar: consultation and recommended reading */
.sidebar .side-consult p { color: var(--site-muted); line-height: 1.7; margin: 0 0 18px; }
.sidebar .side-consult-button { display: block; width: 100%; min-height: 46px; border: 1px solid #b41220; border-radius: 5px; background: #b41220; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sidebar .side-consult-button:hover, .sidebar .side-consult-button:focus-visible { background: #96101b; border-color: #96101b; }
.sidebar .side-recommended .recommended-list a { display: block; line-height: 1.6; }
.sidebar .side-recommended .recommended-empty { margin: 8px 0 0; color: var(--site-muted); font-size: 13px; }
.sidebar .side-recommended .recommended-list:has(a) + .recommended-empty { display: none; }

/* Shared consultation dialog */
.consult-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:32px;border:0;border-radius:18px;background:#fff;color:#243045;box-shadow:0 24px 72px rgba(0,0,0,.25)}
.consult-dialog::backdrop{background:rgba(13,24,40,.65)}
.consult-dialog h2{margin:0 40px 8px 0;font-size:26px;line-height:1.3}
.consult-dialog>p{margin:0 0 24px;color:#64748b}
.consult-dialog-close{position:absolute;right:20px;top:16px;border:0;background:transparent;color:#64748b;font-size:30px;line-height:1;cursor:pointer}
.consult-dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.consult-dialog-grid label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px;font-weight:600}
.consult-dialog-grid input,.consult-dialog-grid select{box-sizing:border-box;display:block;width:100%;min-width:0;height:44px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#243045;font:inherit;font-weight:400}
.consult-dialog-grid input:focus,.consult-dialog-grid select:focus{outline:2px solid #b42b35;outline-offset:1px}
.consult-dialog-submit{display:block;width:100%;margin-top:20px;padding:12px 18px;border:0;border-radius:8px;background:#a51622;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.consult-dialog-note{margin:12px 0 0;color:#64748b;font-size:12px;line-height:1.5}
.consult-dialog .form-result{margin-top:10px}
@media(max-width:600px){.consult-dialog{padding:24px 18px}.consult-dialog h2{font-size:22px}.consult-dialog-grid{grid-template-columns:minmax(0,1fr);gap:12px}}
