/* 首页 Banner —— 标注高度 699px，文案左对齐 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 699px;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.22) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
  /* 标题距顶约 339px，距左约 179px */
  padding: 339px 0 0 178px;
  box-sizing: border-box;
}

.hero-content-inner {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.hero-content-inner h1 {
  font-family: "SourceHanSerifCN-Heavy", var(--serif);
  font-size: 46px;
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  letter-spacing: 3px;
  margin-bottom: 17px;
  text-align: left;
  white-space: nowrap;
}

.hero-content-inner .hero-desc {
  font-family: "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  letter-spacing: 0.5px;
  margin-bottom: 66px;
  text-align: left;
  max-width: 641px;
}

/* 了解更多：左文字 + 右箭头图标，底下一根通栏白线 */
.hero-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 158px;
  color: #fff;
  font-family: "SourceHanSerifCN-Medium", var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.95);
  transition: opacity 0.25s;
}

.hero-more:hover {
  opacity: 0.85;
}

.hero-more-arrow {
  display: block;
  width: 15px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

/* 菱形指示点：空心外框，当前态内套实心小菱形 */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 1px;
  transform: rotate(45deg);
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.hero-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 0.5px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-dot.active::after,
.hero-dot:hover::after {
  opacity: 1;
}

/* 四大卖点红条 —— 上下 41px，左 178px，内容宽 1200px */
.feature-bar {
  background: var(--red);
  padding: 41px 0;
}

.feature-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 1200px;
  max-width: calc(100% - 178px - 60px);
  margin-left: 178px;
  margin-right: auto;
  box-sizing: border-box;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  flex: 1;
  min-width: 0;
  cursor: default;
}

.feature-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  transform: rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  box-sizing: border-box;
  transition: background 0.25s ease;
}

.feature-item:hover .feature-icon {
  background: #fff;
}

.feature-icon img {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  transform: rotate(-45deg);
  /* 默认：统一变白（不受素材原色影响） */
  filter: brightness(0) invert(1);
  object-fit: contain;
  transition: filter 0.25s ease;
}

/* 悬停：白底上统一为品牌红 #84070D */
.feature-item:hover .feature-icon img {
  filter: brightness(0) saturate(100%) invert(8%) sepia(90%) saturate(6000%) hue-rotate(348deg) brightness(0.78) contrast(1.15);
}

.feature-item h3 {
  font-family: "SourceHanSerifCN-Heavy", var(--serif);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.feature-item p {
  font-family: "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.88;
  line-height: 1.5;
}

/* 家装 / 工装双卡 */
.dual-service {
  padding: 80px 0 120px;
  background: #fff;
}

/* 首页各模块标题：SourceHanSerifCN bold */
.dual-service .section-title,
.cases-header .section-title,
.quality-section .section-title,
.reviews-section .section-title,
.guides-section .section-title {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-weight: bold;
}

.dual-service .section-title::after,
.cases-header .section-title::after,
.quality-section .section-title::after,
.reviews-section .section-title::after,
.guides-section .section-title::after {
  width: 36px;
  height: 3px;
  margin-top: 28px;
}

.dual-service .section-title {
  margin-bottom: 25px;
  font-size: 36px;
  letter-spacing: 3px;
}

.dual-grid {
  display: flex;
  justify-content: space-between;
  gap: 36px;
}

.dual-card {
  position: relative;
  width: 582px;
  height: 388px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.dual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
  transition: background 0.3s;
}

.dual-card:hover::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.4) 55%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.dual-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 40px 32px;
}

.dual-card-content h3 {
  font-family: "SourceHanSerifCN-Bold", var(--serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 3px;
  transition: transform 0.4s ease;
}

.dual-card-content p {
  font-family: "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
  opacity: 0.92;
  margin-bottom: 2px;
  transition: transform 0.4s ease;
}

.dual-card:hover .dual-card-content h3,
.dual-card:hover .dual-card-content p {
  transform: translateY(-22px);
}

.dual-card-btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, margin-top 0.4s ease;
}

.dual-card:hover .dual-card-btns {
  opacity: 1;
  transform: translateY(0);
  margin-top: 18px;
  pointer-events: auto;
}

.dual-card-btns .btn {
  height: 40px;
  padding: 0 22px;
  font-size: 13px;
}

.dual-card-btns .btn img {
  filter: brightness(0) invert(1);
}

/* 实景案例 */
.cases-section {
  position: relative;
  padding: 72px 0 56px;
  background: #f6f1ef url("../images/bg-cases.png") center / cover no-repeat;
  overflow: hidden;
}

.cases-section > .container,
.cases-section > .cases-slider-outer {
  position: relative;
  z-index: 1;
}

.cases-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.cases-header .section-title {
  margin: 0;
  font-size: 36px;
  letter-spacing: 2px;
}

.cases-header .section-title::after {
  margin-left: 0;
}

.cases-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: #333;
  padding-bottom: 6px;
}

.cases-nav-links a {
  color: #333;
  transition: color 0.2s;
}

.cases-nav-links a:hover,
.cases-nav-links a.active {
  color: var(--red);
}

.cases-nav-links .sep {
  color: #bbb;
}

/* 轮播轨道：左对齐 1200 内容区，右侧可露出下一张 */
.cases-slider-outer {
  width: 100%;
  position: relative;
}

.cases-slider-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: max(0px, calc((100% - 1200px) / 2));
  padding-right: 0;
}

.cases-panel[hidden] {
  display: none !important;
}

.cases-nav-links a.cases-tab {
  cursor: pointer;
}

.cases-section .slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  padding-right: calc((100vw - 1200px) / 2 + 40px);
}

.cases-section .slider-track::-webkit-scrollbar {
  display: none;
}

.cases-section .case-slide {
  flex: 0 0 602px;
  width: 602px;
  scroll-snap-align: start;
  background: #fff;
  color: inherit;
  text-decoration: none;
  display: block;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases-section .case-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.cases-section .case-slide .case-card-img {
  width: 602px;
  height: 396px;
  aspect-ratio: auto;
  overflow: hidden;
}

.cases-section .case-slide .case-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cases-section .case-slide:hover .case-card-img img {
  transform: scale(1.04);
}

.case-slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 20px;
  background: #fff;
  min-height: 88px;
  box-sizing: border-box;
}

.case-slide-info h4 {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.case-slide-info p {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: #999;
}

.case-designer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.case-designer img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.case-designer .name {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
}

.case-designer .role {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 12px;
  font-weight: 600;
  color: #999;
  line-height: 1.35;
}

.cases-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
}

.cases-progress {
  flex: 1;
  height: 1px;
  background: #ddd5cf;
  position: relative;
}

.cases-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cases-progress, 25%);
  height: 100%;
  background: var(--red);
  transition: width 0.3s ease;
}

.cases-section .slider-arrows {
  flex-shrink: 0;
  gap: 16px;
}

.cases-section .slider-arrow {
  width: 42px;
  height: 42px;
  background: #fff;
  color: #b5b0ab;
  border: 1px solid #dcd6d0;
  font-size: 20px;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.cases-section .slider-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* 匠心精工 — 错落四列 + 虚线连接 */
.quality-section {
  position: relative;
  min-height: 834px;
  padding: 72px 0 80px;
  box-sizing: border-box;
  background: #1a1816 url("../images/bg-quality.png") center / cover no-repeat;
  color: #fff;
}

.quality-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.45);
}

.quality-section > .container {
  position: relative;
  z-index: 1;
}

.quality-section .section-title {
  margin-bottom: 48px;
  font-size: 36px;
  letter-spacing: 3px;
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-weight: bold;
}

.quality-section,
.quality-section .quality-card-head .num,
.quality-section .quality-card-head .label,
.quality-section .quality-card-media .media-caption {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-weight: bold;
}

.quality-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 276px);
  justify-content: space-between;
  align-items: start;
  min-height: 640px;
}

.quality-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 276px;
}

.quality-card--high {
  margin-top: 0;
}

.quality-card--low {
  margin-top: 0;
}

.quality-card-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.quality-card--low .quality-card-head {
  margin-bottom: 0;
  margin-top: 12px;
}

.quality-card-head--left {
  justify-content: flex-start;
}

.quality-card-head--right {
  justify-content: flex-end;
  text-align: right;
}

.quality-card-head .num {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-size: 44px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  letter-spacing: 1px;
}

.quality-card-head .label {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

.quality-card-media {
  position: relative;
  width: 276px;
  height: 475px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

/* 默认：白底渐变 */
.quality-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.08) 45%,
    #fff 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* 悬停：红色渐变自下向上滑入 */
.quality-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.08) 45%,
    rgba(132, 7, 13, 0.92) 100%
  );
  pointer-events: none;
  z-index: 1;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.quality-card:hover .quality-card-media::after {
  transform: translateY(0);
}

.quality-card-media .media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 18px 14px 20px;
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-size: 12px;
  font-weight: bold;
  line-height: 1.75;
  color: #1a1a1a;
  transition: color 0.35s ease;
}

.quality-card:hover .quality-card-media .media-caption {
  color: #fff;
}

/* 业主口碑 — 与实景案例同款横向滚动 */
.reviews-section {
  position: relative;
  padding: 72px 0 56px;
  background: #f6f1ef url("../images/bg-reviews.png") center / cover no-repeat;
  overflow: hidden;
}

.reviews-section > .container,
.reviews-section > .reviews-slider-outer {
  position: relative;
  z-index: 1;
}

.reviews-section .section-title {
  margin: 0 0 40px;
  text-align: left;
  font-size: 36px;
  letter-spacing: 2px;
}

.reviews-section .section-title::after {
  margin-left: 0;
}

.reviews-slider-outer {
  width: 100%;
}

.reviews-slider-wrap {
  position: relative;
  width: 100%;
  margin-left: max(0px, calc((100% - 1200px) / 2));
}

.reviews-section .slider-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  padding-right: calc((100vw - 1200px) / 2 + 40px);
}

.reviews-section .slider-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 374px;
  width: 374px;
  height: 264px;
  box-sizing: border-box;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 2px;
  padding: 28px 26px 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card .quote {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 14px;
  font-weight: 400;
  color: #666;
  line-height: 1.9;
  margin: 0;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.review-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}

.review-user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.35;
}

.review-user .place {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-SemiBold", var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.review-user .name {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Regular", var(--serif);
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
}

.reviews-section .slider-arrows {
  flex-shrink: 0;
  gap: 16px;
}

.reviews-section .slider-arrow {
  width: 42px;
  height: 42px;
  background: #fff;
  color: #b5b0ab;
  border: 1px solid #dcd6d0;
  font-size: 20px;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.reviews-section .slider-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* 装修攻略 */
.guides-section {
  padding: 72px 0 80px;
  background: #fff;
}

.guides-section .section-title {
  margin-bottom: 48px;
  font-size: 36px;
  letter-spacing: 2px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 374px);
  justify-content: space-between;
  column-gap: 39px;
}

.guide-col {
  width: 374px;
}

.guide-col-img {
  position: relative;
  width: 374px;
  height: 111px;
  overflow: hidden;
  margin-bottom: 20px;
}

.guide-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-col-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #84070d;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.guide-col:hover .guide-col-img::after {
  opacity: 0.72;
  transform: translateY(0);
}

.guide-col-img .overlay-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Bold", var(--serif);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 4px;
  z-index: 2;
  transition: background 0.4s ease;
}

.guide-col:hover .guide-col-img .overlay-title {
  background: transparent;
}

.guide-col-img .overlay-title::before,
.guide-col-img .overlay-title::after {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
}

.guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  margin-bottom: 14px;
  padding-left: 14px;
  position: relative;
  font-size: 14px;
  line-height: 1.55;
}

.guide-list li:last-child {
  margin-bottom: 0;
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: #333;
  transition: background 0.2s;
}

.guide-list li:hover::before {
  background: #84070d;
}

.guide-list a {
  font-family: "SourceHanSerifCN", "SourceHanSerifCN-Medium", var(--serif);
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
}

.guide-list a:hover {
  color: #84070d;
}

.guides-more {
  text-align: center;
  margin-top: 48px;
}

.guides-more .btn-load-more {
  display: inline-block;
  width: 143px;
  min-width: 143px;
  height: 38px;
  line-height: 38px;
  margin: 0 auto;
  background: #84070d;
  border-radius: 3px;
  font-size: 14px;
  color: #fff;
}
