/* 服务项目页 */
body { background: #f8f0ef; }

/* ---------- 顶部 Banner ---------- */
.hero { height: 6.99rem; }
.hero-plate {
  left: -.37%;
  top: -4.16%;
  width: 103.56%;
  height: 112.12%;
}
.hero-plate__phone {
  left: 12.6409%;
  top: 16.8508%;
  width: 32.3442%;
  height: 83.1492%;
  transform-origin: 30% 100%;
}
/* 手机屏幕上 logo 的呼吸光 */
.hero-plate__glow {
  left: 28.43%;
  top: 33%;
  width: 12.46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 150, 80, .6), rgba(255, 90, 40, 0));
  mix-blend-mode: screen;
  opacity: 0;
}
/* 设计稿：底部黑色往上渐隐成透明暗红，到 15.393% 为止 */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, rgba(96, 16, 17, 0) 15.393%);
}

/* 标题压在背景图里的玻璃面板上，位置跟着背景图走 */
.hero__copy {
  left: 9.38rem;
  top: 2.88rem;
}
.hero__title {
  margin-left: .24rem;
  font-size: .55rem;
}
.hero__points { grid-template-columns: 1.75rem 1.71rem auto; }
.hero__points li {
  gap: .13rem;
  height: .47rem;
}
/* 设计稿里三组“勾 + 文字”的间距本来就不一样（13 / 4 / 2），照原样 */
.hero__points li:nth-child(2) { gap: .04rem; }
.hero__points li:nth-child(3) { gap: .02rem; }
.hero__points img { width: .47rem; height: .47rem; }
.hero__points span { font-size: .28rem; }

/* ---------- 说明区 + 贵金属产品：浅色底，位置按设计稿坐标（相对本区顶部，Banner 下沿 699） ---------- */
.services {
  position: relative;
  height: 14.83rem;
}
.services__title {
  position: absolute;
  left: 3.67rem;
  top: .81rem;
  display: flex;
  align-items: flex-start;
  color: #683b33;
  font-size: .48rem;
  font-weight: 900;
  line-height: .76rem;
  letter-spacing: -.002rem;
  white-space: nowrap;
}
/* 设计稿里“服务项目”比“华信金业”的中心高 5px */
.services__title span {
  margin: .1rem 0 0 .11rem;
  color: #ff0707;
  font-family: var(--font-body);
  font-weight: 800;
  line-height: .46rem;
  letter-spacing: 0;
}

/* 说明：左边一段文字，右边一张图（没有卡片底） */
.intro {
  position: absolute;
  left: 3.41rem;
  top: .47rem;
  width: 12.55rem;
  height: 4.91rem;
}
.intro__text {
  position: absolute;
  left: .26rem;
  top: 1.49rem;
  width: 5.53rem;
  color: #000;
  font-size: .28rem;
  line-height: .46rem;
}
.intro__img {
  position: absolute;
  left: 6.44rem;
  top: .46rem;
  width: 5.74rem;
  height: 3.99rem;
  border-radius: .13rem;
  object-fit: cover;
  box-shadow: 0 .04rem .04rem rgba(0, 0, 0, .25);
}

/* 金币：贵金属产品左边。设计稿里图层绕左上角逆时针转了 18.31° */
.services__coin {
  position: absolute;
  left: 1.7rem;
  top: 6.5529rem;
  width: 1.76rem;
  height: 1.88rem;
  transform-origin: 0 0;
  rotate: -18.31deg;
}

/* 金条摆件：压在说明图片的右下角 */
.hero__bars {
  position: absolute;
  left: 13.46rem;
  top: 1.64rem;
  width: 5rem;
  height: 5rem;
}

/* ---------- 贵金属产品 ----------
   设计稿里标题的中心在 938，比两张卡片的中心（960）偏左 22px，照原样 */
.products {
  position: absolute;
  left: 3.1rem;
  top: 5.75rem;
  width: 12.56rem;
}
.products__title {
  padding-top: .0643rem;
  color: #683b33;
  font-size: .48rem;
  font-weight: 900;
  line-height: .76rem;
  letter-spacing: -.002rem;
  text-align: center;
}
.products__list {
  display: flex;
  gap: .71rem;
  margin-top: .4681rem;
  padding-left: .5rem;
}
.product {
  box-sizing: border-box;
  width: 5.65rem;
  height: 7.0546rem;
  padding-top: .2633rem;
  border-radius: .23rem;
  background: #fff;
  text-align: center;
  transition: translate .3s, box-shadow .3s;
}
.product:hover {
  translate: 0 -.1rem;
  box-shadow: 0 .16rem .36rem rgba(104, 59, 51, .18);
}
.product__img {
  width: 5.17rem;
  height: 4.1252rem;
  margin: 0 auto;
  border-radius: .23rem;
  object-fit: cover;
}
.product__name,
.product__desc {
  width: 4.77rem;
  margin: 0 auto;
  line-height: .37rem;
}
.product__name {
  margin-top: .2853rem;
  font-family: var(--font-body);
  color: #683b33;
  font-size: .32rem;
  font-weight: 700;
}
.product__desc {
  margin-top: .07rem; /* 设计稿里标题和描述是同一段文字，混排字号让描述第一行往下多了 7px */
  color: #4d4d4d;
  font-size: .2rem;
}

/* ---------- 马上开户（样式和手机版排法见 base.css，这里只定位置；本区顶部 = 右边图片顶部 2182） ---------- */
.promo { height: 5.06rem; }
.panel {
  top: .66rem;
  bottom: calc(-2.83rem + .5px); /* 一直垫到页脚底下，免得接缝处漏出浅色底 */
  --halo-top: -.11rem;
  --halo-height: 5.12289rem;
}
.promo__title,
.promo__desc,
.promo__cta { left: 2.29rem; }
.promo__title { top: 1.415rem; }
.promo__desc { top: 2.305rem; }
.promo__cta { top: 3.51rem; }
.promo__art {
  left: 9.6rem;
  top: 0;
  width: 7.67rem;
  height: 4.69rem;
}
.promo__art img { object-fit: cover; } /* 原图比框略宽，照设计稿裁掉左右一点 */

/* 设计稿这页的页脚高 283，文字中心在 127（偏上） */
.site-footer {
  box-sizing: border-box;
  height: 2.83rem;
  padding-bottom: .29rem;
}

/* ---------- 动效（生效条件见 base.css） ---------- */
/* 按要求停用“减少动态效果”判断：动效对所有访客都播放。原来是 @media (prefers-reduced-motion: no-preference) { 包住下面这些规则 */
  .js .hero-plate:not(.is-static) .hero-plate__phone { transform: translate(-8%, 100%) rotate(-10deg); }

  /* Banner：手举着手机从下面升上来 → 淡入原图收尾 → logo 呼吸发光。
     打开页面时自动播一遍；往下滚手会沉回去，滚回来再升起 */
  .hero-plate.is-playing .hero-plate__phone { animation: hero-phone 1.8s .15s cubic-bezier(.33, .55, .55, 1) both; }
  .hero-plate.is-playing .scene__full { animation: scene-full .45s 1.9s both; }
  .hero-plate.is-settled .hero-plate__glow { animation: hero-glow 2.4s ease-in-out infinite alternate; }

  /* 一直在动的小动作：K 线柱、金币上下漂浮 */
  .js .hero__bars,
  .js .services__coin { animation: float 4.5s ease-in-out infinite alternate; }
  .js .services__coin { animation-delay: -2.2s; }
/* 停用的 prefers-reduced-motion 外壳到此结束 */

/* =====================================================================
   手机版（宽度 < 1080），公共部分见 base.css 末尾
   ===================================================================== */
@media (max-width: 1079.98px) {
  /* ---------- Banner：对准举手机的手；原图里的玻璃面板在竖屏取景外，标题改用自己的玻璃卡片 ---------- */
  .hero { height: 7.1rem; }
  .hero-plate {
    --h: 5.5rem;
    --ratio: 2.3273;
    --focus: .3;
    top: 0;
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
  }
  .hero__copy {
    top: auto;
    bottom: .46rem;
    padding: .14rem .18rem .18rem;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: .18rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    box-shadow: 0 .16rem .4rem -.12rem rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    filter: none;
  }
  .hero__title {
    margin-left: 0;
    font-size: .32rem;
  }
  .hero .hero__points { gap: .06rem .1rem; }
  .hero__points li:nth-child(n) { gap: .05rem; }
  .hero .hero__points span { font-size: .16rem; }

  /* ---------- 说明区 + 产品：从上往下排；金条摆件压在说明图片右下角，金币蹲在产品标题左边 ---------- */
  .services {
    display: grid;
    height: auto;
    padding: .5rem var(--gutter) .64rem;
  }
  .services > * {
    position: relative;
    left: auto;
    top: auto;
  }
  .services__title {
    grid-area: 1 / 1;
    font-size: .3rem;
    line-height: .44rem;
  }
  .services__title span { margin: 0 0 0 .08rem; line-height: .44rem; }

  .intro {
    grid-area: 2 / 1;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    width: auto;
    height: auto;
    margin-top: .16rem;
  }
  .intro__text,
  .intro__img {
    position: relative;
    left: auto;
    top: auto;
  }
  .intro__text {
    width: auto;
    font-size: .15rem;
    line-height: .27rem;
  }
  .intro__img {
    width: 100%;
    height: auto;
    aspect-ratio: 574 / 399;
    border-radius: .1rem;
  }
  .hero__bars {
    z-index: 1;
    grid-area: 2 / 1;
    justify-self: end;
    align-self: end;
    width: 1.3rem;
    height: 1.3rem;
    margin: 0 -.1rem -.5rem 0;
  }

  .services__coin {
    z-index: 1;
    grid-area: 3 / 1;
    justify-self: start;
    align-self: start;
    width: .5rem;
    height: .534rem;
    margin: .62rem 0 0 -.04rem;
  }
  .products {
    grid-area: 3 / 1;
    width: auto;
    margin-top: .6rem;
  }
  .products__title {
    padding-top: 0;
    font-size: .3rem;
    line-height: .44rem;
  }
  .products__list {
    flex-direction: column;
    gap: .16rem;
    margin-top: .24rem;
    padding-left: 0;
  }
  .product {
    width: auto;
    height: auto;
    padding: .12rem .12rem .22rem;
    border-radius: .16rem;
  }
  .product__img {
    width: 100%;
    height: auto;
    aspect-ratio: 517 / 412;
    border-radius: .12rem;
  }
  .product__name {
    width: auto;
    margin-top: .16rem;
    font-size: .22rem;
    line-height: .32rem;
  }
  .product__desc {
    width: auto;
    margin-top: .06rem;
    padding: 0 .06rem;
    font-size: .14rem;
    line-height: .25rem;
  }

  /* ---------- 马上开户（排法见 base.css） ---------- */
  .promo__art { aspect-ratio: 767 / 469; }

  .site-footer { height: auto; padding-bottom: .4rem; }
}
@media (min-width: 640px) and (max-width: 1079.98px) {
  .products__list { flex-direction: row; }
  .product { flex: 1; }
}

@keyframes hero-phone {
  from { transform: translate(-8%, 100%) rotate(-10deg); }
  to { transform: none; }
}
@keyframes hero-glow {
  from { opacity: 0; }
  to { opacity: 1; }
}
