/* 合作模式卡片：保留 2×2 面对面斜边造型，统一苹果极简纯白/浅银灰配色 + 极简 3D 图标 */
#cooperation {
  background: #f5f5f7;
}

#cooperation .modes {
  max-width: 1104px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto clamp(38px, 4vw, 56px);
}

#cooperation .modes > .mode {
  --mode-wash: #f3f5f9;
  --mode-wash-soft: rgba(243, 245, 249, .38);
  --mode-border: #e6e8ec;
  --mode-border-hover: #d2d7e0;
  --mode-art-width: clamp(114px, 11.2vw, 136px);
  --mode-art-size: clamp(96px, 9.6vw, 114px);
  --mode-corner: 17px;
  --mode-rounded-end: 27px;
  --mode-surface:
    radial-gradient(ellipse 260px 180px at calc(100% - 46px) 52%, var(--mode-wash) 0%, var(--mode-wash-soft) 52%, transparent 88%),
    #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--mode-art-width);
  align-items: center;
  min-width: 0;
  min-height: 148px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--mode-border);
  border-radius: var(--mode-corner) var(--mode-corner) var(--mode-rounded-end) var(--mode-corner);
  background: var(--mode-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 10px 24px -18px rgba(15, 23, 42, .14);
  transform: none;
  transition: transform .32s var(--ease), filter .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}

#cooperation .mode-copy {
  min-width: 0;
  padding: 26px 4px 26px clamp(18px, 1.9vw, 26px);
}

#cooperation .mode-copy h4 {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.28;
  color: #1d1d1f;
}

#cooperation .mode-copy p {
  max-width: none;
  color: #6e6e73;
  font-size: 14.5px;
  line-height: 1.62;
}

/* 右侧极简图标舞台：显式清除上游 hover 蓝底，保持纯净通透 */
#cooperation .modes > .mode .ico-wrap,
#cooperation .modes > .mode:hover .ico-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px 14px 10px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

#cooperation .modes > .mode .ico-wrap::before,
#cooperation .modes > .mode .ico-wrap::after {
  content: none;
}

#cooperation .modes > .mode .mode-art {
  display: block;
  width: var(--mode-art-size);
  height: var(--mode-art-size);
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  user-select: none;
  pointer-events: none;
  transition: transform .36s var(--ease);
}

/* 桌面端保留面对面斜边造型 */
@media (min-width: 769px) {
  @supports (clip-path: shape(from 0 0, line to 100% 0, line to 100% 100%, close)) {
    #cooperation .modes {
      --mode-lean: clamp(13px, 1.25vw, 18px);
      column-gap: 9px;
    }

    #cooperation .modes > .mode {
      --top-start: 0px;
      --bottom-end: 0px;
      --mode-profile: shape(
        from calc(var(--top-start) + var(--mode-corner)) 0,
        line to calc(100% - var(--mode-corner)) 0,
        curve to 100% var(--mode-corner) with 100% 0,
        line to calc(100% - var(--bottom-end)) calc(100% - var(--mode-rounded-end)),
        curve to calc(100% - var(--bottom-end) - var(--mode-rounded-end)) 100% with calc(100% - var(--bottom-end)) 100%,
        line to var(--mode-corner) 100%,
        curve to 0 calc(100% - var(--mode-corner)) with 0 100%,
        line to var(--top-start) var(--mode-corner),
        curve to calc(var(--top-start) + var(--mode-corner)) 0 with var(--top-start) 0,
        close
      );
      position: relative;
      border: 0;
      background: transparent;
      box-shadow: none;
      filter: drop-shadow(0 5px 10px rgba(15, 23, 42, .07));
    }

    #cooperation .modes > .mode:nth-child(odd) {
      --bottom-end: var(--mode-lean);
      grid-template-columns: minmax(0, 1fr) calc(var(--mode-art-width) + 6px);
    }

    #cooperation .modes > .mode:nth-child(odd) .ico-wrap {
      padding-inline-end: 16px;
    }

    #cooperation .modes > .mode:nth-child(even) {
      --top-start: var(--mode-lean);
    }

    #cooperation .mode:nth-child(even) .mode-copy {
      padding-inline-start: clamp(26px, 2.5vw, 34px);
    }

    #cooperation .modes > .mode::before,
    #cooperation .modes > .mode::after {
      content: "";
      position: absolute;
      pointer-events: none;
      clip-path: var(--mode-profile);
    }

    #cooperation .modes > .mode::before {
      inset: 0;
      z-index: -2;
      background: var(--mode-border);
      transition: background .28s var(--ease);
    }

    #cooperation .modes > .mode::after {
      inset: 1px;
      z-index: -1;
      background: var(--mode-surface);
    }
  }
}

@media (hover: hover) and (pointer: fine) {
  #cooperation .modes > .mode:hover {
    transform: translateY(-3px);
    border-color: var(--mode-border-hover);
  }

  #cooperation .modes > .mode:hover::before {
    background: var(--mode-border-hover);
  }

  #cooperation .modes > .mode:hover .mode-art {
    transform: translateY(-3px) scale(1.03);
  }
}

@media (max-width: 768px) {
  #cooperation .modes {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #cooperation .modes > .mode {
    --mode-art-width: 108px;
    --mode-art-size: 88px;
    min-height: 120px;
  }

  #cooperation .mode-copy {
    padding: 20px 10px 20px 18px;
  }

  #cooperation .modes > .mode .ico-wrap,
  #cooperation .modes > .mode:hover .ico-wrap {
    padding: 10px 14px 10px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cooperation .modes > .mode,
  #cooperation .modes > .mode .mode-art {
    transition: none;
  }

  #cooperation .modes > .mode:hover,
  #cooperation .modes > .mode:hover .mode-art {
    transform: none;
  }
}
