/* ============================================
   武汉优思学复读学校 - 主样式表
   配色：深藏蓝 #1B3A5C / 暖赤 #C0392B / 金色 #D4A843
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  color: #333; line-height: 1.7; background: #fff; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .25s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: #F7F8FA; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: #1B3A5C; margin-bottom: 12px; position: relative; display: inline-block; }
.section-title h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 3px; background: #C0392B; border-radius: 2px;
}
.section-title p { color: #666; font-size: 15px; margin-top: 16px; }
.btn-primary {
  display: inline-block; padding: 12px 36px; background: #C0392B; color: #fff;
  border-radius: 4px; font-size: 15px; transition: background .25s, transform .15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #a93226; transform: translateY(-1px); }
.btn-outline {
  display: inline-block; padding: 10px 30px; border: 1px solid #1B3A5C; color: #1B3A5C;
  border-radius: 4px; font-size: 14px; transition: all .25s;
}
.btn-outline:hover { background: #1B3A5C; color: #fff; }

/* ---------- Top Bar ---------- */
.top-bar {
  background: #1B3A5C; color: #fff; font-size: 13px; padding: 8px 0; line-height: 1;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: #d4a843; }
.top-bar-left span { margin-right: 24px; }
.top-bar-left span:last-child { margin-right: 0; }

/* ---------- Header / Nav ---------- */
.header {
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1000;
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 6px; }
.logo-text h1 { font-size: 20px; color: #1B3A5C; line-height: 1.3; font-weight: 700; }
.logo-text p { font-size: 11px; color: #999; line-height: 1.2; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  padding: 8px 18px; font-size: 15px; color: #333; border-radius: 4px; transition: all .25s;
}
.nav-list a:hover, .nav-list a.active { color: #C0392B; background: rgba(192,57,43,.06); }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #1B3A5C; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 600px; overflow: hidden; background: #0e2238;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(.55);
}
.hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.hero-content { text-align: center; color: #fff; padding: 0 20px; }
.hero-content h2 { font-size: 44px; margin-bottom: 16px; letter-spacing: 2px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-content p { font-size: 20px; margin-bottom: 32px; opacity: .92; }
.hero-dots {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dots span {
  width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4);
  cursor: pointer; transition: background .3s;
}
.hero-dots span.active { background: #C0392B; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: #1B3A5C; padding: 40px 0; margin-top: -50px; position: relative; z-index: 10;
  border-radius: 8px; max-width: 1100px; margin-left: auto; margin-right: auto;
}
.stats-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; }
.stat-item { text-align: center; color: #fff; padding: 10px 20px; }
.stat-item .stat-num { font-size: 42px; font-weight: 700; color: #d4a843; line-height: 1.1; }
.stat-item .stat-num span { font-size: 18px; font-weight: 400; margin-left: 2px; }
.stat-item .stat-label { font-size: 14px; margin-top: 6px; opacity: .85; }

/* ---------- About ---------- */
.about-grid { display: flex; gap: 50px; align-items: flex-start; }
.about-info { flex: 1; }
.about-info h3 { font-size: 24px; color: #1B3A5C; margin-bottom: 16px; }
.about-info p { color: #555; font-size: 15px; margin-bottom: 14px; line-height: 1.8; }
.about-highlight { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.about-highlight-item {
  background: #F7F8FA; padding: 20px 24px; border-radius: 8px; flex: 1; min-width: 180px;
  border-left: 3px solid #C0392B;
}
.about-highlight-item h4 { font-size: 28px; color: #C0392B; margin-bottom: 4px; }
.about-highlight-item p { font-size: 13px; color: #666; }
.about-img { flex: 0 0 420px; }
.about-img img { border-radius: 8px; width: 100%; }

/* Teachers */
.teachers-section { margin-top: 60px; }
.teachers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.teacher-card {
  background: #fff; border-radius: 8px; padding: 30px; text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.teacher-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.teacher-card .icon-circle {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(27,58,92,.08);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  font-size: 28px; color: #1B3A5C;
}
.teacher-card h4 { font-size: 18px; color: #1B3A5C; margin-bottom: 8px; }
.teacher-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* ---------- Campus ---------- */
.campus-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.campus-item {
  position: relative; border-radius: 8px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3;
}
.campus-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.campus-item:hover img { transform: scale(1.08); }
.campus-item .campus-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(27,58,92,.75));
  color: #fff; font-size: 15px; font-weight: 500;
}

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .3s;
}
.case-card:hover { transform: translateY(-4px); }
.case-card .case-img { height: 220px; overflow: hidden; }
.case-card .case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card .case-body { padding: 24px; }
.case-card h4 { font-size: 18px; color: #1B3A5C; margin-bottom: 8px; }
.case-card .case-score {
  display: inline-block; background: rgba(192,57,43,.08); color: #C0392B;
  padding: 4px 14px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-bottom: 10px;
}
.case-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* ---------- News ---------- */
.news-card {
  display: flex; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06); max-width: 800px; margin: 0 auto; transition: transform .3s;
}
.news-card:hover { transform: translateY(-3px); }
.news-card .news-img { flex: 0 0 320px; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-body { flex: 1; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.news-card .news-date { font-size: 13px; color: #999; margin-bottom: 8px; }
.news-card h3 { font-size: 20px; color: #1B3A5C; margin-bottom: 12px; }
.news-card p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; gap: 50px; }
.contact-info { flex: 1; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .ci-icon {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(27,58,92,.06);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #1B3A5C;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 15px; color: #1B3A5C; margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: #666; }
.map-placeholder {
  margin-top: 30px; height: 220px; background: #F7F8FA; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #999; font-size: 14px;
  border: 1px dashed #E8E8E8;
}

/* ---------- Footer ---------- */
.footer {
  background: #1B3A5C; color: #fff; padding: 50px 0 0;
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col h3 { font-size: 16px; margin-bottom: 16px; color: #d4a843; }
.footer-col p, .footer-col a { font-size: 14px; color: rgba(255,255,255,.75); line-height: 2; display: block; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ---------- Back to Top ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 40px; width: 44px; height: 44px;
  background: #1B3A5C; color: #fff; border-radius: 50%; display: none;
  align-items: center; justify-content: center; cursor: pointer; z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); font-size: 20px; border: none; transition: background .25s;
}
.back-top:hover { background: #C0392B; }
.back-top.show { display: flex; }

/* ---------- Mobile Overlay Nav ---------- */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 2000; display: none;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-panel {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: #fff; z-index: 2001; transition: right .35s ease; padding: 24px;
  box-shadow: -4px 0 24px rgba(0,0,0,.1);
}
.mobile-nav-panel.open { right: 0; }
.mobile-nav-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #333; float: right; }
.mobile-nav-panel ul { margin-top: 50px; }
.mobile-nav-panel li { border-bottom: 1px solid #f0f0f0; }
.mobile-nav-panel a { display: block; padding: 14px 0; font-size: 16px; color: #333; }
.mobile-nav-panel a:hover { color: #C0392B; }

/* ---------- Layer Photoview Override ---------- */
.layui-layer-photos { background: rgba(0,0,0,.9) !important; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .section { padding: 60px 0; }
  .about-grid { flex-direction: column; }
  .about-img { flex: none; width: 100%; }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .campus-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { flex-direction: column; }
  .contact-info { flex: none; }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 24px; }
  .section-title { margin-bottom: 36px; }
  .top-bar-left span { margin-right: 12px; font-size: 12px; }
  .top-bar-right { font-size: 12px; }
  .nav-list { display: none; }
  .mobile-toggle { display: block; }
  .hero { height: 420px; }
  .hero-content h2 { font-size: 26px; }
  .hero-content p { font-size: 15px; }
  .stats-bar { margin-top: -30px; border-radius: 0; }
  .stats-bar .container { flex-wrap: wrap; justify-content: center; }
  .stat-item { flex: 0 0 50%; padding: 10px; }
  .stat-item .stat-num { font-size: 32px; }
  .about-highlight { flex-direction: column; }
  .teachers-grid { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .news-card { flex-direction: column; }
  .news-card .news-img { flex: none; height: 200px; }
  .contact-grid { gap: 30px; }
  .footer-grid { gap: 24px; }
  .hero-dots { bottom: 16px; }
}

@media (max-width: 480px) {
  .hero { height: 340px; }
  .hero-content h2 { font-size: 22px; letter-spacing: 1px; }
  .hero-content p { font-size: 14px; }
  .stat-item .stat-num { font-size: 28px; }
  .stat-item .stat-label { font-size: 12px; }
}

/* ---------- Faculty Team (about.html) ---------- */
.faculty-list { max-width: 900px; margin: 0 auto; }
.faculty-dept {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E8E8E8;
}
.faculty-dept:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faculty-dept h3 {
  font-size: 18px; color: #1B3A5C; margin-bottom: 16px;
  padding-left: 14px; border-left: 3px solid #D4A843;
}
.faculty-members { display: flex; flex-direction: column; gap: 14px; }
.faculty-member {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0;
  padding: 14px 18px; background: #F7F8FA; border-radius: 8px;
  line-height: 1.7;
}
.fm-name { font-weight: 700; font-size: 16px; color: #1B3A5C; margin-right: 6px; }
.fm-title {
  font-size: 13px; color: #D4A843; font-weight: 600;
  margin-right: 10px; padding: 2px 8px;
  background: rgba(212,168,67,.1); border-radius: 4px;
}
.fm-desc { font-size: 14px; color: #666; width: 100%; margin-top: 4px; padding-left: 0; }

/* ---------- Faculty Preview (index.html) ---------- */
.faculty-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.fp-card {
  padding: 20px 22px; background: #fff; border-radius: 10px;
  border: 1px solid #E8E8E8; transition: box-shadow .3s, transform .3s;
}
.fp-card:hover { box-shadow: 0 4px 18px rgba(27,58,92,.1); transform: translateY(-2px); }
.fp-dept { font-size: 15px; font-weight: 700; color: #1B3A5C; margin-bottom: 8px; }
.fp-names { font-size: 13px; color: #666; line-height: 1.8; }
.fp-names em { font-style: normal; color: #D4A843; font-size: 12px; }

@media (max-width: 768px) {
  .faculty-preview-grid { grid-template-columns: 1fr 1fr; }
  .faculty-member { flex-direction: column; gap: 4px; }
  .fm-desc { margin-top: 6px; }
}
@media (max-width: 480px) {
  .faculty-preview-grid { grid-template-columns: 1fr; }
}
