/* PC 布局基准：正文最大宽度 1200px，两侧保留留白；手机样式在另一文件中覆盖。 */
.container {
  width: calc(100% - 96px);
  max-width: 1200px;
  margin-inline: auto;
}
/* 模块 01：首页 Banner。全宽背景、文字遮罩与品牌标题定位。 */
.hero {
  position: relative;
  height: 32.8125vw;
  min-height: 320px;
  max-height: 800px;
  color: #fff;
}
.hero__image {
  position: absolute;
  inset: 0;
  height: 100%;
}
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(19 25 30 / 40%), rgb(19 25 30 / 18%) 55%, rgb(19 25 30 / 8%));
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  pointer-events: none;
}
.hero__copy {
  margin-left: 174px;
  transform: translateY(-3px);
}
.hero__mark {
  display: block;
  width: 34px;
  height: 6px;
  margin-bottom: 14px;
  background: #fff;
}
.hero h1 {
  font-size: 54px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 2px;
}
.hero p {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
}
/* 主内容区：首屏与关于我们之间的间距，以及品牌理念下方留白。 */
.main {
  padding-top: 90px;
  padding-bottom: 170px;
}
/* 模块 02：关于我们。左图右文，控制列宽、间距和介绍文字。 */
.about {
  display: grid;
  grid-template-columns: minmax(0, 454fr) minmax(0, 682fr);
  gap: 64px;
  align-items: start;
}
.about__content {
  padding-top: 18px;
}
.about h2 {
  margin-bottom: 24px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 600;
}
.about p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.4;
   text-align: justify;
}
.about p + p {
  margin-top: 20px;
}
/* 模块 03：平台优势。居中标题与三列卡片网格。 */
.advantages {
  margin-top: 124px;
}
.advantages h2 {
  font-size: 34px;
  line-height: 48px;
  text-align: center;
  font-weight: 600;
}
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
  margin-top: 44px;
}
/* 优势卡片：图片、文案、圆角阴影及 PC 专用的错峰入场延迟。 */
.advantage-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 3px 9px rgb(0 0 0 / 6%);
  --reveal-delay: var(--desktop-reveal-delay, 0ms);
}
.advantage-card__body {
  min-height: 154px;
  padding: 16px 20px 18px;
}
.advantage-card h3 {
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.advantage-card p {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.4;
}
/* 模块 04：品牌理念。左侧居家图，右侧品牌介绍。 */
.brand {
  display: grid;
  grid-template-columns: minmax(0, 454fr) minmax(0, 672fr);
  gap: 74px;
  margin-top: 104px;
  align-items: start;
}
.brand__content {
  padding-top: 18px;
}
.brand h2 {
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
}
.brand p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
}
/* 模块 05：生活理念横幅。全宽图片、渐变遮罩及右侧叠加文案。 */
.life {
  position: relative;
  width: 100%;
  height: 17.8125vw;
  min-height: 240px;
  max-height: 450px;
  color: #fff;
}
.life__image {
  position: absolute;
  inset: 0;
  height: 100%;
}
.life__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgb(30 31 33 / 18%) 60%, rgb(30 31 33 / 42%));
  pointer-events: none;
}
.life__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.life__copy {
  width: 210px;
  padding-top: 20px;
}
.life__mark {
  display: block;
  width: 17px;
  height: 4px;
  margin-bottom: 12px;
  background: #fff;
}
.life__title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 300;
}
.life__title span {
  display: block;
}
.life__name {
  margin-top: 12px;
  font-size: 14px;
}
/* 模块 06：页脚。品牌居左、两个渠道码居右、版权文字靠底部居中。 */
.footer {
  min-height: 171px;
  background: var(--footer-background);
}
.footer__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 47px;
}
.footer .brand-logo {
  padding-top: 12px;
}
.footer__channels {
  display: flex;
  gap: 52px;
}
/* PC 渠道码：140px 宽且禁止 flex 压缩，图片高度由 base.css 等比计算。 */
.channel {
  width: 140px;
  flex-shrink: 0;
}
.copyright {
  position: absolute;
  bottom: 20px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  font-size: 12px;
}
/* 较窄桌面适配：收紧图文及卡片间距，同步调整首屏和正文字号。 */
@media (max-width: 1200px) {
  .hero__copy {
    margin-left: 8%;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero p {
    font-size: 18px;
  }
  .about,
  .brand {
    gap: 40px;
    align-items: center;
  }
  .about__content,
  .brand__content {
    padding-top: 0;
  }
  .about p,
  .brand p {
    font-size: 14px;
    line-height: 1.6;
  }
  .about h2 {
    margin-bottom: 16px;
  }
  .advantages__grid {
    gap: 32px;
  }
  .advantage-card__body {
    padding-inline: 16px;
  }
}
/* 小桌面适配：缩小生活横幅文案宽度与字号。 */
@media (max-width: 1000px) {
  .life__copy {
    width: 190px;
  }
  .life__title {
    font-size: 26px;
  }
}
/* PC 悬停增强：仅精细指针且允许动画时启用卡片上移与图片轻微放大。 */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body:not([data-layout='mobile']) .advantage-card {
    transition:
      transform 300ms var(--motion-ease),
      box-shadow 300ms ease;
  }
  body:not([data-layout='mobile']) .advantage-card img {
    transition: transform 650ms var(--motion-ease);
  }
  body:not([data-layout='mobile']) .advantage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgb(0 0 0 / 10%);
  }
  body:not([data-layout='mobile']) .advantage-card:hover img {
    transform: scale(1.035);
  }
}
