/* 时间线样式 - Timeline Styles */
.timeline {
  padding-top: 150px;
  padding-bottom: 150px;
}

.timeline .container {
  position: relative;
}

/* 两栏布局：横屏/宽屏下行程在左、KOOK 在右；竖屏单栏隐藏右侧 inner KOOK（走独立板块） */
.timeline-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.timeline-main {
  flex: 1;
  min-width: 0;
  position: relative;
}

/* 底部渐变蒙层：内容溢出时由 JS 添加 has-more 类显示，暗示下方有更多 */
.timeline-main.has-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #202020);
  pointer-events: none;
  z-index: 3;
}

.timeline-aside {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 20%;
}

/* KOOK 挂件 iframe：强制自适应宽度（横屏双栏版 + 独立板块版通用） */
.kook-widget {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 500px;
  border: 0;
  border-radius: 4px;
  background-color: hsla(0, 0%, 100%, 0.04);
}

/* 横屏下独立板块隐藏，只显示 timeline 内的双栏版；移动端相反 */
.ch.kook-block {
  display: none;
}

@media screen and (max-width: 700px) {
  .ch.kook-block {
    display: block;
  }
}

/* 独立 KOOK 板块 iframe：与原来样式一致 */
.kook-block .kook-widget {
  margin-top: 0;
}

/* 时间线列表：左侧竖线；横屏下超过约3项可纵向滚动 */
.timeline-list {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 40px;
  max-width: 900px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: hsla(0, 0%, 100%, 0.25) transparent;
}

/* 暗色主题滚动条 */
.timeline-list::-webkit-scrollbar {
  width: 6px;
}
.timeline-list::-webkit-scrollbar-track {
  background: hsla(0, 0%, 100%, 0.05);
  border-radius: 3px;
}
.timeline-list::-webkit-scrollbar-thumb {
  background: hsla(0, 0%, 100%, 0.25);
  border-radius: 3px;
}
.timeline-list::-webkit-scrollbar-thumb:hover {
  background: hsla(0, 0%, 100%, 0.4);
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 100%, 0.05),
    hsla(0, 0%, 100%, 0.4) 15%,
    hsla(0, 0%, 100%, 0.4) 85%,
    hsla(0, 0%, 100%, 0.05)
  );
}

/* 单条时间线项 */
.timeline-item {
  position: relative;
  padding: 0 0 36px 30px;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* 时间节点圆点 */
.timeline-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2;
}

.timeline-item:hover .timeline-dot {
  background-color: #f7c900;
  box-shadow: 0 0 0 6px rgba(247, 201, 0, 0.18);
  transform: scale(1.15);
}

/* 时间标签 */
.timeline-time {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: hsla(0, 0%, 100%, 0.45);
  margin-bottom: 8px;
  font-family: Roboto, Tahoma, Consolas, Microsoft YaHei;
}

/* 内容卡片 */
.timeline-content {
  padding: 14px 18px;
  background-color: hsla(0, 0%, 100%, 0.06);
  border-left: 2px solid hsla(0, 0%, 100%, 0.25);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.timeline-content h5 {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 13px;
  line-height: 1.8em;
  color: hsla(0, 0%, 100%, 0.6);
  margin: 0;
}

/* 行程图片：仅当 image 字段存在且不为空时才会被渲染 */
.timeline-content .timeline-image {
  display: block;
  margin-top: 12px;
  max-width: 100%;
  width: auto;
  max-height: 260px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  object-fit: contain;
  background-color: hsla(0, 0%, 100%, 0.04);
}

/* 悬停效果：与现有 .gate .links .item 风格保持一致 */
.timeline-item:hover .timeline-content {
  background-color: hsla(0, 0%, 100%, 0.12);
  border-left-color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

.timeline-item:hover .timeline-content h5 {
  color: #fff;
}

/* 移动端适配 */
@media screen and (max-width: 700px) {
  .timeline-list {
    padding-left: 28px;
    max-height: 380px;
  }

  .timeline-list::before {
    left: 5px;
  }

  .timeline-item {
    padding-left: 22px;
  }

  .timeline-dot {
    left: -28px;
    width: 11px;
    height: 11px;
  }

  .timeline-content {
    padding: 10px 14px;
  }

  .timeline-content h5 {
    font-size: 15px;
  }

  .timeline-content .timeline-image {
    max-height: 180px;
  }

  .timeline-layout {
    display: block;
  }

  /* 隐藏双栏里的 inner KOOK，移动端只展示下方独立板块，由 .ch 间距 + 额外 150px 实现分割 */
  .timeline-aside.kook-block-inner {
    display: none;
  }

  .ch.kook-block {
    padding-top: 150px;
  }
}
