/*
 * 优势模块样式：版式 4
 */
.zpa-advantage-module {
  --zpa-advantage-accent: var(--main_color, #16499c);
  --zpa-advantage-soft-bg: #eef3f9;
  --zpa-advantage-soft-bg-deep: #dde7f5;
  --zpa-advantage-soft-bg-light: #f4f7fb;
  --zpa-advantage-soft-border: rgba(22, 73, 156, 0.14);
  --zpa-advantage-soft-border-strong: rgba(22, 73, 156, 0.22);
  --zpa-advantage-soft-shadow: rgba(22, 73, 156, 0.1);
  --zpa-advantage-soft-shadow-strong: rgba(22, 73, 156, 0.16);
}

.zpa-advantage-card__icon-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  font-weight: 700;
  color: var(--zpa-advantage-accent);
}

.zpa-advantage-module--layout-4 {
  position: relative;
  overflow: visible;
  background: transparent;
}

.zpa-advantage-module--layout-4::before,
.zpa-advantage-module--layout-4::after {
  display: none;
}

.zpa-advantage-module--layout-4 .page-width {
  position: relative;
  z-index: 1;
}

.zpa-advantage-module--layout-4 .zpa-advantage-tabs {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
}

.zpa-advantage-module--layout-4 .zpa-advantage-tabs__nav-wrap {
  position: relative;
  z-index: 2;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  border-bottom: 0;
  box-shadow: none;
}

.zpa-advantage-module--layout-4 .zpa-advantage-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  margin: 0;
  padding: 0;
  padding-bottom: 0;
  border-bottom: 0;
  list-style: none;
}

.zpa-advantage-module--layout-4 .zpa-advantage-tabs__nav-item {
  margin: 0;
  flex: 0 0 auto;
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-height: 60px;
  padding: 10px 4px 18px;
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #111827;
  cursor: pointer;
  transition: color 0.2s ease;
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -0.3px;
  height: 2px;
  border-radius: 999px;
  background: var(--zpa-advantage-accent);
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab:hover {
  color: var(--zpa-advantage-accent);
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab.is-active {
  color: var(--zpa-advantage-accent);
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab__label {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--zpa-advantage-accent);
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.zpa-advantage-module--layout-4 .zpa-advantage-tab--with-icon {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.zpa-advantage-layout4-body {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 40px 0 48px;
  background: var(--zpa-advantage-layout4-bg, var(--zpa-advantage-soft-bg-deep));
  box-shadow: inset 0 24px 30px -18px rgba(15, 23, 42, 0.36);
}

.zpa-advantage-layout4-body .zpa-advantage-tabs__panes {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.zpa-advantage-module--layout-4 .zpa-advantage-pane {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--zpa-advantage-soft-border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.zpa-advantage-module--layout-4 .zpa-advantage-pane.is-active {
  display: grid;
}

.zpa-advantage-module--layout-4 .zpa-advantage-pane--cards {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.zpa-advantage-module--layout-4 .zpa-advantage-pane--cards::before,
.zpa-advantage-module--layout-4 .zpa-advantage-pane--cards::after {
  display: none;
}

.zpa-advantage-module--layout-4 .zpa-advantage-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 30px 30px 26px;
  border-radius: 8px;
  background: #ffffff;
  border: 0;
  box-shadow: 0 14px 34px rgba(32, 61, 120, 0.1), 0 2px 10px rgba(32, 61, 120, 0.04);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card::before,
.zpa-advantage-module--layout-4 .zpa-advantage-product-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card::before {
  top: 0;
  left: 0;
  width: 148px;
  height: 44px;
  background: linear-gradient(135deg, rgba(247, 249, 255, 0.98) 0%, rgba(241, 245, 255, 0.9) 100%);
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card::after {
  top: -18px;
  right: -18px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 46%, rgba(241, 245, 255, 0.9) 0, rgba(241, 245, 255, 0.9) 50px, rgba(241, 245, 255, 0) 51px),
    radial-gradient(circle at 50% 50%, rgba(245, 247, 255, 0.92) 0, rgba(245, 247, 255, 0.92) 104px, rgba(245, 247, 255, 0) 105px);
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__content,
.zpa-advantage-module--layout-4 .zpa-advantage-product-card__actions {
  position: relative;
  z-index: 1;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__content {
  display: grid;
  gap: 14px;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card.is-no-tags .zpa-advantage-product-card__content {
  gap: 12px;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__title {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__desc {
  color: #61718a;
  font-size: 14px;
  line-height: 1.7;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 3px;
  background: #f4f6fb;
  color: #7a869a;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__button {
  min-width: 0;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__button:hover {
  transform: translateY(-2px);
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(32, 61, 120, 0.16), 0 8px 18px rgba(32, 61, 120, 0.08);
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__button--primary {
  background: var(--zpa-advantage-accent);
  color: #ffffff;
  box-shadow: 0 10px 24px var(--zpa-advantage-soft-shadow-strong);
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__button--primary:hover,
.zpa-advantage-module--layout-4 .zpa-advantage-product-card__button--primary:focus,
.zpa-advantage-module--layout-4 .zpa-advantage-product-card__button--primary:active {
  background: var(--zpa-advantage-accent);
  color: #ffffff;
  box-shadow: 0 10px 24px var(--zpa-advantage-soft-shadow-strong);
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__button--secondary {
  background: rgba(255, 255, 255, 0.98);
  color: #69778c;
  border: 1px solid rgba(237, 241, 248, 0.98);
  box-shadow: none;
}

.zpa-advantage-module--layout-4 .zpa-advantage-product-card__button--secondary:hover {
  color: var(--zpa-advantage-accent);
}

@media (max-width: 1200px) {
  .zpa-advantage-layout4-body {
    padding: 24px 0 28px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card {
    padding: 26px 22px 22px;
    box-shadow: 0 14px 30px rgba(32, 61, 120, 0.08), 0 2px 8px rgba(32, 61, 120, 0.035);
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card__title {
    font-size: 17px;
  }
}

@media (max-width: 991px) {
  .zpa-advantage-layout4-body {
    margin-top: -3px;
    padding: 16px 0 28px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tabs__nav {
    gap: 18px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tab__label {
    font-size: 14px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .zpa-advantage-layout4-body {
    margin-top: -3px;
    padding: 14px 0 20px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tabs {
    gap: 0;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tabs__nav-wrap {
    padding: 0 15px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tabs__nav {
    gap: 16px;
    flex-wrap: nowrap;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tab {
    min-height: 52px;
    padding: 6px 2px 12px;
    white-space: nowrap;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tab::after {
    bottom: 2px;
    height: 2px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tab.is-active::after {
    left: 8px;
    right: 8px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tab__icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-tab__icon img {
    width: 18px;
    height: 18px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-pane--cards {
    padding: 0;
    border-radius: 0;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card {
    gap: 14px;
    padding: 24px 18px 20px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card::before {
    width: 120px;
    height: 38px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card::after {
    top: -14px;
    right: -14px;
    width: 176px;
    height: 176px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card__content {
    gap: 12px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card__title {
    font-size: 16px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card__desc {
    font-size: 14px;
    line-height: 1.65;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card__tag {
    min-height: 26px;
    font-size: 12px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card__actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .zpa-advantage-module--layout-4 .zpa-advantage-product-card__button {
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
  }
}
