﻿/* ================= 行业应用与模具 mold.html 专用样式（简洁明亮） ================= */
:root {
  --m-bg: #f7f9fc;        /* 页面底色：浅灰，明亮干净 */
  --m-card: #ffffff;      /* 卡片纯白 */
  --m-border: #e7ebf2;    /* 浅色边框 */
  --m-text: #1f2937;      /* 主文字：深灰 */
  --m-title: #111827;     /* 大标题：近黑 */
  --m-sub: #6b7280;       /* 次级文字：中灰 */
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, .06);
}
body {
  background: var(--m-bg);
  color: var(--m-text);
}

/*---------- 首屏轮播文字增强：底部渐变压暗，保证白字可读 ----------*/
#hero .swiper-item::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 60%);
  pointer-events: none;
}
#hero .swiper-text { z-index: 2; }
#hero .swiper-text h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
#hero .swiper-text p { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.3); }

/*---------- 区块通用 ----------*/
#industries, #molds {
  padding: 88px 0 96px;
}
#molds {
  background: var(--m-card);
  border-top: 1px solid var(--m-border);
}
/* 模具展示区收窄：容器限制更小宽度并居中 */
#molds .container {
  max-width: 1280px;
  width: 92%;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--m-title);
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
/* 简洁单色小横杠，替代渐变 */
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: #111827;
}
.section-head p {
  margin-top: 14px;
  color: var(--m-sub);
  font-size: 15px;
  letter-spacing: 1px;
}

/*---------- 行业应用 ----------*/
.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }

.industry-card {
  background: var(--m-card);
  border: 1px solid var(--m-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
  border-color: #cdd5e0;
  cursor: pointer;
}
.industry-card.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .25);
}
.industry-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f6;
}
/* 旧内核（Chromium <88）不支持 aspect-ratio：用 padding 撑起 4:3 */
@supports not (aspect-ratio: 4 / 3) {
  .industry-media { height: 0; padding-bottom: 75%; position: relative; }
  .industry-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}
.industry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.industry-card:hover .industry-media img { transform: scale(1.05); }
.industry-body { padding: 18px 20px 20px; }
.industry-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--m-text);
  letter-spacing: .5px;
}
.industry-body p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--m-sub);
}
.industry-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

/*---------- 模具展示（参考图：图片 + 标题栏 + 参数表） ----------*/
.mold-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .mold-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .mold-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .mold-grid { grid-template-columns: repeat(4, 1fr); } }

.mold-card {
  background: var(--m-card);
  border: 1px solid var(--m-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex;
  flex-direction: column;
}
.mold-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
  border-color: #cdd5e0;
}
.mold-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
/* 旧内核不支持 aspect-ratio 的兜底：由内容撑起，加最小高度 */
@supports not (aspect-ratio: 4 / 3) {
  .mold-media { min-height: 260px; }
}
.mold-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .5s ease;
}
.mold-card:hover .mold-media img { transform: scale(1.05); }
/* 简洁明亮标题栏：浅灰底 + 深色文字 */
.mold-title {
  background: #f1f5f9;
  color: var(--m-title);
  border-top: 1px solid var(--m-border);
  border-bottom: 1px solid var(--m-border);
  text-align: center;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}
.mold-info {
  margin: 0;
  padding: 10px 16px 14px;
  flex: 1;
}
.mold-info > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 2px;
  border-bottom: 1px dashed #edf0f5;
  font-size: 13px;
}
.mold-info > div:last-child { border-bottom: none; }
.mold-info dt {
  color: var(--m-sub);
  letter-spacing: 1px;
  white-space: nowrap;
}
.mold-info dd {
  color: var(--m-text);
  font-weight: 500;
  text-align: right;
  margin: 0;
}
