/* Ecosystem page — 生态共建 (frame 28:2889) */

.eco-hero {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.eco-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 56px;
}

.eco-hero__left {
  flex: 1 1 560px;
  min-width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: visible;
}

.eco-hero__title {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
  overflow: visible;
}

.eco-hero__title.m-split {
  overflow: visible;
}

.eco-hero__title-line,
.eco-hero__title .m-word:has(.eco-hero__title-line) {
  display: inline-block;
  white-space: nowrap;
}

.eco-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  /* keep CTA clear of metrics stacking / reveal clipping */
  padding: 4px 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.eco-hero__actions .btn {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.eco-hero__metrics {
  position: relative;
  z-index: 0;
  display: flex;
  gap: 37px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0;
}

.eco-hero__metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.eco-hero__metric span {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.eco-hero__mockup {
  width: 340px;
  max-width: 36%;
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.05);
}

.eco-hero__mockup-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f4f6fc;
  border-left: 1px solid var(--color-primary);
}

.eco-hero__mockup-row strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.eco-hero__mockup-row span {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.eco-hero__arrow {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  opacity: 0.5;
}

/* Partners */
.eco-partners {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.eco-partners__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.eco-partners__grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eco-partners__row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.eco-partners__cell {
  flex: 1;
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 9px;
  box-shadow: 2px 4px 8px rgba(232, 238, 253, 0.6);
}

.eco-partners__cell img {
  max-width: calc(100% - 16px);
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.eco-partners__cell--brand img {
  max-height: 32px;
}

/* Capability */
.eco-capability {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.eco-capability__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.eco-capability__desc {
  text-align: center;
}

.eco-capability__diagram {
  width: 100%;
}

.eco-capability__diagram img {
  width: 100%;
  height: auto;
}

.eco-capability__legend {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  width: 100%;
}

.eco-capability__col {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
}

.eco-capability__col h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
}

.eco-capability__col--result {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.eco-capability__col--result h3,
.eco-capability__col--result p {
  color: #fff;
}

.eco-capability__col--result p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.eco-capability__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.eco-capability__lists h4 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
}

.eco-capability__lists ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-capability__lists li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.8;
}

.eco-capability__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.eco-capability__banner i {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  position: relative;
}

.eco-capability__banner i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: rgba(255, 255, 255, 0.8);
}

/* Directions */
.eco-directions {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.eco-directions__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.eco-directions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.eco-dir-card {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 24px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.eco-dir-card__num {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f2f3f5;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
}

.eco-dir-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eco-dir-card__body h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text);
}

.eco-dir-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.eco-dir-card__body a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-primary);
}

/* Channel */
.eco-channel {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.eco-channel__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.eco-channel__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.eco-channel__title {
  margin: 0;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
}

.eco-channel__panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: #3690fe;
  color: #fff;
}

.eco-channel__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.eco-channel__item-title {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}

.eco-channel__item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.6;
}

.eco-channel__note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Network */
.eco-network {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.eco-network__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.eco-network__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.eco-network__title {
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-text);
}

.eco-network__stats {
  display: flex;
  align-items: center;
  gap: 59px;
}

.eco-network__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.eco-network__stat + .eco-network__stat {
  position: relative;
}

.eco-network__stat + .eco-network__stat::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--color-border-strong);
}

.eco-network__num {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text);
}

.eco-network__num span {
  color: var(--color-primary);
}

.eco-network__label {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.eco-network__map {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eco-network__map-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.eco-network__map img {
  width: 100%;
  height: auto;
}

/* Steps */
.eco-steps {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.eco-steps__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.eco-steps__row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 15px;
}

.eco-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eco-step__num {
  font-size: 38px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.4px;
  background: linear-gradient(180deg, #0d7aff 15%, rgba(13, 122, 255, 0) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: -17px;
}

.eco-step p {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
  white-space: nowrap;
}

.eco-steps__line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  object-fit: cover;
}

/* Apply form */
.eco-apply {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.eco-apply__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.eco-apply__intro {
  flex: 1.2 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.eco-apply__title {
  margin: 0;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
  white-space: nowrap;
  overflow: visible;
  padding-right: 0.15em;
}

.eco-apply__contact {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
}

.eco-apply__contact a {
  color: var(--color-primary);
}

.eco-form {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.eco-form__row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.eco-form__field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eco-form__field--full {
  width: 100%;
}

.eco-form__field > span:first-child {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
}

.eco-form__field input,
.eco-form__select select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0 0 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  background: transparent;
  outline: none;
  border-radius: 0;
  appearance: none;
}

.eco-form__field input::placeholder {
  color: var(--color-text);
  opacity: 0.4;
}

.eco-form__select {
  position: relative;
  display: block;
  width: 100%;
}

.eco-form__select select {
  padding-right: 20px;
  cursor: pointer;
}

.eco-form__select select:invalid {
  color: rgba(28, 28, 28, 0.4);
}

.eco-form__select img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-70%);
  width: 12px;
  height: 12px;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .eco-hero__inner,
  .eco-channel__inner,
  .eco-network__inner,
  .eco-apply__inner {
    flex-direction: column;
  }

  .eco-hero__left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .eco-hero__mockup {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .eco-hero__mockup-row {
    flex-wrap: wrap;
  }

  .eco-hero__mockup-row strong,
  .eco-hero__mockup-row span {
    white-space: normal;
  }

  .eco-directions__grid {
    grid-template-columns: 1fr;
  }

  .eco-partners__row {
    flex-wrap: wrap;
  }

  .eco-partners__cell {
    flex: 1 1 calc(25% - 12px);
    min-width: 100px;
  }

  .eco-steps__row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .eco-steps__line {
    display: none;
  }

  .eco-network__stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .eco-network__stat + .eco-network__stat::before {
    display: none;
  }

  .eco-form__row {
    flex-direction: column;
  }

  .eco-capability__legend,
  .eco-capability__lists {
    grid-template-columns: 1fr;
  }

  .eco-channel__title,
  .eco-network__title,
  .eco-apply__title,
  .eco-hero__title {
    font-size: 32px;
  }

  .eco-hero__metrics {
    gap: 16px 20px;
  }

  .eco-network__stats {
    width: 100%;
  }

  .eco-network__stat {
    flex: 1 1 40%;
    min-width: 120px;
  }
}

@media (max-width: 640px) {
  .eco-partners__cell {
    flex: 1 1 calc(50% - 12px);
  }

  .eco-hero__title {
    font-size: 28px;
  }

  .eco-capability__banner {
    font-size: 16px;
  }

  .eco-hero,
  .eco-partners,
  .eco-directions,
  .eco-capability,
  .eco-channel,
  .eco-network,
  .eco-apply,
  .eco-steps {
    padding-left: var(--page-pad-x);
    padding-right: var(--page-pad-x);
  }

  .eco-form__row input,
  .eco-form__row select,
  .eco-form__row textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
