:root {
  --ipsec-primary: #1664ff;
  --ipsec-primary-dark: #0c4fd8;
  --ipsec-text: #1d2129;
  --ipsec-muted: #717883;
  --ipsec-border: #e5eaf3;
  --ipsec-soft: #f5f8ff;
  --ipsec-section-soft: #edf4ff;
  --ipsec-white: #ffffff;
  --ipsec-font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --ipsec-container: 1360px;
  --ipsec-page-width: 1920px;
  --ipsec-section-y: 60px;
  --ipsec-title-size: 27px;
  --ipsec-title-line: 38px;
  --ipsec-subtitle-size: 18px;
  --ipsec-subtitle-line: 30px;
  --ipsec-small-size: 14px;
  --ipsec-body-line: 24px;
  --ipsec-card-title-size: 20px;
  --ipsec-card-title-line: 30px;
  --ipsec-radius-small: 4px;
  --ipsec-radius-card: 8px;
  --ipsec-shadow: 0 14px 34px rgba(22, 100, 255, 0.1);
  --ipsec-shadow-hover: 0 22px 48px rgba(22, 100, 255, 0.18);
}
html {
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ipsec-text);
  font-family: var(--ipsec-font);
  font-size: var(--ipsec-small-size);
  line-height: var(--ipsec-body-line);
  background: var(--ipsec-white);
}
.ipsec-page {
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--ipsec-white);
}
.ipsec-frame {
  width: 100%;
  height: auto;
}
.ipsec-section {
  padding: var(--ipsec-section-y) 0;
}
.ipsec-container {
  width: min(var(--ipsec-container), calc(100% - 48px));
  margin: 0 auto;
}
.ipsec-heading {
  margin: 0 auto 34px;
  text-align: center;
}
.ipsec-heading__title {
  margin: 0;
  color: var(--ipsec-text);
  font-size: var(--ipsec-title-size);
  font-weight: 700;
  line-height: var(--ipsec-title-line);
}
.ipsec-heading__subtitle {
  max-width: 1040px;
  margin: 10px auto 0;
  color: var(--ipsec-muted);
  font-size: var(--ipsec-subtitle-size);
  line-height: var(--ipsec-subtitle-line);
}
.ipsec-heading--inverse .ipsec-heading__title,
.ipsec-heading--inverse .ipsec-heading__subtitle {
  color: var(--ipsec-white);
}
.ipsec-heading--inverse .ipsec-heading__subtitle {
  opacity: 0.88;
}
.ipsec-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--ipsec-radius-small);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.ipsec-button:hover {
  transform: translateY(-2px);
}
.ipsec-button--primary {
  color: var(--ipsec-white);
  background: var(--ipsec-primary);
  box-shadow: 0 10px 24px rgba(22, 100, 255, 0.18);
}
.ipsec-button--primary:hover {
  color: var(--ipsec-white);
  background: var(--ipsec-primary-dark);
  box-shadow: 0 14px 30px rgba(22, 100, 255, 0.28);
}
.ipsec-button--light {
  color: var(--ipsec-text);
  background: var(--ipsec-white);
  border-color: #d8e3ff;
}
.ipsec-button--light:hover {
  color: var(--ipsec-primary);
  background: var(--ipsec-white);
}
.ipsec-hero {
  height: 500px;
  overflow: hidden;
  background: #eef4ff url("/img/v2026/sdwan/ipsec/banner-bg.jpg") center top / cover no-repeat;
}
.ipsec-hero__inner {
  display: flex;
  align-items: center;
  width: min(var(--ipsec-container), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}
.ipsec-hero__content {
  max-width: 620px;
  padding-top: 8px;
}
.ipsec-hero__title {
  margin: 0;
  color: var(--ipsec-text);
  font-size: 48px;
  font-weight: 700;
  line-height: 64px;
}
.ipsec-hero__text {
  max-width: 650px;
  margin: 22px 0 34px;
  color: var(--ipsec-text);
  font-size: 18px;
  line-height: 34px;
}
.ipsec-hero .ipsec-button {
  width: 140px;
  height: 40px;
  min-width: 0;
  padding: 0;
  font-size: 15px;
}
.ipsec-overview {
  background: var(--ipsec-white);
}
.ipsec-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(0, 570px);
  gap: 32px;
  align-items: stretch;
}
.ipsec-overview__media,
.ipsec-overview__content {
  overflow: visible;
  margin: 0;
  border: 1px solid #dfe8f4;
  border-radius: var(--ipsec-radius-card);
  background: var(--ipsec-white);
  box-shadow: 0 12px 32px rgba(24, 75, 150, 0.08);
}
.ipsec-overview__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ipsec-overview__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ipsec-overview__content {
  padding: 34px 34px 30px;
}
.ipsec-overview__text p {
  margin: 0 0 22px;
  color: var(--ipsec-text);
  font-size: 16px;
  line-height: 30px;
}
.ipsec-overview__text p:last-child {
  margin-bottom: 18px;
}
.ipsec-role-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid #e7edf7;
  border-radius: var(--ipsec-radius-card);
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.ipsec-role-card:hover {
  border-color: #b8ceff;
  box-shadow: var(--ipsec-shadow);
  transform: translateY(-3px);
}
.ipsec-role-card__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.ipsec-role-card__title {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--ipsec-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}
.ipsec-role-card__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ipsec-primary);
}
.ipsec-role-card__text {
  margin: 8px 0 0;
  color: var(--ipsec-text);
  font-size: 15px;
  line-height: 28px;
}
.ipsec-models {
  background: #edf5ff url("/img/v2026/sdwan/ipsec/network-model-bg.jpg") center / cover no-repeat;
}
.ipsec-models__grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  align-items: start;
  justify-content: center;
}
.ipsec-model-card {
  text-align: center;
}
.ipsec-model-card__eyebrow {
  margin: 0 0 20px;
  color: var(--ipsec-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}
.ipsec-model-card img {
  width: auto;
  max-width: 100%;
  height: 400px;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(22, 100, 255, 0.07);
}
.ipsec-features {
  background: #f2f6ff;
}
.ipsec-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  overflow: visible;
}
.ipsec-feature-card {
  position: relative;
  min-height: 258px;
  padding: 28px 28px 26px;
  border: 1px solid #e9eef6;
  border-radius: var(--ipsec-radius-card);
  background: var(--ipsec-white);
  box-shadow: 0 10px 28px rgba(39, 72, 121, 0.05);
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ipsec-feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 58px;
  border-radius: 0 4px 4px 0;
  background: var(--ipsec-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ipsec-feature-card:hover,
.ipsec-feature-card:focus-within {
  border-color: #b8ceff;
  box-shadow: var(--ipsec-shadow-hover);
  transform: translateY(-4px);
}
.ipsec-feature-card:hover::after,
.ipsec-feature-card:focus-within::after {
  opacity: 1;
}
.ipsec-feature-card__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  object-fit: contain;
}
.ipsec-feature-card h3 {
  margin: 0;
  color: var(--ipsec-text);
  font-size: var(--ipsec-card-title-size);
  font-weight: 700;
  line-height: var(--ipsec-card-title-line);
}
.ipsec-feature-card p {
  margin: 10px 0 0;
  color: var(--ipsec-muted);
  font-size: var(--ipsec-small-size);
  line-height: var(--ipsec-body-line);
}
.ipsec-feature-card a {
  position: absolute;
  right: 24px;
  top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 40px;
  border-radius: var(--ipsec-radius-small);
  background: var(--ipsec-primary);
  color: var(--ipsec-white);
  font-size: var(--ipsec-small-size);
  line-height: 1;
  opacity: 0;
  box-shadow: 0 10px 20px rgba(22, 100, 255, 0.24);
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  pointer-events: none;
}
.ipsec-feature-card:hover a,
.ipsec-feature-card:focus-within a {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ipsec-feature-card a:hover {
  background: var(--ipsec-primary-dark);
}
.ipsec-choice {
  position: relative;
  padding-top: 0;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #eef4ff 100%);
  overflow: visible;
}
.ipsec-choice__blue {
  position: relative;
  isolation: isolate;
  padding: 58px 0 96px;
  overflow: visible;
  background: radial-gradient(circle at 78% 6%, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0) 260px), linear-gradient(180deg, #1664ff 0%, #1268ff 100%);
}
.ipsec-choice__blue::before {
  content: "";
  position: absolute;
  top: 22px;
  right: max(96px, calc((100% - var(--ipsec-container)) / 2 + 78px));
  z-index: 0;
  width: 230px;
  height: 230px;
  opacity: 0.1;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.7) 0 16px, transparent 17px), linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
  clip-path: polygon(50% 0, 84% 14%, 78% 60%, 50% 100%, 22% 60%, 16% 14%);
  pointer-events: none;
}
.ipsec-choice__blue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -96px;
  z-index: 0;
  width: 2400px;
  height: 210px;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, #1268ff 0%, #1664ff 100%);
  box-shadow: 0 34px 0 #e7f0ff;
  pointer-events: none;
  transform: translateX(-50%);
}
.ipsec-choice__blue .ipsec-container {
  position: relative;
  z-index: 1;
}
.ipsec-choice__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
}
.ipsec-choice-card {
  min-height: 166px;
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--ipsec-radius-card);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 49, 154, 0.14);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.ipsec-choice-card:hover {
  box-shadow: 0 22px 44px rgba(0, 49, 154, 0.22);
  transform: translateY(-6px);
}
.ipsec-choice-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  object-fit: contain;
}
.ipsec-choice-card h3 {
  margin: 0 0 10px;
  color: var(--ipsec-text);
  font-size: var(--ipsec-card-title-size);
  font-weight: 700;
  line-height: var(--ipsec-card-title-line);
}
.ipsec-choice-card p {
  margin: 0;
  color: var(--ipsec-muted);
  font-size: var(--ipsec-small-size);
  line-height: 24px;
}
.ipsec-process {
  position: relative;
  z-index: 2;
  margin-top: -58px;
  padding: 44px 50px 40px;
  border: 1px solid #ffffff;
  border-radius: 12px;
  background: linear-gradient(180deg, #c3d7ff 0%, #ffffff 50%);
  box-shadow: 0 18px 42px rgba(22, 100, 255, 0.1);
}
.ipsec-process__title {
  margin: 0 0 38px;
  color: var(--ipsec-text);
  font-size: 27px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
}
.ipsec-process__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px;
}
.ipsec-process-card {
  position: relative;
  text-align: center;
}
.ipsec-process-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -30px;
  width: 40px;
  height: 40px;
  background: url("/img/v2026/sdwan/ipsec/jiantou.svg") center / contain no-repeat;
  opacity: 0.7;
}
.ipsec-process-card__index {
  position: absolute;
  top: 12px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ipsec-white);
  background: var(--ipsec-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.ipsec-process-card img {
  width: 94px;
  height: 94px;
  margin: 0 auto 22px;
  object-fit: contain;
}
.ipsec-process-card h4 {
  margin: 0 0 8px;
  color: var(--ipsec-text);
  font-size: var(--ipsec-card-title-size);
  font-weight: 700;
  line-height: var(--ipsec-card-title-line);
}
.ipsec-process-card p {
  max-width: 230px;
  margin: 0 auto;
  color: var(--ipsec-muted);
  font-size: 15px;
  line-height: 26px;
}
.ipsec-choice__actions {
  margin-top: 36px;
  text-align: center;
}
.ipsec-scenes {
  background: #ffffff;
}
.ipsec-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  overflow: visible;
}
.ipsec-scene-card {
  overflow: hidden;
  border: 1px solid #e8edf5;
  border-radius: var(--ipsec-radius-card);
  background: var(--ipsec-white);
  box-shadow: 0 12px 30px rgba(28, 73, 130, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ipsec-scene-card:hover {
  border-color: #b8ceff;
  box-shadow: 0 22px 48px rgba(22, 100, 255, 0.18);
  transform: translateY(-4px);
}
.ipsec-scene-card__image {
  display: block;
  overflow: hidden;
  padding-bottom: 75%;
  height: 0;
  position: relative;
  width: 100%;
  background: #edf5ff;
}
.ipsec-scene-card__image img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ipsec-scene-card:hover .ipsec-scene-card__image img {
  transform: scale(1.04);
}
.ipsec-scene-card__body {
  padding: 22px 20px 24px;
}
.ipsec-scene-card__title,
.ipsec-product-card__title {
  margin: 0;
  color: var(--ipsec-text);
  font-size: var(--ipsec-card-title-size);
  font-weight: 700;
  line-height: var(--ipsec-card-title-line);
}
.ipsec-scene-card__text,
.ipsec-product-card__text {
  margin: 10px 0 0;
  color: var(--ipsec-muted);
  font-size: var(--ipsec-small-size);
  line-height: var(--ipsec-body-line);
}
.ipsec-scene-card__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.ipsec-scene-card__list li {
  position: relative;
  padding-left: 18px;
  color: var(--ipsec-text);
  font-size: var(--ipsec-small-size);
  line-height: 26px;
}
.ipsec-scene-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ipsec-primary);
}
.ipsec-scenes__actions {
  margin-top: 34px;
  text-align: center;
}
.ipsec-cases {
  background: #f7faff;
}
/* ===== 案例滑块 ===== */
.ipsec-case-slider {
  position: relative;
  width: var(--viewport-client-width, 100vw);
  max-width: var(--viewport-client-width, 100vw);
  margin-left: calc((var(--viewport-client-width, 100vw) - 100%) / -2);
  padding: 28px 36px;
  --case-side-width: clamp(220px, 22vw, 420px);
}
.ipsec-case-slider__viewport {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow: visible;
  padding: 0;
}
.ipsec-case-card {
  position: relative;
  flex: 0 0 var(--case-side-width);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 392px;
  border: 0;
  border-radius: var(--ipsec-radius-card);
  background: #1c4077;
  box-shadow: 0 18px 42px rgba(16, 61, 130, 0.14);
  cursor: pointer;
  opacity: 0.72;
  transform: scale(0.96);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1), flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipsec-case-card--active {
  order: 2;
  flex: 0 0 calc(100% - (var(--case-side-width) * 2) - 48px);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 24px 56px rgba(16, 61, 130, 0.22);
}
.ipsec-case-card--prev {
  order: 1;
  flex: 0 0 var(--case-side-width);
}
.ipsec-case-card--next {
  order: 3;
  flex: 0 0 var(--case-side-width);
}
.ipsec-case-card:not(.ipsec-case-card--active):not(.ipsec-case-card--prev):not(
    .ipsec-case-card--next
  ) {
  display: none;
}
.ipsec-case-card__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipsec-case-card--active .ipsec-case-card__image {
  transform: scale(1);
}
.ipsec-case-card:hover .ipsec-case-card__image {
  transform: scale(1.04);
}
.ipsec-case-card--active:hover .ipsec-case-card__image {
  transform: scale(1.02);
}
.ipsec-case-card__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(4, 18, 36, 0.86) 0%, rgba(8, 35, 68, 0.54) 46%, rgba(8, 35, 68, 0.14) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.04));
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__overlay {
  opacity: 0.6;
}
.ipsec-case-card__content {
  position: relative;
  z-index: 1;
  max-width: 590px;
  padding: 44px;
  color: var(--ipsec-white);
  transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipsec-case-card__title {
  margin: 0;
  color: var(--ipsec-white);
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1), line-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipsec-case-card__text {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 28px;
  overflow: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipsec-case-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  min-height: 40px;
  margin-top: 24px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--ipsec-radius-small);
  color: var(--ipsec-white);
  font-size: 14px;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipsec-case-card__link:hover {
  color: var(--ipsec-primary);
  background: var(--ipsec-white);
}
/* 非激活卡片隐藏详细内容 */
.ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__content {
  padding: 26px;
}
.ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__title {
  font-size: 18px;
  line-height: 28px;
}
.ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__text {
  max-height: 0;
  margin: 0;
  opacity: 0;
}
.ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__link {
  max-height: 0;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  opacity: 0;
}
/* 激活卡片显示全部内容 */
.ipsec-case-card--active .ipsec-case-card__text {
  max-height: 200px;
  opacity: 1;
  transition-delay: 0.12s;
}
.ipsec-case-card--active .ipsec-case-card__link {
  max-height: 60px;
  opacity: 1;
  transition-delay: 0.22s;
}
/* ===== 案例滑块导航按钮 ===== */
.ipsec-case-slider__button {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--ipsec-primary);
  background: var(--ipsec-white);
  box-shadow: var(--ipsec-shadow);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.ipsec-case-slider__button span {
  font-size: 30px;
  line-height: 30px;
}
.ipsec-case-slider__button:hover {
  color: var(--ipsec-white);
  background: var(--ipsec-primary);
  transform: translateY(-50%) scale(1.05);
}
.ipsec-case-slider__button--prev {
  left: calc(50% - 668px);
}
.ipsec-case-slider__button--next {
  right: calc(50% - 668px);
}
/* ===== 案例滑块 dots ===== */
.ipsec-case-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.ipsec-case-slider__dot {
  width: 32px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9d8f5;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.ipsec-case-slider__dot--active {
  width: 54px;
  background: var(--ipsec-primary);
}
.ipsec-products {
  background: var(--ipsec-white);
  padding: 52px 0 20px;
}
.ipsec-product-heading {
  margin: 0 0 34px;
  text-align: center;
}
.ipsec-product-heading h2 {
  margin: 0;
  color: var(--ipsec-text);
  font-size: var(--ipsec-title-size);
  font-weight: 700;
  line-height: var(--ipsec-title-line);
}
.ipsec-product-carousel {
  position: relative;
  overflow: visible;
  min-height: 375px;
}
.ipsec-product-carousel__viewport {
  overflow: hidden;
  padding: 30px 0;
  margin: -30px 0;
}
.ipsec-product-carousel__track {
  display: flex;
  gap: 32px;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ipsec-product-carousel__dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.ipsec-product-carousel__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d8f5;
  cursor: pointer;
  opacity: 0.72;
  transition: background 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}
.ipsec-product-carousel__dot--active {
  background: var(--ipsec-primary);
  opacity: 1;
  transform: scale(1.25);
}
.ipsec-product-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dfe7f3;
  border-radius: 50%;
  background: var(--ipsec-white);
  color: var(--ipsec-text);
  cursor: pointer;
  opacity: 0.86;
  transform: translateY(-50%);
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}
.ipsec-product-carousel__arrow:hover {
  border-color: var(--ipsec-primary);
  background: #f0f5ff;
  box-shadow: 0 4px 12px rgba(22, 100, 255, 0.15);
  opacity: 1;
}
.ipsec-product-carousel__prev {
  left: -50px;
}
.ipsec-product-carousel__next {
  right: -50px;
}
.ipsec-product-card {
  position: relative;
  display: flex;
  flex-shrink: 0;
  min-height: 270px;
  padding: 30px 32px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #dfe7f3;
  border-radius: var(--ipsec-radius-card);
  background: var(--ipsec-white);
  box-shadow: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.ipsec-product-card:hover {
  border-color: #b8ceff;
  box-shadow: 0 16px 38px rgba(38, 84, 140, 0.1);
  transform: translateY(-12px);
}
.ipsec-product-card__icon {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: var(--ipsec-radius-card);
  background: #3965ff;
}
.ipsec-product-card--sd .ipsec-product-card__icon {
  background: #3965ff;
}
.ipsec-product-card--fiber .ipsec-product-card__icon {
  background: #ff8549;
}
.ipsec-product-card--mpls .ipsec-product-card__icon {
  background: #1664ff;
}
.ipsec-product-card--transport .ipsec-product-card__icon {
  background: #39b2ff;
}
.ipsec-product-card__icon img {
  width: auto;
  height: auto;
  max-width: 64%;
  max-height: 64%;
  object-fit: contain;
}
.ipsec-product-card--mpls .ipsec-product-card__icon img {
  max-width: 76%;
  max-height: 76%;
}
.ipsec-product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  max-height: 0;
  height: 40px;
  margin-top: 0;
  border-radius: var(--ipsec-radius-card);
  background: var(--ipsec-primary);
  color: var(--ipsec-white);
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 10px 20px rgba(22, 100, 255, 0.22);
  transform: translateY(8px);
  transition: max-height 0.22s ease, margin-top 0.22s ease, opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
  pointer-events: none;
}
.ipsec-product-card:hover .ipsec-product-card__action,
.ipsec-product-card:focus .ipsec-product-card__action {
  max-height: 40px;
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0);
}
.ipsec-product-card .ipsec-product-card__action:hover {
  background: var(--ipsec-primary-dark);
}
.ipsec-consult {
  padding: var(--ipsec-section-y) 0;
  color: var(--ipsec-white);
  background: linear-gradient(135deg, #045fff 0%, #0d7dff 100%);
}
.ipsec-consult__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: min(var(--ipsec-container), calc(100% - 48px));
  margin: 0 auto;
}
.ipsec-consult__content h2 {
  margin: 0;
  color: var(--ipsec-white);
  font-size: 28px;
  font-weight: 700;
  line-height: 38px;
}
.ipsec-consult__content p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 26px;
}
.ipsec-consult__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ipsec-consult__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--ipsec-radius-small);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.22s ease;
}
.ipsec-consult__button:hover {
  transform: translateY(-2px);
}
.ipsec-consult__button--outline {
  color: var(--ipsec-white);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}
.ipsec-consult__button--outline:hover {
  color: var(--ipsec-primary);
  background: var(--ipsec-white);
}
.ipsec-consult__button--light {
  color: var(--ipsec-text);
  border-color: var(--ipsec-white);
  background: var(--ipsec-white);
}
.ipsec-consult__button--light:hover {
  color: var(--ipsec-primary);
  background: var(--ipsec-white);
}
.ipsec-toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: var(--ipsec-radius-small);
  color: var(--ipsec-white);
  background: rgba(29, 33, 41, 0.88);
  font-size: 14px;
  line-height: 22px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.ipsec-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1440px) {
  .ipsec-product-carousel__prev {
    left: -20px;
  }
  .ipsec-product-carousel__next {
    right: -20px;
  }
}
@media (max-width: 1200px) {
  .ipsec-overview__grid {
    grid-template-columns: 1fr;
  }
  .ipsec-models__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ipsec-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ipsec-model-card img {
    height: 300px;
  }
  .ipsec-consult {
    background: linear-gradient(135deg, rgba(4, 95, 255, 0.8) 0%, rgba(13, 125, 255, 0.8) 100%);
  }
  .ipsec-product-carousel {
    min-height: unset;
  }
}
@media (max-width: 1024px) {
  :root {
    --ipsec-section-y: 52px;
  }
  .ipsec-hero {
    background-position: 62% top;
  }
  .ipsec-hero__content {
    max-width: 540px;
  }
  .ipsec-hero__title {
    font-size: 42px;
    line-height: 54px;
  }
  .ipsec-hero__text {
    font-size: 17px;
    line-height: 30px;
  }
  .ipsec-scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .ipsec-case-slider {
    padding: 24px 0 0;
  }
  .ipsec-case-slider__viewport {
    overflow: visible;
    flex-direction: column;
  }
  .ipsec-case-card,
  .ipsec-case-card--active {
    flex-basis: auto;
    opacity: 1;
    transform: none;
  }
  .ipsec-case-card:not(.ipsec-case-card--active) {
    display: none;
  }
  .ipsec-case-slider__button--prev {
    left: 12px;
  }
  .ipsec-case-slider__button--next {
    right: 12px;
  }
  .ipsec-consult__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  :root {
    --ipsec-section-y: 44px;
    --ipsec-title-size: 24px;
    --ipsec-title-line: 34px;
    --ipsec-subtitle-size: 15px;
    --ipsec-subtitle-line: 26px;
  }
  .ipsec-container,
  .ipsec-hero__inner,
  .ipsec-consult__inner {
    width: min(100%, calc(100% - 32px));
  }
  .ipsec-heading {
    margin-bottom: 26px;
  }
  .ipsec-hero {
    height: 230px;
    overflow: hidden;
    background: #eef4ff url("/img/v2026/sdwan/ipsec/banner-bg-m.jpg") center top / cover no-repeat;
  }
  .ipsec-hero__inner {
    align-items: flex-start;
    padding-top: 20px;
  }
  .ipsec-hero__content {
    max-width: 100%;
  }
  .ipsec-hero__title {
    max-width: 340px;
    font-size: 32px;
    line-height: 38px;
  }
  .ipsec-hero__text {
    max-width: 360px;
    margin: 10px 0 16px;
    font-size: 14px;
    line-height: 22px;
  }
  .ipsec-button {
    min-width: 148px;
    height: 46px;
    font-size: 15px;
  }
  .ipsec-overview__media,
  .ipsec-overview__content {
    padding: 20px;
  }
  .ipsec-overview__text p {
    font-size: 14px;
    line-height: 26px;
  }
  .ipsec-role-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .ipsec-role-card__icon {
    width: 62px;
    height: 62px;
  }
  .ipsec-role-card__title {
    font-size: 16px;
    line-height: 24px;
  }
  .ipsec-role-card__text {
    font-size: 14px;
    line-height: 24px;
  }
  .ipsec-feature-grid,
  .ipsec-process__grid,
  .ipsec-scene-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ipsec-feature-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    overflow: visible;
  }
  .ipsec-feature-card {
    scroll-snap-align: none;
  }
  .ipsec-choice__cards {
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .ipsec-choice__cards::-webkit-scrollbar {
    display: none;
  }
  .ipsec-choice-card {
    scroll-snap-align: start;
  }
  .ipsec-feature-card,
  .ipsec-choice-card {
    min-height: auto;
    padding: 24px;
  }
  .ipsec-feature-card p {
    min-height: auto;
  }
  .ipsec-process-card:not(:last-child)::after {
    display: none;
  }
  .ipsec-choice__blue {
    padding: 44px 0 78px;
  }
  .ipsec-choice__blue::after {
    bottom: -58px;
    height: 124px;
  }
  .ipsec-process {
    margin-top: -34px;
    padding: 30px 22px;
  }
  .ipsec-process__title {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 34px;
  }
  .ipsec-process-card__index {
    left: 16px;
  }
  .ipsec-scenes__actions {
    margin-top: 26px;
  }
  .ipsec-case-slider {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 0;
  }
  .ipsec-case-slider__viewport {
    display: flex;
    flex-direction: row;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0;
  }
  .ipsec-case-slider__viewport::-webkit-scrollbar {
    display: none;
  }
  .ipsec-case-card,
  .ipsec-case-card--active,
  .ipsec-case-card--prev,
  .ipsec-case-card--next {
    display: flex;
    flex: 0 0 calc(100% - 32px);
    min-height: 430px;
    opacity: 1;
    transform: none;
    order: 0;
    cursor: default;
  }
  .ipsec-case-card:not(.ipsec-case-card--active) {
    display: flex;
  }
  .ipsec-case-card__content {
    max-width: none;
    padding: 26px;
  }
  .ipsec-case-card__title {
    font-size: 20px;
    line-height: 30px;
  }
  .ipsec-case-card__text {
    max-height: 228px;
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 25px;
    opacity: 1;
  }
  .ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__text {
    max-height: 228px;
    margin: 16px 0 0;
    opacity: 1;
  }
  .ipsec-case-card__link {
    max-height: 60px;
    min-width: 152px;
    margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-color: rgba(255, 255, 255, 0.42);
    opacity: 1;
  }
  .ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__link {
    max-height: 60px;
    min-width: 152px;
    margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-color: rgba(255, 255, 255, 0.42);
    opacity: 1;
  }
  .ipsec-case-slider__button {
    display: none;
  }
  .ipsec-product-carousel__viewport {
    padding: 24px 0;
    margin: -24px 0;
  }
  .ipsec-product-carousel__dots {
    display: flex;
  }
  .ipsec-product-carousel__arrow {
    display: none;
  }
  .ipsec-product-card {
    min-height: 250px;
    padding: 24px;
  }
  .ipsec-consult__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 14px;
  }
  .ipsec-consult__button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .ipsec-hero__title {
    max-width: 300px;
    font-size: 30px;
    line-height: 40px;
  }
  .ipsec-hero__text {
    max-width: 300px;
    font-size: 14px;
    line-height: 24px;
  }
  .ipsec-overview__media,
  .ipsec-overview__content,
  .ipsec-scene-card__body {
    padding: 22px 18px;
  }
  .ipsec-role-card {
    grid-template-columns: 1fr;
  }
  .ipsec-role-card__icon {
    width: 72px;
    height: 72px;
  }
  .ipsec-model-card__eyebrow {
    font-size: 16px;
    line-height: 24px;
  }
  .ipsec-case-card,
  .ipsec-case-card--active {
    min-height: 450px;
  }
  .ipsec-case-card__text {
    max-height: 250px;
  }
  .ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__text {
    max-height: 250px;
    margin: 16px 0 0;
    opacity: 1;
  }
  .ipsec-case-card:not(.ipsec-case-card--active) .ipsec-case-card__link {
    max-height: 60px;
    min-width: 152px;
    margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-color: rgba(255, 255, 255, 0.42);
    opacity: 1;
  }
  .ipsec-case-card,
  .ipsec-case-card--active,
  .ipsec-case-card--prev,
  .ipsec-case-card--next {
    flex: 0 0 100%;
  }
}
