/* Home page (2026-11-27 rebuild), the blocks below the carousel. Markup: home.mjs.
   The carousel and announcement bar keep their old rules in home-hero.css (scoped to .home-hero);
   headings, buttons and section spacing come from site.css. */

/* --- 安全智能纵深防御体系 --------------------------------------------------------------- */
.home-defense .section-heading {
  margin-bottom: 30px;
}

.home-defense-figure {
  max-width: 1180px;
  margin: 0 auto;
}

.home-defense-figure img {
  width: 100%;
  height: auto;
}

/* --- 用户中心 --------------------------------------------------------------------------- */
.home-support {
  color: var(--white);
  background: #0f6fb0 url("/assets/images/home-yhzx-1600.webp") center / cover no-repeat;
}

.home-support-inner {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0;
}

.home-support a {
  color: var(--white);
}

.home-support-kicker {
  margin: 0 0 14px;
  font-family: var(--falcon-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
}

.home-support h2 {
  margin: 0;
  font-family: var(--falcon-font);
  font-size: 46px;
  font-weight: 500;
  line-height: 1.3;
}

.home-support h2 a {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 0.9em;
}

.home-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.home-support-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  line-height: 1.5;
}

.home-support-links img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.home-support a:hover,
.home-support a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* --- 成功用户 --------------------------------------------------------------------------- */
.home-customers .section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.home-customers-count {
  color: #1c6694;
  font-weight: 700;
  white-space: nowrap;
}

.home-industries {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 30px;
}

.home-industry {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 6px 14px;
  color: #1c6694;
  font-family: var(--falcon-font);
  font-size: 20px;
  line-height: 1.35;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.home-industry img {
  width: 58px;
  height: auto;
}

.home-industry:hover,
.home-industry:focus-visible {
  background: #f2f9fd;
}

.home-industry.is-active {
  color: var(--deep);
  font-weight: 500;
  background: #f2f9fd;
  border-color: #cfe4f1;
}

.home-customers-visual {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.home-customers-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 528;
  object-fit: cover;
  transition: transform 400ms ease;
}

.home-customers-visual:hover img,
.home-customers-visual:focus-visible img {
  transform: scale(1.03);
}

/* --- 新闻与动态 ------------------------------------------------------------------------- */
.home-news .section-heading {
  margin-bottom: 36px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.home-news-card:hover,
.home-news-card:focus-within {
  border-color: #cfe0ea;
  box-shadow: var(--shadow);
}

.home-news-cover {
  display: block;
  aspect-ratio: 900 / 383;
  overflow: hidden;
  background: #e9f1f6;
}

.home-news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 24px 20px;
}

.home-news-body h3 {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #333333;
  font-family: var(--falcon-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-news-body h3 a:hover,
.home-news-body h3 a:focus-visible {
  color: var(--blue);
}

.home-news-summary {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
}

.home-news-meta a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--blue);
  font-weight: 500;
}

.home-news-meta a i {
  font-size: 18px;
}

.home-news-meta a:hover,
.home-news-meta a:focus-visible {
  text-decoration: underline;
}

.home-news-more {
  margin: 34px 0 0;
  text-align: center;
}

.home-news-more .btn {
  min-width: 160px;
}

@media (max-width: 991px) {
  .home-support-inner {
    min-height: 340px;
  }

  .home-support h2 {
    font-size: 38px;
  }

  .home-industries {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-support {
    background-image: url("/assets/images/home-yhzx-768.webp");
  }

  .home-support-inner {
    min-height: 260px;
    padding: 48px 0;
  }

  .home-support-kicker {
    margin-bottom: 10px;
    font-size: 18px;
    letter-spacing: 0.4em;
  }

  .home-support h2 {
    font-size: 28px;
    letter-spacing: 0.18em;
  }

  .home-support-links {
    gap: 10px 22px;
    margin-top: 22px;
  }

  .home-support-links a {
    gap: 6px;
    font-size: 16px;
  }

  .home-support-links img {
    width: 26px;
    height: 26px;
  }

  .home-industries {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 22px;
  }

  .home-industry {
    gap: 6px;
    padding: 10px 2px;
    font-size: 14px;
  }

  .home-industry img {
    width: 40px;
  }

  .home-news-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .home-news-body {
    padding: 18px 18px 16px;
  }

  .home-news-body h3 {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-customers-visual img,
  .home-news-card,
  .home-industry {
    transition: none;
  }

  .home-customers-visual:hover img,
  .home-customers-visual:focus-visible img {
    transform: none;
  }
}
