/* =============================================================
   index.css — 首页特有样式（与 knauf.css 共用基础样式）
   ============================================================= */

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-deep, #061428);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero_bg.webp");
  background-size: cover;
  background-position: center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 20, 40, .88) 0%, rgba(6, 20, 40, .66) 36%, rgba(6, 20, 40, .2) 70%, rgba(6, 20, 40, 0) 100%);
}

.hero__inner {
  position: relative;
  display: flex;
  min-height: 560px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 0 0 62%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 72px 72px 40px;
}

.hero__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 22px;
}

.hero__content h1 {
  font-size: 44px;
  line-height: 1.16;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 24px;
}

.hero__content p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .75);
}

.hero .btn--outline:hover {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

/* ===== 通用 section 头 ===== */
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 16px;
}

.section-head p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ===== Applications ===== */
.applications-section {
  padding: 88px 0;
  background: var(--bg-soft);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 36px;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .10);
  transform: translateY(-4px);
}

.app-card__icon {
  height: 96px;
  display: flex;
  align-items: flex-start;
}

.app-card__icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.app-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.app-card__link svg {
  width: 18px;
  height: 18px;
  fill: var(--brand);
  transition: transform .18s;
}

.app-card__link:hover svg {
  transform: translateX(4px);
}

/* ===== Product Categories (5 columns) ===== */
.product-section {
  padding: 88px 0;
  background: var(--white);
}

.product-grid--five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-grid--three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, .10);
  transform: translateY(-5px);
}

.product-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eef2f6;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__image svg {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card__body {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card__body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}

.product-card__body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  flex: 1;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

.product-card__link svg {
  width: 15px;
  height: 15px;
  fill: var(--brand);
  transition: transform .18s;
}

.product-card:hover .product-card__link svg {
  transform: translateX(3px);
}

/* ===== 响应式 ===== */
@media (max-width: 1180px) {
  .hero__content {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero__scrim {
    background: linear-gradient(180deg, rgba(6, 20, 40, .86) 0%, rgba(6, 20, 40, .66) 55%, rgba(6, 20, 40, .4) 100%);
  }

  .product-grid--five {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .hero__content {
    padding: 56px 0;
  }

  .hero__content h1 {
    font-size: 30px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .product-grid--five {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-grid--five {
    grid-template-columns: 1fr;
  }

  .product-grid--three {
    grid-template-columns: 1fr;
  }
}