/* GRP AI 场景 — 对齐 u8cloud-ai-section-v2.html */
.section-ai {
  --uy-red: #e60012;
  --uy-red-dark: #b8000e;
  --ai-blue: #2563eb;
  --ai-purple: #7c3aed;
  --card: #ffffff;
  --card-hover: #f7f8fb;
  --text-main: #1f2937;
  --text-sub: #6b7280;
  --border: rgba(0, 0, 0, 0.08);
  position: relative;
  padding: 40px 0 72px;
  overflow: hidden;
  color: var(--text-main);
  line-height: 1.7;
}

.section-ai .bg-tech {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(230, 0, 18, 0.05) 0%, transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(37, 99, 235, 0.05) 0%, transparent 38%),
    radial-gradient(circle at 50% 92%, rgba(124, 58, 237, 0.04) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  pointer-events: none;
}

.section-ai .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  pointer-events: none;
}

.section-ai .container {
  width: min(1160px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* AI 智能中枢 */
.section-ai .ai-hub {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.section-ai .hub-core {
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 28px 44px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 36px;
}

.section-ai .hub-core::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(230, 0, 18, 0.6),
    rgba(37, 99, 235, 0.4),
    rgba(124, 58, 237, 0.4)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.section-ai .hub-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.section-ai .hub-icon {
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-ai .hub-icon img,
.section-ai .hub-icon-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(230, 0, 18, 0.18);
}

.section-ai .hub-icon-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e60012 0%, #b8000e 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-ai .hub-ring {
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(230, 0, 18, 0.2);
  border-radius: 50%;
  animation: gpr-ai-rotate 20s linear infinite;
}

.section-ai .hub-ring-2 {
  position: absolute;
  inset: -24px;
  border: 1px dashed rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  animation: gpr-ai-rotate 30s linear infinite reverse;
}

.section-ai .hub-title-img,
.section-ai .hub-title-text {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}

.section-ai .hub-title-text {
  height: auto;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #1f2937;
  line-height: 1;
}

.section-ai .hub-title-text span {
  color: var(--uy-red);
}

.section-ai .hub-content {
  flex: 1;
  min-width: 0;
}

.section-ai .hub-subtitle {
  font-size: 15px;
  color: var(--uy-red);
  font-weight: 700;
  margin: 0 0 8px;
}

.section-ai .hub-desc {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
}

/* 能力分层 */
.section-ai .capability-flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-ai .flow-layer {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: stretch;
}

.section-ai .layer-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 18px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--border);
  position: relative;
}

.section-ai .flow-layer:not(:last-child) .layer-label::after {
  content: "";
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 36px;
  background: linear-gradient(
    180deg,
    var(--uy-red),
    var(--ai-blue),
    var(--ai-purple),
    var(--uy-red)
  );
  background-size: 100% 300%;
  border-radius: 2px;
  animation: gpr-ai-flow 2.6s linear infinite;
}

@keyframes gpr-ai-flow {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 300%;
  }
}

.section-ai .layer-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  color: var(--uy-red);
}

.section-ai .layer-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.section-ai .layer-en {
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}

.section-ai .layer-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.section-ai .cap-card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

.section-ai .cap-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--uy-red), var(--ai-blue), var(--ai-purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.section-ai .cap-card:hover {
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
}

.section-ai .cap-card:hover::before {
  opacity: 1;
}

.section-ai .cap-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.section-ai .cap-number {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--uy-red) 0%, var(--uy-red-dark) 100%);
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 6px 18px rgba(230, 0, 18, 0.25);
}

.section-ai .cap-title-wrap {
  flex: 1;
  min-width: 0;
}

.section-ai .cap-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text-main);
  line-height: 1.3;
}

.section-ai .cap-tag {
  font-size: 13px;
  color: var(--text-sub);
}

.section-ai .cap-desc {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.75;
}

.section-ai .cap-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-sub);
  transition: all 0.3s ease;
}

.section-ai .cap-icon svg {
  width: 20px;
  height: 20px;
}

.section-ai .cap-card:hover .cap-icon {
  background: rgba(230, 0, 18, 0.1);
  color: var(--uy-red);
  transform: scale(1.1);
}

/* 数智员工高亮 */
.section-ai .cap-card.highlight {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 36px;
  background: linear-gradient(
    135deg,
    rgba(230, 0, 18, 0.06) 0%,
    rgba(124, 58, 237, 0.05) 100%
  );
  border-color: rgba(230, 0, 18, 0.22);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}

.section-ai .cap-card.highlight .cap-number {
  background: linear-gradient(135deg, var(--ai-purple) 0%, var(--ai-blue) 100%);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

.section-ai .cap-card.highlight .cap-avatar {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  position: relative;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ai-purple), var(--ai-blue));
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35);
}

.section-ai .cap-card.highlight .cap-avatar svg {
  width: 44px;
  height: 44px;
}

.section-ai .cap-card.highlight .cap-avatar::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 30px;
  border: 1.5px solid rgba(124, 58, 237, 0.45);
  animation: gpr-ai-breathe 2.6s ease-in-out infinite;
}

@keyframes gpr-ai-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.2;
  }
}

.section-ai .cap-card.highlight .cap-body {
  flex: 1;
  min-width: 0;
}

.section-ai .cap-card.highlight .cap-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.section-ai .cap-card.highlight .cap-title {
  font-size: 19px;
  font-weight: 800;
}

.section-ai .cap-card.highlight .cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ai-purple), var(--ai-blue));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 底部技术标签 */
.section-ai .tech-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
}

.section-ai .tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
  transition: color 0.25s ease, transform 0.25s ease;
}

.section-ai .tech-item:hover {
  color: var(--uy-red);
  transform: translateY(-2px);
}

.section-ai .tech-item svg {
  width: 20px;
  height: 20px;
  color: var(--uy-red);
}

@keyframes gpr-ai-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .section-ai .hub-core {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }

  .section-ai .hub-brand {
    flex-direction: column;
    gap: 12px;
  }

  .section-ai .flow-layer {
    grid-template-columns: 1fr;
  }

  .section-ai .layer-label {
    flex-direction: row;
    gap: 14px;
    text-align: left;
    padding: 16px 20px;
  }

  .section-ai .layer-label::after {
    display: none !important;
  }

  .section-ai .layer-icon {
    margin-bottom: 0;
  }

  .section-ai .layer-cards {
    grid-template-columns: 1fr;
  }

  .section-ai .cap-card.highlight {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 18px;
  }

  .section-ai .cap-card.highlight .cap-title-row {
    justify-content: center;
  }

  .section-ai .tech-strip {
    gap: 20px 28px;
    margin-top: 40px;
    padding: 20px 16px;
  }
}

@media (max-width: 850px) {
  .section-ai {
    padding: 24px 0 48px;
  }

  .section-ai .ai-hub {
    margin-bottom: 32px;
  }

  .section-ai .capability-flow {
    gap: 24px;
  }

  .section-ai .cap-card {
    padding: 20px;
  }

  .section-ai .cap-title {
    font-size: 17px;
  }

  .section-ai .cap-desc {
    font-size: 14px;
  }
}
