.lb-page {
  color: var(--color-text);
  overflow: hidden;
}

.lb-page *,
.lb-page *::before,
.lb-page *::after {
  box-sizing: border-box;
}

.lb-container {
  width: var(--container);
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.lb-section {
  padding: 70px 0;
}

.lb-section__title {
  margin: 0 0 42px;
  color: var(--color-text);
  font-size: var(--font-size-title);
  font-weight: var(--weight-bold);
  line-height: var(--line-title);
  text-align: center;
}

.lb-button {
  display: inline-flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 48px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  color: #ffffff;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lb-button:visited {
  color: #ffffff;
}

.lb-button span {
  position: relative;
  z-index: 1;
}

.lb-button::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -48px;
  z-index: 0;
  width: calc(100% + 96px);
  border-radius: 0 48px 48px 0;
  content: "";
  transform: translateX(-110%);
  transition: transform 0.68s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.lb-button:hover {
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 101, 216, 0.3);
  transform: translateY(-2px);
}

.lb-button:hover::before {
  transform: translateX(0);
}

.lb-button--primary {
  background: linear-gradient(90deg, var(--color-primary), #6840ff);
}

.lb-button--primary::before {
  background: var(--color-primary);
}

.lb-hero {
  height: 500px;
  background: #f0f6ff url("/img/v2026/solution/load-balancing/banner-bg.jpg") center / cover no-repeat;
}

.lb-hero__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.lb-hero__copy {
  width: 630px;
  max-width: 56%;
}

.lb-hero h1 {
  margin: 0 0 24px;
  color: var(--color-text);
  font-size: 48px;
  font-weight: var(--weight-bold);
  line-height: 64px;
}

.lb-hero p {
  margin: 0 0 30px;
  color: var(--color-text);
  font-size: 18px;
  line-height: 32px;
}

.lb-hero__description--mobile {
  display: none;
}

.lb-challenges {
  background: #ffffff;
}

.lb-challenges__layout {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.lb-challenges__heading h2 {
  margin: 0 0 18px;
  color: var(--color-text);
  font-size: var(--font-size-title);
  font-weight: var(--weight-bold);
  line-height: var(--line-title);
}

.lb-challenges__intro {
  margin: 0 0 26px;
  color: var(--color-muted);
  font-size: var(--font-size-subtitle);
  line-height: var(--line-subtitle);
}

.lb-challenges__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lb-challenge-card {
  min-height: 218px;
  padding: 28px 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lb-challenge-card:hover {
  border-color: #bdd2ff;
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.lb-challenge-card img {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
}

.lb-challenge-card h3 {
  margin: 14px 0 7px;
  color: var(--color-text);
  font-size: var(--font-size-card-title);
  font-weight: var(--weight-bold);
  line-height: 30px;
}

.lb-challenge-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--font-size-small);
  line-height: var(--line-body);
}

.lb-architecture {
  background: #e9f4ff url("/img/v2026/solution/load-balancing/bg-1.jpg") center / cover no-repeat;
}

.lb-architecture__visual {
  width: 1242px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid #e3eeff;
  border-radius: 14px;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.lb-architecture__visual img {
  display: block;
  width: 1200px;
  max-width: none;
  height: auto;
}

.lb-advantages {
  background: #ffffff;
}

.lb-advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.lb-advantage-card {
  min-height: 294px;
  padding: 34px 30px;
  border-radius: var(--radius-card);
  background: #f5f7fa;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.lb-advantage-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.lb-advantage-card img {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
}

.lb-advantage-card h3 {
  margin: 24px 0 12px;
  color: var(--color-text);
  font-size: var(--font-size-card-title);
  font-weight: var(--weight-bold);
  line-height: 28px;
}

.lb-advantage-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--font-size-small);
  line-height: var(--line-body);
}

.lb-enterprises {
  background: var(--color-soft);
}

.lb-enterprises__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.lb-enterprise-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 136px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lb-enterprise-card:hover {
  border-color: #bdd2ff;
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.lb-enterprise-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}


/* ==================== 响应式 ==================== */
@media (max-width: 767px) {
  
  .lb-container {
    max-width: calc(100% - 30px);
  }

  .lb-section {
    padding: 40px 0;
  }

  .lb-section__title,
  .lb-challenges__heading h2 {
    margin-bottom: 28px;
    font-size: 24px;
    line-height: 34px;
  }

  .lb-hero {
    height: 230px;
    background-image: url("/img/v2026/solution/load-balancing/banner-bgm.jpg");
    background-position: center;
  }

  .lb-hero__copy {
    width: 100%;
    max-width: 100%;
  }

  .lb-hero h1 {
    max-width: 265px;
    margin-bottom: 6px;
    font-size: 27px;
    line-height: 36px;
  }

  .lb-hero p {
    max-width: 260px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 20px;
  }

  .lb-hero .lb-hero__description--desktop {
    display: none;
  }

  .lb-hero .lb-hero__description--mobile {
    display: block;
  }

  .lb-hero .lb-button {
    width: 120px;
    height: 36px;
    font-size: 14px;
  }

  .lb-challenges__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lb-challenges__heading h2 {
    margin-bottom: 12px;
  }

  .lb-challenges__intro {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 26px;
  }

  .lb-challenges__heading .lb-button {
    display: none;
  }

  .lb-challenges__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lb-challenge-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    min-height: 0;
    padding: 20px;
  }

  .lb-challenge-card img {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
  }

  .lb-challenge-card h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 26px;
  }

  .lb-architecture__visual {
    width: 100%;
    padding: 5px;
    overflow-x: hidden;
  }

  .lb-architecture__visual img {
    width: 100%;
    max-width: 100%;
  }

  .lb-advantages__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lb-advantage-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 16px;
    min-height: 0;
    padding: 20px;
  }

  .lb-advantage-card img {
    grid-row: 1 / span 2;
    width: 60px;
    height: 60px;
  }

  .lb-advantage-card h3 {
    margin: 0 0 8px;
  }

  .lb-enterprises__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lb-enterprise-card {
    min-height: 96px;
    padding: 16px;
  }

  .lb-enterprise-card:last-child {
    grid-column: 1 / -1;
  }

  .lb-enterprise-card img {
    max-height: 42px;
  }

}

@media (min-width: 768px) and (max-width: 1024px) {
  .lb-challenges__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .lb-challenges__grid,
  .lb-advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lb-enterprises__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
