/* 七炎科技 - 科技动效全局样式 */

/* ===== 粒子 Canvas ===== */
.particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* ===== 鼠标光晕 ===== */
.mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,203,148,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  top: 0;
  left: 0;
  will-change: transform;
  transition: none;
}

/* ===== 打字机光标 ===== */
.tw-cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 300;
  animation: blink 0.9s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ===== 滚动进度条 ===== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #00e5b0, #1677FF);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(6,203,148,0.6);
}

/* ===== Matrix Canvas ===== */
.matrix-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.stats-section, .home-stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #091422 100%) !important;
}
.stats-section > .container,
.home-stats-section > .container {
  position: relative;
  z-index: 1;
}
/* 深色背景下文字颜色调整 */
.home-stats-section .hsc-label {
  color: rgba(255,255,255,0.55);
}
.home-stats-section .hsc-icon {
  filter: brightness(1.2);
}

/* ===== 卡片倾斜 - 添加到想要倾斜的卡片上 ===== */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  position: relative;
  overflow: hidden;
}
.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
  transition: background 0.1s;
}

/* ===== 流光边框 ===== */
.glow-border {
  position: relative;
  transition: box-shadow 0.4s ease;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--primary), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glow-border.glow-active::before { opacity: 1; }
.glow-border.glow-active {
  box-shadow: 0 0 20px rgba(6,203,148,0.15), 0 0 40px rgba(6,203,148,0.06);
}

/* ===== 浮动标签动画 ===== */
.float-tag {
  animation: floatY 4s ease-in-out infinite alternate;
}
@keyframes floatY {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}

/* ===== Section 进场 ===== */
.section-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== 数字光效 ===== */
[data-countup] {
  background: linear-gradient(135deg, #06CB94, #00e5b0, #1677FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ===== 科技感全局增强 ===== */

/* 导航流光下划线 */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--primary), #1677FF);
  transition: width 0.3s ease;
  box-shadow: 0 0 6px rgba(6,203,148,0.5);
}
.nav-links a:hover::after,
.nav-links li.active a::after { width: 100%; }

/* 按钮流光扫描效果 */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: btnSweep 3s ease-in-out infinite;
}
@keyframes btnSweep {
  0%   { left: -100%; }
  50%  { left: 150%; }
  100% { left: 150%; }
}

/* 卡片悬浮发光 */
.sol-card:hover,
.adv-card:hover,
.case-detail-card:hover,
.why-card:hover,
.team-card:hover {
  box-shadow: 0 12px 40px rgba(6,203,148,0.12), 0 4px 16px rgba(0,0,0,0.06);
}

/* 标签页激活流光 */
.tab-btn.active {
  position: relative;
  overflow: hidden;
}
.tab-btn.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,203,148,0.2), rgba(22,119,255,0.1));
  animation: tabPulse 2s ease-in-out infinite alternate;
}
@keyframes tabPulse {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* 平台图标格子悬浮发光 */
.platform-item:hover {
  box-shadow: 0 0 16px rgba(6,203,148,0.2), 0 4px 12px rgba(0,0,0,0.06);
  border-color: rgba(6,203,148,0.3);
}

/* 数字区深色背景增强 */
.stats-section {
  background: linear-gradient(135deg, #0d2137 0%, #0a1f35 50%, #0d2137 100%);
}

/* hero 区光点脉冲 */
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: relative;
  display: inline-block;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-ring 1.6s ease-out infinite;
}

/* ===== 动态渐变背景 section ===== */
.tech-bg-section {
  background: linear-gradient(160deg,
    rgba(6,203,148,0.03) 0%,
    rgba(255,255,255,0) 40%,
    rgba(22,119,255,0.03) 100%);
}

/* ===== 流光分割线 ===== */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.4;
  margin: 0;
}

/* ===== 统计数字更大更醒目 ===== */
.stat-number {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #06CB94, #00e5b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ===== 首页场景卡悬浮升级 ===== */
.home-scene-card:hover .hsc-tag {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.hsc-tag {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== solution卡片 gradient text ===== */
.sol-metrics strong {
  background: linear-gradient(135deg, #06CB94, #1677FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 22px;
  font-weight: 800;
}

/* ===== 数字统计卡 home ===== */
.hsc-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  background: linear-gradient(135deg, #06CB94, #00b884);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

/* ===== 首页 why-card 序号改为渐变 ===== */
.why-num {
  background: linear-gradient(135deg, var(--primary), #1677FF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.15;
}

/* ===== 亮点标签脉冲 ===== */
.section-label {
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ===== SVG 图标圆形容器 ===== */
.hsc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6,203,148,0.12), rgba(6,203,148,0.05));
  border: 1px solid rgba(6,203,148,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
  transition: all 0.3s ease;
}
.home-stat-card:hover .hsc-icon {
  background: linear-gradient(135deg, rgba(6,203,148,0.2), rgba(6,203,148,0.08));
  box-shadow: 0 0 16px rgba(6,203,148,0.2);
  transform: scale(1.06);
}

/* 深色背景下图标颜色 */
.home-stats-section .hsc-icon {
  background: linear-gradient(135deg, rgba(6,203,148,0.15), rgba(22,119,255,0.08));
  border: 1px solid rgba(6,203,148,0.25);
  color: #06CB94;
}

/* ===== 关于我们价值观卡片 ===== */
.value-card {
  background: white;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.value-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== fs-icon SVG 容器 ===== */
.fs-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6,203,148,0.15), rgba(22,119,255,0.08));
  border: 1px solid rgba(6,203,148,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== 工作台实时数据条 ===== */
.mockup-realtime-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: rgba(6,203,148,0.05);
  border-top: 1px solid rgba(6,203,148,0.12);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}
.rt-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.rt-item b {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}
.rt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rt-dot.green {
  background: #06CB94;
  box-shadow: 0 0 5px rgba(6,203,148,0.6);
  animation: rtPulse 1.5s ease-in-out infinite;
}
.rt-dot.blue {
  background: #1677FF;
  box-shadow: 0 0 5px rgba(22,119,255,0.5);
}
@keyframes rtPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== 打字中指示器 ===== */
.typing-indicator {
  padding: 4px 0 8px;
}
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 12px 12px 12px;
  margin-top: 4px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotBounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== 消息进场动画 ===== */
.msg-enter {
  animation: msgSlideIn 0.35s ease-out forwards;
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 新消息列表项闪烁 ===== */
.chat-item.new-flash {
  animation: itemFlash 0.7s ease-out;
}
@keyframes itemFlash {
  0%   { background: rgba(6,203,148,0.15); }
  100% { background: transparent; }
}

/* ===== 实时工作台输入框交互 ===== */
#mockupInput {
  cursor: text;
}
#mockupInput:focus {
  outline: none;
  border-color: rgba(6,203,148,0.4) !important;
  box-shadow: 0 0 0 2px rgba(6,203,148,0.1);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .mouse-glow { display: none; }
  .particle-canvas { opacity: 0.4; }
  .mockup-realtime-bar { gap: 10px; font-size: 10px; }
}
