/* ==========================================================================
   sections.css — 首页 12 个内容区块
   1 Hero / 2 Trust / 3 Products / 4 Applications / 5 Manufacturing
   6 Custom Engineering / 7 Global Reach / 8 Projects / 9 Resources
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: var(--sp-7) 0 var(--sp-8);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* 极淡的工程网格纹理，营造技术感（不使用抽象科技背景） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(21, 40, 61, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(21, 40, 61, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(105deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(105deg, #000 0%, transparent 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__copy .eyebrow {
  margin-bottom: var(--sp-4);
}

.hero__sub {
  margin-top: var(--sp-5);
  max-width: 46ch;
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.68;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sp-6);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.hero__trust strong {
  color: var(--navy);
  font-weight: 700;
}

.hero__trust svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--orange);
}

.hero__figure {
  margin: 0;
}

.hero__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
}

.hero__caption {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero__caption::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  flex: none;
  background: var(--orange);
}

@media (max-width: 991.98px) {
  .hero {
    padding: var(--sp-6) 0 var(--sp-7);
  }

  .hero__img {
    aspect-ratio: 16 / 10;
  }

  .hero__trust {
    margin-top: var(--sp-6);
  }
}

@media (max-width: 575.98px) {
  .eyebrow {
    letter-spacing: 0.11em;
    font-size: 0.6875rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions {
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   2. Trust bar
   -------------------------------------------------------------------------- */

.trust {
  background: var(--navy);
  color: var(--on-dark);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust__item {
  padding: 30px 26px;
  border-left: 1px solid var(--on-dark-line);
}

.trust__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust__value {
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}

.trust__value .plus {
  color: var(--orange);
}

.trust__label {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 30ch;
}

@media (max-width: 991.98px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust__item {
    padding: 24px 20px;
  }

  .trust__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .trust__item:nth-child(n + 3) {
    border-top: 1px solid var(--on-dark-line);
  }
}

@media (max-width: 575.98px) {
  .trust__grid {
    grid-template-columns: 1fr;
  }

  .trust__item {
    border-left: 0;
    padding: 18px 0;
  }

  .trust__item:nth-child(n + 2) {
    border-top: 1px solid var(--on-dark-line);
  }

  .trust__label {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   3. Products
   -------------------------------------------------------------------------- */

.pcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.pcard:hover,
.pcard:focus-visible {
  border-color: #c4ced8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pcard__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.pcard:hover .pcard__media img {
  transform: scale(1.035);
}

.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
  padding: 18px 18px 20px;
}

.pcard__title {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -0.008em;
  color: var(--navy);
  transition: color 0.16s var(--ease);
}

.pcard:hover .pcard__title {
  color: var(--orange-dark);
}

.pcard__desc {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.pcard__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.pcard__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s var(--ease);
}

.pcard:hover .pcard__more svg {
  transform: translateX(3px);
}

@media (max-width: 575.98px) {
  .pcard__body {
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   4. Applications
   -------------------------------------------------------------------------- */

.apps__grid {
  --bs-gutter-y: 1.5rem;
}

.appcard {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy);
  isolation: isolate;
}

.appcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.appcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 26, 41, 0) 34%,
    rgba(13, 26, 41, 0.62) 68%,
    rgba(13, 26, 41, 0.92) 100%
  );
  z-index: 1;
}

.appcard:hover .appcard__img {
  transform: scale(1.045);
}

.appcard__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 26px 28px;
  color: var(--on-dark);
}

.appcard__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}

.appcard__desc {
  margin-top: 8px;
  max-width: 46ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.appcard__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.appcard__link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s var(--ease);
}

.appcard:hover .appcard__link {
  color: var(--orange);
}

.appcard:hover .appcard__link svg {
  transform: translateX(3px);
}

@media (max-width: 575.98px) {
  .appcard {
    aspect-ratio: 4 / 3;
  }

  .appcard__body {
    padding: 20px;
  }

  .appcard__title {
    font-size: 1.0625rem;
  }
}

/* --------------------------------------------------------------------------
   5. Manufacturing
   -------------------------------------------------------------------------- */

.mfg__figure {
  margin: 0;
}

.mfg__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
}

.mfg__body .h2 {
  margin-top: var(--sp-3);
}

.mfg__body .lead {
  margin-top: var(--sp-4);
}

.mfg__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: var(--sp-6);
}

.mfg__item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.mfg__item dt {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--navy);
}

.mfg__item dd {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

.mfg__actions {
  margin-top: var(--sp-6);
}

.mfg__strip {
  margin-top: var(--sp-8);
}

.mfg__thumb {
  margin: 0;
}

.mfg__thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--bg);
}

.mfg__thumb figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .mfg__list {
    grid-template-columns: 1fr;
  }

  .mfg__strip {
    margin-top: var(--sp-7);
  }
}

/* --------------------------------------------------------------------------
   6. Custom engineering（深色）
   -------------------------------------------------------------------------- */

.custom {
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}

.custom h2,
.custom h3 {
  color: var(--on-dark);
}

.custom .lead,
.custom .body-sm {
  color: var(--on-dark-muted);
}

.custom__figure {
  position: relative;
  margin: 0;
}

.custom__figure > img:not(.custom__inset) {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--on-dark-line);
}

.custom__inset {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 34%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 4px solid var(--navy);
  background: var(--navy);
  display: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
}

@media (min-width: 992px) {
  .custom__inset {
    display: block;
  }
}

.custom__body .h2 {
  margin-top: var(--sp-3);
}

.custom__body .lead {
  margin-top: var(--sp-4);
}

.custom__list {
  margin-top: var(--sp-6);
  counter-reset: customstep;
}

.custom__list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--on-dark-line);
}

.custom__list li::before {
  counter-increment: customstep;
  content: "0" counter(customstep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.custom__list strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--on-dark);
}

.custom__list span {
  display: block;
  margin-top: 3px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.custom__actions {
  margin-top: var(--sp-6);
}

/* --------------------------------------------------------------------------
   7. Global reach
   -------------------------------------------------------------------------- */

.global__body .h2 {
  margin-top: var(--sp-3);
}

.global__body .lead {
  margin-top: var(--sp-4);
}

.global__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.global__stat strong {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.global__stat span {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 30ch;
  padding-bottom: 2px;
}

.global__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px;
}

.global__panel + .global__panel {
  margin-top: 16px;
}

.global__panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 16px;
}

.regions li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--text);
}

.regions li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--orange);
}

.support-list {
  margin-top: 16px;
}

.support-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.support-list svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--orange);
}

.support-list strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--navy);
}

.support-list span {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 575.98px) {
  .regions {
    grid-template-columns: 1fr;
  }

  .global__panel {
    padding: 22px;
  }
}

/* --------------------------------------------------------------------------
   8. Projects
   -------------------------------------------------------------------------- */

.section-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 720px;
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.section-note svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex: none;
  color: var(--muted);
}

.proj {
  display: block;
  height: 100%;
}

.proj__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--bg);
}

.proj__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.proj:hover .proj__media img {
  transform: scale(1.035);
}

.proj__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.proj__meta::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--orange);
}

.proj__title {
  margin-top: 8px;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--navy);
  /* 真实案例标题较长（机型 + 交付地），限 2 行保证三张卡高度一致 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj__desc {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj__link {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   9. Resources
   -------------------------------------------------------------------------- */

.post {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 20px;
  border-top: 2px solid var(--navy);
}

.post__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--bg);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.post:hover .post__media img {
  transform: scale(1.035);
}

.post__tag {
  margin-top: 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.post__title {
  margin-top: 8px;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--navy);
  transition: color 0.16s var(--ease);
}

.post:hover .post__title {
  color: var(--orange-dark);
}

.post__excerpt {
  flex: 1;
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.post__link {
  margin-top: 14px;
}
