/* ============================================================================
   8FO 门户 · 区域 / 语言版本页面样式
   用于 /regions/<slug>/ —— 每个「国家或地区 - 语言」一个真实页面。
   依赖主站 design system（main.css 的 :root 变量），不覆盖既有规则。
   ========================================================================== */

.rp-page { background: var(--bg); }

/* ------------------------------------------------------------- 1. 首屏 */
.rp-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 60px;
  color: #fff;
  background:
    radial-gradient(1100px 420px at 88% -10%, rgba(21, 82, 214, .55), transparent 62%),
    linear-gradient(158deg, #07112a 0%, #0d1c3d 48%, #0b3ba8 100%);
}
.rp-hero::after {
  content: "";
  position: absolute;
  right: -140px; bottom: -190px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 143, 224, .32), transparent 68%);
  pointer-events: none;
}
.rp-hero .wrap { position: relative; z-index: 1; }

.rp-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 0 26px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .52);
}
.rp-crumb a { color: inherit; }
.rp-crumb a:hover { color: #fff; }
.rp-crumb b { color: rgba(255, 255, 255, .86); font-weight: 600; }
.rp-crumb .sep { opacity: .45; }

.rp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.rp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #a8c6ff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
}
.rp-badge i { width: 6px; height: 6px; border-radius: 50%; background: #4ee0a8; box-shadow: 0 0 0 3px rgba(78, 224, 168, .18); }

.rp-hero h1 {
  margin: 18px 0 0;
  max-width: 20em;
  font-size: clamp(25px, 3.3vw, 38px);
  line-height: 1.24;
  color: #fff;
  overflow-wrap: anywhere;
}
.rp-hero .rp-sub {
  margin-top: 15px;
  max-width: 36em;
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, .77);
  overflow-wrap: anywhere;
}
.rp-hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rp-hero-acts .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .34); }
.rp-hero-acts .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* 事实卡 */
.rp-facts {
  padding: 22px 22px 8px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius, 14px);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.rp-facts h3 { margin: 0 0 14px; font-size: 13.5px; letter-spacing: .05em; color: #fff; }
.rp-facts dl { margin: 0; }
.rp-facts dl > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.rp-facts dt { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.rp-facts dd { margin: 0; font-size: 13.5px; line-height: 1.6; color: #fff; }

/* --------------------------------------------------------- 2. 通用区块 */
.rp-sec { padding: 62px 0; border-bottom: 1px solid var(--line-2, #eef2f8); }
.rp-sec--soft { background: var(--bg-soft, #f5f7fb); }
.rp-sec-h { font-size: clamp(19px, 2.15vw, 27px); }
.rp-sec-sub { margin-top: 10px; font-size: 14px; color: var(--muted, #5b6a84); }
.rp-sec-h + .rp-sec-sub { margin-bottom: 34px; }
.rp-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand, #1552d6);
}

/* 服务卡 */
/* 所有网格列都写成 minmax(min(Xpx,100%),1fr)：窄屏下不会因为 min-content 撑破视口 */
.rp-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr)); gap: 16px; }
.rp-svc {
  min-width: 0;
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  border-radius: var(--radius, 14px);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.rp-svc:hover {
  border-color: var(--brand-line, #c9dbfb);
  box-shadow: var(--shadow, 0 12px 32px -20px rgba(10, 16, 32, .28));
  transform: translateY(-2px);
}
.rp-svc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 12px;
  border-radius: 9px;
  font-size: 13px; font-weight: 800;
  color: var(--brand, #1552d6);
  background: var(--brand-soft, #eaf1ff);
}
.rp-svc b { display: block; font-size: 15px; line-height: 1.5; color: var(--ink, #0a1020); overflow-wrap: anywhere; }
.rp-svc small { display: block; margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--muted-2, #8593aa); overflow-wrap: anywhere; }

/* 市场说明双栏 */
.rp-note { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.rp-note article {
  min-width: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  border-left: 3px solid var(--brand, #1552d6);
  border-radius: var(--radius-s, 8px);
}
.rp-note h4 {
  margin: 0 0 9px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted-2, #8593aa);
}
.rp-note p { font-size: 14.5px; line-height: 1.78; color: var(--ink-2, #1c2740); overflow-wrap: anywhere; }

/* 对接区 */
.rp-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.rp-card {
  min-width: 0;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  border-radius: var(--radius, 14px);
}
.rp-card h3 { font-size: 15.5px; margin-bottom: 10px; overflow-wrap: anywhere; }
.rp-card p { font-size: 13.5px; color: var(--muted, #5b6a84); line-height: 1.72; overflow-wrap: anywhere; }
/* 卡片内按钮：多语言文案普遍偏长，允许换行并限宽，避免撑破卡片 */
.rp-card .btn {
  max-width: 100%;
  height: auto;
  padding-top: 9px;
  padding-bottom: 9px;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
}
.rp-card .rp-mail {
  display: inline-block; margin-top: 10px;
  font-size: 14px; font-weight: 700; color: var(--brand, #1552d6);
  word-break: break-all;
}
.rp-card .rp-mail:hover { text-decoration: underline; }
.rp-qrs { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.rp-qrs figure { margin: 0; text-align: center; }
.rp-qrs img {
  width: 106px; height: 106px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line, #e3e9f2);
  border-radius: 10px;
}
.rp-qrs figcaption { margin-top: 7px; font-size: 12px; color: var(--muted-2, #8593aa); }

/* 其他区域 */
.rp-region-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(228px, 100%), 1fr)); gap: 22px 30px; }
.rp-region-g { min-width: 0; }
.rp-region-g h4 {
  margin: 0 0 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2, #8593aa);
}
.rp-region-g a {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--muted, #5b6a84);
  border-bottom: 1px solid var(--line-2, #eef2f8);
  overflow-wrap: anywhere;
}
.rp-region-g a:hover { color: var(--brand, #1552d6); }
.rp-region-g a.on { color: var(--ink, #0a1020); font-weight: 700; }
.rp-region-g a.on::before { content: "›"; color: var(--brand, #1552d6); font-weight: 800; }

/* 语言版本说明 */
.rp-disclaim {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid var(--line, #e3e9f2);
  font-size: 12.5px; line-height: 1.7; color: var(--muted-2, #8593aa);
}

/* 索引页 */
.rp-index-hero { padding: 54px 0 46px; }
.rp-index-hero h1 { font-size: clamp(24px, 3vw, 34px); }
.rp-index-hero p { margin-top: 14px; max-width: 46em; font-size: 15px; color: var(--muted, #5b6a84); }

/* --------------------------------------------------------- 3. 响应式 */
@media (max-width: 980px) {
  .rp-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .rp-hero { padding-bottom: 52px; }
  /* 平板：对接区两列，给长按钮留出宽度 */
  .rp-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .rp-sec { padding: 46px 0; }
  .rp-hero { padding: 18px 0 44px; }
  .rp-crumb { padding: 6px 0 20px; }
  .rp-hero h1 { font-size: 25px; }
  .rp-hero .rp-sub { font-size: 14.5px; }
  .rp-facts dl > div { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
  .rp-svc-grid, .rp-contact { grid-template-columns: 1fr; }
  .rp-note { grid-template-columns: 1fr; }
  .rp-qrs img { width: 96px; height: 96px; }
}
@media (max-width: 430px) {
  .rp-hero h1 { font-size: 22px; }
  .rp-hero-acts .btn { width: 100%; justify-content: center; }
  .rp-region-groups { grid-template-columns: 1fr; }
}
