/* 导航锚点区块：与 #top / #about 一致，一屏高度（扣除 sticky 导航） */
#craft,
#material,
#showroom,
#cases {
  --section-pad-x: 9vw;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: calc(100svh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

/* —— 高定工艺 —— */
#craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green);
  color: #fff;
}

#craft .craft-image {
  min-height: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
}

#craft .craft-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#craft .craft-copy {
  min-height: 0;
  height: 100%;
  padding: clamp(28px, 4.5vh, 56px) clamp(24px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#craft .craft-copy .number {
  color: #c9d0c6;
}

#craft .craft-copy > p:not(.number) {
  color: #d4dad2;
  font-size: clamp(12px, 1.2vw, 13px);
  line-height: 1.85;
  max-width: 420px;
}

#craft .craft-copy h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.2;
}

#craft .craft-copy ul {
  margin: clamp(16px, 2.5vh, 28px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

#craft .craft-copy li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(10px, 1.4vh, 14px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: clamp(12px, 1.1vw, 13px);
}

#craft .craft-copy li span {
  color: #c9a872;
  font: 10px monospace;
}

/* —— 授权板材 —— */
#material {
  padding: clamp(24px, 3.5vh, 40px) var(--section-pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #242d27;
  color: #f4f1ea;
}

#material > .number {
  margin: 0;
  flex-shrink: 0;
}

#material .material-layout {
  flex: 1;
  min-height: 0;
  margin-top: clamp(12px, 2vh, 18px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

#material h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.25;
}

#material .material-layout > div > p {
  font-size: clamp(12px, 1.2vw, 13px);
  line-height: 1.85;
}

#material .brands span {
  min-height: clamp(88px, 12vh, 110px);
  padding: clamp(16px, 2vh, 22px);
  font-size: clamp(16px, 1.8vw, 20px);
}

#material .brand-groups {
  gap: clamp(16px, 2vh, 24px);
}

/* —— 展厅美学 —— */
#showroom {
  padding: clamp(20px, 3vh, 32px) var(--section-pad-x);
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

#showroom .section-head {
  flex-shrink: 0;
  margin-bottom: clamp(8px, 1.2vh, 14px);
  gap: clamp(16px, 2.5vw, 32px);
}

#showroom .section-head h2 {
  font-size: clamp(24px, 2.8vw, 38px);
}

#showroom .section-head > p {
  font-size: clamp(11px, 1.1vw, 12px);
  line-height: 1.6;
}

#showroom .showroom-masonry {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: clamp(5px, 0.75vh, 8px);
}

#showroom .showroom-tile {
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#showroom .showroom-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#showroom .showroom-tile--1 { grid-area: 1 / 1 / 6 / 7; }
#showroom .showroom-tile--2 { grid-area: 1 / 7 / 3 / 10; }
#showroom .showroom-tile--3 { grid-area: 1 / 10 / 2 / 13; }
#showroom .showroom-tile--4 { grid-area: 2 / 10 / 5 / 13; }
#showroom .showroom-tile--5 { grid-area: 3 / 7 / 6 / 10; }
#showroom .showroom-tile--6 { grid-area: 6 / 1 / 9 / 4; }
#showroom .showroom-tile--7 { grid-area: 6 / 4 / 8 / 7; }
#showroom .showroom-tile--8 { grid-area: 6 / 7 / 9 / 11; }
#showroom .showroom-tile--9 { grid-area: 5 / 11 / 9 / 13; }

/* —— 落地案例 —— */
#cases {
  padding: clamp(14px, 2vh, 24px) var(--section-pad-x);
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

#cases .section-head {
  flex-shrink: 0;
  margin-bottom: clamp(6px, 1vh, 10px);
  gap: clamp(12px, 2vw, 28px);
  align-items: flex-start;
}

#cases .section-head .number {
  margin: 0;
  font-size: 10px;
}

#cases .section-head h2 {
  font-size: clamp(22px, 2.6vw, 36px);
  margin: 4px 0 0;
  line-height: 1.15;
  white-space: nowrap;
}

#cases .section-head-aside {
  flex-shrink: 0;
  max-width: min(520px, 46vw);
  margin-left: auto;
  padding-top: calc(10px * 1.35 + 4px);
}

#cases .section-head-aside > p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
  color: var(--soft);
}

#cases .section-head-aside .text-link {
  margin-left: 0.65em;
  white-space: nowrap;
  font-size: 11px;
}

#cases .case-carousel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#cases .case-viewport {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#cases .case-track {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

#cases .case-slide {
  height: 100%;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  align-content: stretch;
  gap: clamp(6px, 1vh, 10px);
}

#cases .case-item {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
}

#cases .case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#cases .case-ui {
  flex-shrink: 0;
  margin-top: clamp(6px, 1vh, 10px);
  gap: 12px;
}

#cases .case-arrow {
  width: 32px;
  height: 32px;
  font-size: 20px;
}

@media (max-width: 800px) {
  #craft,
  #material,
  #showroom,
  #cases {
    --section-pad-x: 8vw;
    height: calc(100svh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
  }

  #craft {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 0.42fr) minmax(0, 0.58fr);
  }

  #craft .craft-image {
    min-height: 0;
  }

  #craft .craft-copy {
    padding: clamp(20px, 3vh, 28px) 8vw;
  }

  #craft .craft-copy h2 {
    font-size: clamp(26px, 6vw, 34px);
  }

  #material {
    padding: clamp(18px, 2.5vh, 28px) var(--section-pad-x);
  }

  #material .material-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  #showroom,
  #cases {
    padding: clamp(16px, 2.5vh, 24px) var(--section-pad-x);
  }

  #showroom .section-head {
    display: block;
    margin-bottom: 12px;
  }

  #showroom .section-head > p {
    margin-top: 10px;
    max-width: none;
  }

  #showroom .showroom-masonry {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(12, minmax(0, 1fr));
    gap: 6px;
  }

  #showroom .showroom-tile--1 { grid-area: 1 / 1 / 6 / 5; }
  #showroom .showroom-tile--2 { grid-area: 1 / 5 / 3 / 7; }
  #showroom .showroom-tile--3 { grid-area: 3 / 5 / 4 / 7; }
  #showroom .showroom-tile--4 { grid-area: 4 / 5 / 7 / 7; }
  #showroom .showroom-tile--5 { grid-area: 6 / 1 / 8 / 4; }
  #showroom .showroom-tile--6 { grid-area: 6 / 4 / 9 / 7; }
  #showroom .showroom-tile--7 { grid-area: 8 / 1 / 10 / 3; }
  #showroom .showroom-tile--8 { grid-area: 8 / 3 / 13 / 5; }
  #showroom .showroom-tile--9 { grid-area: 7 / 5 / 13 / 7; }

  #cases .section-head {
    display: flex;
    margin-bottom: 8px;
    gap: 12px;
  }

  #cases .section-head h2 {
    font-size: clamp(18px, 4.8vw, 26px);
  }

  #cases .section-head-aside {
    max-width: none;
    padding-top: calc(10px * 1.35 + 4px);
  }

  #cases .section-head-aside > p {
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
  }

  #cases .section-head-aside .text-link {
    margin-left: 0.5em;
  }
}
