/* =====================================================
   企业简介 · 农业产业数字化大脑 全景互动看板
   纯 CSS/SVG 模拟动画（数据闭环 + 粒子流动 + 能力徽章）
   ===================================================== */

/* 覆盖 pages.css 中 intro-right 的 2 列网格，升级为单看板 */
.section-intro .intro-right {
  display: block;
}

/* ===== 看板容器 ===== */
.intro-visual {
  position: relative;
  height: 460px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(1100px 380px at 50% -10%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(760px 480px at 88% 112%, rgba(22, 101, 52, 0.5), transparent 65%),
    linear-gradient(160deg, #0b2447 0%, #0F3460 48%, #14532d 100%);
  border: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 20px 50px rgba(15, 52, 96, 0.22);
  transition: var(--transition);
}

/* 科技网格底纹 */
.intro-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  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);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, black 30%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 42%, black 30%, transparent 76%);
  pointer-events: none;
}

.intro-visual:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 22px 60px rgba(34, 211, 238, 0.18);
}

/* ===== 顶栏：LIVE + 标题 ===== */
.iv-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 0;
}

.iv-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;
}

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

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

.iv-title strong {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.iv-title span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1px;
}

/* ===== 链路层（SVG 连线 + 粒子 + 节点） ===== */
.iv-chain {
  position: absolute;
  inset: 54px 14px 96px;
  z-index: 2;
}

.iv-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.iv-path {
  fill: none;
  stroke: rgba(34, 211, 238, 0.25);
  stroke-width: 1.3;
  stroke-dasharray: 5 4;
  animation: ivDash 1.1s linear infinite;
}

.iv-path-core {
  stroke: rgba(34, 211, 238, 0.42);
  stroke-width: 1.6;
}

.iv-spoke {
  stroke: rgba(34, 211, 238, 0.16);
  stroke-dasharray: 2 7;
  animation-duration: 2.4s;
}

@keyframes ivDash {
  to { stroke-dashoffset: -9; }
}

.iv-dot {
  fill: #22D3EE;
  filter: drop-shadow(0 0 3px rgba(34, 211, 238, 0.9));
}

/* hover 加速粒子 */
.intro-visual:hover animateMotion { animation-duration: 1.5s !important; }
.intro-visual:hover .iv-path { animation-duration: 0.6s !important; }

/* ===== 链路节点 ===== */
.chain-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  z-index: 3;
  cursor: pointer;
}

.cn-1 { left: 10%;  top: 21%; }
.cn-2 { left: 50%;  top: 21%; }
.cn-3 { left: 90%;  top: 21%; }
.cn-4 { left: 30%;  top: 81%; }
.cn-5 { left: 70%;  top: 81%; }

.cn-ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(22, 101, 52, 0.4));
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #7dd3fc;
  animation: ivNode 3s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cn-ico svg {
  width: 24px;
  height: 24px;
}

@keyframes ivNode {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.25); }
  50% { box-shadow: 0 0 18px 2px rgba(34, 211, 238, 0.18); }
}

.cn-label {
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(6, 20, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.chain-node:hover .cn-ico {
  transform: scale(1.12);
  border-color: #22D3EE;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.45);
  animation: none;
}

.chain-node:hover .cn-label {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.55);
  color: #fff;
}

/* ===== 中央数据中台 ===== */
.iv-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.iv-core-ring {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(34, 211, 238, 0.28), rgba(6, 20, 40, 0.85) 70%);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #22D3EE;
}

.iv-core-ring svg {
  width: 26px;
  height: 26px;
}

.iv-core-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  animation: ivSpin 14s linear infinite;
}

.iv-core-ring::after {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.14);
  animation: ivRadar 3.6s ease-out infinite;
}

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

@keyframes ivRadar {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.iv-core-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ===== 能力徽章 ===== */
.iv-badges {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 66px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.iv-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 20px;
  background: rgba(8, 26, 48, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.iv-badge svg {
  width: 13px;
  height: 13px;
  color: #22D3EE;
  flex-shrink: 0;
}

.iv-badge:hover {
  border-color: #22D3EE;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 211, 238, 0.25);
}

/* ===== 底部数据条 ===== */
.iv-stats {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.iv-stat {
  padding: 10px 6px 8px;
  text-align: center;
  background: rgba(6, 20, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  transition: var(--transition);
}

.iv-stat:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(10, 30, 55, 0.75);
}

.iv-stat b {
  display: block;
  font-size: 18px;
  color: #22D3EE;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.iv-stat b i {
  font-style: normal;
  font-size: 11px;
  margin-left: 1px;
  opacity: 0.8;
}

.iv-stat span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}

.iv-stat .iv-stat-bar {
  display: block;
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: rgba(34, 211, 238, 0.14);
  overflow: hidden;
}

.iv-stat .iv-stat-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.4), #22D3EE);
  animation: ivBar 2.4s ease-in-out infinite;
}

@keyframes ivBar {
  0% { width: 18%; opacity: 0.6; }
  50% { width: 86%; opacity: 1; }
  100% { width: 18%; opacity: 0.6; }
}

/* ===== 降级：动效敏感用户 ===== */
@media (prefers-reduced-motion: reduce) {
  .iv-live i,
  .cn-ico,
  .iv-core-ring::before,
  .iv-core-ring::after,
  .iv-path,
  .iv-stat-bar i {
    animation: none !important;
  }
  animateMotion { animation-duration: 0.01s !important; }
}

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
  .intro-visual { height: 420px; }
  .cn-ico { width: 42px; height: 42px; }
  .cn-ico svg { width: 20px; height: 20px; }
  .cn-label { font-size: 10px; padding: 2px 8px; }
  .iv-badges { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .iv-badge { font-size: 10px; padding: 5px 9px; }
  .iv-stat b { font-size: 15px; }
  .iv-stat span { font-size: 9px; }
  .iv-stats { gap: 6px; }
}
