@charset "UTF-8";
/* ==========================================================================
   pages.css —— 页面级版式
   只放「某一页/某一类页专用」的规则：首页 hero、内页头图背景、OEM 硬件卡等。
   通用组件一律放 components.css
   ========================================================================== */

/* ==========================================================================
   1. 首页首屏
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(440px, 62vh, 640px);
  padding: clamp(80px, 12vh, 150px) 0;
  background: var(--c-ink);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}

/* 单层渐变遮罩：既保证白字对比度，也避免旧版"遮罩 + 视差"两层叠加 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg,
              rgba(24, 30, 40, .90) 0%,
              rgba(24, 30, 40, .74) 46%,
              rgba(51, 117, 236, .52) 100%);
}

.hero__title {
  margin: 0 0 var(--sp-5);
  color: var(--c-text-invert);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--c-text-invert-soft);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.95;
}

/* ==========================================================================
   2. 内页头图背景
   ========================================================================== */

.page-hero--solution .page-hero__bg {
  background-image: url("../images/solution-top-bg.webp");
}

.page-hero--software .page-hero__bg {
  background-image: url("../images/software-top-bg.webp");
}

.page-hero--cooperate .page-hero__bg {
  background-image: url("../images/cooperate-top-bg.webp");
}

/* ==========================================================================
   3. 图文对栏
   ========================================================================== */

@media (min-width: 992px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-8);
  }

  /* 图在左、文在右 */
  .split--reverse > .split__media {
    order: -1;
  }
}

/* 整卡可点（software / discipline 页用卡片做锚点跳转） */
.card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

/* ==========================================================================
   4. 内容页（solution / oem）
   ========================================================================== */

/* 正文里的小节标题（原 list-blocks-title） */
.subheading {
  margin: var(--sp-7) 0 var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
}

/* 内容页正文栏：比 .prose 宽一些，让产品截图不至于太小 */
.article {
  max-width: 860px;
  margin: 0 auto;
}

.article > .subheading:first-child {
  margin-top: 0;
}

/* 正文配图上下留白 */
.article .img-fluid {
  margin: var(--sp-6) 0;
}

/* 首页公司介绍：居中窄栏 */
.prose--center {
  margin: 0 auto;
  text-align: center;
}

/* 联系商务：单张名片居中 */
.contact-single {
  max-width: 320px;
  margin: 0 auto;
}

/* ==========================================================================
   5. OEM 硬件卡（图在上、文在下，图片用 contain 避免产品图被裁）
   ========================================================================== */

.card--hardware {
  height: 100%;
  overflow: hidden;
  text-align: center;
}

.card--hardware .card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: var(--sp-5);
  background: var(--c-bg-soft);
}

.card--hardware .card__media img {
  max-height: 100%;
  object-fit: contain;
}

.card--hardware .card__body {
  padding: var(--sp-5) var(--sp-4);
}

/* 硬件分组标题 */
.group-title {
  margin: var(--sp-8) 0 var(--sp-5);
  color: var(--c-ink);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  text-align: center;
}
