* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
  "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root {
  --primary-blue: #0A2463;
  --accent-red: #D62828;
  --accent-yellow: #FFD166;
  --light-gray: #F8F9FA;
  --dark-gray: #212529;
  --medium-blue: #1E40AF;
}

body {
  background-color: #f5f7fb;
  color: var(--dark-gray);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--medium-blue) 100%);
  color: white;
  padding: 2.5rem 0;
  text-align: center;
  border-bottom: 5px solid var(--accent-red);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;

  pointer-events: none; /* 关键：让伪元素不拦截点击 */
  z-index: 0; /* 放到最底层，避免覆盖内容 */

  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.school-name {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.school-name a {
  color: white;              /* 白色文字，避免和背景混色 */
  text-decoration: none;     /* 去掉下划线 */
  cursor: pointer;           /* 鼠标悬停变手型 */
  font-size: 3.2rem;         /* 保持标题大小 */
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.school-name a:hover {
  color: var(--accent-yellow);             /* 悬停时高亮 */
}

.subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-yellow);
  margin-bottom: 0.5rem;
}

.campus-tag {
  display: inline-block;
  background-color: var(--accent-red);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* 主要内容区域 */
.main-content {
  padding: 3rem 0;
}

.section {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.section-title {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 1.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--accent-yellow);
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 10px;
  color: var(--accent-red);
}

/* 教师卡片样式 */
.teachers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.teacher-card {
  background: linear-gradient(145deg, #ffffff, #f0f2f5);
  border-radius: 10px;
  padding: 1.8rem;
  border-left: 5px solid var(--primary-blue);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.teacher-name {
  color: var(--accent-red);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.teacher-name i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.teacher-details {
  list-style-type: none;
}

.teacher-details li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
}

.teacher-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* 课程体系样式 */
.course-system {
  background-color: var(--light-gray);
  padding: 1.8rem;
  border-radius: 10px;
  margin-top: 1.5rem;
}

.course-subtitle {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.course-item {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.course-item-details {
  list-style-type: none;
}

.course-item-details li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
}

.course-item-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

.course-item strong {
  color: var(--primary-blue);
}

.dual-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.track-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--accent-red);
}

.track-card h4 {
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* 招生表格样式 */
.enrollment-highlight {
  background: linear-gradient(to right, var(--accent-red), #ff5252);
  color: white;
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(214, 40, 40, 0.3);
}

.enrollment-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.enrollment-table th {
  background-color: var(--primary-blue);
  color: white;
  padding: 1.2rem;
  text-align: left;
  font-size: 1.2rem;
}

.enrollment-table td {
  padding: 1.2rem;
  border-bottom: 1px solid #eaeaea;
}

.enrollment-table tr:nth-child(even) {
  background-color: var(--light-gray);
}

.enrollment-table tr:last-child td {
  border-bottom: none;
}

.grade {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.1rem;
}

.classes {
  font-weight: 600;
  color: var(--accent-red);
}

.schedule-note {
  background-color: #e8f4ff;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  border-left: 4px solid var(--primary-blue);
  display: flex;
  align-items: center;
}

.schedule-note i {
  margin-right: 10px;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

/* 行动召唤区域 */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a3a8f 100%);
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 12px;
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-yellow);
}

.warning-text {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.2rem;
  border-radius: 8px;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  border: 2px solid var(--accent-yellow);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.contact-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
}

.contact-text {
  font-size: 1.1rem;
}

.contact-text strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.final-message {
  font-size: 1.4rem;
  font-style: italic;
  margin-top: 2rem;
  color: var(--accent-yellow);
  font-weight: 600;
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #eaeaea;
  margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .school-name {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }

  .section {
    padding: 1.8rem;
  }

  .teachers-container {
    grid-template-columns: 1fr;
  }

  .enrollment-table {
    display: block;
    overflow-x: auto;
  }

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

  .cta-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .school-name {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .section {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* 打印样式 */
@media print {
  .header {
    background: #0A2463 !important;
    -webkit-print-color-adjust: exact;
  }

  .section {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .cta-section {
    background: #0A2463 !important;
    -webkit-print-color-adjust: exact;
  }
}

/* 语言切换整体靠右 */
.lang-switch {
  margin-left: auto; /* 👈 关键：推到最右 */
  justify-content: flex-end;
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.lang-switch button {
  width: 30px; /* ✅ 固定等宽 */
  height: 30px; /* 视觉高度一致 */
  font-size: 12px;
  font-weight: 500;

  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;

  cursor: pointer;
  text-align: center;
}

.lang-switch button.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
  font-weight: 600;
}

.Female-teacher-icon {
  background-image: url('/assets/img/home/female-teacher-icon.png');
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.Male-teacher-icon {
  background-image: url('/img/home/male-teacher-icon.jpg');
  width: 8px;
  height: 8px;
  background-size: contain;
  background-repeat: no-repeat;
}
