﻿/* ===================================================
   COP & LOP STYLESHEET (cop.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: #1a1a1a;
}

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

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

/* ===================================================
   HEADER & GRADIENT DIVIDER
   =================================================== */
.cop-section {
  margin-bottom: 120px;
}

.cop-section:last-child {
  margin-bottom: 30px;
}

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

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

.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%);
}

/* ===================================================
   COMMON: GRADIENT BORDER CARD
   =================================================== */
.grad-card {
  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;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.grad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.item-code {
  font-size: 0.8rem;
  color: #444444;
  font-weight: 400;
  letter-spacing: 0.2px;
  margin-top: 6px;
  text-align: center;
}

/* ===================================================
   SECTION 1: PASSENGER COP GRID (5 列网格)
   =================================================== */
.passenger-cop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: 100%;
}

/* 包含两个子部件（COP + LOP）的卡片 */
.dual-item-card {
  height: 440px;
  padding: 16px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dual-parts-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 90%;
  gap: 8px;
}

.part-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cop-col {
  flex: 0 0 58%;
  height: 100%;
}

.lop-col {
  flex: 0 0 38%;
  height: 48%; /* 外呼高度约占一半，底部对齐 */
}

.part-img-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.part-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.part-code {
  font-size: 0.72rem;
  color: #444444;
  margin-top: 8px;
  white-space: nowrap;
}

/* 最右侧：单张满铺特写卡片 */
.full-image-card {
  height: 440px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* 满铺图上的白色文字样式 */
.full-card-code {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 0.5px;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* ===================================================
   SECTION 2: HOME COP & LOP
   =================================================== */

/* 上方 5 列复合排列区 */
.home-cop-top-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  width: 100%;
  margin-bottom: 28px;
}

/* 单个竖直操作盘卡片 */
.single-item-card {
  height: 440px;
  padding: 20px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.single-img-box {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-img-box img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

/* 中间跨 2 列的复合结构 */
.center-compound-block {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  height: 440px;
}

/* 上方横向操作盘卡片 */
.horizontal-panel-card {
  height: 160px;
  padding: 16px 20px 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.horiz-img-box {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horiz-img-box img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
}

/* 下方 2 个屏幕并排卡片 */
.sub-screen-row {
  display: flex;
  gap: 16px;
  flex: 1;
}

.screen-item-card {
  flex: 1;
  padding: 16px 14px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.screen-img-box {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-img-box img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

/* 下方 6 列紧凑型 LOP 卡片 */
.home-lop-bottom-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  width: 100%;
}

.lop-compact-card {
  height: 200px;
  padding: 16px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.lop-img-box {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lop-img-box img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  display: block;
}

/* ===================================================
   RESPONSIVE DESIGN (响应式适配)
   =================================================== */
@media (max-width: 1200px) {
  .passenger-cop-grid,
  .home-cop-top-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .center-compound-block {
    grid-column: span 3;
    height: auto;
  }

  .horizontal-panel-card {
    height: 180px;
  }

  .sub-screen-row {
    height: 260px;
  }

  .home-lop-bottom-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

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

  .passenger-cop-grid,
  .home-cop-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .center-compound-block {
    grid-column: span 2;
  }

  .sub-screen-row {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }

  .screen-item-card {
    height: 220px;
  }

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