/* ═══════════════════════════════════════════════════════════════
   Section 8 - Global Reach (区域卡片 + 世界地图插画)
   自适应高度与宽度
   ═══════════════════════════════════════════════════════════════ */

.section-global {
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  background: #ebe9e3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 100px) 20px;
}

.gr-wrap {
  max-width: var(--content-max, 1280px);
  width: 100%;
  margin: 0 auto;
}

/* ───────── 头部（居中） ───────── */
.gr-head { text-align: center; }

.gr-tag {
  margin: 0;
  color: #bc994b;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 4px;
}

.gr-title {
  margin: 16px 0 0;
  color: #192a44;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.26;
}

/* ───────── 四个区域卡片 ───────── */
.gr-regions {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}

.gr-card {
  background: #f7f1e8;
  border-radius: 4px;
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 1.6vw, 24px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}
.gr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(25, 42, 68, 0.1);
}

.gr-card__flag {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.gr-card__txt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gr-card__name {
  color: #192a44;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
}

.gr-card__desc {
  color: #666666;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  line-height: 14px;
}

/* ───────── 世界地图插画区 ───────── */
.gr-map {
  position: relative;
  margin-top: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(25, 42, 68, 0.12);
  border-radius: 4px;
  padding: clamp(14px, 1.6vw, 24px);
  overflow: hidden;
}

.gr-map__img {
  display: block;
  width: 100%;
  height: auto;
}

/* 底部左右两段说明（桌面端覆盖在插画下方角落） */
.gr-note {
  position: absolute;
  bottom: clamp(24px, 4vw, 56px);
  max-width: 300px;
  color: #192a44;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.6;
}
.gr-note::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: #192a44;
  margin-bottom: 14px;
}
.gr-note--left { left: clamp(20px, 3vw, 48px); }
.gr-note--right {
  right: clamp(20px, 3vw, 48px);
  text-align: right;
}
.gr-note--right::before { margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════
   入场动效
   ═══════════════════════════════════════════════════════════════ */
.js .section-global [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}
.section-global [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-global .gr-head { transition-delay: 0.05s; }
.section-global .gr-regions .gr-card:nth-child(1) { transition-delay: 0.12s; }
.section-global .gr-regions .gr-card:nth-child(2) { transition-delay: 0.20s; }
.section-global .gr-regions .gr-card:nth-child(3) { transition-delay: 0.28s; }
.section-global .gr-regions .gr-card:nth-child(4) { transition-delay: 0.36s; }
.section-global .gr-map { transition-delay: 0.2s; }
.section-global .gr-card:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .section-global [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gr-regions { grid-template-columns: repeat(2, 1fr); }
}

/* 中小屏：说明文字不再绝对定位，改为插画下方堆叠 */
@media (max-width: 900px) {
  .gr-note {
    position: static;
    max-width: none;
    margin-top: 18px;
  }
  .gr-note--right { text-align: left; }
  .gr-note--right::before { margin-left: 0; }
}

@media (max-width: 560px) {
  .gr-regions { grid-template-columns: 1fr; }
  .gr-card { min-height: 96px; }
}
