@charset "utf-8";

/* ============================================================
   index.css — 欣宇首页（严格对齐设计稿）
   主题色 #5BA323
   ============================================================ */

.page-home {
  --green: #5BA323;
  --green-dark: #4a8a1c;
  --green-deep: #169C3D;
  --card-gray: #e9ebef;
  --section-pad: clamp(72px, 8vw, 120px);
}

/* ---------- 通用 ---------- */
.sec-eyebrow {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .04em;
}
.sec-eyebrow--light { color: var(--green); }
.sec-eyebrow--center { text-align: center; }
.sec-title {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}
.sec-title--center { text-align: center; }
.sec-title em {
  font-style: normal;
  color: var(--green);
}

.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #333;
  flex: 0 0 auto;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.btn-circle .iconfont { font-size: 18px; line-height: 1; }
.btn-circle:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}
.btn-circle--sm {
  width: 40px;
  height: 40px;
}
.btn-circle--sm .iconfont { font-size: 14px; }
.btn-circle--solid {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn-circle--solid:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-circle--outline {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
}
.btn-circle--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.65);
  color: #fff;
}
.btn-circle--ghost:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ---------- 首页透明页头 ---------- */
.page-home .site-header {
  background: transparent;
  box-shadow: none;
}
.page-home .site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.page-home .site-header:not(.is-scrolled) .site-header__nav > ul > li > a {
  color: #fff;
}
.page-home .site-header:not(.is-scrolled) .site-header__menu span { background: #fff; }
.page-home .site-header:not(.is-scrolled) .site-header__nav > ul > li > a:hover,
.page-home .site-header:not(.is-scrolled) .site-header__nav > ul > li.is-cur > a {
  color: #fff;
}
.page-home .site-header:not(.is-scrolled) .site-header__nav > ul > li > a::after {
  background: #fff;
}
/* 透明顶栏悬停时轻底，二级白卡片更易衔接 */
.page-home .site-header:not(.is-scrolled) .site-header__nav > ul > li:hover > a,
.page-home .site-header:not(.is-scrolled) .site-header__nav > ul > li:focus-within > a {
  color: #fff;
}
.page-home .site-header:not(.is-scrolled) .site-header__sub {
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06);
}

/* ---------- 1. Hero ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}
.home-hero__media {
  display: block;
  line-height: 0;
}
.home-hero__img {
  width: 100%;
  height: auto;
  display: block;
}
.home-hero__content {
  position: absolute;
  left: 50%;
  bottom: clamp(140px, 18%, 220px);
  z-index: 2;
  width: min(92%, 980px);
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  pointer-events: none;
}
.home-hero__content h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .05em;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.home-hero__content p {
  margin: 16px 0 0;
  font-size: clamp(14px, 1.3vw, 18px);
  opacity: .9;
}
.home-hero__mouse {
  position: absolute;
  left: 50%;
  bottom: clamp(56px, 8%, 96px);
  z-index: 3;
  display: flex;
  transform: translateX(-50%);
  animation: home-mouse 1.8s ease-in-out infinite;
}
.home-hero__mouse img {
  width: 22px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}
@keyframes home-mouse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(7px); opacity: .65; }
}

/* ---------- 2. 产品展示 ---------- */
.home-products {
  background: #fff;
}
.home-products__inner {
  /* 底部加大：给溢出产品图留空，拉开与「技术实力」间距 */
  padding: var(--section-pad) 0 clamp(130px, 15vw, 200px);
}
.home-products__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.home-products__title-row .sec-title {
  max-width: 860px;
}
.home-products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(36px, 4vw, 56px);
}
.home-products__card {
  position: relative;
  min-height: clamp(340px, 38vw, 480px);
  border-radius: 16px;
  overflow: visible;
  /* 左上 → 右下 浅灰渐变（按截图取样） */
  background: linear-gradient(to bottom right, #C8CBD0 0%, #E7E8EC 100%);
}
.home-products__card-text {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 3vw, 40px);
}
.home-products__card h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  color: #111;
}
.home-products__card .btn-circle--sm {
  background: #fff;
  border-color: transparent;
  color: var(--green);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.home-products__card:hover .btn-circle--sm {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.home-products__card:nth-child(2) {
  /* 左上 → 右下 蓝灰渐变（按截图取样） */
  background: linear-gradient(to bottom right, #949FB1 0%, #DAE1EB 100%);
}
.home-products__card:nth-child(2) h3 {
  color: #fff;
}
.home-products__card-pic {
  position: absolute;
  right: 2%;
  bottom: -18%;
  width: 72%;
  max-width: 480px;
  height: 82%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.home-products__card:hover .home-products__card-pic {
  transform: translate(-6px, -10px) scale(1.03);
}
.home-products__card-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.16));
}
.home-products__card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---------- 3. 技术实力 ---------- */
.home-tech {
  position: relative;
  /* 设计稿约 900px（1920 宽） */
  height: clamp(640px, 46.875vw, 900px);
  min-height: 640px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
}
.home-tech__slides {
  position: absolute;
  inset: 0;
}
.home-tech__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(.58) saturate(.9);
  opacity: 0;
  transition: opacity .7s ease;
  will-change: opacity;
}
.home-tech__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.home-tech__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,.32) 100%);
  pointer-events: none;
}
.home-tech__content {
  position: relative;
  z-index: 3;
  /* 与其它模块共用 .site-wrap 内容宽度 */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(72px, 9.5vh, 120px) 0 clamp(88px, 12vh, 160px);
  box-sizing: border-box;
}
.home-tech__text {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.home-tech__text .sec-eyebrow {
  margin-bottom: 18px;
  font-size: 16px;
}
.home-tech__text h2,
.home-tech__headline {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .02em;
  text-shadow: 0 2px 18px rgba(0,0,0,.25);
  transition: opacity .18s ease, transform .18s ease;
}
.home-tech__headline.is-switching {
  opacity: 0;
  transform: translateY(6px);
}
.home-tech__cards {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: clamp(16px, 3vw, 40px);
  width: 100%;
  margin: 0;
  padding: 0;
}
.home-tech__card {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 1 380px;
  max-width: 380px;
  min-width: 0;
  padding: 16px 22px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 16px 44px rgba(0,0,0,.32);
  cursor: pointer;
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.home-tech__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(0,0,0,.38);
}
.home-tech__card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.home-tech__card--left {
  margin-right: auto;
  margin-left: 0;
  /* 文字在右侧：加大文字侧左右内边距 */
  padding: 16px 26px 16px 14px;
}
.home-tech__card--right {
  margin-left: auto;
  margin-right: 0;
  /* 文字在左侧：加大文字侧左右内边距 */
  padding: 16px 14px 16px 26px;
}
.home-tech__card--on {
  background: #5BA323;
  color: #fff;
}
.home-tech__thumb {
  width: 116px;
  height: 116px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: block;
  background-color: #e8e8e8;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.home-tech__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
}
/* 左侧卡片：文字与箭头右对齐（如图） */
.home-tech__card--left .home-tech__card-body {
  align-items: flex-end;
  text-align: right;
}
.home-tech__card-title {
  display: block;
  margin: 0;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.45;
}
.home-tech__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex: 0 0 auto;
}
.home-tech__btn .iconfont {
  font-size: 14px;
  line-height: 1;
}
.home-tech__card--on .home-tech__btn {
  background: #fff;
  color: var(--green);
}

/* ---------- 4. 生产车间 ---------- */
.home-workshop {
  /* 必须用 84vw，不能用 --site-gutter（内含 84%），否则在子元素 width 上会按错误参照计算 */
  --wk-gutter: calc((100vw - min(84vw, 1440px)) / 2);
  /* 左侧留白：EQUIPMENT + 箭头区（设计稿大图约从 x=552 起） */
  --wk-lead: clamp(260px, 16vw, 320px);
  --wk-side: min(420px, 26vw);
  --wk-gap: 42px;
  --wk-dots-h: 100px;
  padding: var(--section-pad) 0 calc(var(--section-pad) - 24px);
  background: #fff;
  overflow: hidden;
}
.home-workshop__head {
  margin-bottom: clamp(48px, 5.5vw, 88px);
  text-align: center;
}
.home-workshop__head .sec-eyebrow {
  text-align: center;
}
.home-workshop__stage {
  position: relative;
  padding: 0;
  min-height: clamp(420px, 48vw, 620px);
}
/* EQUIPMENT：内容区左对齐，落在大图左侧留白 */
.home-workshop__watermark {
  position: absolute;
  left: var(--wk-gutter);
  top: 38%;
  transform: translateY(-50%);
  z-index: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(140px, 20vw, 300px);
  font-weight: 800;
  letter-spacing: .01em;
  color: #ececec;
  line-height: .8;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  text-transform: uppercase;
}
/* 左侧 gutter+lead，右侧贴屏 */
.home-workshop__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 var(--wk-dots-h) calc(var(--wk-gutter) + var(--wk-lead));
  box-sizing: border-box;
}
.home-workshop__slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}
.home-workshop__track {
  display: flex;
  align-items: flex-start; /* 大图与小图顶部对齐 */
  width: max-content;
  gap: var(--wk-gap);
  transition: transform .55s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.home-workshop__slide {
  flex: 0 0 auto;
  width: var(--wk-side);
  margin: 0;
  overflow: hidden;
  background: #e8e8e8;
}
.home-workshop__slide img {
  width: 100%;
  height: clamp(220px, 24vw, 340px);
  object-fit: cover;
  display: block;
}
.home-workshop__slide.is-active {
  /* 大图 + 间距 + 小图 = 屏宽 - gutter - lead，右侧贴屏 */
  width: calc(100vw - var(--wk-gutter) - var(--wk-lead) - var(--wk-side) - var(--wk-gap));
}
.home-workshop__slide.is-active img {
  height: clamp(380px, 42vw, 560px);
}
/* 箭头：左侧 EQUIPMENT 区，底边与大图底边对齐 */
.home-workshop__arrows {
  position: absolute;
  left: var(--wk-gutter);
  top: auto;
  bottom: var(--wk-dots-h);
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  transform: none;
}
.home-workshop__arrows .btn-circle {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.home-workshop__arrows .btn-circle--outline {
  border: 1px solid var(--green);
  color: var(--green);
  background: #fff;
}
.home-workshop__arrows .btn-circle--solid {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.home-workshop__dots {
  position: absolute;
  left: calc(var(--wk-gutter) + var(--wk-lead));
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  width: calc(100vw - var(--wk-gutter) - var(--wk-lead) - var(--wk-side) - var(--wk-gap));
  box-sizing: border-box;
  pointer-events: auto;
}
/* 设计稿：圆点下方、右对齐大图的短黑线 */
.home-workshop__rule {
  position: absolute;
  right: calc(var(--wk-side) + var(--wk-gap));
  bottom: 10px;
  z-index: 4;
  width: calc((100vw - var(--wk-gutter) - var(--wk-lead) - var(--wk-side) - var(--wk-gap)) * .55);
  max-width: 520px;
  height: 1px;
  background: #111;
  pointer-events: none;
}
.home-workshop__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  opacity: .5;
  cursor: pointer;
}
.home-workshop__dot[aria-current="true"] {
  width: 18px;
  height: 18px;
  opacity: 1;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--green);
}

/* ---------- 5. 关于我们 ---------- */
/* 设计稿约 1920×950：上半大 logo 水印，文案落在下 40% */
.home-about {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 950;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.home-about__bg {
  position: absolute;
  inset: 0;
  background-image: var(--about-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
/* about-bg 已含暗色+logo 镂空，仅底部略加压暗保证文字可读 */
.home-about__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.02) 0%,
    rgba(0,0,0,.08) 42%,
    rgba(0,0,0,.38) 78%,
    rgba(0,0,0,.52) 100%
  );
  pointer-events: none;
}
.home-about__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  /* 宽度交给 .site-wrap（大屏 84% / 小屏 94%），勿写 width:100% */
  padding: 0 0 clamp(72px, 7vw, 120px);
  box-sizing: border-box;
}
.home-about__left .sec-eyebrow {
  margin-bottom: 16px;
}
.home-about__left h2 {
  margin: 0 0 clamp(36px, 3.6vw, 56px);
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
}
.home-about__right {
  /* 与左侧大标题顶对齐（跳过绿色 eyebrow） */
  margin-top: 2.35em;
}
.home-about__right p {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.95;
  color: rgba(255,255,255,.92);
}

/* ---------- 6. 荣誉 ---------- */
/* 绿底：左侧贴边，右侧留白；左→右渐变；证书滚动区右侧贴屏边 */
.home-honor {
  --honor-gutter: calc((100vw - min(84vw, 1440px)) / 2);
  padding: var(--section-pad) 0;
  background-color: #fff;
  background-image: linear-gradient(
    90deg,
    #159C40 0%,
    #14963E 30%,
    #138E3E 50%,
    #12863F 70%,
    #10793E 100%
  );
  background-repeat: no-repeat;
  background-position: left top;
  /* 右侧留白，绿底不贴右 */
  background-size: calc(100% - var(--honor-gutter)) 100%;
  color: #fff;
  overflow: hidden;
}
.home-honor > .site-wrap {
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}
.home-honor__head p {
  margin: 0 0 10px;
  font-size: 15px;
  opacity: .9;
}
.home-honor__head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
}
.home-honor__gallery {
  position: relative;
  margin-top: clamp(28px, 4vw, 44px);
  /* 向右拉出到视口右边缘（贴边），绿底仍可右侧留白 */
  width: calc(100% + var(--honor-gutter));
  max-width: none;
  margin-right: calc(-1 * var(--honor-gutter));
  overflow: hidden;
}
.home-honor__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  will-change: transform;
}
.home-honor__item {
  flex: 0 0 calc((100% - 64px) / 3); /* 桌面一行三张；JS 会按容器宽度覆写 */
  width: calc((100% - 64px) / 3);
  margin: 0;
  height: auto;
  border-radius: 0;
  overflow: visible;
  background: transparent; /* 证书无底色，直接落在绿底上 */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.home-honor__item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain; /* 完整显示，不裁剪 */
  object-position: center;
}
.home-honor__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}
.home-honor__stat {
  position: relative;
  padding: 36px 8px 8px;
  min-height: 150px;
}
.home-honor__ico {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: clamp(110px, 12vw, 150px);
  height: clamp(72px, 8vw, 96px);
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-honor__ico img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain; /* 不裁剪 */
  object-position: center;
  filter: none;
}
.home-honor__stat strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  font-style: normal;
  letter-spacing: .02em;
}
.home-honor__stat strong i {
  font-style: normal;
  font-weight: inherit;
}
.home-honor__stat > span:last-child {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  font-size: 14px;
  opacity: .92;
}

/* ---------- 7. 媒体资讯（对齐设计稿） ---------- */
.home-news {
  padding: var(--section-pad) 0 clamp(36px, 4vw, 56px);
  background: #fff;
}
.home-news__head {
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.home-news__head .sec-eyebrow {
  margin-bottom: 12px;
}
.home-news__head .sec-title {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.35;
  letter-spacing: .02em;
}
.home-news__stage {
  width: 100%;
}
.home-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.home-news__dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 6px 0;
  min-height: 28px;
  overflow: visible;
}
.home-news__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  opacity: .45;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: content-box;
  transition: width .25s ease, height .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.home-news__dot[aria-current="true"] {
  width: 16px;
  height: 16px;
  opacity: 1;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--green);
}
.home-news__card {
  position: relative;
  min-height: clamp(420px, 32vw, 520px);
  border-radius: 0;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}
.home-news__card[hidden] {
  display: none !important;
}
.home-news__cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .45s ease, transform .55s ease;
  z-index: 0;
  pointer-events: none;
}
.home-news__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
}
.home-news__card:hover .home-news__cover,
.home-news__card:focus-within .home-news__cover {
  opacity: 1;
  transform: scale(1);
}
.home-news__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: clamp(36px, 4.2vw, 50px);
  min-height: 100%;
}
.home-news__tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 7px 14px;
  min-height: 32px;
  box-sizing: border-box;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .02em;
}
.home-news__body h3 {
  margin: 0;
  flex: 1;
  max-width: 92%;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
  transition: color .35s ease;
}
.home-news__body h3 a {
  color: inherit;
  text-decoration: none;
}
.home-news__card:hover .home-news__body h3,
.home-news__card:focus-within .home-news__body h3 {
  color: #fff;
}
.home-news__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 32px;
}
.home-news__arrow {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: clamp(56px, 6vw, 74px);
  height: clamp(56px, 6vw, 74px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #222;
  transition: background .35s, color .35s, box-shadow .35s;
}
.home-news__arrow svg {
  width: 42%;
  height: 42%;
  display: block;
}
.home-news__card:hover .home-news__arrow,
.home-news__card:focus-within .home-news__arrow {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}
.home-news__lines {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  width: 100px;
  flex-shrink: 0;
  pointer-events: none;
}
.home-news__line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #dddddd;
  position: relative;
  transition: background .35s, width .35s, margin .35s;
}
.home-news__line--1 {
  width: 48px;
  margin-right: 22px;
}
.home-news__line--1::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #dddddd;
  transition: background .35s;
}
.home-news__line--2 {
  width: 58px;
  margin-right: 4px;
  background: #acacaf;
}
.home-news__line--3 {
  width: 82px;
  margin-right: 0;
  background: #dddddd;
}
.home-news__card:hover .home-news__line--1,
.home-news__card:focus-within .home-news__line--1 {
  background: var(--green);
}
.home-news__card:hover .home-news__line--1::after,
.home-news__card:focus-within .home-news__line--1::after {
  background: var(--green);
}
.home-news__card:hover .home-news__line--2,
.home-news__card:focus-within .home-news__line--2 {
  background: rgba(255, 255, 255, .55);
}
.home-news__card:hover .home-news__line--3,
.home-news__card:focus-within .home-news__line--3 {
  background: #fff;
}
.home-news__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---------- 8. 联系（设计稿：三列两行 + 下划线表单） ---------- */
.home-contact {
  padding: clamp(28px, 3vw, 48px) 0 var(--section-pad);
  background: #fff;
}
.home-contact__head {
  text-align: center;
  margin-bottom: clamp(36px, 4.2vw, 56px);
}
.home-contact__head p {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  color: #b0b0b0;
  letter-spacing: .06em;
}
.home-contact__head h2 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green);
  letter-spacing: .02em;
}
.home-contact__form {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}
/* 字段与发送按钮同属一张 3×2 网格 */
.home-contact .ct-form__el {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(36px, 5.2vw, 88px);
  row-gap: clamp(20px, 2.2vw, 32px);
  align-items: end;
}
.home-contact .ct-form__grid {
  display: contents;
}
.home-contact .ct-field {
  width: auto;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}
/* 姓名 / Name */
.home-contact .ct-field:has(#cuname),
.home-contact .ct-field:has(#euname) { grid-column: 1; grid-row: 1; }
/* 公司 / Company */
.home-contact .ct-field:has(#company),
.home-contact .ct-field:has(#eucompany) { grid-column: 1; grid-row: 2; }
/* 邮箱 / Email */
.home-contact .ct-field:has(#cumail),
.home-contact .ct-field:has(#eumail) { grid-column: 2; grid-row: 1; }
/* 电话 / Phone */
.home-contact .ct-field:has(#cutel),
.home-contact .ct-field:has(#cuphone),
.home-contact .ct-field:has(#euphone) { grid-column: 2; grid-row: 2; }
/* 内容 / Message */
.home-contact .ct-field:has(#cumessage),
.home-contact .ct-field:has(#eumessage),
.home-contact .ct-field--full {
  grid-column: 3;
  grid-row: 1;
}
.home-contact .ct-field__label {
  display: block;
  margin: 0 0 2px;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  color: #8a8a8a;
  font-weight: 400;
}
.home-contact .ct-field__input {
  display: block;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 2px 0 10px;
  border: 0 !important;
  border-radius: 0;
  border-bottom: 1px solid #c8c8c8 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px;
  line-height: 1.3;
  color: #222;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.home-contact .ct-field__input::placeholder {
  color: transparent;
  opacity: 0;
}
.home-contact .ct-field__input:focus {
  border-bottom-color: var(--green) !important;
}
.home-contact .ct-field__textarea {
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 2px 0 10px;
  resize: none;
  overflow: hidden;
  line-height: 1.3;
}
.home-contact .ct-field__line { display: none !important; }
.home-contact .ct-form__actions {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  min-height: 34px;
}
.home-contact .ct-form__privacy,
.home-contact .ct-form__btns .ct-btn--ghost,
.home-contact .ct-btn--ghost { display: none !important; }
.home-contact .ct-field:has(#cuinst),
.home-contact .ct-field:has(#cuphone) { display: none !important; }
.home-contact .ct-form__btns {
  display: contents;
}
.home-contact .ct-btn--primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: auto;
  min-height: 0;
  height: 34px;
  padding: 0 2px 10px;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 3px solid var(--green) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--green);
  font-size: 0;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .25s ease;
}
.home-contact .ct-btn--primary::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-color: var(--green);
  /* 设计稿纸飞机（斜向发送） */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%23000' d='M3.4 20.4l17.45-7.48a1 1 0 000-1.84L3.4 3.6a.993.993 0 00-1.39.91L2 9.67a1 1 0 00.76.97L12 12 2.76 13.36a1 1 0 00-.76.97l.01 5.16c0 .73.79 1.19 1.39.91z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill='%23000' d='M3.4 20.4l17.45-7.48a1 1 0 000-1.84L3.4 3.6a.993.993 0 00-1.39.91L2 9.67a1 1 0 00.76.97L12 12 2.76 13.36a1 1 0 00-.76.97l.01 5.16c0 .73.79 1.19 1.39.91z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.home-contact .ct-btn--primary::after {
  content: "发送";
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  letter-spacing: .04em;
}
.lang-en .home-contact .ct-btn--primary::after {
  content: "Send";
}
.home-contact .ct-btn--primary:hover {
  opacity: .82;
}
.home-contact .ct-btn--primary:disabled {
  opacity: .5;
  cursor: wait;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .home-honor__stats { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .home-honor__stat { min-height: 118px; padding: 28px 6px 0; }
  .home-honor__stat > span:last-child { margin-top: 6px; }
}

@media (max-width: 960px) {
  /* 小屏首页：顶栏占位，避免盖住轮播 */
  body.page-home {
    padding-top: var(--header-h);
  }

  /* 平板及以下：绿底全宽 */
  .home-honor {
    --honor-gutter: 0;
    background-size: 100% 100%;
  }
  .home-honor__gallery {
    width: 100%;
    max-width: none;
    margin-right: 0;
    overflow: hidden;
    touch-action: none;
  }
  .home-honor__track {
    display: flex;
    width: max-content;
    max-width: none;
    gap: 12px;
    transition: transform .55s cubic-bezier(.22, .7, .25, 1);
    will-change: transform;
  }
  /* 平板：一行两张（相对画廊容器宽度） */
  .home-honor__item {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
  }
  .home-honor__item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
  }
  .home-honor__stats {
    margin-top: 28px;
    row-gap: 8px;
    column-gap: 12px;
  }
  .home-honor__stat {
    min-height: 100px;
    padding: 22px 4px 0;
  }
  .home-honor__ico {
    width: clamp(88px, 26vw, 120px);
    height: clamp(56px, 16vw, 76px);
  }
  .home-honor__stat strong {
    font-size: clamp(30px, 9vw, 40px);
  }
  .home-honor__stat > span:last-child {
    margin-top: 4px;
    font-size: 13px;
  }

  .page-home .site-header {
    background: rgba(255, 255, 255, .96);
  }
  .page-home .site-header:not(.is-scrolled) .site-header__nav > ul > li > a {
    color: var(--c-text);
  }
  .page-home .site-header:not(.is-scrolled) .site-header__menu span {
    background: #222;
  }
  /* 小屏抽屉内取消首页透明顶栏的二级白卡片样式 */
  .page-home .site-header .site-header__sub,
  .page-home .site-header:not(.is-scrolled) .site-header__sub {
    background: transparent;
    box-shadow: none;
  }

  .home-hero__content {
    top: 14%;
    bottom: auto;
    width: min(92%, 640px);
  }
  .home-hero__content h1 {
    font-size: clamp(22px, 6.2vw, 30px);
    letter-spacing: .03em;
  }
  .home-hero__content p {
    margin-top: 10px;
    font-size: clamp(12px, 3.4vw, 15px);
  }
  .home-hero__mouse {
    bottom: max(10px, 4%);
  }
  .home-hero__mouse img {
    width: 16px;
  }

  .home-products__title-row { flex-direction: column; }
  /* 平板端产品分类保持一行两列 */
  .home-products__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .home-products__card {
    min-height: 280px;
  }
  .home-products__card-text {
    padding: 22px 18px;
  }
  .home-products__card h3 {
    font-size: clamp(18px, 2.4vw, 24px);
    margin-bottom: 14px;
  }
  .home-about__inner,
  .home-contact .ct-form__el { grid-template-columns: 1fr; }
  .home-contact .ct-field,
  .home-contact .ct-field--full,
  .home-contact .ct-form__actions {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .home-contact .ct-form__actions {
    justify-content: flex-start;
  }

  /* 平板及以下：新闻单卡轮播 + 指示点 */
  .home-news__stage {
    overflow: hidden;
  }
  .home-news__grid {
    display: flex;
    gap: 0;
    transition: transform .45s cubic-bezier(.22, .7, .25, 1);
    will-change: transform;
  }
  .home-news__card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .home-news__dots:not([hidden]) {
    display: flex;
  }

  .home-workshop {
    --wk-lead: clamp(80px, 10vw, 140px);
    --wk-side: min(200px, 32vw);
    --wk-gap: 16px;
    --wk-dots-h: 76px;
  }
  .home-workshop__head {
    margin-bottom: clamp(36px, 5vw, 56px);
  }
  .home-workshop__viewport {
    padding-left: calc(var(--wk-gutter) + var(--wk-lead));
    padding-bottom: var(--wk-dots-h);
  }
  .home-workshop__slide {
    width: var(--wk-side);
  }
  .home-workshop__slide.is-active {
    width: calc(100vw - var(--wk-gutter) - var(--wk-lead) - var(--wk-side) - var(--wk-gap));
  }
  .home-workshop__slide img {
    height: clamp(150px, 24vw, 200px);
  }
  .home-workshop__slide.is-active img {
    height: clamp(220px, 38vw, 300px);
  }
  .home-workshop__arrows {
    left: var(--wk-gutter);
    bottom: var(--wk-dots-h);
    transform: none;
    gap: 10px;
  }
  .home-workshop__arrows .btn-circle {
    width: 40px;
    height: 40px;
  }
  .home-workshop__dots {
    left: calc(var(--wk-gutter) + var(--wk-lead));
    width: calc(100vw - var(--wk-gutter) - var(--wk-lead) - var(--wk-side) - var(--wk-gap));
    bottom: 28px;
    gap: 16px;
  }
  .home-workshop__rule {
    right: calc(var(--wk-side) + var(--wk-gap));
    bottom: 8px;
    width: calc((100vw - var(--wk-gutter) - var(--wk-lead) - var(--wk-side) - var(--wk-gap)) * .55);
  }
  .home-workshop__watermark {
    left: var(--wk-gutter);
    font-size: clamp(72px, 16vw, 160px);
  }
  .home-about {
    --about-m-h: min(100vw, 560px);
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    /* 下方超出方图高度时用深色底承接文案 */
    background: #0b0b0b;
  }
  /* 顶部正方区完整铺方图，ABCD 左右不再被 cover 裁切 */
  .home-about__bg {
    inset: auto;
    left: 0;
    right: 0;
    top: 0;
    height: var(--about-m-h);
    background-image: var(--about-bg-m);
    background-position: top center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: #0b0b0b;
  }
  .home-about__shade {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,.02) 0%,
      rgba(0,0,0,.05) 45%,
      rgba(0,0,0,.4) 70%,
      rgba(0,0,0,.62) 100%
    );
  }
  .home-about__inner {
    /* 紧贴 logo 下方；底部加大留白 */
    padding: calc(var(--about-m-h) * .42) 0 clamp(64px, 12vw, 100px);
    gap: 18px;
  }
  .home-about__left h2 {
    margin-bottom: 20px;
    font-size: clamp(20px, 5.2vw, 26px);
  }
  .home-about__right {
    margin-top: 0;
  }
  .home-news__card { min-height: 340px; }
  .home-news__body { padding: 28px 24px 24px; }
  .home-news__arrow {
    width: 56px;
    height: 56px;
  }
  .home-news__line { height: 6px; }
  .home-news__line--1 { width: 40px; margin-right: 18px; }
  .home-news__line--1::after { width: 6px; height: 6px; right: -12px; }
  .home-news__line--2 { width: 48px; }
  .home-news__line--3 { width: 68px; }
}

@media (max-width: 960px) {
  .home-tech {
    height: auto;
    min-height: 520px;
  }
  .home-tech__content {
    padding: 48px 0 32px;
    gap: 28px;
    min-height: inherit;
  }
  /* 平板：左右排列，保留内容区左右间距 */
  .home-tech__cards {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    gap: 12px;
    padding: 0;
  }
  .home-tech__card {
    max-width: none;
    flex: 1 1 0;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }
  .home-tech__card--left {
    margin: 0;
    padding: 12px 16px 12px 10px;
    border-radius: 14px;
  }
  .home-tech__card--right {
    margin: 0;
    padding: 12px 10px 12px 16px;
    border-radius: 14px;
  }
  .home-tech__thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
  }
  .home-tech__card-body {
    gap: 8px;
    padding: 0;
  }
  .home-tech__card-title {
    font-size: 13px;
    line-height: 1.35;
  }
  .home-tech__btn {
    width: 28px;
    height: 28px;
  }

  /* 小屏车间：单图撑满内容区、无箭头、指示点居中、去英文水印、保留黑线 */
  .home-workshop {
    --wk-lead: 0px;
    --wk-side: 0px;
    --wk-gap: 0px;
    --wk-dots-h: 72px;
    /* 与 .site-wrap 一致：小屏 94vw */
    --wk-panel: min(94vw, 1440px);
  }
  .home-workshop__stage {
    min-height: 0;
  }
  .home-workshop__viewport {
    width: var(--wk-panel);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 var(--wk-dots-h);
    box-sizing: border-box;
  }
  .home-workshop__slider {
    width: 100%;
  }
  .home-workshop__slide,
  .home-workshop__slide.is-active {
    width: var(--wk-panel);
  }
  .home-workshop__slide img,
  .home-workshop__slide.is-active img {
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 1067;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .home-workshop__arrows {
    display: none !important;
  }
  .home-workshop__dots {
    left: 0 !important;
    width: 100% !important;
    bottom: 28px;
    justify-content: center;
    gap: 16px;
  }
  .home-workshop__rule {
    display: block;
    left: 50% !important;
    right: auto !important;
    bottom: 10px;
    width: 42% !important;
    max-width: 220px;
    transform: translateX(-50%);
  }
  .home-workshop__watermark {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 52px;
  }

  /* 手机：证书一行一张 = 容器宽度 100%，自动切换 */
  .home-honor__gallery {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .home-honor__track {
    gap: 0;
  }
  .home-honor__item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .home-honor__item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  .site-header__logo img {
    width: 96px;
  }

  .home-hero__content {
    top: 12%;
  }
  .home-hero__content h1 {
    font-size: clamp(20px, 6vw, 26px);
  }
  .home-hero__content p {
    margin-top: 8px;
    font-size: 12px;
  }
  .home-hero__mouse img {
    width: 14px;
  }

  /* 手机端产品分类改为上下排列，避免产品图重叠 */
  .home-products__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .home-products__card {
    min-height: 260px;
    overflow: visible;
  }
  .home-products__card-pic {
    right: 0;
    bottom: -10%;
    width: 62%;
    height: 78%;
  }
  .home-products__card:hover .home-products__card-pic {
    transform: translate(-4px, -6px) scale(1.02);
  }
  .home-products__inner {
    padding-bottom: clamp(100px, 18vw, 140px);
  }

  /* 手机：上下排列，保留左右间距 */
  .home-tech__cards {
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin-top: auto;
  }
  .home-tech__card {
    width: 100%;
    max-width: none;
    flex: none;
    padding: 12px 14px;
    gap: 12px;
    border-radius: 14px;
  }
  .home-tech__card--left,
  .home-tech__card--right {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
  }
  /* 第一张：图左，文字+箭头居右 */
  .home-tech__card--left {
    flex-direction: row;
  }
  .home-tech__card--left .home-tech__card-body {
    align-items: flex-end;
    text-align: right;
  }
  /* 第二张：恢复文字左、图片右（取消统一图左） */
  .home-tech__card--right {
    flex-direction: row;
  }
  .home-tech__thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }
  .home-tech__card-title {
    font-size: 15px;
    font-weight: 700;
  }
  .home-tech__btn {
    width: 28px;
    height: 28px;
  }
  .home-tech__btn .iconfont {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__mouse { animation: none; }
}
