/* ==========================================================================
   AntCMS - Web_1 主题首页专属样式 (index.css)
   基于 H:\gemini\web_1\index.html 视觉设计规范提炼与模块化封装
   ========================================================================== */

:root {
  --b: #0f62fe;
  --d: #0b1220;
  --t: #101828;
  --m: #667085;
  --l: #e4e7ec;
  --s: #f7f9fc;
  --ok: #12b76a;
}

/* 页面通用布局容器 */
.c {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

/* 按钮扩展与辅助 */
.btn-primary {
  background: var(--b);
  color: #fff !important;
  transition: background .2s ease, transform .15s ease;
}
.btn-primary:hover {
  background: #0b4ec7;
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--l);
  background: #fff;
  color: #344054 !important;
  transition: all .2s ease;
}
.btn-ghost:hover {
  border-color: #b8cff8;
  background: #f8fbff;
  color: var(--b) !important;
}
.btn-light {
  background: #fff;
  color: #101828 !important;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* ===== 首页通栏大图 Banner (100% 全屏铺满) ===== */
.home-banner {
  width: 100%;
  overflow: hidden;
  background: #dae6f4;
  line-height: 0;
  border-bottom: 1px solid var(--l);
}
.home-banner .banner-inner {
  width: 100%;
  margin: 0;
  padding: 0;
}
.home-banner .banner-img {
  width: 100%;
  height: auto;
  min-height: 180px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ===== 首屏 Hero 区域 ===== */
.hero {
  padding: 32px 0 58px;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}
.kicker {
  display: block;
  color: var(--b);
  font-weight: 900;
  letter-spacing: 1.15px;
  font-size: 13px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin: 12px 0 18px;
  letter-spacing: -1px;
  color: var(--t);
  font-weight: 800;
}
.hero p {
  font-size: 16.5px;
  color: var(--m);
  max-width: 720px;
  margin: 0 0 24px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dce6f7;
  color: #47617f;
  font-size: 11.5px;
  font-weight: 600;
}
.hero-visual {
  aspect-ratio: 4/3;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #dce6f4, #aebbd0);
  box-shadow: 0 20px 40px rgba(16, 24, 40, .08);
}
.hero-visual:before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 16%;
  height: 30%;
  border-radius: 16px;
  background: linear-gradient(145deg, #ccd5df, #7f8b99);
}
.hero-visual:after {
  content: "";
  position: absolute;
  right: 15%;
  top: 17%;
  width: 28%;
  height: 48%;
  border-radius: 14px;
  background: linear-gradient(145deg, #f0f4f8, #8290a1);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}

/* 统计条 Statbar */
.statbar {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--l);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(16, 24, 40, .03);
}
.stat {
  padding: 18px 20px;
  border-right: 1px solid var(--l);
}
.stat:last-child {
  border-right: 0;
}
.stat strong {
  display: block;
  font-size: 21px;
  color: var(--t);
  font-weight: 800;
}
.stat span {
  font-size: 11.5px;
  color: var(--m);
  margin-top: 4px;
  display: block;
}

/* ===== 通用板块 (Section & Header) ===== */
.sec {
  padding: 72px 0;
}
.soft {
  background: var(--s);
}
.sh {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.sh small {
  display: block;
  color: var(--b);
  font-weight: 900;
  letter-spacing: 1.15px;
  font-size: 11.5px;
  text-transform: uppercase;
}
.sh h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 6px 0 0;
  color: var(--t);
  font-weight: 800;
}
.sh p {
  max-width: 650px;
  color: var(--m);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ===== 核心产品分类 (5列网格) ===== */
.catgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.catcard {
  border: 1px solid var(--l);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.catcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16, 24, 40, .08);
  border-color: #b8cff8;
}
.catpic {
  aspect-ratio: 1/1;
  background: linear-gradient(145deg, #eef2f6, #cbd3de);
  position: relative;
  overflow: hidden;
}
.catpic:before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 14%;
  height: 38%;
  border-radius: 13px;
  background: linear-gradient(145deg, #d4dbe3, #7c8896);
}
.catpic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}
.catbody {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.catbody h3 {
  font-size: 16px;
  margin: 0 0 5px;
  color: var(--t);
  font-weight: 700;
}
.catbody p {
  font-size: 12px;
  color: var(--m);
  margin: 0;
  line-height: 1.5;
  flex-grow: 1;
}
.more {
  display: inline-block;
  margin-top: 10px;
  color: var(--b);
  font-size: 12px;
  font-weight: 800;
}

/* ===== 按产品形态找设备 (6列网格) ===== */
.findgrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.finditem {
  border: 1px solid var(--l);
  border-radius: 15px;
  padding: 18px 16px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: block;
}
.finditem:hover {
  transform: translateY(-3px);
  border-color: #b8cff8;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.finditem strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  color: var(--t);
}
.finditem span {
  font-size: 11px;
  color: var(--m);
  display: block;
  line-height: 1.4;
}

/* ===== 热门解决方式 / 为什么选择我们 (4列理由) ===== */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.reason {
  border: 1px solid var(--l);
  border-radius: 17px;
  padding: 20px 18px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: block;
}
.reason:hover {
  transform: translateY(-3px);
  border-color: #b8cff8;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.reason b {
  display: block;
  color: var(--b);
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: 900;
}
.reason strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--t);
}
.reason span {
  font-size: 12.5px;
  color: var(--m);
  line-height: 1.55;
  display: block;
}

/* ===== 应用方案 (主方案 + 4子卡片) ===== */
.solution-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.solution-main {
  border-radius: 22px;
  background: linear-gradient(145deg, #173760, #0e1d31);
  color: #fff;
  padding: 32px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.solution-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 24, 40, .18);
}
.solution-main .solution-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .4s ease, opacity .3s ease;
  opacity: .75;
}
.solution-main:hover .solution-bg {
  transform: scale(1.05);
  opacity: .88;
}
.solution-main:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 29, 49, 0.2) 0%, rgba(14, 29, 49, 0.8) 55%, rgba(14, 29, 49, 0.98) 100%);
  z-index: 2;
  pointer-events: none;
}
.solution-main-content {
  position: relative;
  z-index: 3;
}
.solution-main small {
  color: #a9c7ff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .8px;
}
.solution-main h3 {
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0;
  color: #fff;
}
.solution-main p {
  color: #c9d5e8;
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
}
.solution-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.solution-card {
  border: 1px solid var(--l);
  border-radius: 18px;
  background: #fff;
  padding: 20px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.solution-card:hover {
  transform: translateY(-3px);
  border-color: #b8cff8;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.solution-card h3 {
  font-size: 16.5px;
  margin: 0 0 6px;
  color: var(--t);
}
.solution-card p {
  font-size: 12.5px;
  color: var(--m);
  margin: 0;
  line-height: 1.5;
}

/* ===== 真实案例与样品测试视频 ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video {
  border-radius: 20px;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}
.video:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 24, 40, .2);
}
.video:before {
  content: "▶";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 3;
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.video:hover:before {
  background: var(--b, #0f62fe);
  transform: scale(1.08);
}
.video:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0) 25%, rgba(11, 18, 32, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}
.video img,
.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #000;
  transition: transform .35s ease;
  z-index: 1;
}
.video:hover img,
.video:hover video {
  transform: scale(1.04);
}
.video-cap {
  position: relative;
  padding: 18px 20px;
  z-index: 3;
}
.video-cap small {
  color: #a9c7ff;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 4px;
}
.video-cap h3 {
  font-size: 17.5px;
  line-height: 1.35;
  margin: 0 0 4px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.video-cap span {
  font-size: 12px;
  color: #d0e1fd;
  display: inline-block;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== 关于大为板块 (About Dawei) ===== */
.aboutgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  align-items: center;
}
.aboutmedia {
  aspect-ratio: 4/3;
  border-radius: 24px;
  background: linear-gradient(145deg, #e6ecf4, #bec9d7);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}
.aboutmedia:before {
  content: "FACTORY IMAGE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #758397;
  font-weight: 900;
  font-size: 15px;
}
.aboutmedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}
.abouttext h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 6px 0 14px;
  color: var(--t);
  font-weight: 800;
}
.abouttext p {
  color: var(--m);
  font-size: 14.5px;
  line-height: 1.68;
}
.aboutpoints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.aboutpoints div {
  padding: 12px 14px;
  background: #f8fbff;
  border-left: 3px solid #9fc0ff;
  border-radius: 0 10px 10px 0;
  font-size: 12.5px;
  color: #475467;
  font-weight: 600;
}

/* ===== 4个核心合作优势 (图文交错行) ===== */
.strength-wrap {
  display: grid;
  gap: 26px;
}
.strength-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 10px 0 28px;
  border-bottom: 1px solid #edf1f5;
}
.strength-row:last-child {
  border-bottom: 0;
}
.strength-row.reverse .strength-media {
  order: 2;
}
.strength-row.reverse .strength-copy {
  order: 1;
}
.strength-media {
  min-height: 310px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #e5ebf3, #bcc7d4);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .05);
}
.strength-media:after {
  content: attr(data-label);
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 18, 35, .75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
}
.strength-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.strength-copy {
  position: relative;
  padding: 10px 0;
}
.strength-no {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.strength-no b {
  font-size: 54px;
  line-height: 1;
  color: #d7e4fb;
  letter-spacing: -2px;
}
.strength-no span {
  color: #f07c2b;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.strength-copy h3 {
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--t);
  font-weight: 800;
}
.strength-copy p {
  font-size: 14.5px;
  color: var(--m);
  margin: 0 0 14px;
  line-height: 1.65;
}
.strength-list {
  display: grid;
  gap: 8px;
}
.strength-list div {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  color: #475467;
  line-height: 1.5;
}
.strength-list div:before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--b);
}

/* ===== 技术中心 (3列文章网格) ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.article {
  border: 1px solid var(--l);
  border-radius: 17px;
  padding: 22px 20px;
  background: #fff;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: block;
}
.article:hover {
  transform: translateY(-3px);
  border-color: #b8cff8;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.article small {
  color: var(--b);
  font-weight: 900;
  font-size: 11.5px;
}
.article h3 {
  font-size: 17.5px;
  line-height: 1.45;
  margin: 8px 0 8px;
  color: var(--t);
}
.article p {
  font-size: 12.5px;
  color: var(--m);
  margin: 0;
  line-height: 1.6;
}

/* ===== 合作客户品牌墙 ===== */
.brand-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.brand-logo {
  min-height: 108px;
  border: 1px solid var(--l);
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.brand-logo:hover {
  transform: translateY(-3px);
  border-color: #b9cef7;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
}
.brand-logo .logo-placeholder {
  width: 100%;
  height: 56px;
  border: 1px dashed #cfd7e3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  background: #fafbfc;
}
.brand-caption {
  margin-top: 18px;
  text-align: center;
  color: var(--m);
  font-size: 11.5px;
}

/* ===== 常见问题 FAQ ===== */
.faq details {
  border: 1px solid var(--l);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
  margin-bottom: 12px;
  transition: border-color .15s ease;
}
.faq details[open] {
  border-color: #b8cff8;
}
.faq summary {
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  color: var(--t);
  outline: none;
}
.faq p {
  font-size: 14px;
  color: var(--m);
  margin: 12px 0 0;
  line-height: 1.68;
}

/* ===== 底部号召行动条 (Bottom CTA Band) ===== */
.band {
  margin: 0 auto 70px;
  background: linear-gradient(135deg, #0f62fe 0%, #1649a7 100%);
  color: #fff;
  border-radius: 24px;
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 14px 34px rgba(15, 98, 254, .25);
}
.band h2 {
  font-size: 30px;
  margin: 0 0 6px;
  color: #fff;
  font-weight: 800;
}
.band p {
  margin: 0;
  color: #dbe7ff;
  font-size: 15px;
}

/* ===== 响应式适配 ===== */
@media(max-width: 1000px) {
  .hero-grid, .aboutgrid, .solution-wrap {
    grid-template-columns: 1fr;
  }
  .catgrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .findgrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video:first-child {
    grid-column: 1 / 3;
  }
  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }
  .strength-row, .strength-row.reverse {
    grid-template-columns: 1fr;
  }
  .strength-row.reverse .strength-media,
  .strength-row.reverse .strength-copy {
    order: initial;
  }
  .brand-wall {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media(max-width: 720px) {
  .hero {
    padding: 24px 0 46px;
  }
  .hero-grid {
    gap: 28px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 15px;
  }
  .statbar {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--l);
  }
  .sec {
    padding: 54px 0;
  }
  .sh {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .sh h2 {
    font-size: 27px;
  }
  .catgrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .findgrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .solution-list {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .video {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
  .aboutpoints {
    grid-template-columns: 1fr;
  }
  .reasons {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .strength-media {
    min-height: 220px;
  }
  .strength-no b {
    font-size: 44px;
  }
  .strength-copy h3 {
    font-size: 21px;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .brand-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .brand-logo {
    min-height: 94px;
    padding: 12px;
  }
  .band {
    margin-bottom: 54px;
    padding: 28px 22px;
    align-items: flex-start;
    flex-direction: column;
  }
  .band h2 {
    font-size: 24px;
  }
}
