/* ========== 01 · 字体与基础设置 ========== */
@font-face {
  font-family: RedHat;
  src: url(assets/body.woff2) format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: #f5f6f2;
  color: #252c2c;
  font: 16px/1.65 RedHat,Arial,sans-serif;
}

img,video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,h2,.stats strong {
  font-family: Impact,"Arial Narrow","Liberation Sans Narrow",sans-serif;
  font-stretch: condensed;
  font-weight: 400;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(70px,7.4vw,108px);
}

h2 {
  font-size: 46px;
}

.statement {
  font-size: 58px;
}

p {
  margin: 0 0 20px;
  font-size: 18px;
}

a,button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,.carousel:focus-visible {
  outline: 2px solid #90815c;
  outline-offset: 5px;
}


/* ========== 02 · 通用容器与双列布局 ========== */
.container {
  width: calc(100% - 176px);
  max-width: 1144px;
  margin: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: start;
}


/* ========== 03 · Banner 首屏 ========== */
.hero {
  position: relative;
  min-height: 628px;
  height: 48vw;
  max-height: 800px;
  color: white;
  display: flex;
  align-items: center;
}

.hero-media,.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img,.hero-media video {
  object-position: center 48%;
}

.hero-shade {
  background: linear-gradient(90deg,rgba(0,0,0,.47),rgba(0,0,0,.2));
}

.hero-content {
  position: relative;
  padding: 64px 0;
}

.hero p {
  margin: 28px 0 32px;
  max-width: 480px;
  font-size: 17px;
  color: #e1e2de;
}


/* ========== 04 · 按钮与链接 ========== */
.actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid #909b98;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: .12em;
  transition: background .2s,color .2s;
}

.button:hover {
  background: #252c2c;
  color: #fff;
}

.button span,.text-link span,.under-link span {
  font-size: 20px;
  line-height: 1;
}

.button.light {
  background: #f5f6f2;
  color: #252c2c;
  border-color: #f5f6f2;
}

.button.light:hover {
  background: white;
}

.text-link {
  font-size: 11px;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 22px;
}


/* ========== 05 · 品牌介绍 ========== */
.intro {
  padding-top: 100px;
  padding-bottom: 105px;
  align-items: center;
}

.intro-card {
  background: #e9ede9;
  padding: 42px 42px 34px;
  max-width: 464px;
  justify-self: end;
  font-size: 16px;
  line-height: 1.6;
}

.under-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  letter-spacing: .1em;
}


/* ========== 06 · 隔断方案 ========== */
.solution {
  padding-top: 100px;
  padding-bottom: 100px;
}

.solution-media {
  aspect-ratio: 1.4;
  overflow: hidden;
}

.solution-copy h2 {
  margin-bottom: 26px;
}

.solution-copy p {
  font-size: 18px;
  line-height: 1.65;
  color: #717a77;
}

.solution-copy ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 25px;
  color: #717a77;
  font-size: 15px;
}

.solution-copy li {
  margin: 6px 0;
}

.solution-copy li:before {
  content: "- ";
}

.dark {
  background: #202626;
  color: #f0f2ed;
}

.semi {
  padding: 100px 0;
}

.dark .solution-copy p,.dark .solution-copy ul {
  color: #aeb7b1;
}

.dark .button {
  border-color: #77827d;
}

.dark .button:hover {
  background: #edf0e9;
  color: #202626;
}


/* ========== 07 · 数据统计 ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  border-top: 1px solid #48514c;
  padding: 20px 0 25px;
  margin-top: 30px;
}

.stats strong {
  display: block;
  font-size: 44px;
}

.stats em {
  font-style: normal;
  font-size: 26px;
}

.stats small {
  display: block;
  font-size: 11px;
  color: #aeb7b1;
  margin-top: 12px;
  line-height: 1.5;
}


/* ========== 08 · 产品展示 ========== */
.products {
  padding: 95px 0 105px;
}

.products h2 {
  margin-bottom: 55px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.product-photo {
  display: block;
  aspect-ratio: .8;
  overflow: hidden;
}

.product-photo img {
  transition: transform .4s;
}

.product-photo:hover img {
  transform: scale(1.035);
}

.product-grid h3 {
  display: block;
  width: 100%;
  border: 1px solid #68726c;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  margin: 16px 0;
}

.product-grid p:not(.product-detail) {
  font-size: 15px;
  color: #aeb7b1;
  min-height: 46px;
}

.product-detail {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #56615b;
  padding-top: 14px;
  font-size: 13px;
  gap: 12px;
}


/* ========== 09 · 客户评价与轮播 ========== */
.testimonials {
  padding-top: 95px;
  padding-bottom: 125px;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 70px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.quote,.feedback-card {
  margin: 0;
  background: #e9ede9;
  padding: 40px;
  border-left: 1px solid #a3aea8;
}

.quote {
  display: flex;
  flex-direction: column;
}

.quote blockquote {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.65;
}

.quote p {
  font-size: 14px;
  color: #7a8580;
}

.quote figcaption {
  font-size: 11px;
  letter-spacing: .1em;
  color: #7a8580;
  margin-top: auto;
  padding-top: 45px;
}

.feedback-card {
  border: 0;
}

.carousel {
  position: relative;
}

.slides {
  aspect-ratio: 2.4;
  position: relative;
  overflow: hidden;
  background: #e1e4df;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  object-fit: contain;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.carousel-controls button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #444e47;
  min-width: 28px;
  min-height: 28px;
  padding: 3px;
}

.dots {
  display: flex;
  gap: 5px;
}

.dots button {
  min-width: 22px;
  min-height: 28px;
  position: relative;
}

.dots button:after {
  content: "";
  width: 5px;
  height: 5px;
  position: absolute;
  top: 12px;
  left: 8px;
  border-radius: 50%;
  background: #aeb5ae;
}

.dots button[aria-current="true"]:after {
  background: #26332b;
}

.feedback-label {
  font-size: 13px;
  letter-spacing: .06em;
  margin: 15px 0 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.feedback-label span {
  font-size: 18px;
}


/* ========== 10 · 联系区域与页脚 ========== */
.contact {
  padding-top: 100px;
  padding-bottom: 110px;
  border-top: 1px solid #b6c0b9;
  align-items: center;
}

.contact p {
  color: #717a77;
  line-height: 1.65;
}

footer {
  padding: 88px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.1fr .75fr;
  gap: 55px;
  font-size: 14px;
  color: #abb6ae;
}

.logo {
  width: 235px;
  height: auto;
  margin-bottom: 18px;
}

.footer-grid h3 {
  color: #abb6ae;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .08em;
  margin: 0 0 20px;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  overflow-wrap: anywhere;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-grid p {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #47534b;
  margin-top: 140px;
  padding-top: 22px;
  font-size: 12px;
  color: #9eaca2;
}

.media-error {
  background: #e0e5df;
  display: grid;
  place-items: center;
  color: #334038;
  min-height: 160px;
  padding: 20px;
}


/* ========== 11 · 大屏适配 ========== */
@media(min-width:1600px) {
  .hero {
    height: 680px;
  }

}


/* ========== 12 · 平板适配 ========== */
@media(max-width:1100px) {
  .container {
    width: calc(100% - 96px);
  }

  .split {
    gap: 48px;
  }

  .statement {
    font-size: 50px;
  }

  h2 {
    font-size: 40px;
  }

  .intro-card {
    padding: 30px;
  }

  .footer-grid {
    gap: 28px;
  }

  .logo {
    width: 100%;
    max-width: 230px;
  }

}


/* ========== 13 · 手机适配 ========== */
@media(max-width:700px) {
  body {
    font-size: 15px;
  }

  p {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .hero {
    height: 680px;
    min-height: 580px;
    max-height: 90svh;
    align-items: flex-end;
  }

  .hero-content {
    padding: 52px 0;
  }

  .hero h1 {
    font-size: 76px;
  }

  .hero p {
    font-size: 16px;
    max-width: 335px;
    line-height: 1.65;
  }

  .desktop {
    display: none;
  }

  .hero-media img,.hero-media video {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(0deg,rgba(0,0,0,.65),rgba(0,0,0,.13));
  }

  .actions {
    gap: 24px;
  }

  .button {
    padding: 12px 16px;
    gap: 22px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .statement {
    font-size: 48px;
  }

  h2 {
    font-size: 39px;
  }

  .intro {
    padding-top: 65px;
    padding-bottom: 25px;
  }

  .intro-card {
    max-width: none;
    width: 100%;
    padding: 28px;
  }

  .solution {
    padding-top: 60px;
    padding-bottom: 65px;
  }

  .solution-media {
    aspect-ratio: 1.4;
  }

  .solution-copy p {
    font-size: 16px;
  }

  .solution-copy ul {
    font-size: 14px;
  }

  .solution-copy h2 {
    margin-bottom: 22px;
  }

  .semi {
    padding: 65px 0;
  }

  .stats strong {
    font-size: 39px;
  }

  .stats {
    gap: 12px;
  }

  .products {
    padding: 65px 0;
  }

  .products h2 {
    margin-bottom: 32px;
    font-size: 35px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .product-photo {
    aspect-ratio: 1.05;
  }

  .product-grid h3 {
    font-size: 14px;
  }

  .product-grid p:not(.product-detail) {
    font-size: 16px;
    min-height: 0;
  }

  .product-detail {
    font-size: 14px;
  }

  .testimonials {
    padding: 65px 0;
  }

  .testimonials h2 {
    font-size: 34px;
    margin-bottom: 35px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .quote,.feedback-card {
    padding: 26px;
  }

  .quote blockquote {
    font-size: 16px;
  }

  .quote figcaption {
    padding-top: 30px;
  }

  .feedback-label {
    font-size: 12px;
  }

  .contact {
    padding-top: 60px;
    padding-bottom: 65px;
  }

  .contact p {
    font-size: 16px;
  }

  footer {
    padding-top: 55px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 22px;
  }

  .footer-grid>div:first-child {
    grid-column: 1/-1;
    max-width: 310px;
  }

  .footer-grid>div:nth-child(2) {
    grid-column: 1/-1;
  }

  .footer-grid {
    font-size: 14px;
  }

  .footer-bottom {
    margin-top: 60px;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }

  .logo {
    width: 220px;
  }

  .carousel-controls button {
    min-height: 34px;
  }

  .dots button:after {
    top: 15px;
  }

}


/* ========== 14 · 减少动态效果 ========== */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  *,*:before,*:after {
    transition: none!important;
  }

}

[hidden] {
  display: none!important;
}


/* Banner：两枚有边框的按钮，悬停时背景滑入并移动箭头。 */
.actions {
  flex-wrap: wrap;
}

.hero-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: #f5f6f2;
  color: #fff;
  background: transparent;
  transition: color .25s,border-color .25s;
}

.hero-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f5f6f2;
  transform: translateX(-102%);
  transition: transform .3s ease;
}

.hero-button span {
  transition: transform .3s ease;
}

.hero-button:hover,.hero-button:focus-visible {
  color: #252c2c;
  background: transparent;
}

.hero-button:hover::before,.hero-button:focus-visible::before {
  transform: translateX(0);
}

.hero-button:hover span,.hero-button:focus-visible span {
  transform: translate(3px,-3px);
}

.hero-button.light::before {
  background: #252c2c;
}

.hero-button.light:hover,.hero-button.light:focus-visible {
  background: #f5f6f2;
  color: #fff;
}

.product-grid h3 a {
  color: #abb6ae;
  display: block;
  padding: 8px 12px;
  transition: background .2s,color .2s;
}

.product-grid h3 a:hover,.product-grid h3 a:focus-visible {
  background: #edf0e9;
  color: #202626;
}

.product-grid .product-detail {
  margin: 0;
  color: #aeb7b1;
  min-height: 0;
}

/* ========== 15 · 三处图片 / 视频按原始比例自适应 ========== */
/* 宽度跟随所在容器，高度按媒体原始比例计算，不拉伸、不裁切。 */
.media[data-media] {
  aspect-ratio: auto;
  overflow: hidden;
}

.media[data-media] > img,
.media[data-media] > video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Banner 媒体参与正常布局，取消原先固定高度与绝对定位。 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  min-height: 0;
  max-height: none;
  background: #202626;
}

.hero-media,
.hero-shade,
.hero-content {
  grid-area: 1 / 1;
}

.hero .hero-media {
  position: relative;
  inset: auto;
  align-self: center;
  width: 100%;
}

.hero .hero-shade {
  position: absolute;
  inset: 0;
}

.hero .hero-content {
  z-index: 1;
  align-self: center;
}

/* 横幅过矮时由文字撑开 Banner，媒体仍保持原始比例完整展示。 */
@media (max-width: 700px) {
  .hero .hero-content {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}
