/* ==========================================================================
   禾西禾官网 · 主视觉（深色画廊 Dark Gallery）
   近黑底 / 全幅图像 / 超大字 / 暖橙单点 / 编辑式横向轨道
   ========================================================================== */

:root {
  --bg: #0c0c0b;
  --fg: #f0efe9;
  --dim: #8d8d85;
  --hair: rgba(255, 255, 255, 0.14);
  --section-y: clamp(96px, 12vw, 180px);
}

body {
  background: var(--bg);
  color: var(--fg);
}

body ::selection {
  background: var(--accent);
  color: #fff;
}

.eyebrow {
  color: var(--dim);
}

.media {
  background: #191917;
}

/* 合成图角标：整站图像均为效果示意 */
.media::after {
  content: "效果示意";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(12, 12, 11, 0.5);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* ---------------- 导航 ---------------- */
.b-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: transform 0.6s var(--ease), background 0.4s var(--ease);
}

.b-nav.is-solid {
  background: rgba(12, 12, 11, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.b-nav.is-hidden {
  transform: translateY(-101%);
}

.b-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.b-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}

.b-brand-cn {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--fg);
}

.b-brand-en {
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--dim);
}

.b-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  margin-left: auto;
}

.b-links a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #c9c9c1;
  padding-block: 6px;
}

.b-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.b-links a:hover {
  color: var(--fg);
}

.b-links a:hover::after {
  transform: scaleX(1);
}

.b-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(232, 93, 4, 0.65);
  color: #f9b083;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}

.b-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.b-cta svg {
  width: 13px;
  height: 13px;
}

.b-burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 3;
}

.b-burger span {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  background: var(--fg);
  transition: transform 0.4s var(--ease);
}

.menu-open .b-burger span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-open .b-burger span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ---------------- 首屏 ---------------- */
.b-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  overflow: hidden;
}

.b-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.b-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bHeroIn 1.2s var(--ease) both;
}

@keyframes bHeroIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.b-hero-bg .media-note.is-hero {
  position: absolute;
  top: 104px;
  right: var(--rail);
  z-index: 2;
}

/* 首屏文案依次上移淡入 */
.b-hero .eyebrow,
.b-hero h1,
.b-hero-sub,
.b-hero-foot {
  animation: bRise 0.72s var(--ease) both;
}

.b-hero .eyebrow { animation-delay: 0.08s; }
.b-hero h1 { animation-delay: 0.16s; }
.b-hero-sub { animation-delay: 0.24s; }
.b-hero-foot { animation-delay: 0.32s; }

@keyframes bRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.b-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 10, 9, 0.92) 0%, rgba(10, 10, 9, 0.25) 46%, rgba(10, 10, 9, 0.55) 100%);
}

.b-hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(34px, 5vw, 64px);
}

.b-hero h1 {
  font-size: clamp(48px, 8.6vw, 138px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-top: 26px;
  text-wrap: balance;
}

.b-hero h1 em {
  display: block;
  font-style: normal;
  font-weight: 200;
  color: rgba(240, 239, 233, 0.62);
}

.b-hero-sub {
  margin-top: 30px;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 2;
  color: rgba(240, 239, 233, 0.72);
  max-width: 520px;
}

.b-hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(240, 239, 233, 0.6);
  text-transform: uppercase;
  font-family: "Archivo", sans-serif;
}

.b-hero-foot strong {
  color: #fff;
  font-weight: 500;
}

.b-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.b-scroll::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--accent);
  animation: bHint 2s var(--ease) infinite;
  transform-origin: left;
}

@keyframes bHint {
  0%,
  100% {
    transform: translateY(0) scaleX(0.3);
    opacity: 0.4;
  }

  50% {
    transform: translateY(6px) scaleX(1);
    opacity: 1;
  }
}

/* ---------------- 通用 ---------------- */
.b-section {
  padding-block: var(--section-y);
}

.b-head {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.b-head h2 {
  font-size: clamp(34px, 4.6vw, 68px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin-top: 24px;
}

.b-head p {
  font-size: 13px;
  line-height: 2.05;
  color: var(--dim);
  max-width: 380px;
  text-wrap: pretty;
}

/* ---------------- 品牌 ---------------- */
.b-intro-top {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 40px;
  align-items: start;
}

.b-intro-statement {
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 300;
  line-height: 1.34;
  letter-spacing: -0.035em;
  max-width: 900px;
}

.b-intro-statement strong {
  font-weight: 700;
  color: #fff;
}

.b-intro-statement em {
  font-style: normal;
  color: var(--accent);
}

.b-intro-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  line-height: 2.1;
  color: #a5a59d;
}

.b-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--hair);
}

.b-stat {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--hair);
}

.b-stat:last-child {
  border-right: 0;
}

.b-stat strong {
  display: block;
  font-size: clamp(38px, 4.4vw, 70px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.05em;
}

.b-stat strong i {
  font-style: normal;
  font-size: 0.34em;
  color: var(--accent);
  margin-left: 4px;
  letter-spacing: 0;
}

.b-stat span {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.b-wide {
  margin-top: clamp(64px, 9vw, 120px);
  height: clamp(320px, 62vh, 680px);
}

.b-wide-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--dim);
}

.b-hero .eyebrow {
  color: rgba(240, 239, 233, 0.7);
}

/* ---------------- 三大项目 ---------------- */
.b-projects {
  border-top: 1px solid var(--hair);
}

.b-project {
  display: grid;
  grid-template-columns: 1.05fr 2fr;
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--hair);
  align-items: center;
}

.b-project-copy h3 {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.b-project-copy p {
  margin-top: 18px;
  font-size: 13px;
  line-height: 2.05;
  color: var(--dim);
  max-width: 360px;
}

.b-project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.b-project-specs li {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #cbcbc2;
  padding: 5px 12px;
  border: 1px solid var(--hair);
}

.b-project .media {
  aspect-ratio: 16 / 9;
}

.b-project .media img {
  transition: transform 0.2s ease-out;
}

.b-project:hover .media img {
  transform: scale(1.03);
}

.b-project-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #f9b083;
}

.b-project-copy a svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.b-project-copy a:hover svg {
  transform: translateX(5px);
}

/* ---------------- 产品线 ---------------- */
.b-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border-block: 1px solid var(--hair);
}

.b-product {
  background: var(--bg);
  padding: 0 0 26px;
  display: flex;
  flex-direction: column;
}

.b-product .media {
  aspect-ratio: 3 / 4;
  margin-bottom: 22px;
}

.b-product .media img {
  filter: saturate(0.9);
  transition: filter 0.5s var(--ease), transform 1.4s var(--ease);
}

.b-product:hover .media img {
  filter: saturate(1.05);
}

.b-product-body {
  padding: 0 22px;
}

.b-product h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.b-product h3 small {
  display: block;
  margin-top: 6px;
  font-family: "Archivo", sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
}

.b-product p {
  margin-top: 14px;
  font-size: 11px;
  line-height: 2;
  color: var(--dim);
}

/* ---------------- 案例轨道 ---------------- */
.b-rail-wrap {
  position: relative;
}

.b-rail {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 22px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a35 transparent;
}

.b-rail::-webkit-scrollbar {
  height: 2px;
}

.b-rail::-webkit-scrollbar-thumb {
  background: #3a3a35;
}

.b-case {
  flex: 0 0 clamp(280px, 34vw, 520px);
  scroll-snap-align: start;
}

.b-case .media {
  aspect-ratio: 4 / 5;
}

.b-case .media img {
  filter: saturate(0.92);
  transition: filter 0.5s var(--ease), transform 0.2s ease-out;
}

.b-case:hover .media img {
  filter: none;
  transform: scale(1.03);
}

/* 同组卡片按 60ms 递增错峰 */
.b-project:nth-child(2),
.b-case:nth-child(2) { transition-delay: 0.06s; }
.b-project:nth-child(3),
.b-case:nth-child(3) { transition-delay: 0.12s; }
.b-case:nth-child(4) { transition-delay: 0.18s; }
.b-case:nth-child(5) { transition-delay: 0.24s; }
.b-case:nth-child(6) { transition-delay: 0.3s; }

.b-case-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  margin-top: 16px;
}

.b-case-cap h3 {
  font-size: 15px;
  font-weight: 500;
}

.b-case-cap p {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-align: right;
  line-height: 1.8;
}

.b-rail-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
}

/* ---------------- 资质 ---------------- */
.b-certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(28px, 6vw, 90px);
  border-top: 1px solid var(--hair);
}

.b-cert {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--hair);
}

.b-cert dt {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400;
}

.b-cert dd {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-align: right;
}

/* ---------------- 客户 ---------------- */
.b-clients {
  padding-block: clamp(56px, 8vw, 110px);
  border-block: 1px solid var(--hair);
}

.b-clients-note {
  font-size: 12px;
  color: var(--dim);
  line-height: 2;
  max-width: 440px;
  margin-top: 16px;
}

.b-client-wall {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin-top: clamp(34px, 5vw, 60px);
}

.b-client-wall span {
  font-size: clamp(30px, 4.8vw, 72px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #3d3d38;
  transition: color 0.4s var(--ease);
}

.b-client-wall span:hover {
  color: var(--accent);
}

/* ---------------- 服务 ---------------- */
.b-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}

.b-service {
  padding: clamp(22px, 2.6vw, 36px);
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.b-service-index {
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.b-service h3 {
  margin-top: 28px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
}

.b-service p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 2;
  color: var(--dim);
}

/* ---------------- FAQ ---------------- */
.b-faq-layout {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 6vw, 110px);
  align-items: start;
}

.b-faq-list {
  border-top: 1px solid var(--hair);
}

.b-faq-item {
  border-bottom: 1px solid var(--hair);
}

.b-faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding-block: 24px;
  text-align: left;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--fg);
  transition: color 0.3s var(--ease);
}

.b-faq-q:hover,
.b-faq-item.is-open .b-faq-q {
  color: #f9b083;
}

.b-faq-sign {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 4px;
}

.b-faq-sign::before,
.b-faq-sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.b-faq-sign::after {
  transform: rotate(90deg);
}

.b-faq-item.is-open .b-faq-sign::after {
  transform: rotate(0deg);
}

.b-faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease);
}

.b-faq-a p {
  padding: 0 40px 28px 0;
  font-size: 13px;
  line-height: 2.05;
  color: var(--dim);
  max-width: 700px;
}

/* ---------------- 联系 ---------------- */
.b-contact {
  padding-block: var(--section-y) 56px;
  border-top: 1px solid var(--hair);
}

.b-contact h2 {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-top: 24px;
}

.b-contact h2 em {
  font-style: normal;
  font-weight: 200;
  color: rgba(240, 239, 233, 0.55);
}

.b-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 60px);
  font-family: "Archivo", sans-serif;
  font-size: clamp(30px, 5vw, 74px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.b-contact-phone span {
  font-family: "Noto Sans SC", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.b-contact-phone:hover {
  color: #ff8a3d;
}

.b-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(48px, 7vw, 90px);
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}

.b-contact-grid dt {
  font-family: "Archivo", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.b-contact-grid dd {
  font-size: 13px;
  line-height: 2;
  color: #c6c6bd;
}

.b-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid var(--hair);
  color: #d9d9d1;
  transition: border-color 0.3s, color 0.3s;
}

.b-copy:hover {
  border-color: var(--accent);
  color: #f9b083;
}

.b-footer {
  padding-block: 26px;
  border-top: 1px solid var(--hair);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #6c6c65;
}

.b-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.b-footer nav {
  display: flex;
  gap: 20px;
}

.b-footer a:hover {
  color: var(--fg);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .b-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .b-intro-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .b-intro-copy {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .b-products {
    grid-template-columns: 1fr 1fr;
  }

  .b-faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .b-project {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .b-project-copy p {
    max-width: 560px;
  }
}

@media (max-width: 820px) {
  .b-links {
    position: fixed;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 0 var(--rail);
    background: #0c0c0b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    margin-left: 0;
  }

  .menu-open .b-links {
    opacity: 1;
    visibility: visible;
  }

  .b-links a {
    font-size: 26px;
    padding-block: 10px;
  }

  .b-cta {
    display: none;
  }

  .b-burger {
    display: block;
  }

  .menu-open .b-brand {
    position: relative;
    z-index: 3;
  }

  .b-hero {
    min-height: 92svh;
  }

  .b-stats {
    grid-template-columns: 1fr 1fr;
  }

  .b-stat {
    padding-block: 24px;
    border-bottom: 1px solid var(--hair);
  }

  .b-stat:nth-child(even) {
    border-right: 0;
  }

  .b-wide {
    height: 38vh;
  }

  .b-products {
    grid-template-columns: 1fr;
  }

  .b-product .media {
    aspect-ratio: 4 / 3;
  }

  .b-certs {
    grid-template-columns: 1fr;
  }

  .b-services {
    grid-template-columns: 1fr;
  }

  .b-contact-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .b-hero-foot {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .b-case {
    flex: 0 0 78vw;
  }
}
