﻿/* ==========================================
   产品师资页样式 - 河南新唯思教育
   ========================================== */

/* ========== Banner 区域 ========== */
.teachers-banner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.teachers-banner .banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1B4E8F 0%, #163F75 50%, #102F59 100%);
  z-index: 1;
}

.teachers-banner .banner-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(11,127,115,0.15) 0%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.03) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.03) 50%, transparent 52%);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  z-index: 2;
}

.teachers-banner .container {
  position: relative;
  z-index: 3;
}

.banner-content {
  text-align: center;
  color: #fff;
}

.banner-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: titleFadeIn 0.6s ease forwards;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.3s; }
.title-word:nth-child(4) { animation-delay: 0.4s; }

@keyframes titleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-subtitle {
  font-size: 20px;
  opacity: 0.9;
  font-weight: 300;
  animation: subtitleFadeIn 0.8s ease 0.6s forwards;
  opacity: 0;
}

@keyframes subtitleFadeIn {
  to {
    opacity: 0.9;
  }
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  margin-bottom: 8px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 1.5s infinite;
}

@keyframes wheelScroll {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== 产品服务与师资体系 ========== */
.teachers-section {
  padding: 88px 0 100px;
  background:
    linear-gradient(180deg, var(--white) 0%, var(--bg-color) 42%, var(--bg-color) 100%);
}

.product-system-section.teachers-section {
  padding: 78px 0 92px;
}

.product-system-section .container {
  min-width: 0;
}

.product-system-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
}

.product-system-shell * {
  min-width: 0;
}

.product-business-title,
.teacher-directory-title {
  max-width: 760px;
  margin: 0 0 34px;
}

.business-tabs {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.tab-btn {
  min-width: 132px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.tab-btn:hover {
  color: var(--primary-color);
  border-color: rgba(27,78,143,0.28);
  transform: translateY(-2px);
}

.tab-btn.active {
  color: var(--white);
  background: var(--gradient-primary);
  border-color: transparent;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.business-intro {
  max-width: 100%;
  margin: 0 0 22px;
  padding: 20px 24px;
  color: var(--text-dark);
  background: rgba(255,255,255,0.76);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
}

.business-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
  overflow-wrap: anywhere;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-width: 0;
  min-height: 172px;
  padding: 22px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27,78,143,0.28);
  box-shadow: 0 4px 8px rgba(27,78,143,0.1);
}

.service-icon,
.study-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
}

.service-card h3,
.study-card h3 {
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 700;
}

.service-card p,
.study-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.study-abroad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.study-card {
  min-width: 0;
  padding: 26px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.study-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27,78,143,0.28);
  box-shadow: 0 4px 8px rgba(27,78,143,0.1);
}

.study-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 18px;
}

.region-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
  background: rgba(27,78,143,0.08);
  border-radius: var(--radius-full);
}

.study-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.study-features li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.65;
  border-top: 1px solid #E2E8F0;
  overflow-wrap: anywhere;
}

.study-features li i {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--accent-color);
}

.teacher-bridge {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 820px);
  max-width: 820px;
  margin: 34px auto;
  padding: 20px 24px;
  color: var(--white);
  background: linear-gradient(135deg, #1B4E8F 0%, #0B7F73 100%);
  border-radius: var(--radius-md);
}

.teacher-bridge-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 20px;
  background: var(--white);
  border-radius: 50%;
}

.teacher-bridge-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}

.teacher-bridge-copy p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.teacher-directory {
  padding-top: 28px;
  border-top: 1px solid rgba(226,232,240,0.86);
  scroll-margin-top: 96px;
}

.product-system-section .teacher-search-wrapper {
  max-width: 760px;
  margin: 0 0 24px;
}

.product-system-section .search-box input {
  min-width: 0;
}

.product-system-section .teacher-filters {
  margin-bottom: 32px;
}

/* 搜索框 */
.teacher-search-wrapper {
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--bg-color);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  transition: all var(--transition-base);
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(27,78,143,0.1);
}

.search-box i.fa-search {
  color: var(--text-muted);
  margin-right: 12px;
  font-size: 16px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-dark);
  background: transparent;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.btn-clear-search {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 8px;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.btn-clear-search:hover {
  background: var(--bg-color);
  color: var(--text-dark);
}

/* 筛选按钮 */
.teacher-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  border: 2px solid var(--bg-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* 老师卡片网格 */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.teacher-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 2px solid transparent;
  opacity: 1;
  transform: translateY(0);
}

.teacher-card::before,
.teacher-card::after {
  display: none !important;
  content: none !important;
}

.teacher-card.hidden-teacher {
  display: none;
}

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

.teacher-header {
  position: relative;
  min-height: 76px;
  margin-bottom: 20px;
  padding-right: 92px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--bg-color);
}

.teacher-avatar {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 18px;
  border: 0;
  box-shadow: 0 10px 24px rgba(25,48,76,0.12);
  background: transparent;
}

.teacher-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-avatar::before,
.teacher-avatar::after,
.teacher-avatar i,
.teacher-avatar svg {
  display: none !important;
  content: none !important;
}

.teacher-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.teacher-meta {
  font-size: 15px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.teacher-meta .separator {
  margin: 0 8px;
  color: var(--text-muted);
  font-weight: 300;
  white-space: nowrap;
}

.teacher-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.achievement-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.teacher-courses {
  padding-top: 20px;
  border-top: 1px solid var(--bg-color);
}

.teacher-courses strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.teacher-courses strong i {
  margin-right: 6px;
  color: var(--primary-color);
}

.teacher-courses p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* 加载更多按钮 */
.load-more-wrapper {
  text-align: center;
  margin-top: 40px;
}

.btn-load-more {
  padding: 14px 50px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-load-more:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-load-more i {
  margin-left: 8px;
  transition: transform var(--transition-base);
}

.btn-load-more:hover i {
  transform: translateY(3px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1199px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 991px) {
  .banner-title {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  .teachers-banner {
    min-height: 400px;
  }

  .banner-title {
    font-size: 30px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .banner-subtitle {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.7;
    padding: 0;
    overflow-wrap: anywhere;
  }

  .product-system-section.teachers-section {
    padding: 50px 0 62px;
    overflow-x: hidden;
  }

  .product-system-section .container {
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }

  .product-business-title,
  .teacher-directory-title {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .tab-buttons {
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .tab-buttons::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 calc(50% - 4px);
    min-width: 0;
    padding: 10px 6px;
    font-size: 14px;
    white-space: normal;
    line-height: 1.35;
  }

  .business-intro {
    padding: 16px;
  }

  .business-intro p {
    text-align: left;
  }

  .service-grid,
  .study-abroad-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .study-card {
    padding: 18px;
    overflow: hidden;
  }

  .service-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    min-height: auto;
  }

  .service-icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .service-card h3 {
    margin-bottom: 4px;
  }

  .service-card p {
    grid-column: 2;
  }

  .service-card h3,
  .study-card h3 {
    font-size: 17px;
    line-height: 1.45;
  }

  .service-card p,
  .study-card p,
  .study-features li {
    font-size: 13px;
  }

  .teacher-bridge {
    align-items: flex-start;
    margin: 24px 0;
    padding: 18px;
    overflow: hidden;
  }

  .teacher-bridge-copy h3 {
    font-size: 18px;
  }

  .teacher-directory {
    padding-top: 24px;
  }

  .product-system-section .teacher-search-wrapper {
    max-width: 100%;
    margin-bottom: 16px;
  }

  .product-system-section .search-box {
    padding: 10px 14px;
    border-radius: 14px;
  }

  .product-system-section .teacher-filters {
    max-width: 100%;
    margin-bottom: 26px;
  }

  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .teacher-card {
    padding: 28px 24px;
  }

  .teacher-header {
    min-height: 72px;
    padding-right: 84px;
  }

  .teacher-name {
    font-size: 22px;
  }

  .teacher-meta {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .service-grid {
    gap: 12px;
  }

  .service-card {
    min-height: auto;
  }

  .teacher-bridge {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .teacher-bridge-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .tab-btn {
    padding: 9px 4px;
    font-size: 13px;
  }

  .teacher-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

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

  .teacher-card {
    padding: 24px 20px;
  }

  .teacher-header {
    min-height: 68px;
    padding-right: 78px;
  }

  .teacher-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .teacher-name {
    font-size: 20px;
  }

  .teacher-meta {
    font-size: 13px;
  }

  .teacher-meta .separator {
    margin: 0 6px;
  }
}
