:root {
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.55);
  --brand: #c90e57;
  --navy: #102b4c;
  --navy-deep: #0a1c34;
  /* 与 home_banner 左侧取样一致，避免左右露边色差 */
  --banner-fill: #112234;
  --line: rgba(255, 255, 255, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--banner-fill);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* —— 首屏：全宽背景 + 常规文档流（不再用 transform 画布） —— */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--banner-fill);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--banner-fill);
  background-image: url("./assets/home_banner.jpg");
  background-repeat: no-repeat;
  background-position: right center;
  /* 按高度铺满，右侧贴齐人物；左右不足处用 banner-fill 衔接 */
  background-size: auto 100%;
}

/* 13 寸等中等宽度：仅把人物再往右推，手机/二维码位置不变 */
@media (max-width: 1512px) and (min-width: 901px) {
  .hero__bg {
    /* 100% 仍偏中时，用更大水平偏移把人物贴向右缘 */
    background-position: right -8vw center;
  }
}

.site {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.brand__text {
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 14px;
  line-height: 1.4;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  padding-left: 24px;
}

.stage__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 399px;
  width: 399px;
}

.stage__qrs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  align-self: center;
  transform: translateY(-184px);
}

/* —— 手机 mock 轮播：snapmock 1-7 —— */
.phone-slider {
  position: relative;
  width: 399px;
  z-index: 1;
}

.phone-slider__viewport {
  width: 100%;
  aspect-ratio: 1924 / 3890;
  overflow: hidden;
  border-radius: 4px;
  filter: drop-shadow(0 22px 36px rgba(3, 10, 22, 0.45));
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.phone-slider__viewport.is-dragging {
  cursor: grabbing;
}

.phone-slider__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.phone-slider__slide {
  margin: 0;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.phone-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.phone-slider__nav {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #16365c;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(4, 14, 30, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.phone-slider__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.phone-slider__nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: translateY(-50%);
}

.phone-slider__nav--prev {
  left: -18px;
}

.phone-slider__nav--next {
  right: -18px;
}

.phone-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.phone-slider__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.phone-slider__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* —— 品牌叙事通栏 —— */
.story {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(201, 14, 87, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #0d1c30 0%, #0a1628 100%);
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.story__inner {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 80px;
  text-align: center;
}

.story__quote {
  margin: 8px 0 36px;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #fff;
}

.story__verse {
  margin: 0 0 28px;
}

.story__verse p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.04em;
}

.story__verse--soft p {
  color: rgba(255, 255, 255, 0.72);
}

.story__cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.story__cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* —— 服务能力分块 —— */
.features {
  background: #0a1628;
  color: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.features__inner {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
  display: grid;
  gap: 36px;
}

.feature {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.feature__title {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #fff;
}

.feature__lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

.feature__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature__list li {
  position: relative;
  padding-left: 1em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.feature__list li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-size: 0.75em;
  line-height: 2.2;
}

.feature__list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

@media (max-width: 700px) {
  .feature__list--grid {
    grid-template-columns: 1fr;
  }

  .features__inner {
    padding: 40px 0 56px;
    gap: 28px;
  }
}

/* —— 页脚 —— */
.site-footer {
  background: #0a1628;
  color: var(--ink-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 28px;
}

.site-footer__row {
  display: block;
}

.site-footer__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer__list li {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 12px;
  align-items: baseline;
}

.site-footer__label {
  color: var(--muted);
  font-weight: 600;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.qr-mini {
  width: 122px;
  padding: 12px 12px 11px;
  text-align: center;
  color: #1a1a1a;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 248, 246, 0.88) 100%
  );
  border: none;
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 14px 32px rgba(4, 14, 30, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.qr-mini__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.qr-mini__label {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.qr-mini--app .qr-mini__label {
  color: #16365c;
}

.qr-mini__name {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #121212;
}

.site-footer__legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  align-items: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer__copy {
  margin: 0;
}

.site-footer__beian-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__beian-link img {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.site-footer__beian-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site {
    width: min(100% - 32px, 560px);
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .brand__text {
    display: none;
  }

  .stage {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    gap: 22px;
  }

  .stage__phone {
    flex-basis: 342px;
    width: 342px;
  }

  .stage__qrs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    transform: none;
  }

  .phone-slider {
    width: 342px;
  }

  .phone-slider__nav--prev {
    left: -10px;
  }

  .phone-slider__nav--next {
    right: -10px;
  }

  .hero__bg {
    background-position: 70% center;
    background-size: cover;
  }

  .site-footer__inner {
    width: min(100% - 32px, 560px);
    padding-top: 28px;
  }

  .site-footer__list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer__legal {
    align-items: flex-start;
    gap: 6px 4px;
  }
}
