

/* ========== 主容器样式（统一示例风格） ========== */
.timeline-wrapper {
  max-width: 1200px;
  width: 95%;
  margin: 30px auto;
  /* 示例主背景：奶油米黄 */
  background: #f0e8d8;
  border-radius: 8px;
  /* 示例统一边框 */
  border: 1px solid rgba(168, 136, 96, 0.35);
  box-shadow: 0 4px 15px rgba(168, 136, 96, 0.15);
  padding: 25px;
  position: relative;
  overflow: hidden;
  margin-bottom:110px;
}
/* 卡片顶部渐变装饰条（示例核心样式） */
.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e69a88, #e87a6f, #f0b888);
  border-radius: 8px 8px 0 0;
}

/* ========== 头部标题区域 ========== */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding-bottom: 12px;
  /* 示例分割线 */
  border-bottom: 1px solid rgba(230, 154, 136, 0.3);
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  /* 示例主标题色：珊瑚红 */
  color: #e87a6f;
  text-shadow: 0 0 10px rgba(230, 154, 136, 0.5);
  letter-spacing: -0.3px;
}

.more-btn {
  background: #e69a88;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
}
.more-btn:hover {
  background: #e87a6f;
  box-shadow: 0 2px 8px rgba(232, 122, 111, 0.25);
}

/* ========== 线路标签 ========== */
.line-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.line-tab {
  padding: 8px 18px;
  background: rgba(230, 154, 136, 0.1);
  border: 1px solid rgba(230, 154, 136, 0.3);
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  color: #584830;
  cursor: pointer;
  transition: 0.3s ease;
}
.line-tab.active {
  background: linear-gradient(90deg, #e69a88, #e87a6f);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(230, 154, 136, 0.2);
}
.line-tab:hover {
  background: rgba(230, 154, 136, 0.2);
  border-color: #e69a88;
  color: #e87a6f;
}

/* ========== 区块标题 ========== */
.block-title {
  font-size: 22px;
  font-weight: 700;
  margin: 30px 0 20px;
  /* 示例左侧装饰条 */
  border-left: 4px solid #e87a6f;
  padding-left: 14px;
  color: #584830;
}
.block-title:first-of-type {
  margin-top: 0;
}

/* ========== 迷宫时刻表 ========== */
.maze-schedules {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

/* 统一卡片样式（迷宫卡片） */
.maze-card {
  background: #f0e8d8;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid rgba(168, 136, 96, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.maze-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e69a88, #e87a6f, #f0b888);
  border-radius: 8px 8px 0 0;
}
.maze-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 154, 136, 0.6);
  box-shadow: 0 6px 20px rgba(230, 154, 136, 0.3);
}

.maze-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.maze-duration {
  background: rgba(230, 154, 136, 0.2);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  color: #e87a6f;
}

.maze-name {
  font-weight: 700;
  font-size: 16px;
  color: #584830;
}

.maze-times {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.time-item {
  background: rgba(230, 154, 136, 0.1);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  color: #584830;
  transition: 0.2s ease;
  border: 1px solid rgba(230, 154, 136, 0.2);
}
.time-item:hover {
  background: rgba(230, 154, 136, 0.2);
  color: #e87a6f;
  border-color: #e69a88;
}

/* ========== 船只卡片通用样式 ========== */
/* 宽版船只卡片 */
.ship-card-wide {
  background: #f0e8d8;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(168, 136, 96, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ship-card-wide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e69a88, #e87a6f, #f0b888);
  border-radius: 8px 8px 0 0;
}

/* 普通船只卡片 */
.ship-card {
  background: #f0e8d8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(168, 136, 96, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.ship-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e69a88, #e87a6f, #f0b888);
  border-radius: 8px 8px 0 0;
}

/* 悬浮效果统一 */
.ship-card-wide:hover,
.ship-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 154, 136, 0.6);
  box-shadow: 0 6px 20px rgba(230, 154, 136, 0.3);
}

/* 船只名称 */
.ship-name-large {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #e87a6f;
  text-shadow: 0 0 8px rgba(230, 154, 136, 0.5);
}
.ship-name {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
  color: #e87a6f;
  text-shadow: 0 0 6px rgba(230, 154, 136, 0.4);
}

/* 双港口布局 */
.dual-ports {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.port-box {
  flex: 1;
  text-align: center;
  background: rgba(230, 154, 136, 0.1);
  border-radius: 8px;
  padding: 16px 12px;
  border: 1px solid rgba(230, 154, 136, 0.2);
}
.port-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #584830;
}
.port-status {
  font-size: 12px;
  color: #7a6953;
  margin-bottom: 6px;
}
.port-time {
  font-size: 16px;
  font-weight: bold;
  color: #e87a6f;
}
.ship-status-center {
  font-size: 16px;
  font-weight: bold;
  color: #e69a88;
  text-align: center;
  min-width: 120px;
}

/* 未来时刻表按钮 */
.future-btn-wrap {
  text-align: right;
  margin-top: 16px;
}
.future-btn {
  background: rgba(230, 154, 136, 0.2);
  border: 1px solid rgba(230, 154, 136, 0.3);
  color: #e87a6f;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 40px;
  transition: 0.3s ease;
}
.future-btn:hover {
  background: #e69a88;
  color: #fff;
  text-decoration: none;
}

/* 双船只并排布局 */
.ships-dual {
  display: flex;
  gap: 24px;
}
.ships-dual .ship-card {
  flex: 1;
}

/* ========== 模态框（未来时刻表） ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}
.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal-container {
  background: #f0e8d8;
  border-radius: 8px;
  max-width: 580px;
  width: 90%;
  max-height: 75vh;
  border: 1px solid rgba(168, 136, 96, 0.35);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease;
  position: relative;
}
.modal-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e69a88, #e87a6f, #f0b888);
  border-radius: 8px 8px 0 0;
}

@keyframes modalFadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(230, 154, 136, 0.3);
  background: transparent;
}
.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #e87a6f;
}
.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #7a6953;
  transition: 0.2s;
  padding: 0 6px;
}
.modal-close:hover {
  color: #e87a6f;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.future-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.future-list li {
  background: rgba(230, 154, 136, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(230, 154, 136, 0.2);
  transition: 0.2s ease;
}
.future-list li:hover {
  border-color: rgba(230, 154, 136, 0.4);
  background: rgba(230, 154, 136, 0.15);
}
.future-list li:last-child { margin-bottom: 0; }

.route-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
  color: #584830;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(230, 154, 136, 0.3);
}
.route-line span:last-child {
  font-weight: 700;
  color: #e87a6f;
}

.time-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: #584830;
}
.time-line .label { color: #7a6953; }
.time-line .value {
  font-weight: 700;
  color: #e87a6f;
}

.footer-note {
  font-size: 12px;
  color: #7a6953;
  margin-top: 12px;
  text-align: center;
}

.modal-footer {
  padding: 12px 24px 20px;
  text-align: center;
  border-top: 1px solid rgba(230, 154, 136, 0.3);
  background: transparent;
}
.modal-footer .close-btn {
  background: #e69a88;
  padding: 8px 20px;
  border-radius: 40px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}
.modal-footer .close-btn:hover {
  background: #e87a6f;
  box-shadow: 0 2px 8px rgba(232, 122, 111, 0.25);
}

/* ========== 倒计时动画 ========== */
@keyframes softPulse {
  0% { opacity: 0.85; text-shadow: 0 0 0px #e87a6f; }
  100% { opacity: 1; text-shadow: 0 0 2px #e69a88; }
}
.countdown-pulse {
  animation: softPulse 1.2s infinite alternate;
}

/* ========== 响应式适配 ========== */
@media (max-width: 1200px) {
  .timeline-wrapper { width: 95%; padding: 20px; }
}

@media (max-width: 800px) {
  .dual-ports { flex-direction: column; gap: 16px; }
  .ship-status-center { margin: 8px 0; }
  .ships-dual { flex-direction: column; gap: 20px; }
  .card-title { font-size: 24px; }
}

@media (max-width: 768px) {
  .timeline-wrapper { padding: 18px; }
  .ship-name-large { font-size: 20px; }
  .ship-name { font-size: 18px; }
  .modal-container { max-width: 95%; }
}

/* ========== 弹窗自定义滚动条（仅作用于弹窗内部） ========== */
.modal-body::-webkit-scrollbar {
  /* 滚动条宽度 */
  width: 6px;
}
/* 滚动条轨道 */
.modal-body::-webkit-scrollbar-track {
  background: #f7f0e3;
  border-radius: 10px;
}
/* 滚动条滑块 */
.modal-body::-webkit-scrollbar-thumb {
  background: #e69a88;
  border-radius: 10px;
  transition: 0.3s ease;
}
/* 滚动条滑块悬浮 */
.modal-body::-webkit-scrollbar-thumb:hover {
  background: #e87a6f;
}