/* ==========================================================================
   云服务产品展示中心 (Cloud Services Showcase Center)
   ========================================================================== */

.cloud-showcase-section {
  padding: 100px 0;
  background: #fff;
  background-image:
    radial-gradient(at 0% 0%, rgba(22, 119, 255, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(131, 82, 253, 0.03) 0px, transparent 50%);
  position: relative;
  overflow: hidden;
}

.cloud-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.cloud-header {
  text-align: center;
  margin-bottom: 80px;
}

.cloud-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.cloud-header h2 .text-blue {
  color: #1677FF;
}

/* 核心内容布局 */
.cloud-content {
  display: flex;
  gap: 80px;
  align-items: center;
}

/* 左侧：轨道视觉区域 */
.cloud-visual-box {
  flex: 0 0 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cloud-orbit-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  margin-bottom: 40px;
  background: radial-gradient(circle at center, rgba(22, 119, 255, 0.05) 0%, transparent 70%);
}

/* 中心节点 3D 化与发光环 */
.cloud-center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #f0f7ff 50%, #f5f3ff 100%);
  border-radius: 50%;
  box-shadow:
    0 20px 50px rgba(22, 119, 255, 0.15),
    0 0 30px rgba(131, 82, 253, 0.1),
    inset 0 -5px 15px rgba(22, 119, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 1px solid rgba(22, 119, 255, 0.1);
}

/* 内层旋转光环 */
.cloud-center-node::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px dashed rgba(22, 119, 255, 0.3);
  border-radius: 50%;
  animation: center-rotate 15s linear infinite;
}

/* 外层呼吸扩散光晕 */
.cloud-center-node::after {
  content: '';
  position: absolute;
  top: -25px;
  left: -25px;
  right: -25px;
  bottom: -25px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: center-pulse 4s ease-in-out infinite;
  z-index: -1;
}

.cloud-center-node i {
  font-size: 42px;
  color: #1677FF;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 8px rgba(22, 119, 255, 0.2));
}

.cloud-center-node span {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@keyframes center-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes center-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* 轨道线 */
.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(22, 119, 255, 0.15);
  border-radius: 50%;
}

.line-1 {
  width: 220px;
  height: 220px;
  border-color: rgba(131, 82, 253, 0.25); /* 淡淡的紫色 */
  animation: orbit-rotate 25s linear infinite;
}

.line-2 {
  width: 320px;
  height: 320px;
  border-color: rgba(0, 191, 191, 0.25); /* 淡淡的青色 */
  animation: orbit-rotate 40s linear infinite reverse;
}

@keyframes orbit-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 轨道卫星 */
.orbit-sat {
  position: absolute;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.orbit-sat:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(22, 119, 255, 0.15);
}

.orbit-sat i {
  font-size: 24px;
  color: #1677FF;
  transition: transform 0.3s;
}

/* 为每个卫星增加独特颜色与发光效果 */
.sat-p1 {
  border-color: rgba(22, 119, 255, 0.4) !important;
  box-shadow: 0 0 20px rgba(22, 119, 255, 0.15) !important;
}

.sat-p1 i {
  color: #1677FF;
}

.sat-p2 {
  border-color: rgba(131, 82, 253, 0.4) !important;
  box-shadow: 0 0 20px rgba(131, 82, 253, 0.15) !important;
}

.sat-p2 i {
  color: #8352fd;
}

.sat-p3 {
  border-color: rgba(0, 191, 191, 0.4) !important;
  box-shadow: 0 0 20px rgba(0, 191, 191, 0.15) !important;
}

.sat-p3 i {
  color: #00bfbf;
}

.sat-p4 {
  border-color: rgba(255, 120, 117, 0.4) !important;
  box-shadow: 0 0 20px rgba(255, 120, 117, 0.15) !important;
}

.sat-p4 i {
  color: #ff7875;
}

.orbit-sat:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* 保持图标垂直不随轨道旋转 */
.orbit-sat>* {
  animation: orbit-counter-rotate 25s linear infinite;
}

.line-2 .orbit-sat>* {
  animation: orbit-counter-rotate 40s linear infinite reverse;
}

@keyframes orbit-counter-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* 卫星初始位置 */
.sat-p1 {
  top: -22px;
  left: calc(50% - 22px);
}

.sat-p2 {
  bottom: -22px;
  left: calc(50% - 22px);
}

.sat-p3 {
  left: -22px;
  top: calc(50% - 22px);
}

.sat-p4 {
  right: -22px;
  top: calc(50% - 22px);
}


/* 左侧文字描述 */
.cloud-visual-info {
  text-align: center;
  max-width: 420px;
}

.cloud-visual-info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0f172a;
}

.cloud-visual-info p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cloud-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.btn-cloud-primary {
  background: #1677FF;
  color: #fff !important;
  padding: 12px 36px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(22, 119, 255, 0.15);
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
}

.btn-cloud-primary:hover {
  background: #0056cc;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.35);
  transform: translateY(-3px);
  color: #fff !important;
}

.btn-cloud-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.link-cloud-more {
  color: #64748b;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 8px 0;
}

.link-cloud-more:hover {
  color: #1677FF !important;
  gap: 10px;
}

.link-cloud-more:hover i {
  color: #1677FF !important;
}

/* 右侧：产品矩阵网格 */
.cloud-services-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 30px;
}

.service-card {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}

.service-card:hover {
  background: rgba(22, 119, 255, 0.02);
  transform: translateX(5px);
}

.service-icon-box {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 119, 255, 0.06);
  border-radius: 8px;
  color: #1677FF;
  font-size: 18px;
  overflow: hidden;
}

.service-icon-box img.dynamic-icon-img {
  display: block;
  max-width: 85%;
  max-height: 85%;
  transition: transform 0.3s ease;
}

.service-card:hover .dynamic-icon-img {
  transform: scale(1.15) rotate(5deg);
}

.service-main {
  flex: 1;
}

.service-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.service-name {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.service-label {
  font-size: 11px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.service-summary {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 动态标签样式 */
.service-badge-top {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(255, 77, 79, 0.3);
  z-index: 5;
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .cloud-content {
    flex-direction: column;
    gap: 60px;
  }

  .cloud-visual-box {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .cloud-showcase-section {
    padding: 20px 0 !important; /* 减小移动端内边距 */
  }

  .cloud-container {
    padding: 0 12px;
  }

  .cloud-header {
    display: none;
  }

  .cloud-content {
    position: relative;
    gap: 0; /* 使用 margin 控制间距 */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 使用 display: contents 让子元素（标题、描述、按钮）直接参与 cloud-content 的 flex 排序 */
  .cloud-visual-box,
  .cloud-visual-info {
    display: contents;
  }

  .cloud-visual-info h3 {
    order: 1;
    font-size: 22px;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .cloud-visual-info p {
    order: 2;
    font-size: 13px;
    margin-bottom: 30px;
    padding: 0 10px;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .cloud-services-grid {
    order: 3;
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 10px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%;
    margin-bottom: 25px;
  }

  .cloud-actions {
    order: 4;
    position: relative;
    z-index: 2;
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .service-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(22, 119, 255, 0.06);
    padding: 12px 10px;
  }

  .service-card:active {
    transform: scale(0.98);
    background: rgba(22, 119, 255, 0.05);
  }

  /* 动画背景依然相对于 cloud-content 定位，不受 display: contents 影响其绝对定位 */
  .cloud-orbit-wrapper {
    position: absolute;
    top: 45%; /* 向上微调，使其更靠近视觉中心 */
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    filter: blur(2px);
  }
}