/* =========================================================
   HX Household · 首页样式
   第 2 步只写了：导航 + 首屏。
   读法：变量 → 基础 → 导航 → 首屏 → 手机适配
   ========================================================= */

/* ---------- 1. 设计变量：整站的遥控器 ---------- */
:root {
  --ink: #0a0a0a;          /* 主文字、深色块 */
  --paper: #ffffff;        /* 主背景 */
  --grey: #f2f2f2;         /* 交替版块 */
  --slate: #93a5bc;        /* 数据条 */
  --red: #aa0000;          /* 只给主按钮 */
  --line: rgba(10, 10, 10, 0.14);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand span {
  font-weight: 400;
  color: #5b5b5b;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.nav a {
  color: #3a3a3a;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- 4. 按钮：全站只有三种 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #2e2e2e;
}

.btn--red {
  background: var(--red);
  color: #fff;
}

.btn--red:hover {
  background: #880000;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---------- 5. 首屏 Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 72vh;;
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 半透明黑遮罩：保证白字在任何图片上都看得清 */
.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

.hero-content {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px);
  color: #fff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* 标签前的小横线：一个很小的细节，但会让页面显得“设计过” */
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.section .eyebrow {
  color: var(--red);
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 44ch;
  margin-top: 24px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- 6. 通用版块 ---------- */
.section {
  padding-block: clamp(80px, 10vw, 140px);
}

.section--grey {
  background: var(--grey);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-lead {
  max-width: 52ch;
  margin-top: 20px;
  font-size: 1.02rem;
  color: #4a4a4a;
}

/* 能力清单：5 列，用顶部细线分隔，不做成一张张卡片 */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.cap {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cap-num {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}

.cap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cap p {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5b5b5b;
}

/* 客户分流双卡：整张卡片可点，图片铺底、文字压在左下 */
.aud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.aud-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  padding: 36px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: 2px;
}

.aud-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* 从下往上的渐变遮罩：保证卡片上的白字清晰 */
.aud-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.05) 30%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

.aud-card:hover img {
  transform: scale(1.04);
}

.aud-body {
  position: relative;
  z-index: 1;
}

.aud-tag {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.aud-body h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.aud-body p {
  max-width: 40ch;
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.aud-link {
  display: inline-block;
  margin-top: 22px;
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.aud-card:hover .aud-link {
  border-color: #fff;
}

/* 关于：左文右图，下方独立一条灰蓝色数字带 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-copy h2 {
  margin-block: 10px 20px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.about-copy p {
  max-width: 46ch;
  margin-bottom: 16px;
  color: #4a4a4a;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}

.about-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey);
  border-radius: 2px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--slate);
  color: #fff;
  border-radius: 2px;
}

.stat-bar strong {
  display: block;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stat-bar span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* 产品线：三张白卡，图片在上、文字在下 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  overflow: hidden;
  background: var(--paper);
  border-radius: 2px;
}

.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-body {
  padding: 20px 22px 24px;
}

.product-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-body p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #5b5b5b;
}

/* 认证墙：左边标题、右边一排认证标签 */
.cert-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.cert-block h3 {
  margin-top: 10px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(10, 10, 10, 0.2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ---------- 7. 手机适配 ---------- */
@media (max-width: 900px) {
  .nav {
    display: none; /* 手机端先隐藏菜单，后面再教展开按钮 */
  }

  .header-inner {
    height: 66px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

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

  .aud-card {
    min-height: 380px;
    padding: 28px;
  }

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

  .about-media {
    order: -1;
  }

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

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

  .cert-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---------- 8. 询盘：深色区，左信息右表单 ---------- */
.contact {
  background: var(--ink);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact-lead {
  max-width: 44ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.contact-list span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact-list a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-list a:hover {
  border-color: #fff;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #fff;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 8px;
}

.form-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  padding-block: clamp(32px, 5vw, 56px);
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: center;
}

.footer-grid .brand {
  color: #fff;
}

.footer-grid .brand span {
  color: rgba(255, 255, 255, 0.55);
}

.footer-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.cap-media {
  margin: 18px 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--grey);
}

.cap-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ---------- 下拉菜单 ---------- */
.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
}

.drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}

.nav-drop:hover .drop-menu,
.nav-drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop-menu a {
  display: block;
  padding: 10px 18px;
  border-bottom: 0;
  white-space: nowrap;
}

.drop-menu a:hover {
  background: var(--grey);
  color: var(--ink);
}
/* 三栏下拉面板 */
.drop-menu--wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 4px 24px;
  min-width: 520px;
  padding: 18px 24px 20px;
}

.drop-col {
  display: flex;
  flex-direction: column;
}

.drop-title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
  padding: 6px 0 8px;
}

/* 产品卡里的详情链接 */
.product-card h3 a {
  color: inherit;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
}

/* 七项导航：压缩间距，避免换行 */
.nav {
  gap: 22px;
  font-size: 13px;
}