/* 关于我们页。各块按设计稿坐标摆放（1rem = 设计稿 100px） */
body { background: #f8f0ef; }

/* ---------- 顶部 Banner ----------
   奖杯图按设计稿铺满 690 高的 Banner 并上下居中裁切：1920 宽时图高 808，上下各裁掉 59 */
.hero { height: 6.9rem; }
.trophy-plate {
  left: 0;
  top: -.59rem;
  width: 100%;
  height: 8.08rem;
}
.hero__copy {
  left: 3.67rem;
  top: 2.98rem;
}
.hero__title {
  margin-left: .02rem;
  font-size: .64rem;
}
.hero__points {
  grid-template-columns: 1.99rem 1.94rem auto;
  margin-top: -.03rem;
}
.hero__points li { height: .53rem; }
.hero__points img { width: .53rem; height: .53rem; }
.hero__points span { font-size: .32rem; }
/* 设计稿里文字是一整行、勾是单独摆的，三组间距并不一致（7 / -2 / -7），照原样 */
.hero__points li:nth-child(1) span { margin-left: .07rem; }
.hero__points li:nth-child(2) span { margin-left: -.024rem; }
.hero__points li:nth-child(3) span { margin-left: -.068rem; }

.core-card p { font-family: var(--font-display); }

.section-title {
  position: absolute;
  left: 3.67rem;
  color: #683b33;
  font-size: .48rem;
  font-weight: 900;
  line-height: .76rem;
  letter-spacing: -.002rem;
}

/* ---------- 关于我们 ---------- */
.about {
  position: relative;
  height: 7rem;
}
.about .section-title { top: .945rem; }
.about__text {
  position: absolute;
  left: 3.67rem;
  top: 2rem;
  width: 6.26rem;
  color: #4d4d4d;
  font-size: .2rem;
  line-height: .46rem;
}
.about__text p + p { margin-top: .46rem; }
.about__contact {
  position: absolute;
  left: 3.67rem;
  top: 5.28rem;
  box-sizing: border-box;
  width: 6.32rem;
  height: 1.18rem;
  padding: .13rem 0 0 .46rem;
  border-radius: .16rem;
  background: linear-gradient(to left, #6b0f08, #250000 53.851%, #b11e10);
  font-size: .2rem;
  font-style: normal;
  line-height: .46rem;
  white-space: nowrap;
}
.about__photo {
  position: absolute;
  left: 10.94rem;
  top: .92rem;
  width: 4.94rem;
  height: 5.54rem;
  overflow: hidden;
  border-radius: .16rem;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 13, 13, .2);
}

/* ---------- 华信金业核心 ---------- */
.core {
  position: relative;
  height: 6.03rem;
}
.core .section-title { top: .64rem; }
.core__list {
  position: absolute;
  left: 3.67rem;
  top: 1.89rem;
  display: grid;
  grid-template-columns: repeat(4, 2.92rem);
  gap: .24rem;
}
.core-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .27rem;
  box-sizing: border-box;
  height: 4.14rem;
  padding: .32rem;
  border-radius: .2rem;
  background: #fff;
  transition: translate .3s, box-shadow .3s;
}
.core-card:hover {
  translate: 0 -.08rem;
  box-shadow: 0 .16rem .36rem rgba(104, 59, 51, .18);
}
/* 四个图标宽度和左边距各不相同（--x、--w 写在页面里），高度和上边距一样 */
.core-card img {
  position: absolute;
  left: var(--x);
  top: .35rem;
  width: var(--w);
  height: 1.72rem;
}
.core-card h3 {
  color: #b91c1c;
  font-size: .32rem;
  font-weight: 700;
  line-height: .26rem;
  text-align: center;
}
.core-card p {
  width: var(--pw, auto); /* 第一张卡片的文字比卡片内容区宽一点，照设计稿 */
  color: #777;
  font-size: .2rem;
  font-weight: 500;
  line-height: .3rem;
}

/* ---------- 马上开户（样式和手机版排法见 base.css，这里只定位置） ---------- */
.promo { height: 5.53rem; }
.panel {
  top: 1.2566rem;
  bottom: calc(-3.01rem + .5px); /* 一直垫到页脚底下，免得接缝处漏出浅色底 */
  --halo-top: -.1066rem;
  --halo-height: 5.12289rem;
}
.promo__title,
.promo__desc,
.promo__cta { left: 2.31rem; }
.promo__title { top: 2.015rem; }
.promo__desc { top: 2.905rem; }
.promo__cta { top: 4.11rem; }
.promo__art {
  left: 9.43rem;
  top: .36rem;
  width: 8.67rem;
  height: 4.87rem;
}

/* 设计稿这页的页脚高 301 */
.site-footer {
  height: 3.01rem;
  color: #fff;
}

/* ---------- 动效（生效条件见 base.css） ---------- */
/* 按要求停用“减少动态效果”判断：动效对所有访客都播放。原来是 @media (prefers-reduced-motion: no-preference) { 包住下面这些规则 */
  /* 大楼照片：相框不动，里面的照片跟着滚动慢慢拉远 */
  .about__photo.is-playing img { animation: photo-settle 1s linear both; }
  /* 核心图标轻轻浮动 */
  .js .core-card img { animation: float-sm 3.2s ease-in-out infinite alternate; }
  .js .core-card:nth-child(even) img { animation-delay: -1.6s; }
/* 停用的 prefers-reduced-motion 外壳到此结束 */

/* =====================================================================
   手机版（宽度 < 1080），公共部分见 base.css 末尾
   ===================================================================== */
@media (max-width: 1079.98px) {
  /* ---------- Banner ---------- */
  .hero { height: 6.4rem; }
  .trophy-plate {
    --h: 4.4rem;
    --ratio: 2.37625;
    --focus: .6562;
    top: .14rem;
    -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 60%, transparent 97%);
    mask-image: linear-gradient(transparent, #000 7%, #000 60%, transparent 97%);
  }
  .hero__copy {
    top: auto;
    bottom: .56rem;
  }
  .hero__title {
    margin-left: 0;
    font-size: .36rem;
  }
  .hero__points li:nth-child(n) span { margin-left: 0; }

  .section-title {
    position: relative;
    left: auto;
    font-size: .3rem;
    line-height: .44rem;
  }
  .about .section-title,
  .core .section-title { top: auto; }

  /* ---------- 关于我们：标题 → 介绍 → 联系方式 → 大楼照片 ---------- */
  .about {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    height: auto;
    padding: .56rem var(--gutter) .1rem;
  }
  .about__text,
  .about__contact,
  .about__photo {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
  }
  .about__text {
    font-size: .15rem;
    line-height: .28rem;
  }
  .about__text p + p { margin-top: .14rem; }
  .about__contact {
    height: auto;
    padding: .14rem .18rem;
    border-radius: .14rem;
    font-size: .135rem;
    line-height: .24rem;
    white-space: normal;
  }
  .about__photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* ---------- 华信金业核心：两列卡片，图标缩到一半 ---------- */
  .core {
    height: auto;
    padding: .5rem var(--gutter) .3rem;
  }
  .core__list {
    position: relative;
    left: auto;
    top: auto;
    grid-template-columns: 1fr 1fr;
    gap: .1rem;
    margin-top: .2rem;
  }
  .core-card {
    justify-content: flex-start;
    gap: .1rem;
    height: auto;
    padding: 1.12rem .14rem .18rem;
    border-radius: .16rem;
  }
  .core-card img {
    left: 50%;
    top: .16rem;
    width: calc(var(--w) * .5);
    height: .86rem;
    margin-left: calc(var(--w) * -.25);
  }
  .core-card h3 { font-size: .19rem; line-height: .24rem; }
  .core-card p {
    width: auto;
    font-size: .125rem;
    line-height: .2rem;
  }

  /* ---------- 马上开户（排法见 base.css） ---------- */
  .promo__art { aspect-ratio: 867 / 487; }
}
@media (min-width: 640px) and (max-width: 1079.98px) {
  /* 平板：左边介绍和联系方式，右边大楼照片（按设计稿比例） */
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "title title" "text photo" "contact photo";
    grid-template-rows: auto auto 1fr;
    gap: .18rem .3rem;
  }
  .about .section-title { grid-area: title; }
  .about__text { grid-area: text; }
  .about__contact { grid-area: contact; align-self: start; }
  .about__photo { grid-area: photo; aspect-ratio: 494 / 554; }
  .core__list { grid-template-columns: repeat(4, 1fr); }
}

@keyframes photo-settle {
  from { transform: scale(1.28) translateY(6%); }
  to { transform: none; }
}
