/* =========================================================
   V3 重构层
   只做三件事：拉开间距层级、拆掉重复的等分网格、加视觉锚点
   ========================================================= */

/* ---------- 1. 间距：分三档，疏密交替 ---------- */
.sec { padding: clamp(44px, 5.2vw, 80px) 0 clamp(64px, 7.4vw, 116px); }
.sec-lg { padding: clamp(56px, 6.4vw, 96px) 0 clamp(82px, 9.4vw, 148px); }
.sec-tight { padding: clamp(28px, 3.2vw, 48px) 0 clamp(40px, 4.6vw, 72px); }

.sec-head { padding-bottom: 22px; margin-bottom: clamp(28px, 3.4vw, 44px); }

/* ---------- 2. 实力横带：全站第一个视觉锚点 ---------- */
.band {
  background: var(--green);
  color: var(--paper);
  padding: clamp(42px, 5.4vw, 76px) 0 0;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(244,240,233,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,240,233,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 28% 0%, #000 18%, transparent 88%);
  mask-image: radial-gradient(ellipse 90% 90% at 28% 0%, #000 18%, transparent 88%);
}
.band-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; }

.band .figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: none; margin: 0; padding: 0; gap: 0;
}
.band .fig {
  border-right: 1px solid rgba(244,240,233,.16);
  padding: 0 22px 0 0;
}
.band .fig:first-child { padding-left: 0; }
.band .fig:last-child { border-right: 0; }
.band .fig b {
  font-family: var(--mono);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 500; letter-spacing: -.05em; line-height: 1;
  color: var(--paper);
}
.band .fig span { font-size: clamp(12px, 1.1vw, 15px); color: var(--kraft-l); margin-left: 8px; vertical-align: -0.1em; letter-spacing: .02em; }
.band .fig em {
  display: block; font-style: normal; font-size: 11px;
  letter-spacing: .16em; color: rgba(244,240,233,.5); margin-top: 14px;
}

.band .equip {
  background: transparent;
  border-top: 1px solid rgba(244,240,233,.16);
  margin-top: clamp(34px, 4.4vw, 58px);
}
.band .equip-track {
  max-width: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.band .eq {
  background: transparent;
  border-left: 1px solid rgba(244,240,233,.13);
  padding: 22px 18px 24px;
}
.band .eq:first-child { border-left: 0; padding-left: 0; }
.band .eq:hover { background: rgba(244,240,233,.04); }
.band .eq svg { stroke: rgba(244,240,233,.68); }
.band .eq svg * { stroke: inherit; }
.band .eq .no { color: rgba(244,240,233,.38); }
.band .eq h5 { color: var(--paper); }
.band .eq p { color: rgba(244,240,233,.58); }
.band .eq svg { width: 100%; height: 72px; margin: 10px 0 12px; }
.band .equip-note {
  max-width: none; margin: 0; padding: 10px 0;
  color: rgba(244,240,233,.32);
  border-top: 1px solid rgba(244,240,233,.1);
}

/* ---------- 3. 产品：Bento，一个大格带八个小的 ---------- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 312px; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.bento > a {
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 20px 18px 18px;
  transition: background .35s;
  overflow: hidden; position: relative;
}
.bento > a:hover { background: var(--paper-2); }

.bento-ic { aspect-ratio: 4 / 3; height: auto; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; background: var(--paper); }
.bento-ic svg { height: 78%; width: auto; max-width: 84%; }
.bento-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bento h4 {
  font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
}
.bento h4 small {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em;
  color: var(--muted); font-weight: 400;
}
.bento p { font-size: 11.5px; color: var(--muted); line-height: 1.72; margin-top: 5px; flex: 1; }
.bento .moq { font-family: var(--mono); font-size: 10px; color: var(--brown); margin-top: 8px; }

/* 主推大格：横向贯通一条，图和字左右分 */
.bento-main {
  grid-column: span 4; grid-row: span 1;
  background: var(--paper-2) !important;
  padding: 0 !important;
  display: flex !important; flex-direction: row !important;
}
.bento-main:hover { background: var(--paper-3) !important; }
.bento-main .bento-ic {
  flex: 0 0 34%; width: 34%; height: 100%;
  margin: 0; background: #EFE9DD;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.bento-main .bento-ic svg { height: 62%; width: auto; }
.bento-main .bento-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-main .bento-txt {
  flex: 1; padding: 26px 32px;
  display: flex; flex-direction: column; justify-content: center;
}
.bento-main h4 { font-size: 21px; }
.bento-main h4 small { font-size: 9.5px; }
.bento-main .bento-ic + .bento-txt p { font-size: 13.5px; color: var(--ink-2); max-width: 44ch; line-height: 1.85; margin-top: 8px; }
.bento-main .moq {
  font-size: 11px; margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line); align-self: flex-start; min-width: 180px;
}

.bento-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bento-tags span {
  font-size: 10.5px; padding: 3px 9px; border-radius: 2px;
  background: rgba(47,64,56,.07); color: var(--green); letter-spacing: .02em;
}

.tail-row {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 22px; flex-wrap: wrap;
}
.tail-row p { font-size: 12.5px; color: var(--muted); max-width: 52ch; line-height: 1.8; }

/* ---------- 4. 行业：横排标签，不再用网格 ---------- */
.indflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.indflow a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 15px 20px;
  border: 1px solid var(--line); border-radius: 2px;
  transition: background .3s, border-color .3s, transform .3s;
}
.indflow a:hover { background: var(--paper-2); border-color: var(--ink); transform: translateY(-2px); }
.indflow b { font-size: 13.5px; font-weight: 600; }
.indflow span { font-size: 11px; color: var(--muted); line-height: 1.5; }
.indflow a.more { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.indflow a.more span { color: rgba(244,240,233,.55); }

/* ---------- 5. 优势：左右两栏，四条 ---------- */
.why {
  display: grid; grid-template-columns: .78fr 1.22fr;
  gap: clamp(40px, 5.6vw, 88px); align-items: start;
}
.why-head h2 { font-size: clamp(1.55rem, 2.9vw, 2.35rem); margin-top: 14px; line-height: 1.32; }
.why-head p { font-size: 13.5px; color: var(--ink-2); line-height: 1.95; margin-top: 16px; max-width: 34ch; }
.why-head .link-arrow { margin-top: 24px; }

.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.why-item { padding: 24px 26px 24px 0; border-top: 1px solid var(--line); }
.why-item:nth-child(2n) { padding-left: 26px; border-left: 1px solid var(--line); }
.why-item .n { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.why-item h4 { font-size: 15px; font-weight: 600; margin-top: 10px; }
.why-item p { font-size: 12.5px; color: var(--muted); line-height: 1.82; margin-top: 7px; }

/* ---------- 6. 首屏收尾 ---------- */
.hero { padding-bottom: clamp(56px, 6.4vw, 104px); }

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1080px) {
  .band .figures { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .band .fig { padding: 0 20px 0 0; }
  .band .fig:nth-child(2n) { border-right: 0; }
  .band .fig:nth-child(n+3) { padding-top: 24px; border-top: 1px solid rgba(244,240,233,.14); }
  .band .equip-track { display: flex; overflow-x: auto; scrollbar-width: none; }
  .band .equip-track::-webkit-scrollbar { display: none; }
  .band .eq { flex: 0 0 45%; border-left: 1px solid rgba(244,240,233,.13); }
  .band .eq:first-child { padding-left: 18px; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-main { grid-column: span 2; grid-row: auto; flex-direction: column !important; }
  .bento-main .bento-ic { flex: none; width: 100%; height: 200px; }
  .bento-main .bento-txt { padding: 20px 22px 24px; }
  .bento > a { padding: 18px 16px 20px; }

  .why { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .band .figures { grid-template-columns: 1fr; gap: 0; }
  .band .fig { border-right: 0; padding: 18px 0; border-top: 1px solid rgba(244,240,233,.14); }
  .band .fig:first-child { border-top: 0; padding-top: 0; }
  .band .fig b { font-size: 2.4rem; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > a { padding: 13px 11px 15px; }
  .bento-ic { aspect-ratio: 4 / 3; margin-bottom: 10px; }
  .bento-ic svg { height: 76%; }
  .bento h4 { font-size: 12.5px; flex-direction: column; align-items: flex-start; gap: 1px; }
  .bento p { font-size: 10.5px; line-height: 1.6; }
  .bento .moq { font-size: 9px; margin-top: 6px; }
  .bento-main .bento-ic { height: 160px; }
  .bento-main .bento-txt { padding: 16px 16px 18px; }
  .bento-main h4 { font-size: 16px; }
  .bento-main p { font-size: 12px; }

  .why-list { grid-template-columns: 1fr; }
  .why-item { padding: 20px 0; }
  .why-item:nth-child(2n) { padding-left: 0; border-left: 0; }

  .indflow { grid-template-columns: repeat(2, 1fr); }
  .indflow a { padding: 12px 14px; }
  .indflow span { font-size: 10.5px; }
}


/* ========== 8. 导航层次感 ========== */
.nav {
  background: rgba(252,250,246,.94) !important;
  border-bottom: 0 !important;
  box-shadow: inset 0 -1px 0 var(--line);
  transition: background .35s ease, box-shadow .35s ease;
}
.nav.scrolled {
  background: rgba(252,250,246,.99) !important;
  box-shadow: inset 0 -1px 0 rgba(27,25,22,.08),
              0 12px 34px -24px rgba(27,25,22,.6);
}
.nav-links a { transition: color .25s; }
.nav-links a.on { color: var(--ink); }
.nav-links a.on::after { width: 100%; }

/* ========== 9. 工厂实景图位 ========== */
.factory-photo {
  margin: clamp(34px, 4.4vw, 56px) 0 0;
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #E7E0D3;
  aspect-ratio: 1200 / 420;
}
.factory-photo svg { width: 100%; height: 100%; display: block; }
.factory-photo .ph-tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  background: rgba(244,240,233,.92); color: var(--ink-2);
  padding: 5px 10px;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}

/* ========== 10. 地图占位 ========== */
.map-box {
  margin-top: 30px;
  position: relative;
  border: 1px solid rgba(244,240,233,.18);
  overflow: hidden;
  aspect-ratio: 600 / 260;
}
.map-box svg { width: 100%; height: 100%; display: block; }
.map-tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  background: rgba(35,48,42,.88); color: rgba(244,240,233,.72);
  padding: 4px 9px;
  border-top: 1px solid rgba(244,240,233,.15);
  border-right: 1px solid rgba(244,240,233,.15);
}

@media (max-width: 640px) {
  .factory-photo { aspect-ratio: 4 / 3; }
  .map-box { aspect-ratio: 4 / 3; margin-top: 24px; }
}


/* ========== 11. 证书展示位 ========== */
.craft-foot { display: block; }
.cert-block { width: 100%; }
.cert-hint {
  margin-left: 12px; font-size: 10px; letter-spacing: .08em;
  color: var(--muted); text-transform: none;
}
.certs-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: 18px; max-width: 780px;
}
.cert { margin: 0; }
.cert-img {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: #FBF9F5;
  display: flex; align-items: center; justify-content: center;
  transition: background .35s, border-color .35s, transform .35s;
}
.cert:hover .cert-img { background: #fff; border-color: #C9C2B6; transform: translateY(-2px); }
.cert-img svg { width: 64%; height: auto; }
.cert figcaption {
  margin-top: 9px; font-size: 11.5px; line-height: 1.45; color: var(--ink-2);
}
.cert figcaption i {
  display: block; font-style: normal;
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  color: var(--muted); margin-top: 3px;
}
.craft-foot .craft-note { margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--line); max-width: 60ch; }

@media (max-width: 900px) {
  .certs-row { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .certs-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cert-hint { display: block; margin: 4px 0 0; }
}


/* ========== 12. 首屏图位：有照片用照片，没照片用矢量图 ========== */
.hero-shot {
  position: relative;
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.hero-shot.is-fallback img { display: none; }
.hero-shot img + svg { display: none; }   /* 有图才隐藏矢量图，没图时仍然显示 */
.hero-shot svg { width: 100%; max-width: 620px; height: auto; }
.hero-shot img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 640px) {
  }


/* ========== 13. 首屏右侧白色分屏：让白底产品图自然融入 ========== */
@media (max-width: 1080px) {
  }


/* ========== 14. 透明底：直接落在米色背景上，去掉分屏 ========== */
/* ========== 15. 首屏三段式：做 / 存 / 发 ========== */
.hero-note {
  display: flex; flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}
.hero-note span {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--muted);
  font-family: var(--sans);
}
.hero-note i {
  font-style: normal;
  width: 22px; height: 22px; flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #CFC7B8;
  border-radius: 2px;
  font-size: 11px; color: var(--green);
  background: rgba(255,255,255,.5);
}
.hero-note b { color: var(--ink); font-weight: 500; }

@media (max-width: 640px) {
  .hero-note { gap: 8px 0; flex-direction: column; align-items: flex-start; }
}


/* 三段式改竖排，避免折行 */
.hero-note {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 9px !important;
}
.hero-note span { font-size: 13px; }
.hero-note i {
  width: 24px; height: 24px; flex: 0 0 24px;
  font-size: 12px;
  border-color: #C6BEAF;
  background: #FBFAF6;
}


/* ============ 16. 收尾修正 ============ */

/* 业务线图标：从右上角挪到右下角当水印，不抢标题 */
.biz .art {
  right: 22px; top: auto; bottom: 26px;
  width: 62px; height: 62px;
  opacity: .22;
  transition: opacity .4s;
}
.biz a:hover .art { opacity: .38; }

/* 三段式方框：加深，看得见 */
.hero-note i {
  border-color: #B5AB97 !important;
  background: #FFFFFF !important;
  color: var(--green) !important;
  font-weight: 500;
}

/* 大卡图片裁切位置：偏上，保住顶部 */
.bento-main .bento-ic img { object-position: center !important; }

/* 小卡线稿再大一点，和实拍等重 */
.bento-ic svg { height: 86% !important; max-width: 90% !important; }

/* 产品图位加一条极淡底边，形成"图区"感 */


/* 云仓数据卡：字收一点，减少空洞感 */
.cloud-stats .n { letter-spacing: 0; }

/* 工序链：给每列留出右边距，文字不顶边 */
.craft-step { padding-right: 18px; }
.craft-step:last-child { padding-right: 0; }

/* 三条业务线底部双线：去掉卡片组的底边，只留 section 分隔 */
.biz { border-bottom: 0; }

/* 案例卡图片：统一 4:3，图例居中 */
.case .ph { background: #EDE7DB; }

/* 优势区左栏补一点内容密度 */
.why-head .link-arrow { margin-top: 28px; }

@media (max-width: 900px) {
  .biz .art { width: 48px; height: 48px; bottom: 20px; right: 18px; }
}


/* 工序链与流程条区分：工序用大号淡数字，流程保持小号 */
.craft-step .no {
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  opacity: .16;
  font-weight: 500;
}
.craft-step h4 { margin-top: 6px; }


/* ============ 17. 后台上传图片的前台样式 ============ */
.band .eq img {
  width: 100%; height: 72px;
  object-fit: cover;
  margin: 10px 0 12px;
  display: block;
  border-radius: 2px;
}
.factory-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cert-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-shot img { object-fit: contain; }


/* ============ 18. 快速定位 ============ */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
  opacity: .55;
}
.read-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  opacity: .55;
  transition: width .1s linear;
}

/* 回顶按钮跟随 dock 弱化，不再单独抢色 */
.dock a.to-top { background: rgba(47,64,56,.55); }
.dock a.to-top:hover { background: var(--green); }

@media (max-width: 640px) {
  .read-progress { height: 2px; opacity: .45; }
}
