/* ============================================
   武汉星辰启梦复读学校 - 全站样式
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #1B3A6B;
  --color-accent: #C49B3F;
  --color-accent-light: #FBF6EC;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-text: #333333;
  --color-text-secondary: #666666;
  --color-text-light: #999999;
  --color-border: #E5E5E5;
  --font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  --max-width: 1200px;
  --header-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Info Bar --- */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  line-height: 36px;
  height: 36px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #fff;
  font-size: 13px;
}

.top-bar a:hover {
  color: var(--color-accent);
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar .icon {
  margin-right: 4px;
}

/* --- Header / Navigation --- */
.site-header {
  background: #fff;
  height: var(--header-height);
  position: relative;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1001;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  letter-spacing: 1px;
}

.logo-text .accent {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--color-text);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav .mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 10px;
}

.mobile-nav .mobile-nav-close {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-text-light);
  background: none;
  border: none;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-accent);
  padding-left: 8px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.85) 0%, rgba(27, 58, 107, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero-content .hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero-content .hero-tagline {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 1px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.hero-stat .stat-number .stat-suffix {
  font-size: 20px;
  font-weight: 400;
}

.hero-stat .stat-label {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 6px;
}

/* --- Page Banner (Sub-pages) --- */
.page-banner {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.page-banner .page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.page-banner .page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 58, 107, 0.9) 0%, rgba(27, 58, 107, 0.7) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
}

.page-banner-content h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.page-banner-content .breadcrumb {
  font-size: 14px;
  opacity: 0.8;
}

.page-banner-content .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-banner-content .breadcrumb a:hover {
  color: var(--color-accent);
}

.page-banner-content .breadcrumb .sep {
  margin: 0 8px;
}

/* --- Section Common --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title .section-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.section-title .section-line {
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- About Preview Section --- */
.about-preview {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-preview-img {
  flex: 0 0 480px;
  border-radius: 8px;
  overflow: hidden;
}

.about-preview-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-preview-img:hover img {
  transform: scale(1.03);
}

.about-preview-text {
  flex: 1;
}

.about-preview-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.about-preview-text p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats-row {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}

.about-stat-item {
  text-align: center;
  flex: 1;
}

.about-stat-item .stat-val {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}

.about-stat-item .stat-val .unit {
  font-size: 14px;
  font-weight: 400;
}

.about-stat-item .stat-name {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.btn-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-link:hover {
  background: #b08a2e;
  color: #fff;
  transform: translateY(-1px);
}

/* --- Faculty Preview --- */
.faculty-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faculty-item {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.faculty-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.1);
}

.faculty-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.faculty-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.faculty-item .teacher-name {
  color: var(--color-text);
  font-weight: 500;
}

.faculty-item .teacher-title {
  color: var(--color-accent);
  font-size: 13px;
}

/* --- Campus Grid --- */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.campus-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.campus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.campus-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.campus-card:hover img {
  transform: scale(1.05);
}

.campus-card .card-body {
  padding: 16px 20px;
}

.campus-card .card-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

/* --- Student Cases --- */
.cases-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.case-card .case-header {
  background: var(--color-primary);
  padding: 20px;
  text-align: center;
  color: #fff;
}

.case-card .case-header .case-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.case-card .case-header .case-score {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
}

.case-card .case-header .case-score-label {
  font-size: 12px;
  opacity: 0.8;
}

.case-card .case-body {
  padding: 20px;
}

.case-card .case-body p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* --- Enrollment Preview --- */
.enrollment-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  border-left: 4px solid var(--color-accent);
}

.enrollment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.1);
}

.enrollment-card .card-body {
  padding: 24px;
}

.enrollment-card .card-date {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.enrollment-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.enrollment-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.contact-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
}

.contact-item .contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 24px;
}

.contact-item h4 {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-item p,
.contact-item a {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.contact-item a:hover {
  color: var(--color-accent);
}

.contact-phone {
  font-size: 22px !important;
  font-weight: 700;
  color: var(--color-accent) !important;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.footer-col p {
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.75);
}

.footer-col .footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  padding: 4px 0;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col .footer-links a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

.footer-bottom {
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* --- About Page --- */
.about-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: 12px;
}

.about-sidebar-img {
  flex: 0 0 420px;
  border-radius: 8px;
  overflow: hidden;
}

.about-sidebar-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  text-align: center;
  padding: 30px 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.1);
}

.advantage-item .adv-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
}

.advantage-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Campus Page Gallery --- */
.campus-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.campus-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.campus-gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.campus-gallery-item:hover img {
  transform: scale(1.08);
}

.campus-gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

/* --- Teachers Page --- */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.teacher-group {
  background: #fff;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.teacher-group:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.1);
}

.teacher-group h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
}

.teacher-group .teacher-list p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 2;
}

.teacher-group .teacher-list .name {
  color: var(--color-text);
  font-weight: 600;
}

.teacher-group .teacher-list .title {
  color: var(--color-accent);
  font-size: 13px;
}

/* --- Cases Page --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-detail-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.case-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.case-detail-card .case-score-side {
  background: var(--color-primary);
  color: #fff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  text-align: center;
}

.case-detail-card .case-score-side .score-big {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.case-detail-card .case-score-side .score-label {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

.case-detail-card .case-info-side {
  padding: 24px;
  flex: 1;
}

.case-detail-card .case-info-side h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.case-detail-card .case-info-side p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* --- Enrollment Page --- */
.enrollment-content {
  max-width: 900px;
  margin: 0 auto;
}

.enrollment-section {
  margin-bottom: 40px;
}

.enrollment-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-accent);
}

.enrollment-section p,
.enrollment-section li {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.9;
}

.enrollment-section ul {
  padding-left: 20px;
  margin-top: 10px;
}

.enrollment-section li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.enrollment-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.enrollment-highlight {
  background: var(--color-accent-light);
  padding: 24px;
  border-radius: 8px;
  margin: 20px 0;
}

.enrollment-highlight h4 {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.contact-detail-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.1);
}

.contact-detail-card .cd-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: 50%;
  font-size: 28px;
}

.contact-detail-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.contact-detail-card p,
.contact-detail-card a {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.contact-detail-card .phone-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
}

/* --- Image Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-preview {
    flex-direction: column;
    gap: 30px;
  }

  .about-preview-img {
    flex: none;
    width: 100%;
  }

  .about-preview-img img {
    height: 260px;
  }

  .about-sidebar-img {
    flex: none;
    width: 100%;
  }

  .about-sidebar-img img {
    height: 240px;
  }

  .about-content {
    flex-direction: column;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats {
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .top-bar {
    font-size: 12px;
  }

  .top-bar-right {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .logo-text {
    font-size: 17px;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-content .hero-subtitle {
    font-size: 15px;
  }

  .hero-stats {
    gap: 20px;
    margin-top: 32px;
  }

  .hero-stat .stat-number {
    font-size: 32px;
  }

  .page-banner {
    min-height: 200px;
  }

  .page-banner-content h1 {
    font-size: 24px;
  }

  .section {
    padding: 50px 0;
  }

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

  .section-title {
    margin-bottom: 30px;
  }

  .campus-grid,
  .campus-gallery,
  .cases-list,
  .teachers-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .faculty-list {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-stats-row {
    flex-wrap: wrap;
  }

  .about-stat-item {
    flex: 0 0 45%;
    margin-bottom: 12px;
  }

  .case-detail-card {
    flex-direction: column;
  }

  .case-detail-card .case-score-side {
    min-width: unset;
    padding: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .enrollment-content {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 22px;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat .stat-number {
    font-size: 26px;
  }

  .hero-stat .stat-label {
    font-size: 12px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .campus-gallery-item img {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Layui Override --- */
.layui-carousel {
  border-radius: 8px;
  overflow: hidden;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
