/* ============ 页面 Banner ============ */
.page-banner {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8d 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-banner h1 { font-size: 28px; margin-bottom: 8px; }
.page-banner p { color: #c8ddf0; font-size: 14px; }

/* ============ 面包屑 ============ */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  padding: 12px 0;
  font-size: 13px;
  color: #7a8fa6;
}
.breadcrumb a { color: #5a6f85; }
.breadcrumb a:hover { color: #1a73e8; }
.breadcrumb span { margin: 0 8px; color: #c5d2e0; }

/* ============ 兄弟栏目筛选 ============ */
.routes-filter {
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  padding: 16px 0;
  position: sticky;
  top: 76px;
  z-index: 50;
}
.routes-filter .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.routes-filter a {
  padding: 8px 22px;
  border-radius: 22px;
  font-size: 14px;
  background: #f0f4f9;
  color: #5a6f85;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.routes-filter a:hover {
  background: #e8f0fe;
  color: #1a73e8;
}
.routes-filter a.active {
  background: #1a73e8;
  color: #fff;
  box-shadow: 0 4px 12px rgba(26,115,232,0.25);
}

/* ============ 主区 ============ */
.routes-main {
  padding: 40px 0 60px;
  background: #f7f9fc;
}

/* ============ 分组 ============ */
.route-group {
  background: #fff;
  border-radius: 16px;
  padding: 30px 30px 24px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.route-group:last-child { margin-bottom: 0; }

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f4f9;
}
.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  color: #1a3a5c;
  font-weight: 700;
}
.group-bar {
  display: inline-block;
  width: 5px;
  height: 22px;
  background: #ff6b35;
  border-radius: 3px;
}
.group-more-top {
  font-size: 14px;
  color: #1a73e8;
  transition: color 0.2s;
}
.group-more-top:hover { color: #1558b0; }

/* ============ 5列网格 ============ */
.route-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* 线路卡片 */
.route-tile {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s;
  text-decoration: none;
  border: 1px solid #eef2f7;
}
.route-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(26,115,232,0.18);
  border-color: #1a73e8;
}
.route-tile .tile-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}
.route-tile .tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.route-tile:hover .tile-img img { transform: scale(1.08); }

/* 悬浮遮罩 */
.route-tile .tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,58,92,0) 40%, rgba(26,58,92,0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}
.route-tile:hover .tile-overlay { opacity: 1; }
.route-tile .tile-btn {
  background: #ff6b35;
  color: #fff;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 标题 */
.route-tile .tile-title {
  padding: 14px 12px;
  font-size: 14px;
  color: #1a3a5c;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  min-height: 58px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s;
}
.route-tile:hover .tile-title { color: #1a73e8; }

/* ============ 分组底部“更多”按钮 ============ */
.group-more-wrap {
  text-align: right;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #eef2f7;
}
.group-more-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #f0f4f9;
  color: #1a73e8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.group-more-btn:hover {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
  box-shadow: 0 6px 16px rgba(26,115,232,0.25);
}

/* ============ 分页 ============ */
.pagination {
  text-align: center;
  margin-top: 44px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid #e8eef5;
  border-radius: 6px;
  font-size: 14px;
  color: #5a6f85;
  background: #fff;
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #a0b0c2;
  font-size: 15px;
  background: #fff;
  border-radius: 14px;
}

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .route-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .route-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .route-group { padding: 24px 20px; }
  .group-title { font-size: 18px; }
}
@media (max-width: 640px) {
  .route-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .routes-filter { position: static; }
  .routes-filter a { padding: 6px 14px; font-size: 13px; }
  .route-tile .tile-title { font-size: 13px; padding: 10px 8px; min-height: 50px; }
  .group-more-wrap { text-align: center; }
}