/* Homepage — same industrial tokens as site.css */
.page-home {
  --home-ink: var(--ink);
  --home-muted: var(--muted);
  --home-line: var(--line);
  --home-line-strong: var(--line-strong);
  --home-accent: var(--accent);
  --home-accent-soft: var(--accent-2);
  --home-paper: var(--panel);
  --home-void: var(--metal-dark);
}

/* —— Banner：左右分栏 + 右侧主视觉（非全屏底图）—— */
.home-banner--split {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vh, 72px) 0;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 85% at 12% 45%, rgba(30, 64, 175, 0.1), transparent 52%),
    linear-gradient(165deg, #06070b 0%, #0e1118 45%, #08090e 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.home-banner__split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
}
@media (max-width: 900px) {
  .home-banner--split {
    min-height: 0;
    padding: 28px 0 44px;
  }
  .home-banner__split {
    grid-template-columns: 1fr;
  }
  .home-banner__figure {
    order: -1;
    max-width: min(100%, 440px);
    margin-inline: auto;
  }
}
.home-banner__copy {
  min-width: 0;
}
.home-banner__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.9);
  margin-bottom: 14px;
}
.home-banner__title {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 15ch;
  margin: 0 0 16px;
  color: #fff;
}
.home-banner__sub {
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.65;
  color: rgba(232, 236, 242, 0.78);
  max-width: 38rem;
  margin: 0 0 28px;
}
.home-banner__figure {
  position: relative;
  margin: 0;
  min-width: 0;
}
.home-banner__figure-ring {
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(30, 64, 175, 0.45), rgba(59, 130, 246, 0.25), transparent 65%);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.home-banner__figure-inner {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(30, 64, 175, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.home-banner__figure-inner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 32% 45%;
  filter: brightness(0.9) contrast(1.06) saturate(0.95);
}
.home-banner__trust {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.home-banner__trust-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 12px;
}
.home-banner__trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.home-banner__trust .trust-badge {
  font-size: 11px;
}
html[dir="rtl"] .home-banner__split {
  direction: rtl;
}
.home-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.home-banner__actions .btn-line {
  display: inline-block;
  padding: 12px 22px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.home-banner__actions .btn-line:hover {
  background: rgba(30, 64, 175, 0.12);
  border-color: rgba(30, 64, 175, 0.45);
  color: #fff;
  box-shadow: 0 0 32px rgba(30, 64, 175, 0.15);
}
.home-banner__actions .btn-solid {
  display: inline-block;
  padding: 12px 22px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 28px rgba(30, 64, 175, 0.35);
  transition: filter 0.2s, transform 0.2s;
}
.home-banner__actions .btn-solid:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* —— Section shell —— */
.home-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.home-section--paper {
  background: linear-gradient(180deg, var(--panel-highlight) 0%, var(--bg-elevated) 100%);
  box-shadow: inset 0 1px 0 var(--bezel-top);
}
.home-section--quiet {
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(110, 179, 255, 0.05), transparent 50%),
    linear-gradient(180deg, #0a0c12 0%, #08090d 100%);
}

/* 公司实景：取消与上一区块之间的顶部分隔线 */
#factory.home-section {
  border-top: none;
  padding: 44px 0 48px;
}
#factory .home-section__lead {
  margin-bottom: 12px;
}

/* —— Products: full-section dark + mold bg, white typography —— */
.home-section--products {
  position: relative;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background-color: #050810;
  background-image:
    linear-gradient(165deg, rgba(4, 8, 16, 0.94) 0%, rgba(8, 18, 32, 0.88) 45%, rgba(4, 10, 20, 0.93) 100%),
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(30, 64, 175, 0.1), transparent 50%),
    url("https://images.unsplash.com/photo-1581092160562-40aa08f7880e?auto=format&fit=crop&w=2200&q=82");
  background-size: auto, auto, cover;
  background-position: 0 0, 0 0, 50% 42%;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(30, 64, 175, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.4);
}
.home-section--products::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(180, 200, 230, 0.07) 0 1px, transparent 1.6px),
    linear-gradient(90deg, rgba(40, 72, 120, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(40, 72, 120, 0.1) 1px, transparent 1px);
  background-size: 20px 20px, 52px 52px, 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, black 14%, black 100%);
}
.home-section--products > .container,
.home-section--products .home-products__stage {
  position: relative;
  z-index: 1;
}
.home-section--products__intro {
  padding: 72px 0 28px;
}
.home-section--products__intro .home-section__lead {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}
.home-section--products .home-section__title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.home-products__stage {
  width: 100%;
  padding: 12px 0 72px;
  box-sizing: border-box;
  background: none;
  border: none;
  box-shadow: none;
}
.home-section--products .product-showcase--on-dark {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}
.home-section--products .product-showcase--on-dark .product-tile {
  background: rgba(6, 18, 36, 0.72);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.home-section--products .product-showcase--on-dark .product-tile:hover {
  background: rgba(14, 36, 62, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(166, 124, 82, 0.45),
    0 6px 20px rgba(0, 0, 0, 0.35);
}
.home-section--products .product-showcase--on-dark .product-tile__img {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.home-section--products .product-showcase--on-dark .product-tile__body h3 {
  color: #fff;
}
.home-section--products .product-showcase--on-dark .product-tile__body p {
  color: rgba(255, 255, 255, 0.78);
}

.home-section__label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--home-accent-soft);
  margin-bottom: 10px;
}
.home-section__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  display: inline-block;
  min-width: min(100%, 420px);
  position: relative;
}
.home-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: -14px;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  box-shadow: 0 0 16px rgba(30, 64, 175, 0.35);
}
html[dir="rtl"] body.page-home .home-section__title::before {
  left: auto;
  right: 0;
}
.home-section__lead {
  margin: 0 0 32px;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.75;
  color: var(--home-muted);
}

/* —— Section intro（标题 + 导语单列）—— */
.home-section__intro {
  max-width: 52rem;
  margin-bottom: 36px;
}
.home-section__intro .home-section__lead {
  margin-bottom: 0;
}

/* —— Capability：侧栏数据 + 主区流程卡 —— */
.cap-home-shell {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .cap-home-shell {
    grid-template-columns: 1fr;
  }
  .cap-home-rail {
    position: static;
  }
}
.cap-home-rail {
  position: sticky;
  top: 92px;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--home-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cap-home-stats--rail {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0 0 20px;
}
.cap-home-stats--rail .cap-home-stats__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 16px 0;
  margin: 0;
  border-inline-end: none;
  border-bottom: 1px solid var(--home-line);
}
.cap-home-stats--rail .cap-home-stats__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cap-home-stats--rail .cap-home-stats__item:first-child {
  padding-top: 0;
}
.cap-home-rail__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--home-ink);
  border: 1px solid var(--home-line);
  border-radius: 10px;
  background: rgba(30, 64, 175, 0.08);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cap-home-rail__cta:hover {
  border-color: rgba(30, 64, 175, 0.45);
  color: var(--accent);
}
.cap-home-rail__cta-arrow {
  opacity: 0.75;
  font-size: 14px;
}
.cap-home-shell .cap-home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .cap-home-shell .cap-home-grid {
    grid-template-columns: 1fr;
  }
}

.cap-home-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 0;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  border: none;
  background: none;
}
.cap-home-stats__item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  padding: 0 28px 0 0;
  margin: 0 28px 0 0;
  border: none;
  border-inline-end: 1px solid var(--home-line);
}
.cap-home-stats__item:last-child {
  padding-inline-end: 0;
  margin-inline-end: 0;
  border-inline-end: none;
}
.cap-home-stats__value {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  line-height: 1.1;
}
.cap-home-stats__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--home-muted);
  max-width: 14em;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .cap-home-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 32px;
  }
  .cap-home-stats__item {
    width: 100%;
    padding: 14px 0;
    margin: 0;
    border-inline-end: none;
    border-bottom: 1px solid var(--home-line);
  }
  .cap-home-stats__item:first-child {
    padding-top: 0;
  }
  .cap-home-stats__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.cap-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
@media (max-width: 1100px) {
  .cap-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .cap-home-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.cap-home-card {
  padding: 24px 22px 26px;
  background: linear-gradient(165deg, rgba(28, 33, 46, 0.85) 0%, rgba(18, 21, 30, 0.95) 100%);
  position: relative;
  border: 1px solid var(--home-line);
  border-inline-start-width: 3px;
  border-inline-start-color: var(--accent);
  border-radius: 12px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.cap-home-card:hover {
  border-color: rgba(30, 64, 175, 0.28);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(30, 64, 175, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.cap-home-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--home-ink);
  line-height: 1.3;
}
.cap-home-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--home-muted);
}

/* —— Factory：等宽单行（与容器对齐）；小屏 2×2 —— */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 16px);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .factory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.factory-cell {
  position: relative;
  margin: 0;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  /* 统一比例，四格同高同宽 */
  aspect-ratio: 4 / 3;
}
.factory-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.5s ease, opacity 0.3s;
}
.factory-cell:hover img {
  transform: scale(1.04);
  opacity: 1;
}
.factory-cell figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

/* —— Product showcase —— */
.product-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
@media (max-width: 1000px) {
  .product-showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .product-showcase { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .product-showcase--featured {
    grid-template-columns: 1.22fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .product-showcase--featured .product-tile--lead {
    grid-row: 1 / span 2;
    grid-column: 1;
  }
  .product-showcase--featured .product-tile--lead .product-tile__img {
    aspect-ratio: 1 / 1.02;
  }
  .product-showcase--featured > .product-tile:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .product-showcase--featured > .product-tile:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }
  .product-showcase--featured > .product-tile:nth-child(4) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
}
.product-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--panel-highlight), var(--panel));
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.product-tile:hover {
  background: linear-gradient(180deg, #1c2230, #161a24);
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.25);
}
.product-tile__img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-tile__body {
  padding: 20px 18px 24px;
}
.product-tile__body h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.product-tile__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--home-muted);
}

/* —— Clients —— */
.client-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
@media (max-width: 800px) {
  .client-strip { grid-template-columns: repeat(2, 1fr); }
}
.client-slot {
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.95), rgba(14, 17, 24, 0.98));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--home-muted);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.client-slot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  pointer-events: none;
}

.client-group-title {
  margin: 28px auto 18px;
  max-width: 42rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--home-text, #0f172a);
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .client-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.client-logo-item img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.page-home .breadcrumb {
  display: none;
}

html:has(body.page-home) {
  scroll-behavior: smooth;
}
