/* customer */
.customer-item {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  padding-bottom: 50px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.customer-video {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
}

.customer-content {
  overflow: hidden;
}

.customer-content .cp-title h3 {
  font-size: 32px;
  color: #fff;
}

.customer-content .cp-title p {
  margin-top: 10px;
  font-size: 16px;
  color: #fff;
}

.customer-counter {
  margin-top: 40px;
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(21.5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease-in-out,
    visibility 0.3s;
  overflow: hidden;
}

.customer-counter::before {
  position: absolute;
  content: "";
  border-radius: 1%;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 50.7646% 100.9067% at 1.8506% 18.1%,
      rgba(0, 117, 255, 0.9) 0%,
      rgba(0, 117, 255, 0.7) 15%,
      rgba(0, 117, 255, 0.15) 64%,
      rgba(16, 22, 33, 0) 90%
    ),
    radial-gradient(
      ellipse 80.7646% 90.9067% at 97.9582% 90.03%,
      rgba(29, 214, 255, 0.9) 0%,
      rgba(29, 214, 255, 0.7) 15%,
      rgba(29, 214, 255, 0.1) 64%,
      rgba(16, 22, 33, 0) 90%
    );
  background-blend-mode: overlay, normal;
  filter: blur(20px);
  inset: -20px;
  transition: 0.6s ease-in-out;
}

.customer-counter ul li {
  flex: 1;
  padding: 20px;
}

.customer-counter .cp-item {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.customer-counter ul li:first-child .cp-item {
  border-left: none;
}

.customer-counter .cp-item p {
  font-size: 16px;
  color: #fff;
}

.customer-counter .cp-item h4 {
  font-size: 24px;
  color: #fff;
}

.customer-counter .cp-item h4 span {
  font-size: 48px;
}
/* hover 展开逻辑：仅在有悬停能力的设备生效，与屏幕宽度解耦 */
@media (hover: hover) {
  .customer-item:hover .customer-content {
    padding-top: 0;
  }
  .customer-item:hover .customer-counter {
    max-height: 240px;
    opacity: 1;
    visibility: visible;
  }
}

/* ===== customer-list 响应式适配 ===== */

/* ≤1366px */
@media (max-width: 1366px) {
  .customer-content .cp-title h3 {
    font-size: 28px;
  }
  .customer-counter .cp-item h4 span {
    font-size: 40px;
  }
}

/* ≤1024px：字号/间距收敛（布局仍由 hover / hover:none 控制展开） */
@media (max-width: 1024px) {
  .customer-content .cp-title h3 {
    font-size: 24px;
  }
  .customer-content .cp-title p {
    font-size: 14px;
  }
  .customer-counter {
    margin-top: 24px;
  }
  .customer-counter ul li {
    padding: 14px;
  }
  .customer-counter .cp-item p {
    font-size: 14px;
  }
  .customer-counter .cp-item h4 {
    font-size: 20px;
  }
  .customer-counter .cp-item h4 span {
    font-size: 32px;
  }
}

/* 触屏设备：无悬停能力时，数据面板直接常驻展开 */
@media (hover: none) {
  .customer-counter {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
  }
}

/* ≤768px：标题与数据竖排，数据面板两列（展开逻辑仍由 hover/hover:none 决定） */
@media (max-width: 768px) {
  .customer-item {
    min-height: 100vh;
    height: auto;
    padding-bottom: 30px;
    justify-content: flex-end;
  }
  .customer-content .cp-title h3 {
    font-size: 20px;
    line-height: 1.4;
  }
  .customer-content .cp-title p {
    font-size: 13px;
    line-height: 1.6;
  }
  .customer-counter {
    margin-top: 20px;
  }
  /* 4 列 → 2 列换行 */
  .customer-counter ul {
    flex-wrap: wrap;
  }
  .customer-counter ul li {
    flex: 0 0 50%;
    padding: 14px 10px;
  }
  /* 换行后重设左边框：每行第 1 个去边框 */
  .customer-counter .cp-item {
    border-left: none;
  }
  .customer-counter ul li:nth-child(even) .cp-item {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
  .customer-counter .cp-item p {
    font-size: 12px;
  }
  .customer-counter .cp-item h4 {
    font-size: 18px;
  }
  .customer-counter .cp-item h4 span {
    font-size: 28px;
  }
}

/* ≤480px */
@media (max-width: 480px) {
  .customer-item {
    padding-bottom: 24px;
  }
  .customer-content .cp-title h3 {
    font-size: 18px;
  }
  .customer-content .cp-title p {
    font-size: 12px;
  }
  .customer-counter ul li {
    padding: 12px 8px;
  }
  .customer-counter .cp-item p {
    font-size: 11px;
  }
  .customer-counter .cp-item h4 span {
    font-size: 24px;
  }
}

/* ===== maplay-logo-marquee 三排 logo 跑马灯 ===== */

.maplay-logo {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #000;
}

.maplay-logo-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 460px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: 50%;
  background-color: #000;
  box-shadow: 0 0 200px 300px rgba(0, 0, 0, 0.8);
}

.maplay-logo-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: linear-gradient(-90deg, #1260f9, #2fdaff);
  border: 1px solid #b4ceef;
}

.maplay-logo-content::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  z-index: -2;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background-image: linear-gradient(-90deg, #1260f9, #2fdaff);
  filter: blur(100px);
}

/* ===== SVG 电流流光圆环（独立层，不受 border-radius 裁切） ===== */
.maplay-logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  width: 552px;
  height: 552px;
}
/* 贪吃蛇公转：CSS animation 替代 GSAP */
.orbit-group {
  transform-origin: 276px 276px;
}
.orbit-group {
  animation: orbit-spin 3.5s linear infinite;
}
@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== "+" 初始隐藏 ===== */
.maplay-logo-number .num-plus {
  opacity: 0;
}

.maplay-logo-title h3 {
  font-size: 24px;
  color: #fff;
}

.maplay-logo-title p {
  margin-top: 10px;
  font-size: 16px;
  color: #fff;
}

.maplay-logo-number {
  position: relative;
  z-index: 1;
  margin-top: 50px;
}

.maplay-logo-number span {
  font-size: 6rem;
  color: #fff;
}

.maplay-logo-number em {
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 4rem;
  color: #fff;
}

.maplay-logo-marquee {
  padding: 80px 0;
}

.marquee-row {
  overflow: hidden;
  margin-top: 32px;
  position: relative;
}

.marquee-row:first-child {
  margin-top: 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation-play-state: paused;
}

.marquee-track.marquee-ready {
  animation-play-state: running;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  column-gap: 80px;
}

.marquee-group img {
  display: block;
  width: 180px;
  height: 90px;
  object-fit: contain;
}

/* Row 1: left, 22s */
.marquee-row-1 .marquee-track {
  animation-name: marquee-left;
  animation-duration: 30s;
}

/* Row 2: right, 28s */
.marquee-row-2 .marquee-track {
  animation-name: marquee-right;
  animation-duration: 28s;
}

/* Row 3: left, 16s */
.marquee-row-3 .marquee-track {
  animation-name: marquee-left;
  animation-duration: 40s;
}

/* 所有的 track 共用 linear infinite */
.marquee-track.marquee-ready {
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* ===== ≤1366px ===== */
@media (max-width: 1366px) {
  .maplay-logo-marquee {
    padding: 60px 0;
  }
  .marquee-row {
    margin-top: 28px;
  }
  .marquee-group {
    column-gap: 60px;
  }
  .marquee-group img {
    width: 150px;
    height: 75px;
  }
  .maplay-logo-content {
    width: 400px;
    height: 400px;
  }
  .maplay-logo-ring {
    width: 480px;
    height: 480px;
  }
  .maplay-logo-number span {
    font-size: 5rem;
  }
  .maplay-logo-number em {
    font-size: 3.2rem;
    top: -24px;
    right: -24px;
  }
  .maplay-logo-title h3 {
    font-size: 22px;
  }
  .maplay-logo-title p {
    font-size: 15px;
  }
}

/* ===== ≤1200px ===== */
@media (max-width: 1200px) {
  .maplay-logo-marquee {
    padding: 52px 0;
  }
  .marquee-row {
    margin-top: 26px;
  }
  .marquee-group {
    column-gap: 52px;
  }
  .marquee-group img {
    width: 140px;
    height: 70px;
  }
  .maplay-logo-content {
    width: 360px;
    height: 360px;
  }
  .maplay-logo-ring {
    width: 432px;
    height: 432px;
  }
  .maplay-logo-number span {
    font-size: 4.5rem;
  }
  .maplay-logo-number em {
    font-size: 2.8rem;
    top: -20px;
    right: -20px;
  }
  .maplay-logo-title h3 {
    font-size: 20px;
  }
  .maplay-logo-title p {
    font-size: 14px;
  }
}

/* ===== ≤1024px ===== */
@media (max-width: 1024px) {
  .maplay-logo-marquee {
    padding: 44px 0;
  }
  .marquee-row {
    margin-top: 22px;
  }
  .marquee-group {
    column-gap: 42px;
  }
  .marquee-group img {
    width: 120px;
    height: 60px;
  }
  .maplay-logo-content {
    width: 320px;
    height: 320px;
  }
  .maplay-logo-ring {
    width: 384px;
    height: 384px;
  }
  .maplay-logo-number span {
    font-size: 4rem;
  }
  .maplay-logo-number em {
    font-size: 2.4rem;
    top: -18px;
    right: -18px;
  }
  .maplay-logo-title h3 {
    font-size: 18px;
  }
  .maplay-logo-title p {
    font-size: 13px;
  }
  .maplay-logo-number {
    margin-top: 36px;
  }
}

/* ===== ≤768px ===== */
@media (max-width: 768px) {
  .maplay-logo-marquee {
    padding: 36px 0;
  }
  .marquee-row {
    margin-top: 18px;
  }
  .marquee-group {
    column-gap: 32px;
  }
  .marquee-group img {
    width: 100px;
    height: 50px;
    /* 移动端禁用 hover 滤镜 */
    opacity: 0.7;
  }
  /* 加速动画（内容窄，同比例位移，缩短时长更流畅） */
  .marquee-row-1 .marquee-track {
    animation-duration: 16s;
  }
  .marquee-row-2 .marquee-track {
    animation-duration: 20s;
  }
  .marquee-row-3 .marquee-track {
    animation-duration: 12s;
  }
  .maplay-logo-content {
    width: 280px;
    height: 280px;
  }
  .maplay-logo-ring {
    width: 336px;
    height: 336px;
  }
  .maplay-logo-number span {
    font-size: 3.5rem;
  }
  .maplay-logo-number em {
    font-size: 2rem;
    top: -16px;
    right: -14px;
  }
  .maplay-logo-title h3 {
    font-size: 17px;
  }
  .maplay-logo-title p {
    font-size: 12px;
  }
  .maplay-logo-number {
    margin-top: 30px;
  }
}

/* ===== ≤480px ===== */
@media (max-width: 480px) {
  .maplay-logo-marquee {
    padding: 28px 0;
  }
  .marquee-row {
    margin-top: 14px;
  }
  .marquee-group {
    column-gap: 24px;
  }
  .marquee-group img {
    width: 80px;
    height: 40px;
    opacity: 0.75;
  }
  /* 小屏进一步加速 */
  .marquee-row-1 .marquee-track {
    animation-duration: 12s;
  }
  .marquee-row-2 .marquee-track {
    animation-duration: 16s;
  }
  .marquee-row-3 .marquee-track {
    animation-duration: 9s;
  }
  .maplay-logo-content {
    width: 240px;
    height: 240px;
  }
  .maplay-logo-ring {
    width: 288px;
    height: 288px;
  }
  .maplay-logo-number span {
    font-size: 3rem;
  }
  .maplay-logo-number em {
    font-size: 1.6rem;
    top: -14px;
    right: -12px;
  }
  .maplay-logo-title h3 {
    font-size: 16px;
  }
  .maplay-logo-title p {
    font-size: 11px;
    margin-top: 6px;
  }
  .maplay-logo-number {
    margin-top: 24px;
  }
}
