/* ============ 首页 Hero ============ */
.hero {
  position: relative;
  min-height: clamp(600px, 86vh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  padding-bottom: clamp(56px, 7vw, 96px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media {
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateX(100%);
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.25, 1);
  will-change: transform;
}

.hero__slide.is-active {
  transform: translateX(0);
}

.hero__slide.is-prev {
  transform: translateX(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 10, 15, 0.62) 0%, rgba(6, 10, 15, 0.2) 42%, rgba(6, 10, 15, 0.9) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
}

.hero h1 {
  max-width: 17ch;
  text-wrap: balance;
}

.hero__sub {
  margin-top: 22px;
  max-width: 58ch;
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* ============ 数据条 ============ */
.stats {
  background: #0f1822;
  color: #fff;
  padding-block: clamp(34px, 4vw, 54px);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.stat {
  padding: 4px clamp(16px, 2vw, 32px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat__value {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat__label {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ 产品卡 ============ */
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.pcard:hover {
  border-color: #cfd6dd;
  box-shadow: 0 18px 40px rgba(13, 20, 29, 0.1);
  transform: translateY(-3px);
}

.pcard__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d1620;
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.pcard:hover .pcard__media img {
  transform: scale(1.045);
}

.pcard__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pcard__model {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red);
}

.pcard__title {
  font-size: 19px;
  line-height: 1.25;
}

.pcard__summary {
  font-size: 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard__foot {
  margin-top: auto;
  padding-top: 8px;
}

/* ============ 分类卡 ============ */
.ccard {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d1620;
  color: #fff;
}

.ccard__media,
.ccard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.ccard:hover .ccard__media img {
  transform: scale(1.06);
}

.ccard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 18, 0.05) 30%, rgba(8, 13, 18, 0.88) 100%);
}

.ccard__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ccard__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.ccard__count {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ============ 新闻卡 ============ */
.ncard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ncard__body {
  display: flex;
  flex-direction: column;
}

.ncard__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1620;
}

.ncard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ncard:hover .ncard__media img {
  transform: scale(1.05);
}

.ncard__meta {
  display: flex;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ncard__meta .dot {
  color: var(--red);
}

.ncard h3 {
  font-size: 20px;
  margin-top: 8px;
  line-height: 1.3;
}

.ncard h3 a:hover {
  color: var(--red);
}

.ncard p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ============ 为什么选我们 ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.why {
  padding: clamp(28px, 4vw, 48px) clamp(0px, 3vw, 40px) clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.why:nth-child(even) {
  padding-left: clamp(24px, 4vw, 56px);
  border-left: 1px solid var(--line);
}

.why__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 16px;
}

.why h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 12px;
}

.why p:last-child {
  color: var(--muted);
  font-size: 15px;
  max-width: 44ch;
}

/* ============ 工厂图 ============ */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 12px;
}

.factory-grid__item {
  overflow: hidden;
  background: #0b1119;
  min-height: 150px;
}

.factory-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.factory-grid__item:hover img {
  transform: scale(1.04);
}

.factory-grid__item--main {
  grid-column: span 2;
  grid-row: span 2;
}

/* ============ 认证条 ============ */
.certbar {
  border-block: 1px solid var(--line);
  padding-block: 26px;
  background: #fff;
}

.certbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.certbar__label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.certbar__list {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.certbar__list li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* ============ 底部 CTA ============ */
.cta {
  background: linear-gradient(120deg, #14202c 0%, #1b2b3b 62%, #241318 100%);
  color: #fff;
  padding-block: clamp(56px, 7vw, 96px);
}

.cta__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cta h2 {
  max-width: 18ch;
  font-size: clamp(28px, 3.4vw, 46px);
}

.cta__text p:last-child {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 46ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}



/* ============ 内页头 ============ */
.page-head {
  padding-top: calc(var(--header-h) + clamp(48px, 6vw, 84px));
  padding-bottom: clamp(40px, 5vw, 64px);
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  max-width: 22ch;
  font-size: clamp(32px, 4.4vw, 54px);
  margin-top: 8px;
}

.page-head__sub {
  margin-top: 18px;
  max-width: 66ch;
  color: var(--muted);
  font-size: 16.5px;
}

.page-head--small {
  padding-bottom: clamp(28px, 3vw, 40px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumbs--inline {
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.breadcrumbs .sep {
  color: #b9c2cb;
}

/* ============ 产品详情 ============ */
.product-hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.pgallery__main {
  border: 1px solid var(--line);
  background: #0d1620;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.pgallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 缩略图：矩形阵列（每行 4 格，最多 7 张，超出换行） */
.pgallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pgallery__thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0d1620;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pgallery__thumb:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.pgallery__thumb.is-active {
  opacity: 1;
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.pgallery__thumb.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(210, 32, 47, 0.55);
  pointer-events: none;
}

.pgallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-hero__info h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-top: 10px;
}

.lede {
  margin-top: 18px;
  font-size: 16.5px;
  color: #3b4652;
}


.spec-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.spec {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list .spec:nth-child(odd) {
  padding-right: 16px;
}

.spec-list .spec:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.spec dt {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec dd {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.spec-table {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.spec-table .spec {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.spec-table dd {
  margin: 0;
  text-align: right;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.split--narrow {
  grid-template-columns: 0.85fr 1.15fr;
}

.h2-sm {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 14px;
}

.prose-block p {
  margin-bottom: 18px;
  font-size: 16.5px;
  color: #2c3743;
  max-width: 68ch;
}

.contact-mini {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-mini li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.contact-mini span {
  color: var(--muted);
}

/* ============ 表单 ============ */
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__label em {
  color: var(--red);
  margin-left: 4px;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7683 50%), linear-gradient(135deg, #6b7683 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
  cursor: pointer;
}

.field select option,
.field select optgroup {
  color: var(--ink);
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(210, 32, 47, 0.1);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: var(--red);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.form__status {
  font-size: 14px;
  color: #1d7a43;
}

.form__status.is-error {
  color: var(--red);
}

/* ============ 联系页 ============ */
.contact-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-list > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.contact-list dt {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.contact-list a:hover {
  color: var(--red);
}

/* ============ 关于页 ============ */
/* 自定义内容区：独立底色 + 卡片，与上方介绍明显区隔 */
.section--blocks {
  background: var(--sand);
  border-top: 1px solid var(--line);
}

.about-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(22px, 3vw, 34px);
}

.about-block + .about-block {
  margin-top: 16px;
}

.about-list {
  margin: 16px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.about-list li {
  list-style: disc;
  color: #2c3743;
  font-size: 16px;
}
.about-figure {
  border: 1px solid var(--line);
  background: #0d1620;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-figure figcaption {
  padding: 14px 18px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.timeline {
  margin-top: 40px;
  display: grid;
  gap: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline__year {
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.02em;
}

.timeline__item p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  max-width: 70ch;
}

.qc-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.qc-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.qc-list__n {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
}

/* ============ 文章 ============ */
.article__wrap {
  max-width: 860px;
}

.article h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-top: 10px;
  max-width: 28ch;
}

.article__hero {
  margin-top: 28px;
  background: #0d1620;
}

.article__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article .prose-block {
  margin-top: 32px;
}

.article__nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ============ 搜索 ============ */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
}

.search-form input {
  flex: 1;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.search-form input:focus {
  outline: none;
  border-color: var(--red);
}

.search-count {
  margin: 22px 0 28px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-empty {
  padding: 40px 0;
  color: var(--muted);
}

/* ============ 404 ============ */
.notfound {
  padding-top: calc(var(--header-h) + 80px);
  min-height: 70vh;
}

.notfound__inner {
  max-width: 560px;
}

.notfound__code {
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 800;
  line-height: 1;
  color: var(--line);
  letter-spacing: -0.04em;
}

.notfound h1 {
  margin: 12px 0 14px;
}

.notfound .btn {
  margin-top: 28px;
}

/* ============ 浮层 ============ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(210, 32, 47, 0.35);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--red-dark);
}

.demo-chip {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 130;
  padding: 7px 12px;
  background: rgba(13, 20, 29, 0.86);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-left: 2px solid var(--red);
  backdrop-filter: blur(4px);
}

/* ============ 动效 ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ 组件响应式 ============ */
@media (max-width: 1080px) {
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .cta__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .product-hero,
  .split,
  .split--narrow {
    grid-template-columns: 1fr;
  }

  .factory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-grid__item--main {
    grid-column: span 2;
    grid-row: span 1;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .pgallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .spec-list .spec:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .article__nav {
    flex-direction: column;
  }

  .search-form {
    flex-direction: column;
  }

  .hero {
    min-height: 78vh;
  }
}

/* 产品页底部：报价入口（表单统一在联系页） */
.product-quote-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.product-quote-cta__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-quote-cta .contact-mini {
  margin: 0;
}
/* 次级页面：悬浮返回按钮（固定位置，不随页面滚动） */
.back-fab {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(13, 20, 29, 0.14);
  font-size: 13px;
  color: var(--ink);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.back-fab:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) translateX(-2px);
}

.back-fab__arrow {
  width: 7px;
  height: 7px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .back-fab {
    left: 12px;
    top: auto;
    bottom: 84px;
    transform: none;
    padding: 9px 14px 9px 11px;
  }

  .back-fab:hover {
    transform: none;
  }
}

@media print {
  .back-fab {
    display: none;
  }
}
/* ============ 作品展示：二维码九宫格 ============ */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.qr-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 16px 36px rgba(13, 20, 29, 0.1);
}

.qr-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 170px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.qr-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-card__empty {
  font-size: 12px;
  color: var(--muted);
  padding: 10px;
}

.qr-card__body {
  display: block;
}

.qr-card__name {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.qr-card__note {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.qr-card__url {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--red);
  word-break: break-all;
}

@media (max-width: 900px) {
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .qr-grid {
    grid-template-columns: 1fr;
  }
}
/* 内容区自动撑满，页脚贴视口底部（内容少的页面不再把页脚顶到中间） */
main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}
/* 页脚：资质认证（与版权同一行） */
.footer__bar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__certs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__certs li {
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  font-size: 11.5px;
  color: #a9b7c4;
  white-space: nowrap;
}
/* ==========================================================================
   移动端适配（2026-11 追加）
   桌面样式不动，这里只在小屏覆盖；HTML 结构不变
   ========================================================================== */

/* ---------- 平板竖屏 / 大屏手机 ≤900px ---------- */
@media (max-width: 900px) {
  /* 两栏一律改单栏 */
  .split,
  .split--narrow {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  /* 锚点跳转别被固定页头盖住 */
  section[id],
  [id="quote"] {
    scroll-margin-top: calc(var(--header-h) + 14px);
  }

  /* 首屏：不再强制占满整屏 */
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(30px, 7.4vw, 48px);
  }

  .hero__actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* 数字条 2×2 */
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }

  /* 参数表：名称在上、数值在下 */
  .spec-table .spec {
    flex-direction: column;
    gap: 2px;
    padding: 11px 0;
  }

  .spec-table dd {
    text-align: left;
    font-weight: 600;
  }

  /* 图集缩略图改为横向滑动 */
  .pgallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .pgallery__thumb {
    flex: 0 0 86px;
    scroll-snap-align: start;
  }

  /* 厂房照片、新闻卡降列 */
  .factory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(120px, auto);
  }

  .factory-grid__item--main {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* 桌面上是 .nav 的 margin-left:auto 把右侧按钮推过去的；
     手机上 .nav 变成 fixed 脱离文档流，auto 消失，按钮会缩到左边 —— 这里补回来 */
  .header__actions {
    margin-left: auto;
  }


  /* 中英文切换：和「获取报价」同款实心红按钮 */
  .lang-switch {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
    padding: 8px 12px;
  }

  .lang-switch:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
  }

  /* 展开的菜单：半透明面板，能看到后面的页面 */
  .nav {
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
  }

  /* 手机上收起顶部 CTA，显示汉堡按钮 */
  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .header__actions {
    gap: 10px;
  }

  /* 手机上搜索入口收进菜单，别藏掉 */
  .nav__link--icon {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
  }

  /* 返回按钮：手机上放左下，避免压住正文 */
  .back-fab {
    top: auto;
    left: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    transform: none;
    font-size: 12px;
    padding: 8px 13px 8px 10px;
  }

  .back-fab:hover {
    transform: none;
  }

  /* 页脚资质：保持一排，放不下时自动换行 */
  .footer__certs {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
}

/* ---------- 手机 ≤640px ---------- */
@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 44px;
  }

  .hero__sub {
    font-size: 15px;
    margin-top: 16px;
  }

  /* 手机上图片更碎，遮罩加深保证文字可读 */
  .hero__scrim {
    background: linear-gradient(180deg, rgba(6, 10, 15, 0.72) 0%, rgba(6, 10, 15, 0.5) 45%, rgba(6, 10, 15, 0.94) 100%);
  }

  /* 首屏按钮堆叠、占满宽度 */
  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  /* 标题降级 */
  .page-head h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  /* 输入框 16px：避免 iOS 聚焦时自动放大 */
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .form__foot .btn {
    width: 100%;
  }

  /* 时间轴收窄年份列 */
  .timeline__item {
    grid-template-columns: 58px 1fr;
    gap: 12px;
  }

  /* 作品展示九宫格：两列 */
  .qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .qr-card {
    padding: 18px 12px 16px;
  }

  .wa-float {
    width: 46px;
    height: 46px;
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  /* 页脚改成两列阵列：品牌占整行，导航/产品/联系两列排布 */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
    padding-bottom: 34px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  /* 页脚底栏留出空间，避免被悬浮按钮压住 */
  .footer__bar {
    padding-bottom: 74px;
  }

  .footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__bar-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .demo-chip {
    bottom: 12px;
    left: 12px;
    font-size: 10.5px;
    padding: 6px 9px;
  }

  /* 页脚字号与间距收紧 */
  .footer__certs li {
    font-size: 11.5px;
    padding: 4px 9px;
  }

  .section {
    padding-block: clamp(40px, 9vw, 60px);
  }
}

/* ---------- 小屏手机 ≤400px ---------- */
@media (max-width: 400px) {
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .pgallery__thumb {
    flex-basis: 72px;
  }

  .hero__actions .btn {
    font-size: 15px;
    padding-inline: 18px;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }
}

/* ---------- 触控体验 ---------- */
@media (hover: none) and (pointer: coarse) {
  /* 手机上没有悬停，去掉依赖 hover 的位移/缩放 */
  .pcard:hover,
  .ccard:hover,
  .qr-card:hover,
  .pgallery__thumb:hover,
  .factory-grid__item:hover img {
    transform: none;
  }

  .back-fab:hover {
    transform: translateY(-50%);
  }

  /* 可点区域不小于 44px（不改 display，避免覆盖 header 的隐藏规则） */
  .btn,
  .footer a,
  .lang-switch {
    min-height: 44px;
  }

  .footer a,
  .lang-switch {
    display: inline-flex;
    align-items: center;
  }

  .nav__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
/* ---------- 横屏手机 / 矮屏（高度 ≤ 520px） ---------- */
@media (max-height: 520px) {
  :root {
    --header-h: 58px;
  }

  .site-header .header__inner {
    height: 58px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 18px);
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(24px, 4.4vw, 34px);
  }

  .hero__sub {
    margin-top: 10px;
    font-size: 14px;
    max-width: 70ch;
  }

  .hero__actions {
    margin-top: 18px;
    gap: 8px;
  }

  .section {
    padding-block: clamp(26px, 5vw, 40px);
  }

  .page-head {
    padding-block: clamp(24px, 4vw, 36px);
  }

  /* 页头变矮后，锚点补偿同步收小 */
  section[id],
  [id="quote"] {
    scroll-margin-top: calc(var(--header-h) + 8px);
  }

  /* 悬浮元素都缩小，别挡住内容 */
  .back-fab {
    bottom: 62px;
    padding: 6px 10px 6px 8px;
    font-size: 11.5px;
  }

  .wa-float {
    width: 40px;
    height: 40px;
    bottom: 12px;
    right: 12px;
  }

  .demo-chip {
    display: none;
  }

  /* 横屏时两栏可以并排，避免内容过长 */
  .split--narrow {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 26px;
  }
}
/* 分类页：品牌筛选条 */
.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.brand-chip em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}

.brand-chip:hover {
  border-color: var(--red);
}

.brand-chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.brand-chip.is-active em {
  color: rgba(255, 255, 255, 0.8);
}
/* 通用筛选条：多组条件（吨位 / 品牌） */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-group__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 2px;
}

/* WhatsApp 二维码弹层（桌面端） */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.wa-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 20, 0.62);
  backdrop-filter: blur(2px);
}

.wa-modal__panel {
  position: relative;
  width: min(340px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.wa-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #8b97a4;
  cursor: pointer;
}

.wa-modal__title {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--ink);
}

.wa-modal__qr img {
  width: 240px;
  height: 240px;
  display: block;
  margin: 0 auto;
}

.wa-modal__hint {
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.wa-modal__num {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.wa-modal__copy {
  margin-left: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}

.wa-modal__copy:hover {
  border-color: var(--red);
  color: var(--red);
}

.wa-modal__open {
  display: inline-block;
  font-size: 13px;
  color: var(--red);
  text-decoration: underline;
}

/* WhatsApp 入口：桌面端由 JS 接管为二维码弹层 */
.js-wa {
  cursor: pointer;
}

/* 产品卡片：直接询价按钮 */
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pcard__quote {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.2s var(--ease);
}

.pcard__quote:hover {
  background: var(--red-dark);
  color: #fff;
}
