
/* 内页 Banner */
.sub-banner {
  width: 100%;
  height: 350px; /* 比首页矮 */
  background: url("../img/jjy-banner.png") no-repeat center center/cover;
  position: relative;
  margin-top: 0; /* Header是fixed */
}

/* 主体内容区 */
.profile-container {
  margin-top: 60px; /* 向上重叠Banner */
  position: relative;
  z-index: 10;
  padding-bottom: 30px;
}

/* 页面标题 */
.page-title {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-title i {
  font-size: 24px;
  color: #888;
} /* 钻石图标 */

/* --- 教师名片 (紫色区域) --- */
.teacher-card {
  background-color: var(--primary-color);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"><path d="M0 100 L20 80 L40 100 L60 80 L80 100 L100 80 V100 H0 Z" /></svg>'); /* 模拟背景线条 */
  background-size: cover;
  border-radius: 12px;
  padding: 40px;
  color: #fff;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
  overflow: visible;
}

.tc-image {
  flex-shrink: 0;
  width: 200px;
  height: 300px;
  border-radius: 4px;
  /* 让图片稍微突出一点点 */
  transform: translateY(0);
  margin-top: -60px;
}
.tc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-info {
  flex: 1;
}
.tc-name {
  color: #50beff;
  font-size: 32px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 5px;
  letter-spacing: 2px;
}
.tc-name span {
  font-size: 16px;
  font-weight: normal;
  margin-left: 15px;
  opacity: 0.8;
  color: white;
}

.tc-contact {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 两列布局 */
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

.tc-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.tc-item a {
  color: #fff;
  text-decoration: underline;
  opacity: 0.9;
}
.tc-item a:hover {
  opacity: 1;
  color: var(--accent-yellow);
}

/* --- 详情内容 (白色区域) --- */
.teacher-details {
  background: #fff;
  border-radius: 12px;
  padding: 50px;
}

.detail-section {
  margin-bottom: 40px;
}
.detail-section:last-child {
  margin-bottom: 0;
}

.ds-title {
  font-size: 22px;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* 蓝色菱形图标 */
.ds-icon {
  color: var(--accent-blue);
  font-size: 20px;
  background: rgba(46, 88, 166, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ds-content {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  padding-left: 48px; /* 对齐标题文字 */
}
.ds-content p {
  margin-bottom: 15px;
  text-align: justify;
}

/* 奖项列表样式 */
.award-list p {
  margin-bottom: 10px;
}
.edu-list p {
  margin-bottom: 10px;
}

/* ==================== 5. 移动端适配 ==================== */
@media screen and (max-width: 1024px) {
  .nav-links,
  .sidebar {
    display: none;
  }
  .teacher-card {
    flex-direction: column;
    text-align: center;
    padding: 1.875rem;
  }
  .tc-contact {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .tc-item {
    justify-content: flex-start;
  }
  .ds-content {
    padding-left: 0;
  }
  .teacher-card {
    flex-direction: column;
    text-align: center;
    padding: 1.875rem;
    /* 手机端恢复居中对齐，看起来更自然 */
    align-items: center;
    padding-top: 3.75rem; /* [新增] 增加顶部内边距，给上浮的照片留出空间，防止遮挡文字 */
  }

  .tc-image {
    /* 手机端可以让它浮动得更多或保持一致 */
    margin-top: 0;
  }
}
@media screen and (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .menu-btn {
    height: 3.75rem;
    width: 3.75rem;
    top: 0;
    font-size: 1.25rem;
  }
  .sub-banner {
    height: 12.5rem;
  }
  .page-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
  }
  .tc-name {
    font-size: 1.5rem;
  }
  .teacher-details {
    padding: 1.5625rem;
  }
  .ds-title {
    font-size: 1.125rem;
  }
}