/* 合作加盟页：全宽动态首屏 + 五类合作角色 */
.partners-page {
  padding: 0 0 86px;
  background: #f5f7fc;
}

.partners-page .wrap {
  max-width: 1120px;
}

/* ---------- 首屏 ---------- */
.partners-page a:focus-visible,
.partners-page summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.phero a:focus-visible {
  outline-color: #a9c0ff;
}

.phero {
  position: relative;
  display: flex;
  min-height: min(720px, calc(100vh - 62px));
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #071022;
  color: #fff;
}

.phero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(52% 72% at 8% 18%, rgba(59, 91, 255, .44), transparent 68%),
    radial-gradient(34% 48% at 94% 4%, rgba(0, 169, 122, .2), transparent 70%),
    linear-gradient(125deg, #071022 0%, #0b1a3f 48%, #071022 100%);
}

.phero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(rgba(154, 179, 255, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 179, 255, .11) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 76%);
}

.phero-mesh {
  position: absolute;
  inset: -12% -8%;
  opacity: .75;
  animation: meshFloat 28s ease-in-out infinite alternate;
}

.phero-mesh svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mesh-nodes circle {
  animation: nodePulse 7s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.mesh-nodes circle:nth-child(3n) { animation-delay: -2.2s; }
.mesh-nodes circle:nth-child(4n) { animation-delay: -4.1s; }
.mesh-nodes circle:nth-child(5n) { animation-delay: -5.4s; }

.phero-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(58px);
  pointer-events: none;
}

.phero-orb.o1 {
  width: 420px;
  height: 420px;
  top: -18%;
  left: -7%;
  background: rgba(61, 96, 255, .5);
  animation: orbA 22s ease-in-out infinite alternate;
}

.phero-orb.o2 {
  width: 330px;
  height: 330px;
  right: -5%;
  bottom: 2%;
  background: rgba(0, 169, 122, .24);
  animation: orbB 26s ease-in-out infinite alternate;
}

.phero-orb.o3 {
  width: 240px;
  height: 240px;
  left: 46%;
  bottom: -16%;
  background: rgba(122, 90, 255, .25);
  animation: orbC 18s ease-in-out infinite alternate;
}

.phero-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(310px, .86fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
  padding-top: 58px;
  padding-bottom: 52px;
}

.phero-copy .eyebrow {
  margin: 0 0 16px;
  color: #93ace8;
  letter-spacing: .16em;
}

.phero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.phero h1 span {
  color: #a9c0ff;
}

.phero .lead {
  max-width: 625px;
  margin: 0;
  color: #b8c5df;
  font-size: 15.5px;
  line-height: 1.85;
}

.phero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}

.phero-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(209, 220, 255, .17);
  border-radius: 999px;
  background: rgba(213, 225, 255, .045);
  color: #cbd7f5;
  font-size: 12px;
  line-height: 1;
}

.phero-badge.is-new {
  border-color: rgba(137, 162, 255, .5);
  background: rgba(59, 91, 255, .16);
  color: #dce5ff;
}

.phero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.phero-actions .btn {
  height: 44px;
  padding: 0 22px;
}

.phero-actions .btn.ghost {
  border-color: rgba(255, 255, 255, .25);
  background: transparent;
  color: #fff;
}

.phero-actions .btn.ghost:hover {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .06);
}

.phero-note {
  margin: 18px 0 0;
  color: #7f8dab;
  font-size: 12px;
}

.phero-panel {
  align-self: center;
  padding: 18px 20px 16px;
  border: 1px solid rgba(169, 189, 255, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 31, 67, .96), rgba(8, 16, 37, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .36);
}

.phero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #dbe5ff;
  font-size: 13px;
  font-weight: 600;
}

.phero-panel-head b {
  color: #9fb4ff;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .08em;
}

.phero-role {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  transition: background .2s var(--ease), padding .2s var(--ease);
}

.phero-role:hover {
  padding-left: 8px;
  padding-right: 8px;
  background: rgba(255, 255, 255, .045);
}

.phero-role em {
  color: #7f94c8;
  font: 600 10.5px/1.4 var(--mono);
  font-style: normal;
}

.phero-role b {
  display: block;
  color: #f2f6ff;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 600;
}

.phero-role span {
  display: block;
  margin-top: 3px;
  color: #8e9cba;
  font-size: 11.5px;
  line-height: 1.45;
}

.phero-role i {
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(59, 91, 255, .18);
  color: #b7c7ff;
  font: 600 9px/1 var(--mono);
  font-style: normal;
  letter-spacing: .08em;
}

.phero-role.is-new {
  background: linear-gradient(90deg, rgba(59, 91, 255, .17), transparent 72%);
}

.phero-role.is-new em { color: #a7bbff; }

.phero-panel-note {
  margin: 14px 0 0;
  color: #7583a1;
  font-size: 11px;
  line-height: 1.6;
}

.phero-flow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 28px;
  color: #9fb0d4;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.phero-flow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5c73ae;
}

@keyframes meshFloat {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  100% { transform: translate3d(1.5%, 1.2%, 0) scale(1.045); }
}

@keyframes nodePulse {
  0%, 100% { opacity: .46; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes orbA {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(7%, 6%, 0); }
}

@keyframes orbB {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-8%, -5%, 0); }
}

@keyframes orbC {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(5%, -6%, 0); }
}

/* ---------- 正文 ---------- */
.pp-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.pp-section {
  padding-top: 76px;
}

.pp-head {
  max-width: 790px;
  margin-bottom: 28px;
}

.pp-head .eyebrow {
  margin: 0 0 10px;
  color: var(--accent2);
  letter-spacing: .14em;
}

.pp-head h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.pp-head > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.pp-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 30px 44px;
  overflow: hidden;
  padding: 32px 34px 0;
  border-radius: 22px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(59, 91, 255, .26), transparent 58%),
    linear-gradient(135deg, #0b1734, #112757);
  color: #fff;
}

.pp-feature::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(0, 169, 122, .13);
  filter: blur(40px);
  pointer-events: none;
}

.pp-feature-copy {
  position: relative;
  z-index: 1;
}

.pp-chip {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(137, 162, 255, .4);
  border-radius: 6px;
  background: rgba(59, 91, 255, .17);
  color: #d4e0ff;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .06em;
}

.pp-feature h3 {
  margin: 16px 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.pp-feature p {
  max-width: 670px;
  margin: 0;
  color: #b9c6df;
  font-size: 14.5px;
  line-height: 1.8;
}

.pp-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.pp-feature-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #9fafcf;
  font-size: 11.5px;
}

.pp-textlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  color: #d8e2ff;
  font-size: 13.5px;
  font-weight: 600;
}

.pp-textlink span { transition: transform .2s var(--ease); }
.pp-textlink:hover span { transform: translateX(4px); }

.pp-feature-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-self: center;
}

.pp-feature-split > div {
  padding: 17px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.pp-feature-split span {
  display: block;
  margin-bottom: 9px;
  color: #94a9d7;
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .09em;
}

.pp-feature-split ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-feature-split li {
  position: relative;
  padding-left: 14px;
  color: #cad5ec;
  font-size: 12.5px;
  line-height: 1.75;
}

.pp-feature-split li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8da6e8;
}

.pp-feature-rhythm {
  grid-column: 1 / -1;
  padding: 13px 16px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 12px !important;
  background: rgba(7, 16, 34, .34) !important;
}

.pp-feature-rhythm span {
  margin-bottom: 6px !important;
}

.pp-feature-rhythm p {
  margin: 0;
  color: #aebddc;
  font-size: 12px;
  line-height: 1.65;
}

.pp-feature-foot {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0 21px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: #9eadd0;
  font-size: 12px;
  line-height: 1.7;
}

.pp-feature-foot b {
  flex: none;
  color: #dbe5ff;
  font-size: 11px;
  font-weight: 600;
}

.pp-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pp-role {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 15px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}

.pp-role:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: 0 12px 28px rgba(35, 61, 143, .08);
}

.pp-role-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pp-role-head > span {
  padding-top: 4px;
  color: var(--accent);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .1em;
}

.pp-role h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.pp-role-for {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.pp-role-body {
  display: grid;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pp-role-body > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
}

.pp-role-body span {
  color: var(--faint);
  font: 600 10.5px/1.6 var(--mono);
  letter-spacing: .06em;
}

.pp-role-body p {
  margin: 0;
  color: var(--ink2);
  font-size: 12.8px;
  line-height: 1.7;
}

.pp-role-out {
  margin-top: auto;
}

.pp-role-out b {
  display: block;
  margin-bottom: 4px;
  color: var(--accent2);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .08em;
}

.pp-role-out p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.pp-support {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pp-support-card {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.pp-support-card b {
  color: var(--accent);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .1em;
}

.pp-support-card h3 {
  margin: 14px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.pp-support-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.pp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--line);
}

.pp-step {
  padding: 24px 20px 26px;
  background: #fff;
}

.pp-step b {
  color: var(--accent);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .1em;
}

.pp-step h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}

.pp-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.pp-faq {
  display: grid;
  grid-template-columns: minmax(240px, .6fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: start;
}

.pp-faq-list {
  border-top: 1px solid var(--line);
}

.pp-faq-list details {
  border-bottom: 1px solid var(--line);
}

.pp-faq-list summary {
  padding: 16px 0;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
}

.pp-faq-list details[open] summary {
  padding-bottom: 8px;
}

.pp-faq-list p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.78;
}

.pp-cta {
  position: relative;
  overflow: hidden;
  margin-top: 76px;
  padding: 38px 40px;
  border-radius: 22px;
  background:
    radial-gradient(60% 120% at 92% 0%, rgba(59, 91, 255, .3), transparent 62%),
    #0b1734;
  color: #fff;
}

.pp-cta .eyebrow {
  margin: 0 0 10px;
  color: #9db4ff;
  letter-spacing: .14em;
}

.pp-cta h2 {
  max-width: 780px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.pp-cta p {
  max-width: 720px;
  margin: 0;
  color: #aebbd8;
  font-size: 14px;
  line-height: 1.8;
}

.pp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pp-cta-actions .btn.ghost {
  border-color: rgba(255, 255, 255, .24);
  background: transparent;
  color: #fff;
}

.pp-cta-actions .btn.ghost:hover {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .06);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .phero-in {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 32px;
  }

  .pp-support,
  .pp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .phero {
    min-height: auto;
  }

  .phero-in {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 54px;
    padding-bottom: 42px;
  }

  .phero h1 {
    font-size: clamp(34px, 7.2vw, 48px);
  }

  .phero-panel {
    width: min(100%, 640px);
  }

  .phero-flow {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .pp-feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 26px 0;
  }

  .pp-feature-split {
    align-self: stretch;
  }

  .pp-faq {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .partners-page .wrap,
  .pp-wrap {
    width: min(100% - 28px, 720px);
  }

  .phero-in {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  .phero h1 {
    font-size: 34px;
    letter-spacing: -.035em;
  }

  .phero .lead {
    font-size: 14.5px;
  }

  .phero-badges {
    margin-top: 20px;
    margin-bottom: 24px;
  }

  .phero-actions .btn {
    flex: 1 1 160px;
  }

  .phero-panel {
    padding: 15px 15px 13px;
  }

  .phero-role {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .phero-role b { font-size: 12.8px; }
  .phero-role span { font-size: 11px; }

  .pp-section {
    padding-top: 56px;
  }

  .pp-head h2 {
    font-size: 27px;
  }

  .pp-feature {
    padding: 24px 20px 0;
    border-radius: 18px;
  }

  .pp-feature h3 {
    font-size: 27px;
  }

  .pp-feature-split {
    grid-template-columns: 1fr;
  }

  .pp-feature-foot {
    display: block;
    padding: 15px 0 18px;
  }

  .pp-feature-foot b {
    display: block;
    margin-bottom: 4px;
  }

  .pp-roles,
  .pp-support,
  .pp-steps {
    grid-template-columns: 1fr;
  }

  .pp-role {
    padding: 21px 18px;
  }

  .pp-role-body > div {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .pp-cta {
    margin-top: 56px;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .pp-cta-actions .btn {
    flex: 1 1 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phero-mesh,
  .mesh-nodes circle,
  .phero-orb,
  .pp-role,
  .pp-textlink span {
    animation: none !important;
    transition: none !important;
  }

  .phero-mesh {
    transform: none;
  }
}
