/* ============================================================
   RENLAI 人来 · 站点层：页头、页脚、首屏、页面版式
   ============================================================ */

/* ---------- 通用网格 ---------- */
.grid { display: grid; gap: 2.5rem; }
.grid--sm { gap: 1.5rem; }
.grid--lg { gap: 3.5rem; }
.stack { display: grid; gap: 1.25rem; }
.stack--lg { gap: 2.5rem; }
.stack--xl { gap: 5rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.row--between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.center { text-align: center; }

@media (min-width: 640px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .cols-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cols-lg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols-lg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cols-lg-3-2 { grid-template-columns: 3fr 2fr; }
  .cols-lg-2-3 { grid-template-columns: 2fr 3fr; }
  .cols-lg-7-5 { grid-template-columns: 1.4fr 1fr; }
  .cols-lg-11-10 { grid-template-columns: 1.1fr 1fr; }
  .grid { gap: 4rem; }
  .grid--sm { gap: 2rem; }
}

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 250, 0.9);
  backdrop-filter: blur(8px);
}
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
/* Logo 靠左：置于主导航左侧（与 Ardot 画布一致） */
.site-header__logo {
  flex: none;
  order: -1;
  margin-right: 2.25rem;
}
.site-header__logo img { height: 2rem; width: auto; }
@media (min-width: 768px) { .site-header__logo img { height: 2.25rem; } }

.nav {
  display: none;
  align-items: center;
  gap: 1rem;
  flex: 1 1 0;
  min-width: 0;
}
.nav--end { justify-content: flex-end; }
@media (min-width: 1024px) { .nav { display: flex; gap: 1.75rem; } }

.nav__link {
  display: flex;
  flex-direction: column;
  flex: none;
  line-height: 1.2;
  white-space: nowrap;
  transition: color var(--dur) var(--ease-smooth);
}
.nav__link:hover { color: var(--teal-deep); }
.nav__link.is-active { color: var(--teal-deep); }
.nav__link b { font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.nav__link span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--ink-soft);
  opacity: 0.7;
  transition: color var(--dur) var(--ease-smooth);
}
.nav__link:hover span { color: var(--teal); }
/* 中英文上下居中：两侧导航统一按中轴线对齐，长短不一时也不歪 */
.nav--end .nav__link { align-items: center; }

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: none;
  cursor: pointer;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* 语言切换 */
.lang { display: flex; align-items: center; gap: 0.25rem; flex: none; white-space: nowrap; }
.lang__btn {
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-smooth), color var(--dur) var(--ease-smooth);
}
.lang__btn:hover { background: var(--mist); color: var(--ink); }
.lang__btn.is-active { background: var(--ink); color: #fff; }
.lang--desktop { display: none; }
.lang--mobile { display: flex; }
@media (min-width: 1024px) {
  .lang--desktop { display: flex; }
  .lang--mobile { display: none; }
}

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 65;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: none;
}
.drawer.is-open { display: block; }
@media (min-width: 1024px) { .drawer { display: none !important; } }
.drawer__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
  font-weight: 500;
}
.drawer__link span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--ink-soft);
}

/* ============================================================
   首屏（深色通栏）
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, rgba(20, 24, 26, 0.55) 50%, rgba(20, 24, 26, 0.3) 100%);
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 88vh;
  padding-block: 6rem 4rem;
}
.hero--short .hero__inner { min-height: 52vh; }
.hero--tall .hero__inner { min-height: 70vh; }

/* 心智五词 */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3.5rem;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stats__cell { background: rgba(20, 24, 26, 0.4); padding: 1rem 1.25rem; }
.stats__num { font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.stats__label { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.5; color: var(--on-dark-3); }

/* ============================================================
   内页页头
   ============================================================ */
.page-head { padding-block: 4rem 3.5rem; }
@media (min-width: 768px) { .page-head { padding-block: 6rem; } }
.page-head .h1 { max-width: 48rem; }

/* ============================================================
   场景卡片 / 城市卡片
   ============================================================ */
.scene-card { display: block; }
.scene-card__badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(20, 24, 26, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}
.scene-card__title { margin-top: 1rem; font-size: 1.25rem; font-weight: 700; transition: color var(--dur) var(--ease-smooth); }
.scene-card:hover .scene-card__title { color: var(--teal-deep); }
.scene-card__sub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--teal-deep); }

.zoom { overflow: hidden; border-radius: var(--r-card); }
.zoom img { transition: transform 0.5s var(--ease-smooth); }
a:hover .zoom img, .zoom:hover img { transform: scale(1.03); }

.city-card { position: relative; display: block; overflow: hidden; border-radius: var(--r-card); }
.city-card__cap { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.5rem; }
.city-card__name { margin-top: 0.25rem; font-size: 1.5rem; font-weight: 700; color: #fff; }

/* 交错图文（偶数行图片换到右侧） */
@media (min-width: 1024px) {
  .flip > *:first-child { order: 2; }
}

/* ============================================================
   FAQ 手风琴
   ============================================================ */
.faq { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-block: 1.25rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.faq__q span { font-size: 1rem; font-weight: 500; transition: color var(--dur) var(--ease-smooth); }
.faq__item.is-open .faq__q span { color: var(--teal-deep); }
.faq__icon { flex: none; color: var(--ink-soft); transition: transform 0.3s var(--ease-smooth); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-smooth);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.25rem; max-width: var(--prose); font-size: 0.875rem; line-height: 1.8; color: var(--ink-soft); }

/* ============================================================
   联系页
   ============================================================ */
.qr {
  margin-top: 1.5rem;
  text-align: center;
}
.qr img { width: 10rem; margin-inline: auto; border: 1px solid var(--line); border-radius: 0.75rem; }
.qr figcaption { margin-top: 0.75rem; font-size: 0.75rem; color: var(--ink-soft); }
.qr--sm img { width: 10rem; border-radius: 0.75rem; }

.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-grid .span-2 { grid-column: 1 / -1; }

/* ============================================================
   页脚
   ============================================================ */
.site-footer { background: var(--ink); color: #fff; }
.site-footer__cta { border-bottom: 1px solid var(--on-dark-line); }
.site-footer__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 3rem;
}
@media (min-width: 768px) {
  .site-footer__cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__slogan { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 768px) { .site-footer__slogan { font-size: 1.875rem; } }
.site-footer__desc { margin-top: 0.5rem; max-width: 28rem; font-size: 0.875rem; line-height: 1.75; color: var(--on-dark-3); }

.site-footer__cols { padding-block: 3rem; }
@media (min-width: 768px) {
  .site-footer__cols .grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.site-footer__logo img { height: 2.25rem; width: auto; }
.site-footer__links { margin-top: 1rem; display: grid; gap: 0.625rem; }
.site-footer__links a { font-size: 0.875rem; color: var(--on-dark-2); transition: color var(--dur) var(--ease-smooth); }
.site-footer__links a:hover { color: var(--teal-soft); }

.site-footer__legal { border-top: 1px solid var(--on-dark-line); }
.site-footer__legal-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.5rem;
}
@media (min-width: 768px) {
  .site-footer__legal-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__legal a, .site-footer__legal p { font-size: 0.75rem; }
.site-footer__legal a { color: rgba(255, 255, 255, 0.45); transition: color var(--dur) var(--ease-smooth); }
.site-footer__legal a:hover { color: #fff; }
.site-footer__legal p { color: var(--on-dark-4); }

/* ============================================================
   回到顶部 / 待配置弹窗
   ============================================================ */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 25px rgba(20, 24, 26, 0.12);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-smooth), color var(--dur) var(--ease-smooth);
}
.to-top.is-visible { display: flex; }
.to-top:hover { border-color: var(--teal); color: var(--teal-deep); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(20, 24, 26, 0.55);
}
.modal.is-open { display: flex; }
.modal__panel {
  width: min(26rem, 100%);
  border-radius: var(--r-card);
  background: #fff;
  padding: 2rem;
}
.modal__close { margin-top: 1.5rem; }

/* ============================================================
   法律页
   ============================================================ */
.legal-box {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--mist);
  padding: 1.75rem;
}

/* ============================================================
   页脚 · 备案信息
   ============================================================ */
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.site-footer__legal .site-footer__icp {
  font-size: 0.75rem;
  color: var(--on-dark-4);
  transition: color var(--dur) var(--ease-smooth);
}
.site-footer__legal .site-footer__icp:hover { color: #fff; }

/* ============================================================
   信任与安全 · 政策支持
   ============================================================ */
.policy-grid {
  display: grid;
  gap: 1.125rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .policy-grid { grid-template-columns: repeat(3, 1fr); }
}
.policy-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1.375rem;
}
.policy-card__title {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.policy-card__issuer {
  margin-top: 0.5rem;
  font-size: 0.71875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.policy-card__body {
  margin-top: 0.75rem;
  font-size: 0.78125rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.policy-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
  opacity: 0.75;
}
