/* ============================================================
   schedule.css - 大会议程（断点时间线 + 点击展开横线）
   ============================================================ */

body {
  font-family: "Arial", "Microsoft YaHei", sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  color: #333;
}

/* ===== 演讲嘉宾列表：PC 一行两个，手机一行一个 ===== */
.ysbox {
  list-style: none;
  padding: 10px 0;
  margin: 30px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
}

.ysbox-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: calc(50% - 12px);
  box-sizing: border-box;
  padding: 20px;
}

/* 左头像 */
.ysbox-avatar {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

/* 右侧信息 */
.ysbox-body {
  flex: 1;
  min-width: 0;
}

.ysbox-name {
  font-size: 22px;
  font-weight: 700;
  color: #005ac8;
  margin: 0 0 6px;
  line-height: 1.3;
}

.ysbox-position {
  font-size: 18px;
  color: #a5a5a5;
  margin: 0 0 10px;
  line-height: 1.5;
}

.ysbox-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* 圆角正方形标签 */
.ysbox-topic-label {
  width: 48px;
  height: 48px;
}

.ysbox-topic-text {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  color: #005ac8;
  font-weight: bold;
}

@media (max-width: 768px) {
  .ysbox-topic-text {
    font-size: 14px;
  }

  .ysbox {
    gap: 16px;
  }
  .ysbox-item {
    width: 100%;
    padding: 16px;
    gap: 14px;
  }
  .ysbox-avatar {
    width: 68px;
    height: 68px;
  }
  .ysbox-name {
    font-size: 17px;
  }
  .ysbox-position {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .ysbox-topic {
    font-size: 14px;
    gap: 8px;
  }
  .ysbox-topic-label {
    width: 36px;
    height: 36px;
    font-size: 10px;
  }
}

.schedule-title-img {
  width: 100%;
  max-width: 230px;
  display: block;
  margin: 0;
}

@media (max-width: 768px) {
  .schedule-title-img {
    max-width: 200px;
  }
}
@media (max-width: 480px) {
  .schedule-title-img {
    max-width: 150px;
  }
}

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

.conference-schedule {
  background-image: url("../img/index/zhibo_bg.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
}

.schedule-header {
  text-align: center;
  margin-bottom: 50px;
}

.overall-process {
  text-align: center;
  margin-bottom: 50px;
}

.process-title {
  font-size: 28px;
  color: #003366;
  margin: 0 0 8px;
  font-weight: 700;
}
.process-subtitle {
  font-size: 14px;
  color: #0066cc;
  margin: 0;
  letter-spacing: 2px;
  opacity: 0.7;
}

.session-title {
  font-size: 22px;
  color: #003366;
  margin: 40px 0 24px;
  padding-left: 14px;
  border-left: 4px solid #0066cc;
  line-height: 1.2;
}

.event-cards {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.event-cards:hover {
  transform: translateY(-4px);
}

.event-image {
  border-radius: 12px;
  background: url("../../img/bg/dhbg.png") no-repeat center center;
  background-size: cover;
  width: 100%;
  height: 200px;
  position: relative;
  padding: 24px;
  box-sizing: border-box;
}
.event-image > * {
  position: relative;
  z-index: 1;
}

.event-title {
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
  font-weight: 700;
}
.event-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.event-time {
  font-size: 18px;
  color: #fff;
  margin: 0;
  font-weight: 700;
  position: absolute;
  bottom: 48px;
  left: 24px;
}
.event-location {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  position: absolute;
  bottom: 20px;
  left: 24px;
}

/* ===== 时间线 ===== */

.timeline-list {
  list-style: none;
  padding: 10px 0;
  margin: 30px 0 40px;
  position: relative;
}

.timeline-items {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 0; /* ✅ 上下间距均匀，线自然就长了 */
  cursor: pointer;
}

/* 竖线 */
.timeline-items::before {
  content: "";
  position: absolute;
  left: 6px; /* ✅ 圆点中心(20px/2=10) - 线宽一半(2/2=1) = 9px */
  top: 0;
  bottom: 0;
  width: 2px;
  background: #cdd9e8;
  z-index: 0;
}

/* 第一个节点：线从圆点底部开始（不往上延伸） */
.timeline-items:first-child::before {
  top: 50%;
}

/* 最后一个节点：线到圆点顶部结束（不往下延伸） */
.timeline-items:last-child::before {
  bottom: 50%;
}

/* 圆点 */
.timeline-dot {
  flex-shrink: 0;
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0066cc;
  box-shadow: 0 0 0 3px #fff;
  z-index: 2;
  transition: all 0.3s ease;
  margin-right: 30px;
  box-sizing: border-box; /* ✅ 确保 border 算在 width 里 */
}

/* active 时 */
.timeline-items.active .timeline-dot {
  border-color: #4da6ff;
  background: #4da6ff;
  box-shadow:
    0 0 0 3px #fff,
    0 0 14px rgba(77, 166, 255, 0.9);
  transform: scale(1.25);
}

/* 右侧卡片 */
.timeline-card {
  flex: 1;
  /* background: #fff; */
  border-radius: 8px;
  /* padding: 20px 18px; */
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.06); */
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
}

.timeline-items.active .timeline-card {
  /* box-shadow: 0 6px 20px rgba(0,102,204,0.14); */
  transform: translateX(6px);
}

.timeline-texts {
  font-size: 18px;
  color: #333;
  line-height: 1.8;
  display: block;
}

.timeline-duration {
  font-size: 12px;
  color: #0066cc;
  margin-left: 8px;
  font-weight: 500;
  background: linear-gradient(135deg, #eef4ff, #dceaff);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  vertical-align: middle;
}

/* ===== 响应式 ===== */

@media (max-width: 768px) {
  .conference-schedule {
    padding: 40px 0;
  }
  .process-title {
    font-size: 24px;
  }
  .session-title {
    font-size: 19px;
    margin: 30px 0 18px;
  }
  .event-image {
    height: 180px;
    padding: 18px;
  }
  .event-title {
    font-size: 18px;
  }
  .event-subtitle {
    font-size: 12px;
  }
  .event-time {
    font-size: 15px;
    bottom: 42px;
    left: 18px;
  }
  .event-location {
    font-size: 12px;
    bottom: 16px;
    left: 18px;
  }

  .timeline-items {
    padding: 0 0 28px 0;
  }
  .timeline-items::before {
    left: 8px;
  }
  .timeline-dot {
    width: 12px;
    height: 12px;
    border-width: 2.5px;
    margin-right: 24px;
  }
  .timeline-texts {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .conference-schedule {
    padding: 30px 0;
  }
  .process-title {
    font-size: 20px;
  }
  .process-subtitle {
    font-size: 11px;
  }
  .session-title {
    font-size: 17px;
    margin: 24px 0 14px;
    padding-left: 12px;
  }
  .event-image {
    height: 160px;
    padding: 16px;
  }
  .event-title {
    font-size: 16px;
  }
  .event-subtitle {
    font-size: 12px;
  }
  .event-time {
    font-size: 14px;
    bottom: 38px;
    left: 16px;
  }
  .event-location {
    font-size: 11px;
    bottom: 14px;
    left: 16px;
  }

  .timeline-items {
    padding: 0 0 22px 0;
  }
  .timeline-items::before {
    left: 4px;
  }
  .timeline-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
    margin-right: 20px;
  }
  .timeline-items.active .timeline-dot {
    transform: scale(1.15);
  }
  .timeline-texts {
    font-size: 13px;
    padding: 12px 14px;
  }
  .timeline-duration {
    font-size: 11px;
    margin-left: 6px;
    margin-top: 4px;
  }
  .timeline-card {
    padding: 0;
  }
}
