/* ============================================================
   Advantage — page-advantage-custom.php 使用
   配合主题 header / footer。仅作用于模板内部的 section。
   ============================================================ */

/* ---- 通用容器（主题已有 .container，此处做内边距兜底） ---- */
.advantage-custom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section 通用 ---- */
.advantage-custom .advantage-section {
  position: relative;
  padding: 88px 0;
  background: #ffffff;
}
.advantage-custom .advantage-section--soft {
  background: linear-gradient(180deg, #f5f8ff 0%, #eef3ff 100%);
}
.advantage-custom .advantage-section__head {
  max-width: 780px;
  margin: 0 auto 46px;
  text-align: center;
}
.advantage-custom .advantage-section__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  background: #e8edff;
  color: #1D3FAE;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 999px;
}
.advantage-custom .advantage-section__title {
  margin: 0 0 14px;
  font-size: 34px;
  color: #1D2B5B;
}
.advantage-custom .advantage-section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, #2E5BFF, #F7A93D);
  border-radius: 3px;
}
.advantage-custom .advantage-section__desc {
  margin: 0 auto;
  color: #5b6490;
  font-size: 15px;
  line-height: 1.85;
}

/* ============================================================
   模块 1 · Hero 优势介绍 + 资质卡片
   ============================================================ */
.advantage-custom .advantage-section--hero {
  position: relative;
  padding: 80px 0 96px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 30%, rgba(247, 169, 61, 0.22) 0, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(255, 255, 255, 0.08) 0, transparent 40%),
    linear-gradient(135deg, #1D3FAE 0%, #2E5BFF 100%);
}
.advantage-custom .advantage-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.advantage-custom .advantage-hero__kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;
}
.advantage-custom .advantage-hero__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.advantage-custom .advantage-hero__desc {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.9;
}
.advantage-custom .advantage-hero__desc strong {
  color: #F7A93D;
  font-weight: 700;
}
.advantage-custom .advantage-hero__bullets {
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}
.advantage-custom .advantage-hero__bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
}
.advantage-custom .advantage-hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 2px;
  background: #F7A93D;
  border-radius: 2px;
}
.advantage-custom .advantage-hero__actions {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}
.advantage-custom .advantage-hero__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.advantage-custom .advantage-hero__actions .btn--primary {
  color: #1D3FAE;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.advantage-custom .advantage-hero__actions .btn--primary:hover {
  transform: translateY(-2px);
  background: #F7A93D;
  border-color: #F7A93D;
  color: #fff;
}
.advantage-custom .advantage-hero__actions .btn--ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.advantage-custom .advantage-hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.advantage-custom .advantage-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.advantage-custom .advantage-hero__badges span {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

/* 右侧资质卡片网格 */
.advantage-custom .advantage-hero__certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(15, 28, 85, 0.35);
  min-height: 440px;
}
.advantage-custom .advantage-cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 18px 14px 16px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  color: #1D2B5B;
  min-height: 200px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.advantage-custom .advantage-cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}
.advantage-custom .advantage-cert-card__img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  line-height: 0;
  font-size: 0;
}
.advantage-custom .advantage-cert-card figcaption {
  font-size: 14px;
  font-weight: 700;
  color: #1D2B5B;
  line-height: 1.4;
  margin-top: auto;
}
.advantage-custom .advantage-cert-card__logo { display: none; }
.advantage-custom .advantage-cert-card strong { display: block; font-size: 14px; color: #1D2B5B; }
.advantage-custom .advantage-cert-card span { display: none; }

/* ============================================================
   模块 2 · 12 卡片优势网格
   ============================================================ */
.advantage-custom .advantage-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.advantage-custom .advantage-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 14px;
  background: #fff;
  border: 1px solid #e5eaf4;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(29, 63, 174, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.advantage-custom .advantage-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 91, 255, 0.35);
  box-shadow: 0 14px 34px rgba(29, 63, 174, 0.14);
}
.advantage-custom .advantage-feature-card__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  padding: 0;
  background: linear-gradient(135deg, #2E5BFF, #1D3FAE);
  color: #fff;
  border-radius: 16px;
  border: 0;
  box-shadow: 0 10px 22px rgba(46, 91, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-family: "Apple Color Emoji","Segoe UI Symbol","Noto Color Emoji",sans-serif;
}
.advantage-custom .advantage-feature-card__icon::before {
  content: "✓";
  display: inline-block;
  line-height: 1;
}
.advantage-custom .advantage-feature-card__icon::after {
  content: none;
  display: none;
}
.advantage-custom .advantage-feature-card__icon.icon-user::before    { content: "👤"; }
.advantage-custom .advantage-feature-card__icon.icon-target::before  { content: "◎"; font-size: 28px; }
.advantage-custom .advantage-feature-card__icon.icon-shield::before  { content: "🛡"; }
.advantage-custom .advantage-feature-card__icon.icon-track::before   { content: "⟶"; font-size: 28px; }
.advantage-custom .advantage-feature-card__icon.icon-bolt::before    { content: "⚡"; font-size: 26px; }
.advantage-custom .advantage-feature-card__icon.icon-file::before    { content: "▤"; font-size: 26px; }
.advantage-custom .advantage-feature-card__icon.icon-grid::before    { content: "▦"; font-size: 26px; }
.advantage-custom .advantage-feature-card__icon.icon-search::before  { content: "🔍"; }
.advantage-custom .advantage-feature-card__icon.icon-link::before    { content: "🔗"; }
.advantage-custom .advantage-feature-card__icon.icon-doc::before     { content: "📄"; }
.advantage-custom .advantage-feature-card__icon.icon-chat::before    { content: "💬"; }
.advantage-custom .advantage-feature-card__icon.icon-recycle::before { content: "↺"; font-size: 26px; }

.advantage-custom .advantage-feature-card strong {
  display: block;
  color: #1D2B5B;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 0;
  margin: 0;
}

/* ============================================================
   模块 3 · 四大核心优势（VS 对比）
   ============================================================ */
.advantage-custom .advantage-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 12px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(29, 63, 174, 0.12);
}
.advantage-custom .advantage-compare__side {
  padding: 40px 36px 44px;
}
.advantage-custom .advantage-compare__side--primary {
  background: linear-gradient(135deg, #1D3FAE, #2E5BFF);
  color: #fff;
}
.advantage-custom .advantage-compare__side--primary h3 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 14px;
  color: #fff;
  font-size: 22px;
}
.advantage-custom .advantage-compare__side--primary h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: #F7A93D;
  border-radius: 3px;
}
.advantage-custom .advantage-compare__side--primary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.advantage-custom .advantage-compare__side--primary li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  text-align: left;
}
.advantage-custom .advantage-compare__side--primary li::before,
.advantage-custom .advantage-compare__side--primary li::after {
  content: none;
  display: none;
}
.advantage-custom .advantage-compare__side--primary li .advantage-compare__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 169, 61, 0.18);
  border: 1px solid #F7A93D;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #F7A93D;
  margin: 0;
  padding: 0;
  line-height: 1;
  box-shadow: none;
}
.advantage-custom .advantage-compare__side--primary li > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
}
.advantage-custom .advantage-compare__side--primary li strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  padding: 0;
  line-height: 1.4;
  text-align: left;
}
.advantage-custom .advantage-compare__side--primary li span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  text-align: left;
}
.advantage-custom .advantage-compare__side--primary li:last-child {
  border-bottom: 0;
}

/* ===== 普通生命科学检测（右侧） ===== */
.advantage-custom .advantage-compare__side--contrast h3 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 14px;
  color: #1D2B5B;
  font-size: 22px;
}
.advantage-custom .advantage-compare__side--contrast h3::before { content: ""; }
.advantage-custom .advantage-compare__side--contrast h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: #e5eaf4;
  border-radius: 3px;
}
.advantage-custom .advantage-compare__side--contrast ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.advantage-custom .advantage-compare__side--contrast li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px dashed #e5eaf4;
  line-height: 1.7;
  color: #5b6490;
  text-align: left;
}
.advantage-custom .advantage-compare__side--contrast li::before,
.advantage-custom .advantage-compare__side--contrast li::after {
  content: none;
  display: none;
}
.advantage-custom .advantage-compare__side--contrast li .advantage-compare__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f5fc;
  border: 1px solid #e5eaf4;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #b6bfd9;
  margin: 0;
  padding: 0;
  line-height: 1;
  box-shadow: none;
}
.advantage-custom .advantage-compare__side--contrast li > div:last-child {
  flex: 1 1 auto;
  min-width: 0;
}
.advantage-custom .advantage-compare__side--contrast li strong {
  display: block;
  color: #1D2B5B;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  padding: 0;
  line-height: 1.4;
  text-align: left;
}
.advantage-custom .advantage-compare__side--contrast li span {
  display: block;
  color: #5b6490;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  margin: 0;
  padding: 0;
  text-align: left;
}
.advantage-custom .advantage-compare__side--contrast li:last-child {
  border-bottom: 0;
}

/* 对比项图标（字符内容） */
.advantage-custom .advantage-compare__icon {
  font-family: "Apple Color Emoji","Segoe UI Symbol","Noto Color Emoji",sans-serif;
  overflow: visible;
}
.advantage-custom .advantage-compare__icon.icon-shield::before { content: "🛡"; display: inline-block; line-height: 1; }
.advantage-custom .advantage-compare__icon.icon-user::before   { content: "👤"; display: inline-block; line-height: 1; }
.advantage-custom .advantage-compare__icon.icon-track::before  { content: "⟶"; display: inline-block; line-height: 1; }
.advantage-custom .advantage-compare__icon.icon-grid::before   { content: "▦"; display: inline-block; line-height: 1; }
.advantage-custom .advantage-compare__icon.icon-cross::before  { content: "✕"; display: inline-block; line-height: 1; }
.advantage-custom .advantage-compare__icon::after { content: none; display: none; }

/* 中间 VS 图标 */
.advantage-custom .advantage-compare__vs {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.advantage-custom .advantage-compare__vs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

/* 核心亮点胶囊 */
.advantage-custom .advantage-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.advantage-custom .advantage-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e5eaf4;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(29, 63, 174, 0.06);
  color: #1D2B5B;
  font-weight: 700;
}

/* ============================================================
   模块 4 · 检测服务流程（6 步）
   ============================================================ */
.advantage-custom .advantage-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 12px 0;
}
.advantage-custom .advantage-process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 22px;
  background: #fff;
  border: 1px solid #e5eaf4;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(29, 63, 174, 0.06);
}
.advantage-custom .advantage-process__step::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -12px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #2E5BFF, rgba(46, 91, 255, 0.1));
  z-index: 1;
}
.advantage-custom .advantage-process__step:last-child::after {
  display: none;
}
.advantage-custom .advantage-process__icon {
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #2E5BFF, #1D3FAE);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(46, 91, 255, 0.12);
}
.advantage-custom .advantage-process__icon span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}
.advantage-custom .advantage-process__step strong {
  display: block;
  color: #1D2B5B;
  font-size: 16px;
}
.advantage-custom .advantage-process__step--title-only {
  padding: 18px 12px;
}
.advantage-custom .advantage-process__step--title-only strong {
  margin: 0;
  font-weight: 700;
}
.advantage-custom .advantage-process__step span {
  font-size: 13px;
  line-height: 1.6;
}

/* ============================================================
   模块 5 · 检测能力与交付口径
   ============================================================ */
.advantage-custom .advantage-capability {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.advantage-custom .advantage-capability__col {
  background: #fff;
  border: 1px solid #e5eaf4;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(29, 63, 174, 0.08);
  overflow: hidden;
}
.advantage-custom .advantage-capability__col-title {
  margin: 0;
  padding: 18px 24px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #2E5BFF, #1D3FAE);
}
.advantage-custom .advantage-capability__col:last-child .advantage-capability__col-title {
  background: linear-gradient(135deg, #F7A93D, #d07f1d);
}
.advantage-custom .advantage-capability__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #eef2ff;
}
.advantage-custom .advantage-capability__row:nth-child(even) {
  background: #f5f8ff;
}
.advantage-custom .advantage-capability__row:last-child {
  border-bottom: 0;
}
.advantage-custom .advantage-capability__row strong {
  color: #1D2B5B;
  font-size: 14px;
  padding-top: 2px;
}
.advantage-custom .advantage-capability__row span {
  color: #5b6490;
  font-size: 14px;
  line-height: 1.75;
}

/* CTA 条 */
.advantage-custom .advantage-capability__cta {
  margin-top: 32px;
  padding: 28px 36px;
  background: linear-gradient(135deg, #1D3FAE, #2E5BFF);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(29, 63, 174, 0.25);
}
.advantage-custom .advantage-capability__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.advantage-custom .advantage-capability__cta h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
}
.advantage-custom .advantage-capability__cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
}
.advantage-custom .advantage-capability__cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.advantage-custom .advantage-capability__cta .btn--primary {
  background: #fff;
  color: #1D3FAE;
  border: 1px solid #fff;
}
.advantage-custom .advantage-capability__cta .btn--primary:hover {
  background: #F7A93D;
  border-color: #F7A93D;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1199px) {
  .advantage-custom .advantage-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .advantage-custom .advantage-process {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }
  .advantage-custom .advantage-process__step::after {
    display: none;
  }
  .advantage-custom .advantage-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .advantage-custom .advantage-section {
    padding: 64px 0;
  }
  .advantage-custom .advantage-section--hero {
    padding: 56px 0 64px;
  }
  .advantage-custom .advantage-hero__inner,
  .advantage-custom .advantage-capability {
    grid-template-columns: 1fr;
  }
  .advantage-custom .advantage-hero__title {
    font-size: 32px;
  }
  .advantage-custom .advantage-section__title {
    font-size: 26px;
  }
  .advantage-custom .advantage-compare {
    grid-template-columns: 1fr;
  }
  .advantage-custom .advantage-compare__vs {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  .advantage-custom .advantage-capability__cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .advantage-custom .advantage-hero__title {
    font-size: 26px;
  }
  .advantage-custom .advantage-hero__certs {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 12px;
  }
  .advantage-custom .advantage-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantage-custom .advantage-process {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantage-custom .advantage-highlights {
    grid-template-columns: 1fr;
  }
  .advantage-custom .advantage-capability__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 18px;
  }
  .advantage-custom .advantage-capability__cta {
    padding: 22px;
  }
}
