/* ============================================================
   Xintebian Distributor Page — 外部样式表
   配色/字体对齐 index.html（Elementor 风格）：
   主色 #0F172A / 强调绿 #0b7a32 / 浅灰 #F1F1F1 / 正文 #333
   标题 Saira / 正文 Inter / 按钮胶囊
   ============================================================ */

:root {
  --navy: #0F172A;
  --navy-2: #1a2332;
  --blue: #0b7a32;
  --cyan: #0f8a3a;
  --ink: #333333;
  --muted: #5b6570;
  --line: #e5e7eb;
  --pale: #F1F1F1;
  --pale-blue: #eef4f0;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, .10);
  --radius: 18px;
  --max: 1160px;
}



.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- 按钮（胶囊） ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 50px;
  padding: 13px 19px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}

.btn-primary {
  color: #fff!important;
  background: var(--blue);
  box-shadow: 0 7px 18px rgba(11, 122, 50, .18);
}

.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--navy);
  border: 1px solid #c9d2d9;
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, #f5f6f8 0%, #eef1f4 57%, #e8ecf0 100%);
  padding: 150px 0 68px;
}

.hero:before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(11, 122, 50, .08);
  border-radius: 50%;
  right: -170px;
  top: -280px;
  box-shadow: 0 0 0 52px rgba(11, 122, 50, .02), 0 0 0 105px rgba(11, 122, 50, .015);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 54px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}

.eyebrow:before {
  content: "";
  width: 25px;
  height: 2px;
  background: var(--cyan);
}

h1 {
  color: var(--navy);
  font-size: clamp(37px, 4.4vw, 57px);
  letter-spacing: -.045em;
  line-height: 1.1;
  margin: 18px 0 20px;
  max-width: 620px;
}

.hero-copy {
  color: #4b5563;
  font-size: 16px;
  max-width: 560px;
  margin: 0 0 28px;
}

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

.micro-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 32px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

.micro-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.check {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--cyan);
  font-size: 10px;
  font-weight: 800;
}

.hero-visual {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-panel {
  width: 100%;
  max-width: 505px;
  height: 360px;
  border-radius: 24px;
  background: linear-gradient(145deg, #0F172A, #14532d 68%, #166534);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(15, 23, 42, .2);
}

.visual-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(120deg, black, transparent 78%);
}

.visual-caption {
  position: absolute;
  left: 26px;
  bottom: 22px;
  color: #dbe7e0;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 2;
}

.visual-tag {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 3;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: .08em;
}

.transformer-svg {
  width: 100%;
  max-width: 470px;
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .18));
}

.floating-note {
  position: absolute;
  z-index: 4;
  right: -10px;
  bottom: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 15px 18px;
  box-shadow: var(--shadow);
  width: 190px;
}

.floating-note b {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.floating-note small {
  color: #5b6570;
  font-size: 10px;
  display: block;
  margin-top: 3px;
}

/* ---------- Section ---------- */

.section-page {
  padding: 80px 0;
}

.section-soft {
  background: var(--pale);
}

.section-head {
  max-width: 690px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

h2 {
  margin: 13px 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -.035em;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 产品卡片 ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px 20px;
  background: #fff;
  transition: .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #bcd6c2;
}

.product-card h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 15px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.market-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}

.market-pill {
  font-size: 12px;
  font-weight: 700;
  color: #3f5a48;
  border: 1px solid #dbe6de;
  background: #fff;
  padding: 8px 14px;
  border-radius: 30px;
}

/* ---------- 合作对象卡片 ---------- */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.partner-card {
  padding: 27px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.partner-card .big-no {
  font-size: 28px;
  font-weight: 800;
  color: #d7e4da;
  line-height: 1;
}

.partner-card h3 {
  color: var(--navy);
  font-size: 15px;
  margin: 17px 0 8px;
}

.partner-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.fit-note {
  margin: 24px auto 0;
  max-width: 830px;
  text-align: center;
  color: #55656b;
  font-size: 12px;
}

/* ---------- 经销商卡片 ---------- */

.distributor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}

.distributor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px 19px;
  display: flex;
  flex-direction: column;
  min-height: 255px;
  transition: .2s ease;
}

.distributor-card:hover {
  transform: translateY(-3px);
  border-color: #bcd6c2;
  box-shadow: var(--shadow);
}

.dist-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 17px;
}

.dist-region {
  color: var(--blue);
  background: #eef4f0;
  border-radius: 30px;
  padding: 5px 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dist-country {
  color: #5b6570;
  font-size: 10px;
  font-weight: 700;
}

.distributor-card h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
}

.dist-role {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 17px;
}

.dist-contact {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.dist-contact a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #3a5147;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.dist-contact a:hover {
  color: var(--blue);
}

.dist-contact .dist-icon {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--blue);
  background: #eef3f0;
  font-size: 12px;
  font-weight: 800;
}

.dist-contact strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.dist-contact small {
  display: block;
  color: #6b757f;
  font-size: 9px;
  margin-bottom: 2px;
}

.dist-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #e5e7eb;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.dist-detail:hover {
  color: var(--navy);
}

.dist-footer {
  margin-top: 22px;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d5ded6;
  border-radius: 12px;
  background: #fff;
}

.dist-footer p {
  margin: 0;
  color: #46524a;
  font-size: 12px;
}

.dist-footer p strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 2px;
}

/* ---------- 标题字体（Saira，与 index 一致） ---------- */

h1, h2, h3,
.product-card h3,
.partner-card h3,
.distributor-card h3 {
  font-family: "Saira", "Segoe UI", Arial, sans-serif;
}

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero-grid {
    gap: 25px;
  }

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

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

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    padding: 52px 0 38px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 270px;
  }

  .visual-panel {
    height: 260px;
  }

  .transformer-svg {
    max-width: 350px;
  }

  .floating-note {
    right: 0;
    bottom: 0;
    width: 160px;
    padding: 11px 13px;
  }

  .section-head {
    margin-bottom: 29px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    padding: 15px 13px;
  }

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

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

  .dist-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
