/* ==========================================================================
   Partner Static Pages
   ========================================================================== */

:root {
  --partner-page-red: #d9001b;
  --partner-page-text: #222222;
  --partner-page-muted: #7c7e82;
  --partner-page-line: #dce3eb;
  --partner-page-soft: #f6f8fa;
}

.page-partner {
  margin: 0;
  background: #ffffff;
  color: var(--partner-page-text);
  font-family:
    "SF Pro Rounded",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.partner-shell {
  width: min(100% - 48px, 1200px);
  margin: 0 auto;
}

.partner-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #0f1f33;
}

.partner-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 35%;
}

.partner-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(29, 46, 70) 19.214%, rgba(0, 0, 0, 0.274) 40.881%, rgba(0, 0, 0, 0) 59.182%, rgb(15, 31, 51) 88.647%);
}

.partner-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 66px 0 56px;
  color: #ffffff;
  text-align: center;
}

.partner-hero__title {
  margin: 0;
  font-size: 54px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: 0;
}

.partner-hero__subtitle {
  max-width: 680px;
  margin: 20px 0 30px;
  font-size: 22px;
  line-height: 24px;
  text-align: left;
}

.partner-button {
  display: inline-flex;
  min-width: 120px;
  min-height: 40px;
  gap:8px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--partner-page-red);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 0 22px;
  box-shadow: 0 16px 34px rgba(15, 31, 51, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.partner-button:hover,
.partner-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 31, 51, 0.26);
}

.partner-section {
  padding: 90px 0;
}

.partner-section--soft {
  background: #f9fafb;
}

.partner-section__head {
  margin-bottom: 48px;
  text-align: center;
}

.partner-section__head h2 {
  margin: 0;
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: 0;
}

.partner-section__head p {
  margin: 24px auto 0;
  max-width: 620px;
  color: var(--partner-page-muted);
  font-size: 18px;
  line-height: 30px;
}

.partner-metrics {
  padding: 100px 0 108px;
}

.partner-metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  justify-content: center;
  gap: 27px;
}

.partner-metric {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f9fafb;
  text-align: center;
}

.partner-metric__icon,
.partner-benefit span {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
}

.partner-metric__icon img,
.partner-benefit span img {
  display: block;
  width: 100%;
  height: 100%;
}

.partner-metric strong {
  display: block;
  margin-top: 17px;
  color: #222222;
  font-size: 46px;
  line-height: 46px;
  font-weight: 600;
}

.partner-metric span:last-child {
  margin-top: 8px;
  color: var(--partner-page-muted);
  font-size: 18px;
  line-height: 18px;
}

.partner-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 382px);
  justify-content: center;
  gap: 27px;
}

.partner-type-card {
  overflow: hidden;
  min-height: 336px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(185, 196, 207, 0.27);
}

.partner-type-card img {
  display: block;
  width: 100%;
  height: 190px;
  max-width: none;
  object-fit: cover;
}

.partner-type-card div {
  padding: 23px 23px 22px;
}

.partner-type-card h3,
.partner-benefit h3 {
  margin: 0;
  color: #222222;
  font-size: 24px;
  line-height: 24px;
  font-weight: 600;
}

.partner-type-card p,
.partner-benefit p {
  margin: 17px 0 0;
  color: var(--partner-page-muted);
  font-size: 16px;
  line-height: 28px;
}

.partner-benefits {
  display: grid;
  grid-template-columns: repeat(3, 382px);
  justify-content: center;
  gap: 22px 27px;
}

.partner-benefit {
  display: flex;
  min-height: 182px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px 28px;
  border: 1px solid var(--partner-page-line);
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
}

.partner-benefit span {
  width: 77px;
  height: 78px;
  background: transparent;
}

.partner-benefit h3 {
  margin-top: 19px;
}

.partner-allies {
  padding-top: 8px;
  padding-bottom: 96px;
}

.partner-allies__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.partner-allies__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid var(--partner-page-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(25, 39, 62, 0.06);
}

.partner-allies__item img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}

.partner-allies__item span {
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.partner-allies__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 20px;
  border: 1px dashed var(--partner-page-line);
  border-radius: 20px;
  color: #8a9099;
  text-align: center;
}

/* ==========================================================================
   Partner CTA (Bottom Banner)
   ========================================================================== */

.partner-cta {
  position: relative;
  width: 100%;
  height: 361px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-cta__visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.partner-cta__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #333333;
}

.partner-cta__title {
  font-size: 60px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 24px;
}

.partner-cta__subtitle {
  font-size: 24px;
  line-height: 1.5;
  margin-bottom: 40px;
}

.partner-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 32px;
  background: var(--color-red, #d9001b);
  color: #ffffff;
  font-size: 16px;
  border-radius: 24px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.partner-cta__btn:hover {
  opacity: 0.9;
}

.partner-cta__btn svg {
  width: 16px;
  height: 16px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .partner-cta {
    height: 320px;
  }
  
  .partner-cta__title {
    font-size: 32px;
  }
  
  .partner-cta__subtitle {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .partner-shell {
    width: min(100% - 32px, 720px);
  }

  .partner-hero,
  .partner-hero__content {
    min-height: 360px;
  }

  .partner-hero__title {
    font-size: 40px;
  }

  .partner-hero__subtitle {
    font-size: 17px;
  }

  .partner-section {
    padding: 64px 0;
  }

  .partner-metrics__grid,
  .partner-type-grid,
  .partner-benefits,
  .partner-allies__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .partner-shell {
    width: min(100% - 24px, 420px);
  }

  .partner-hero,
  .partner-hero__content {
    min-height: 330px;
  }

  .partner-hero__title {
    font-size: 32px;
  }

  .partner-hero__subtitle {
    font-size: 15px;
  }

  .partner-section__head h2 {
    font-size: 28px;
  }

  .partner-metrics__grid,
  .partner-type-grid,
  .partner-benefits,
  .partner-allies__grid {
    grid-template-columns: 1fr;
  }

  .partner-allies__item {
    min-height: 116px;
    padding: 18px 20px;
  }

  .partner-allies__item img {
    max-height: 48px;
  }
}
