﻿/* ===================================================
   CABIN SERIES STYLESHEET (cabin.css)
   =================================================== */

/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 1. 100vh Hero Banner */
.hero-banner {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #1a1512;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 主容器 */
.cabin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 30px 120px 30px;
}

/* ===================================================
   SECTION 结构与头部
   =================================================== */
.cabin-section {
  margin-bottom: 110px;
}

.cabin-section:last-child {
  margin-bottom: 20px;
}

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

/* Section 主标题 */
.section-title {
  font-size: 2.3rem;
  font-weight: 300;
  color: #2b2b2b;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* 居中渐变分割线：贯穿横线，居中 120px 渐变色条 */
.center-gradient-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background-color: #eaedf1;
  margin: 0 auto;
}

.center-gradient-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.5px;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c81e3a 0%, #5b1a7d 50%, #1b2685 100%);
}

/* ===================================================
   ITEM 网格 (一行 5 个) & 渐变圆角边框
   =================================================== */
.cabin-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  width: 100%;
}

/* 单个 Item 渐变圆角边框实现 */
.cabin-item {
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: 
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #c81e3a 0%, #681977 50%, #1b2685 100%) border-box;
  padding: 20px 60px 16px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cabin-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* 轿厢图片容器 */
.cabin-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cabin-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 轿厢型号编号 */
.cabin-code {
  font-size: 0.85rem;
  font-weight: 500;
  color: #333333;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* 二维码容器 */
.cabin-qr-wrap {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabin-qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===================================================
   RESPONSIVE DESIGN (响应式断点)
   =================================================== */
@media (max-width: 1200px) {
  .cabin-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .cabin-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .section-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  .hero-banner {
    height: 70vh;
  }

  .cabin-container {
    padding: 50px 16px 80px 16px;
  }

  .cabin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .cabin-item {
    padding: 14px 10px 12px 10px;
  }

  .cabin-code {
    font-size: 0.78rem;
  }

  .cabin-qr-wrap {
    width: 38px;
    height: 38px;
  }
}