@charset "utf-8";

/* ============================================================
   customer.css — 合作客户（对齐宁帆结构，主题色本站红）
   ============================================================ */

.page-customer {
  --mx: var(--c-primary, #C8161D);
  --mx-deep: var(--c-primary-dark, #a81218);
  --mx-soft: rgba(200, 22, 29, 0.08);
  background: #fff;
}

.page-customer .site-wrap {
  width: var(--site-width-pct);
  max-width: var(--site-max-width);
  margin: 0 auto;
}

.customer-page {
  padding-bottom: 80px;
}

/* ---------- 能力卡片 ---------- */
.cust-adv {
  padding: 72px 0 20px;
}

.cust-adv__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 1.5%;
  margin: 0;
  padding: 0;
}

.cust-adv__item {
  width: 23.8%;
  background: #fff;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
  transition: background .25s ease, color .25s ease, transform .25s ease;
  overflow: hidden;
}

.cust-adv__item:hover {
  background: var(--mx);
  color: #fff;
  transform: translateY(-4px);
}

.cust-adv__pic {
  width: 100%;
  aspect-ratio: 770 / 454;
  overflow: hidden;
  background: #f3f3f3;
}

.cust-adv__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.cust-adv__item:hover .cust-adv__pic img {
  transform: scale(1.04);
}

.cust-adv__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px 28px;
}

.cust-adv__icon {
  width: 72px;
  height: 72px;
  margin-top: -36px;
  border-radius: 50%;
  background: #fff;
  color: var(--mx);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform .6s ease, color .25s ease;
}

.cust-adv__item:hover .cust-adv__icon {
  transform: rotateY(360deg);
  color: var(--mx);
}

.cust-adv__title {
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.cust-adv__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.58);
  transition: color .25s ease;
}

.cust-adv__item:hover .cust-adv__text {
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- 产品应用 ---------- */
.cust-apps {
  margin-top: 72px;
  padding: 88px 0;
  background: var(--mx);
  color: #fff;
}

.cust-apps__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cust-apps__left {
  width: 42%;
}

.cust-apps__eyebrow {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cust-apps__title {
  margin: 18px 0 20px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
}

.cust-apps__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.cust-apps__right {
  width: 54%;
}

.cust-apps__grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 2%;
  margin: 0;
  padding: 0;
}

.cust-apps__item {
  width: 32%;
  background: #fff;
  color: #222;
  overflow: hidden;
}

.cust-apps__pic {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.cust-apps__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.cust-apps__item:hover .cust-apps__pic img {
  transform: scale(1.06);
}

.cust-apps__name {
  min-height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- 合作伙伴 ---------- */
.cust-partners {
  padding: 88px 0 20px;
}

.cust-partners__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}

.cust-partners__copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 640px;
}

.cust-partners__eyebrow {
  color: var(--mx);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.cust-partners__title {
  margin: 14px 0 16px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
}

.cust-partners__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(0, 0, 0, 0.58);
  max-width: 560px;
}

.cust-partners__stat {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-right: 0;
}

.cust-partners__stat-label {
  writing-mode: vertical-lr;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #222;
}

.cust-partners__stat-num {
  position: relative;
  font-size: 120px;
  line-height: 0.9;
  font-weight: 800;
  color: var(--mx);
  letter-spacing: -0.04em;
  /* 给右侧竖排「伙伴」留出空间，整块仍贴右 */
  padding-right: 1.6em;
}

.cust-partners__stat-unit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-lr;
  background: #fff;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.35em;
  line-height: 1.2;
  padding: 4px 0;
}

.lang-en .cust-partners__stat-unit {
  writing-mode: horizontal-tb;
  letter-spacing: 0.04em;
  font-size: 18px;
  padding: 0 2px;
}

.cust-partners__stat-tip {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  text-align: right;
}

/* Logo 横向无缝滚动：第一行向左、第二行向右（限制在内容容器内） */
.cust-partners__carousel {
  position: relative;
  width: 100%;
}

.cust-partners__nav {
  display: none;
}

.cust-partners__marquee {
  width: 100%;
  margin-top: 8px;
}

.cust-partners__viewport {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  width: 100%;
}

.cust-partners__row {
  overflow: hidden;
  width: 100%;
}

.cust-partners__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: cust-partners-scroll-left 80s linear infinite;
}

.cust-partners__row--b .cust-partners__track {
  animation-name: cust-partners-scroll-right;
  animation-duration: 90s;
}

.cust-partners__marquee:hover .cust-partners__track {
  animation-play-state: paused;
}

.cust-partners__item {
  flex: 0 0 auto;
  width: 365px;
  height: 165px;
  margin: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 36px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  box-shadow: none;
}

.cust-partners__item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

@keyframes cust-partners-scroll-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes cust-partners-scroll-right {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cust-adv__item { width: 48.5%; }
  .cust-apps__title,
  .cust-partners__title { font-size: 32px; }
  .cust-partners__stat-num { font-size: 96px; }
  .cust-partners__item {
    width: 280px;
    height: 126px;
    margin: 0 14px;
    padding: 22px 28px;
  }
  .cust-partners__viewport { gap: 20px; }
  .cust-partners__track { animation-duration: 70s; }
  .cust-partners__row--b .cust-partners__track { animation-duration: 80s; }
}

@media (max-width: 900px) {
  .cust-apps__inner,
  .cust-partners__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .cust-apps__left,
  .cust-apps__right,
  .cust-partners__copy,
  .cust-partners__stat {
    width: 100%;
    max-width: none;
  }
  .cust-partners__stat {
    margin-left: 0;
    justify-content: flex-start;
  }
  .cust-partners__stat-tip {
    text-align: left;
  }
  .cust-apps { padding: 56px 0; }
  .cust-adv { padding-top: 48px; }
}

@media (max-width: 640px) {
  .cust-adv__item { width: 100%; }
  .cust-apps__item { width: 48.5%; }
  .cust-apps__pic { height: 120px; }
  .cust-apps__title,
  .cust-partners__title { font-size: 26px; }
  .cust-partners__stat-num { font-size: 72px; }
  .cust-partners__item {
    width: 200px;
    height: 90px;
    margin: 0 10px;
    padding: 16px 20px;
  }
  .cust-partners__viewport { gap: 14px; }
  .cust-partners__track { animation-duration: 60s; }
  .cust-partners__row--b .cust-partners__track { animation-duration: 70s; }
}
