:root {
  --color-brand-primary: #16384c;
  --color-brand-primary-hover: #235067;
  --color-text-primary: #23364e;
  --color-text-secondary: #6a7c92;
  --color-text-tertiary: #8b9aab;
  --color-bg-body: #fff;
  --color-bg-card: #fff;
  --color-bg-muted: #eef2f6;
  --color-border: #e6edf2;
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --container-width: 1200px;
  --radius-sm: 4px;
  --sidebar-width: 280px;
}

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

body {
  margin: 0;
  font: var(--fs-14)/1.7 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg-body);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-brand-primary);
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(var(--container-width), calc(100% - 40px));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 20px;
  border: 0;
  border-radius: 2px;
  background: #1c485c;
  color: #fff;
  font-size: var(--fs-12);
  letter-spacing: 1px;
  cursor: pointer;
}

.btn:hover {
  background: #12394c;
  color: #fff;
}

/* header */
.site-header {
  background: #fff;
}

.top-bar {
  background: #f2f3f5;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-12);
  color: var(--color-text-secondary);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-sep {
  color: #cbd1db;
}

.logo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 88px;
}

.logo {
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  min-width: 0;
}

.logo img {
  display: block;
  max-width: 240px;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-name {
  font-size: var(--fs-24);
  font-weight: 700;
  color: var(--color-brand-primary);
  letter-spacing: 1px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: inherit;
}

.phone-icon {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--color-brand-primary);
}

.phone-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.3;
}

.phone-text span {
  font-size: var(--fs-14);
  color: var(--color-text-tertiary);
}

.phone-text strong {
  font-size: var(--fs-20);
  font-weight: 700;
  color: #17334c;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-brand-primary);
  content: "";
}

.menu-bars {
  position: relative;
}

.menu-bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.menu-bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.site-nav {
  background: var(--color-brand-primary);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
}

.nav-link {
  flex: 1;
  text-align: center;
  line-height: 54px;
  color: #fff;
  font-size: var(--fs-16);
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.is-active {
  background: #0f2a3a;
  color: #fff;
}

/* 内页内容区与 footer 留白；首页末尾 .section 贴底不加 */
main > .container {
  margin-bottom: var(--space-8);
}

/* footer */
.site-footer {
  padding: var(--space-8) 0 var(--space-6);
  background: #112f42;
  color: #c9d3db;
}

.footer-row {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  margin-bottom: var(--space-3);
  font-size: var(--fs-16);
  font-weight: 700;
  color: #fff;
}

.footer-text {
  font-size: var(--fs-14);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  flex: 0 0 calc((100% - 32px) / 3);
  width: calc((100% - 32px) / 3);
  max-width: calc((100% - 32px) / 3);
  min-width: 0;
}

.footer-links a {
  display: block;
  padding: 4px 0;
  color: #c9d3db;
  font-size: var(--fs-14);
}

.footer-copy {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid #ffffff22;
  text-align: center;
  font-size: var(--fs-12);
  color: #99a8b4;
}

.footer-copy a {
  color: #99a8b4;
}

/* crumb / heading */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: var(--space-5) 0 var(--space-4);
  font-size: var(--fs-12);
  color: var(--color-text-tertiary);
}

.crumb a:hover {
  color: var(--color-brand-primary);
}

.crumb-sep {
  color: #b9c1cc;
}

.page-heading {
  margin-bottom: var(--space-5);
}

.page-heading h1,
.page-title,
.detail-title,
.article-title,
.contact-title,
.home-intro-copy h1 {
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand-primary);
}

/* layout */
.news-page-layout,
.detail-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.news-page-layout>.page-main,
.detail-layout>.article {
  flex: 1;
  min-width: 0;
}

.page-sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.side-box {
  padding: 18px 16px 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.side-box.side-contact {
  background: linear-gradient(180deg, #f4f7f9, #fff);
  border-color: #d9e4ec;
}

.side-box.side-contact .btn {
  width: 100%;
}

.side-title,
.detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f6;
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand-primary);
}

.side-title::before,
.detail-section-title::before {
  content: "";
  flex: none;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-brand-primary);
}

.faq-group-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand-primary);
}

.faq-group-head h2::before {
  content: "";
  flex: none;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-brand-primary);
}

.side-list {
  display: flex;
  flex-direction: column;
}

.side-list a {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-bg-muted);
  font-size: var(--fs-16);
  color: #3d5670;
  line-height: 1.7;
}

.side-list a:last-child {
  border-bottom: 0;
}

.side-text {
  margin-bottom: var(--space-4);
  font-size: var(--fs-14);
  color: var(--color-text-secondary);
}

/* section */

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 22px;
}

.sec-head-copy {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.sec-head h2 {
  margin: 0;
  flex: none;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  color: #142e52;
}

.sec-desc {
  margin: 0;
  min-width: 0;
  font-size: var(--fs-16);
  color: #5d7088;
  line-height: 1.5;
}

.sec-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 3px;
  background: var(--color-brand-primary);
  color: #fff;
  font-size: var(--fs-14);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
}

.sec-more:hover {
  background: var(--color-brand-primary-hover);
  color: #fff;
}

/* home intro = 学校简介 */
.home-intro {
  padding: 28px 0 48px;
  background: #fff;
}

.home-intro-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.home-intro-visual {
  flex: 0 0 420px;
  width: 420px;
  max-width: 42%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #e7eff3;
}

.home-intro-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-intro-copy {
  flex: 1;
  min-width: 0;
}

.home-intro-copy h1 {
  margin-bottom: 14px;
}

.home-intro-desc {
  margin: 0;
  font-size: var(--fs-16);
  color: #4a607e;
  line-height: 1.85;
}

.home-intro-actions {
  margin-top: var(--space-5);
}

/* cards / lists */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.card-grid-3>* {
  flex: 0 0 calc((100% - 40px) / 3);
  width: calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  min-width: 0;
}

.card-grid-2>* {
  flex: 0 0 calc((100% - 20px) / 2);
  width: calc((100% - 20px) / 2);
  max-width: calc((100% - 20px) / 2);
  min-width: 0;
}

.section {
  padding: 48px 0;
  background: #fff;
}

.section-soft {
  background: #f5f7f8;
}

.section-muted {
  background: #f1f5f6;
}

.media-card,
.teacher-card,
.faq-item {
  display: flex;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.media-card:hover,
.teacher-card:hover,
.case-card:hover {
  box-shadow: 0 10px 24px rgba(22, 56, 76, 0.12);
  transform: translateY(-2px);
}

.media-card {
  flex-direction: column;
  border: 1px solid #e6edf2;
  box-shadow: none;
}

.media-card:hover {
  border-color: #e6edf2;
  box-shadow: 0 10px 24px rgba(22, 50, 76, 0.07);
}

.media-card-cover img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.media-card-body,
.teacher-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  min-width: 0;
}

.teacher-card-img {
  flex: 0 0 38%;
  width: 38%;
  max-width: 38%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: 50% 27%;
}

.teacher-card-body {
  flex: 1;
}

.teacher-role {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 3px;
  background: #eef3f6;
  font-size: var(--fs-12);
  color: var(--color-brand-primary);
  line-height: 1.5;
}

.card-title {
  display: block;
  font-size: var(--fs-18);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.card-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--fs-14);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.card-meta {
  display: block;
  font-size: var(--fs-12);
  color: var(--color-text-tertiary);
}

.card-link {
  display: block;
  margin-top: 8px;
  text-align: right;
  font-size: 14px;
  color: #4a607e;
}

.media-card .card-link,
.teacher-card .card-link {
  margin-top: auto;
}

.media-card:hover .card-link,
.teacher-card:hover .card-link,
.news-row:hover .card-link {
  color: var(--color-brand-primary);
}

.case-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-border);
  color: inherit;
}

.case-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s;
}

.case-card:hover .case-card-img {
  transform: scale(1.04);
}

.case-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 16px;
  background: linear-gradient(transparent, rgba(14, 36, 52, 0.72));
}

.case-card-overlay .card-title {
  color: #fff;
  font-size: var(--fs-18);
  font-weight: 400;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-list:not(.news-list-home) .news-row {
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #e8eef5;
  align-items: stretch;
}

.news-list:not(.news-list-home) .news-row:last-child {
  border-bottom: 0;
}

.news-list:not(.news-list-home) .news-row-img {
  flex: 0 0 180px;
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.news-list:not(.news-list-home) .news-row-body {
  gap: 8px;
}

.news-list:not(.news-list-home) .news-row-body .card-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-18);
  font-weight: 600;
  color: #142e52;
  line-height: 1.4;
}

.news-list:not(.news-list-home) .news-row-body .card-summary {
  flex: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  color: #6a7c92;
  line-height: 1.7;
}

.news-list:not(.news-list-home) .news-row-text {
  align-items: flex-start;
  min-height: 0;
}

.news-list:not(.news-list-home) .news-row-text .news-row-body {
  gap: 10px;
}

.news-list:not(.news-list-home) .news-row-text .card-summary {
  flex: none;
  -webkit-line-clamp: 3;
}

.news-list:not(.news-list-home) .news-row-text .news-row-foot {
  margin-top: 4px;
}

.news-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.news-row-time {
  font-size: 15px;
  color: #8b9aab;
}

.news-row-more {
  font-size: 15px;
  color: var(--color-brand-primary);
}

.news-list:not(.news-list-home) .news-row:hover .card-title,
.news-list:not(.news-list-home) .news-row:hover .news-row-more {
  color: var(--color-brand-primary);
}

.news-list-home {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.news-list-home .news-row {
  flex: 0 0 calc((100% - 28px) / 2);
  width: calc((100% - 28px) / 2);
  max-width: calc((100% - 28px) / 2);
  gap: 14px;
  padding: 0;
  border: 0;
  min-height: 118px;
}

.news-row {
  display: flex;
  align-items: stretch;
  color: inherit;
  min-width: 0;
}

.news-row-img {
  flex: 0 0 176px;
  width: 176px;
  height: 118px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.news-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-list-home .news-row-body .card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--fs-18);
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.5;
}

.news-list-home .news-row-body .card-summary {
  flex: 1;
  -webkit-line-clamp: 2;
  font-size: var(--fs-14);
  color: #8a93a3;
}

.news-list-home .news-row-body .card-link {
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
  font-size: var(--fs-14);
  color: #8a93a3;
}

.news-list-home .news-row:hover .card-title,
.news-list-home .news-row:hover .card-link {
  color: var(--color-brand-primary);
}

.news-row-text .news-row-img {
  display: none;
}

.news-row-text .news-row-foot {
  justify-content: flex-end;
}

.side-hot {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: side-hot;
}

.side-hot li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-bg-muted);
  counter-increment: side-hot;
}

.side-hot li:last-child {
  border-bottom: 0;
}

.side-hot li::before {
  flex: none;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 2px;
  background: #eef2f6;
  color: #8490a2;
  font-size: var(--fs-12);
  font-weight: 600;
  content: counter(side-hot);
}

.side-hot li:nth-child(1)::before {
  background: #ff713e;
  color: #fff;
}

.side-hot li:nth-child(2)::before {
  background: #ff8b19;
  color: #fff;
}

.side-hot li:nth-child(3)::before {
  background: #ffad00;
  color: #fff;
}

.side-hot a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fs-16);
  color: #4a607e;
  line-height: 1.7;
}

.side-hot a:hover {
  color: var(--color-brand-primary);
}

.faq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.faq-item {
  flex: 0 0 calc((100% - 12px) / 2);
  width: calc((100% - 12px) / 2);
  max-width: calc((100% - 12px) / 2);
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-4);
}

.faq-home {
  counter-reset: faq;
}

.faq-home .faq-item {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 18px;
  counter-increment: faq;
}

.faq-num {
  flex: none;
  font-size: var(--fs-12);
  color: var(--color-text-tertiary);
}

.faq-num::before {
  content: counter(faq, decimal-leading-zero);
}

.faq-home .card-title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-16);
}

.faq-arrow {
  flex: none;
  color: var(--color-text-tertiary);
}

.faq-home .faq-item:hover {
  border-color: var(--color-brand-primary);
  box-shadow: 0 8px 18px rgba(22, 56, 76, 0.1);
}

.faq-groups {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.faq-group {
  flex: 0 0 calc((100% - 20px) / 2);
  width: calc((100% - 20px) / 2);
  max-width: calc((100% - 20px) / 2);
  min-width: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.faq-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.faq-group-head>a {
  flex: none;
  font-size: var(--fs-14);
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.faq-group-head>a:hover {
  color: var(--color-brand-primary);
}

.faq-group-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-group-list li {
  min-width: 0;
}

.faq-group-list a {
  display: block;
  overflow: hidden;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-bg-muted);
  font-size: var(--fs-14);
  color: var(--color-text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.faq-group-list li:last-child a {
  border-bottom: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d9e4ec;
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: var(--fs-14);
  color: #4a607e;
}

.filter.is-active,
.filter:hover {
  border-color: var(--color-brand-primary);
  background: var(--color-brand-primary);
  color: #fff;
}

.empty-state {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  padding: 48px 0;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--fs-16);
}

/* detail / article */
.article {
  padding: 18px 40px 40px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.article-solo {
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-6);
}

.article-title {
  margin: 0 0 10px;
  text-align: center;
}

.teacher-profile-name {
  text-align: left;
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: var(--space-3) 0 var(--space-5);
  font-size: var(--fs-14);
  color: var(--color-text-tertiary);
}

.article-lead {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #f7f9fc;
  border-radius: var(--radius-sm);
  color: #4a607e;
  font-size: var(--fs-16);
  line-height: 1.8;
  text-align: left;
}

.teacher-profile-lead {
  margin: 12px 0 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.article-cover {
  margin: 0 auto 24px;
  width: 80%;
  max-width: 80%;
}

.article-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.article-body {
  font-size: var(--fs-16);
  line-height: 1.85;
  color: var(--color-text-primary);
}

.article-pager {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-14);
  color: var(--color-text-secondary);
}

.article-pager>span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-pager a:hover {
  color: var(--color-brand-primary);
}

.article-related {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.article-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.article-related-head h2 {
  margin: 0;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand-primary);
}

.article-related-head a {
  flex: none;
  color: var(--color-text-tertiary);
  font-size: var(--fs-14);
  white-space: nowrap;
}

.article-related-head a:hover {
  color: var(--color-brand-primary);
}

.article-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-related-list li {
  padding: 9px 0;
  border-bottom: 1px dashed #e8eef5;
}

.article-related-list li:last-child {
  border-bottom: 0;
}

.article-related-list a {
  display: block;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: var(--fs-14);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-related-list a:hover {
  color: var(--color-brand-primary);
}

.teacher-profile {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8eef5;
}

.teacher-profile-img {
  flex: 0 0 220px;
  width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-sm);
}

.teacher-profile-copy {
  flex: 1;
  min-width: 0;
}

.teacher-profile-copy .teacher-role {
  margin: 0 0 8px;
  padding: 4px 10px;
  font-size: var(--fs-14);
}

.about-page {
  padding: 10px 0 30px;
}

.about-title {
  margin: 0 0 18px;
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand-primary);
  text-align: left;
}

.about-body {
  font-size: var(--fs-16);
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.about-body img {
  display: block;
  width: 80%;
  max-width: 80%;
  max-height: 360px;
  margin: 18px auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.contact-hero {
  margin-bottom: 24px;
}

.contact-title {
  margin: 0 0 10px;
  text-align: left;
}

.contact-intro {
  margin: 0;
  max-width: 720px;
  color: #5d7386;
  font-size: var(--fs-16);
  line-height: 1.8;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid #eef2f6;
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-label {
  font-size: var(--fs-14);
  color: var(--color-text-tertiary);
  padding-top: 4px;
}

.contact-value {
  min-width: 0;
  font-size: var(--fs-16);
  color: var(--color-text-primary);
  line-height: 1.7;
}

/* pagination */
.pagination,
.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: var(--space-6) 0;
}

.pagination a,
.pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-secondary);
}

.pagination a.active,
.pagination a.cur,
.pagination a.is-current,
.pagination a.page-current,
.pages a.active,
.pages a.cur,
.pages a.is-current,
.pages a.page-current {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: #fff;
}

/* UGC */
.ugc,
.rich-text.ugc {
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--color-text-primary);
}

.ugc h1,
.ugc h2,
.ugc h3,
.ugc h4,
.ugc h5,
.ugc h6 {
  font-weight: 600;
  line-height: 1.4;
  margin: 16px 0;
}

.ugc h1 {
  font-size: 22px;
}

.ugc h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-20);
  color: #17334c;
}

.ugc h2::before {
  content: "";
  flex: none;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--color-brand-primary);
}

.ugc h3 {
  font-size: var(--fs-18);
}

.ugc h4 {
  font-size: var(--fs-16);
}

.ugc h5,
.ugc h6 {
  font-size: var(--fs-14);
}

.ugc p {
  margin: 16px 0;
}

.ugc img {
  display: block;
  max-width: 80%;
  height: auto;
  margin: 16px auto;
}

.ugc ol,
.ugc ul {
  margin: 16px 0;
  padding-inline-start: 40px;
}

.ugc li {
  margin: 6px 0;
}

.ugc table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  border: 1px solid #ddd;
}

.ugc th,
.ugc td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  vertical-align: middle;
}

.ugc th {
  background: #e8eaed;
  font-weight: 600;
}

.ugc a {
  color: var(--color-brand-primary);
  text-decoration: underline;
}

.ugc blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #ddd;
  background: #f7f7f7;
}

@media (max-width: 960px) {
  .card-grid-3>* {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 28px 0;
  }

  .home-intro {
    padding: 8px 0 24px;
  }

  .logo-bar-inner {
    min-height: 56px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-phone {
    display: none;
  }

  .site-header {
    position: relative;
    z-index: 20;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    box-shadow: 0 12px 24px rgba(15, 42, 58, 0.16);
  }

  .nav-inner {
    flex-direction: column;
  }

  .sec-head-copy {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .sec-desc {
    display: none;
  }

  .sec-more {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-text-secondary);
    font-weight: 400;
  }

  .sec-more:hover {
    background: transparent;
    color: var(--color-brand-primary);
  }

  .nav-link {
    flex: none;
    text-align: left;
    padding: 0 16px;
  }

  .home-intro-inner,
  .news-page-layout,
  .detail-layout,
  .teacher-profile,
  .teacher-card,
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .teacher-profile-img {
    width: 180px;
    flex-basis: 180px;
  }

  .contact-label {
    flex: none;
  }

  .article {
    padding: 0;
    border: 0;
  }

  .article-cover {
    width: 100%;
    max-width: 100%;
  }

  .article-title {
    text-align: left;
  }

  .article-meta {
    justify-content: flex-start;
  }

  .article-lead {
    text-align: left;
    padding: 12px 16px;
  }

  .home-intro-visual {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .page-sidebar,
  .teacher-card-img,
  .news-row-img,
  .card-grid-3>*,
  .card-grid-2>*,
  .faq-group,
  .faq-item {
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
  }

  .teacher-card {
    align-items: stretch;
  }

  .teacher-card-body {
    width: 100%;
    box-sizing: border-box;
  }

  .teacher-card-img {
    aspect-ratio: 16 / 10;
  }

  .news-list.news-list-home .news-row {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  .news-row {
    flex-direction: column;
  }

  .news-row-img,
  .news-list:not(.news-list-home) .news-row-img {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .news-list-home .news-row-body .card-link {
    align-self: flex-start;
  }

  .home-intro-inner {
    gap: var(--space-5);
  }

  .logo img {
    max-width: 160px;
    max-height: 48px;
  }

  .ugc img {
    max-width: 100%;
  }
}
