﻿/* ===================================================
   WORLD CLASSICAL COLLABORATION (service.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: #1a1714;
}

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

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

/* 头部主标题与居中渐变分割线 */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

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

/* ===================================================
   COUNTRY HEADER (圆形国旗 + 国家名)
   =================================================== */
.country-group {
  margin-bottom: 60px;
}

.country-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.flag-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.country-name {
  font-size: 1.15rem;
  font-weight: 400;
  color: #2b2b2b;
  letter-spacing: 0.2px;
}

/* ===================================================
   PROJECT GRID & GRADIENT BORDER CARD
   =================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
}

/* 单个卡片：渐变圆角外边框 */
.project-card {
  width: 100%;
  height: 220px;
  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;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* 左侧图片与底部渐变标题条 */
.card-img-wrap {
  position: relative;
  flex: 0 0 60%;
  height: 100%;
  overflow: hidden;
  background-color: #f7f7f7;
}

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

.img-gradient-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(90deg, #c81e3a 0%, #1b2685 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.img-gradient-bar span {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

/* 右侧数字与 units 标签 */
.card-info-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}

.unit-number {
  font-size: 2.8rem;
  font-weight: 200;
  line-height: 1;
  color: #2b2b2b;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.unit-badge {
  font-size: 0.75rem;
  color: #777777;
  border: 1px solid #e0e3e8;
  border-radius: 12px;
  padding: 1px 12px;
  font-weight: 300;
  line-height: 1.4;
  text-transform: lowercase;
}

/* ===================================================
   倒数第二行：双国家并排容器 (Bangladesh & Belarus)
   =================================================== */
.dual-country-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 60px;
  width: 100%;
}

.single-country-col {
  width: 100%;
}

/* ===================================================
   RESPONSIVE DESIGN (响应式适配)
   =================================================== */
@media (max-width: 1024px) {
  .project-grid {
    gap: 20px;
  }

  .dual-country-row {
    gap: 20px;
  }

  .project-card {
    height: 150px;
  }

  .unit-number {
    font-size: 2.3rem;
  }
}

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

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

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

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dual-country-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-card {
    height: 140px;
  }

  .card-img-wrap {
    flex: 0 0 54%;
  }

  .unit-number {
    font-size: 2rem;
  }
}