/* =====================================================
   关于我们 · 企业简介「核心竞争力引擎图谱」全景互动看板
   纯 CSS/SVG 模拟动画（中心引擎 + 能力节点 + 粒子数据流）
   ===================================================== */

/* 覆盖 pages.css 中原视觉区背景，统一为科技蓝风格 */
.about-story-visual {
  background:
    radial-gradient(1000px 360px at 50% -10%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(700px 460px at 88% 112%, rgba(22, 101, 52, 0.5), transparent 65%),
    linear-gradient(160deg, #0b2447 0%, #0F3460 48%, #14532d 100%) !important;
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 20px 50px rgba(15, 52, 96, 0.22);
}

/* 覆盖网格底纹为青色系，中心聚焦 */
.about-story-visual::after {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px) !important;
  background-size: 26px 26px !important;
  -webkit-mask-image: radial-gradient(ellipse at 50% 44%, black 30%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 44%, black 30%, transparent 76%);
}

/* ===== 顶栏：LIVE + 标题 ===== */
.ab-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 0;
}

.ab-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #22D3EE;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ab-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22D3EE;
  animation: abLive 1.2s ease-in-out infinite;
}

@keyframes abLive {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #22D3EE; }
  50% { opacity: 0.35; box-shadow: none; }
}

.ab-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 2px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== SVG 粒子连接层 ===== */
.ab-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ab-links .ab-flow-line {
  fill: none;
  stroke: rgba(34, 211, 238, 0.28);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  animation: abDash 1.4s linear infinite;
}

.ab-links .ab-flow-line-strong {
  stroke: rgba(34, 211, 238, 0.45);
  stroke-width: 1.6;
}

.ab-links circle {
  fill: #22D3EE;
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.9));
}

@keyframes abDash {
  to { stroke-dashoffset: -18; }
}

.ab-links .ab-particle-1 { animation-duration: 2.6s; }
.ab-links .ab-particle-2 { animation-duration: 3.4s; }
.ab-links .ab-particle-3 { animation-duration: 3.0s; }

/* 悬停看板：粒子加速 + 线条加亮 */
.about-story-visual:hover .ab-flow-line {
  stroke-dashoffset: 0;
  animation-duration: 0.7s;
  stroke: rgba(34, 211, 238, 0.55);
}

.about-story-visual:hover .ab-particle-1 { animation-duration: 1.1s; }
.about-story-visual:hover .ab-particle-2 { animation-duration: 1.4s; }
.about-story-visual:hover .ab-particle-3 { animation-duration: 1.2s; }

/* ===== 中心引擎 ===== */
.ab-engine {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.ab-engine-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.5);
  animation: abRotate 22s linear infinite;
}

.ab-engine-ring.ring-2 {
  inset: 14px;
  border-style: solid;
  border-color: rgba(34, 211, 238, 0.2);
  animation: abRotate 12s linear infinite reverse;
}

.ab-engine-ring.ring-2::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 8px #22D3EE;
}

@keyframes abRotate {
  to { transform: rotate(360deg); }
}

/* 雷达扫描扇区 */
.ab-radar {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  overflow: hidden;
  animation: abRotate 5s linear infinite;
}

.ab-radar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 50%;
  transform-origin: 0 100%;
  background: conic-gradient(from 0deg at 0 100%,
    rgba(34, 211, 238, 0.35) 0deg,
    rgba(34, 211, 238, 0.06) 46deg,
    transparent 48deg);
}

.ab-engine-core {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #1d6b3f 0%, #166534 55%, #0e4a25 100%);
  border: 1.5px solid rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 18px rgba(34, 211, 238, 0.35),
    inset 0 0 14px rgba(0, 0, 0, 0.35);
  animation: abCorePulse 3.2s ease-in-out infinite;
}

@keyframes abCorePulse {
  0%, 100% { box-shadow: 0 0 14px rgba(34, 211, 238, 0.3), inset 0 0 14px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 26px rgba(34, 211, 238, 0.55), inset 0 0 14px rgba(0, 0, 0, 0.35); }
}

.ab-engine-glyph {
  font-size: 30px;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ab-engine-label {
  margin-top: 3px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2px;
}

/* 引擎下方 slogan */
.ab-slogan {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 3px;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.ab-slogan span {
  color: #22D3EE;
}

/* ===== 能力节点 ===== */
.ab-node {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 132px;
  transition: transform 0.3s ease;
  cursor: default;
}

.ab-node:hover {
  transform: scale(1.08);
}

.ab-node-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 52, 96, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.ab-node-icon svg {
  width: 22px;
  height: 22px;
  stroke: #22D3EE;
}

.ab-node:hover .ab-node-icon {
  background: rgba(34, 211, 238, 0.16);
  border-color: #22D3EE;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
}

.ab-node-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.ab-node:hover .ab-node-name {
  color: #22D3EE;
}

.ab-node-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.ab-node-tags span {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.ab-node:hover .ab-node-tags span {
  color: #22D3EE;
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

/* 节点位置 */
.ab-node-software { left: 62%; top: 24%; }
.ab-node-iot       { left: 63%; top: 68%; }
.ab-node-industry  { left: 8%;  top: 74%; }

/* ===== 底部数据条 ===== */
.ab-stats {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.ab-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.ab-stat b {
  font-size: 17px;
  font-weight: 800;
  color: #22D3EE;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ab-stat span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 数据条分隔线 */
.ab-stat + .ab-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* 悬停看板：边框光晕 */
.about-story-visual:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 22px 60px rgba(34, 211, 238, 0.18);
}

/* ===== 动画降级 ===== */
@media (prefers-reduced-motion: reduce) {
  .ab-engine-ring,
  .ab-radar,
  .ab-engine-core,
  .ab-live i {
    animation: none !important;
  }
  .ab-links .ab-flow-line,
  .ab-links circle {
    animation: none !important;
  }
}

/* ===== 移动端适配 ===== */
@media (max-width: 767px) {
  .ab-title { display: none; }
  .ab-engine { width: 104px; height: 104px; top: 44%; }
  .ab-engine-ring.ring-2 { inset: 12px; }
  .ab-engine-core { inset: 24px; }
  .ab-engine-glyph { font-size: 24px; }
  .ab-radar { inset: 18px; }
  .ab-node { width: 108px; }
  .ab-node-icon { width: 34px; height: 34px; }
  .ab-node-icon svg { width: 18px; height: 18px; }
  .ab-node-name { font-size: 12px; }
  .ab-node-tags span { font-size: 9px; padding: 1px 6px; }
  .ab-node-software { left: 56%; top: 22%; }
  .ab-node-iot { left: 57%; top: 70%; }
  .ab-node-industry { left: 2%; top: 76%; }
  .ab-slogan { top: 63%; font-size: 11px; letter-spacing: 2px; }
  .ab-stats { left: 12px; right: 12px; padding: 8px 6px; }
  .ab-stat b { font-size: 14px; }
  .ab-stat span { font-size: 9px; }
}
