/* =============================================================================== */
/* ABOUT.CSS - 关于我们页面个性化样式 (education-design-system.css配套版) */
/* 该文件仅包含与education-design-system.css配套的个性化样式 */
/* 通用样式(颜色、字体、间距、组件等)均从education-design-system.css继承 */
/* 专注于关于我们页面特有布局的个性化定制 */
/* =============================================================================== */

/* =============================================================================== */
/* 页面整体布局 */
/* =============================================================================== */

.founder-section,
.teachers-section,
.teaching-scene-section,
.quality-section {
  padding: var(--space-9) 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-section {
  padding: var(--space-9) 0;
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.hero-section.revealed {
  opacity: 1;
}

.founder-section.revealed,
.teachers-section.revealed,
.teaching-scene-section.revealed,
.quality-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 移动端间距调整 */
@media (max-width: 768px) {
  .hero-section {
    margin-bottom: var(--space-7);
    padding: var(--space-5) 0;
  }
}

/* =============================================================================== */
/* 英雄区域样式 */
/* =============================================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: var(--z-index-overlay);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-9) 0 0 0;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-color-primary);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-title);
}

.hero-subtitle p {
  font-size: var(--text-lg);
  color: var(--text-color-secondary);
  margin-bottom: 0;
  line-height: var(--line-height-relaxed);
  margin-left: auto;
  margin-right: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .hero-content {
    padding: var(--space-5) var(--space-3);
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-base);
  }
}

/* =============================================================================== */
/* 通用区块样式 */
/* =============================================================================== */

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-color-primary);
  margin-bottom: var(--space-8);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--text-color-brand);
  border-radius: var(--radius-full);
}

.section-description {
  text-align: center;
  max-width: 1600px;
  margin: 0 auto var(--space-7);
}

.section-description p {
  font-size: var(--text-lg);
  color: var(--text-color-secondary);
  line-height: var(--line-height-relaxed);
}

/* =============================================================================== */
/* 创始人区域样式 */
/* =============================================================================== */

.founder-section {
  border-radius: var(--radius-lg);
}

.founder-container {
  max-width: 1600px;
  background: var(--bg-color-primary);
  margin: 0 auto;
  padding: var(--space-12) var(--space-10);
  border: none;
  border-radius: var(--radius-lg);
}

.founder-container:hover {
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
}

.founder-profile {
  gap: var(--space-7);
  align-items: center;
}

.founder-avatar {
  place-items: center;
  text-align: center;
  position: relative;
}

.founder-avatar img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--bg-color-brand-light);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.founder-avatar img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.founder-name {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color-primary);
}

.founder-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-description {
  line-height: var(--line-height-loose);
  color: var(--text-color-secondary);
}

.founder-description p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.founder-description p:last-child {
  margin-bottom: 0;
}

/* 移动端创始人布局调整 */
@media (max-width: 768px) {
  .founder-profile {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .founder-avatar img {
    width: 150px;
    height: 150px;
  }
  
  .founder-description {
    font-size: var(--text-sm);
  }
}

/* =============================================================================== */
/* 教师团队样式 */
/* =============================================================================== */

.teachers-section {
  border-radius: var(--radius-lg);
}

.teachers-container {
  max-width: 1600px;
  margin: 0 auto;
}

.teachers-gallery {
  gap: var(--space-5);
}

.teacher-card {
  background: var(--bg-color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow var(--transition-base);
  border: none;
  border-radius: var(--radius-lg);
}

.teacher-card:hover {
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
}

.teacher-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.teacher-avatar {
  position: relative;
  overflow: hidden;
}

.teacher-avatar img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.teacher-card:hover .teacher-avatar img {
  transform: scale(1.1);
}

.teacher-info {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.teacher-name {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-color-primary);
  margin-bottom: var(--space-2);
  text-align: center;
}

.teacher-description {
  font-size: var(--text-sm);
  text-align: center;
  color: var(--text-color-secondary);
  line-height: var(--line-height-relaxed);
  flex: 1;
}

.teacher-description p {
  margin-bottom: var(--space-2);
}

.teacher-description p:last-child {
  margin-bottom: 0;
}

/* =============================================================================== */
/* 教学现场样式 */
/* =============================================================================== */

.teaching-scene-section {
  border-radius: var(--radius-lg);
}

.teaching-scene-container {
  max-width: 1600px;
  margin: 0 auto;
}

.scene-gallery {
  gap: var(--space-5);
}

.scene-card {
  background: var(--bg-color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow var(--transition-base);
  border: none;
  border-radius: var(--radius-lg);
}

.scene-card:hover {
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
}

.scene-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scene-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.scene-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

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

.scene-caption {
  padding: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-color-primary);
  text-align: center;
  background: var(--bg-color-primary);
  border-top: 1px solid var(--border-color-default);
}

/* =============================================================================== */
/* 品质承诺样式 */
/* =============================================================================== */

.quality-section {
  border-radius: var(--radius-lg);
}

.quality-container {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
}

.quality-content {
  background: var(--bg-color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-4);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-5);
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  border: none;
  border-radius: var(--radius-lg);
}

.quality-content:hover {
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
}

.quality-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

.quality-content p {
  font-size: var(--text-base);
  line-height: var(--line-height-loose);
  color: var(--text-color-secondary);
  margin-bottom: var(--space-4);
}

.quality-content p:last-child {
  margin-bottom: 0;
}

/* =============================================================================== */
/* 响应式优化 */
/* =============================================================================== */

/* 平板端优化 */
@media (min-width: 768px) and (max-width: 1024px) {
  .teachers-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .scene-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大屏幕优化 */
@media (min-width: 1920px) {
  .hero-section,
  .founder-section,
  .teachers-section,
  .teaching-scene-section,
  .quality-section {
    padding: var(--space-10) 0;
  }
  
  .hero-title {
    font-size: var(--text-5xl);
  }
  
  .section-title {
    font-size: var(--text-4xl);
  }
}

/* =============================================================================== */
/* 性能优化 */
/* =============================================================================== */

/* 硬件加速 */
.founder-avatar img,
.teacher-avatar img,
.scene-image img {
  will-change: transform;
  transform: translateZ(0);
}

/* 图片优化 */
.founder-avatar img,
.teacher-avatar img,
.scene-image img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* =============================================================================== */
/* 可访问性增强 */
/* =============================================================================== */

/* 焦点可见性 */
.founder-avatar:focus,
.teacher-card:focus,
.scene-card:focus {
  outline: 2px solid var(--border-color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-base);
}

/* 减少动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
  .founder-avatar img,
  .teacher-avatar img,
  .scene-image img,
  .teacher-card,
  .scene-card {
    transition: none !important;
    animation: none !important;
  }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .founder-avatar img {
    border: 2px solid var(--text-color-brand);
  }
  
  .teacher-card,
  .scene-card {
    border: 1px solid var(--text-color-primary);
  }
}

/* =============================================================================== */
/* 打印样式 */
/* =============================================================================== */

@media print {
  .hero-section,
  .founder-section,
  .teachers-section,
  .teaching-scene-section,
  .quality-section {
    padding: var(--space-3) 0;
    box-shadow: none;
    background: none;
  }
  
  .founder-avatar img,
  .teacher-avatar img,
  .scene-image img {
    max-width: 200px;
    height: auto;
  }
  
  .teacher-card,
  .scene-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--border-color-default);
  }
}

