/* 沉浸式检测组件样式 - 品牌色适配版 */
.zj-container {
  max-width: 1000px;
  margin: 0 auto;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #171344;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 121, 222, 0.15);
  border: 2px solid #bdbdef;
  min-height: 600px;
  position: relative;
}

/* 1. 初始输入态 - 品牌色 */
.zj-input-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 600px;
  background: radial-gradient(circle at center, #f0f7ff 0%, #ffffff 100%);
  padding: 20px;
  text-align: center;
}

.zj-logo-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.zj-headline {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #171344;
  text-shadow: 0 2px 4px rgba(0, 121, 222, 0.1);
}

.zj-subheadline {
  color: #666;
  font-size: 18px;
  margin-bottom: 40px;
}

.zj-input-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.zj-input {
  width: 100%;
  padding: 20px 25px;
  padding-right: 140px;
  font-size: 18px;
  background: #ffffff;
  border: 2px solid #bdbdef;
  border-radius: 50px;
  color: #171344;
  outline: none;
  transition: all 0.3s;
}

.zj-input:focus {
  border-color: #0079de;
  background: #f0f7ff;
  box-shadow: 0 0 20px rgba(0, 121, 222, 0.2);
}

.zj-start-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  background: #dd5200;
  border: none;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  padding: 0 30px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.zj-start-btn:hover {
  transform: scale(1.05);
  background: #c04800;
  box-shadow: 0 4px 15px rgba(221, 82, 0, 0.4);
}

.zj-start-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 2. 检测演示态 (The Stage) - 品牌色 */
.zj-detect-stage {
  height: 600px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

/* 顶部状态条 - 品牌色 */
.zj-stage-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 121, 222, 0.05);
  border-bottom: 2px solid #bdbdef;
}

.zj-domain-tag {
  background: #f0f7ff;
  color: #0079de;
  border: 1px solid #0079de;
  padding: 5px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 600;
}

/* 中央可视化区 */
.zj-visualizer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 场景切换的轻微呼吸感 */
.zj-visualizer > div {
  animation: sceneFade 0.6s ease-out;
}

@keyframes sceneFade {
  from { opacity: 0.6; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* 场景1：全球地图 */
.zj-scene-map {
  width: 100%;
  height: 100%;
  position: relative;
  /* 简易地图背景，用CSS radial gradients模拟 */
  background: 
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 10%), /* 北美 */
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.1) 0%, transparent 10%), /* 欧洲 */
    radial-gradient(circle at 75% 40%, rgba(255,255,255,0.1) 0%, transparent 12%); /* 亚洲 */
}

.zj-scene-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("/wp-content/uploads/2026/01/map.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90% auto;
  opacity: 0.22;
  filter: saturate(1.2) brightness(1.05) drop-shadow(0 0 18px rgba(59, 130, 246, 0.25));
  pointer-events: none;
}

.zj-map-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.zj-map-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #2dbc00;
  border-radius: 50%;
  box-shadow: 0 0 10px #2dbc00;
  animation: pulse-node 1s infinite;
}

.zj-map-line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #0079de, transparent);
  transform-origin: left center;
  opacity: 0.5;
  animation: sweep 3.2s linear infinite;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 场景2：安全盾牌 */
.zj-scene-security {
  display: flex;
  gap: 40px;
}

.zj-shield {
  width: 100px;
  height: 120px;
  background: #ffffff;
  border: 2px solid #bdbdef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.5s;
  box-shadow: 0 2px 8px rgba(0, 121, 222, 0.1);
  /* 盾牌形状 */
  clip-path: polygon(50% 0, 100% 20%, 100% 75%, 50% 100%, 0 75%, 0 20%);
}

.zj-scene-security .zj-shield {
  animation: shieldPulse 1.8s ease-in-out infinite;
}

.zj-scene-security .zj-shield:nth-child(1) { animation-delay: 0s; }
.zj-scene-security .zj-shield:nth-child(2) { animation-delay: 0.3s; }
.zj-scene-security .zj-shield:nth-child(3) { animation-delay: 0.6s; }

@keyframes shieldPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 2px 8px rgba(0, 121, 222, 0.1); }
  50% { transform: translateY(-6px); box-shadow: 0 4px 20px rgba(0, 121, 222, 0.25); }
}

.zj-shield.active {
  border-color: #0079de;
  box-shadow: 0 0 20px rgba(0, 121, 222, 0.3);
}

.zj-shield.pass {
  background: rgba(45, 188, 0, 0.1);
  border-color: #2dbc00;
}

.zj-shield.fail {
  background: rgba(221, 82, 0, 0.1);
  border-color: #dd5200;
}

.zj-shield-icon {
  font-size: 32px;
  margin-bottom: 5px;
}

.zj-shield-label {
  font-size: 14px;
  font-weight: 700;
}

/* 场景3：黑名单雷达 - 品牌色 */
.zj-radar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(0, 121, 222, 0.3);
  position: relative;
  background: radial-gradient(circle, rgba(0, 121, 222, 0.1) 0%, transparent 70%);
}

.zj-radar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(0, 121, 222, 0.3);
  border-radius: 50%;
}

.zj-radar-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(0, 121, 222, 0.5) 360deg);
  animation: spin 2s linear infinite;
  opacity: 0.35;
}

.zj-radar-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0079de);
  transform-origin: left center;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.zj-radar-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dd5200;
  box-shadow: 0 0 10px #dd5200;
  animation: blink 0.5s infinite;
}

/* 底部日志区 - 品牌色 */
.zj-console {
  height: 150px;
  background: #f8f8f8;
  padding: 15px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  overflow-y: auto;
  border-top: 2px solid #bdbdef;
  display: flex;
  flex-direction: column-reverse; /* 底部最新 */
}

.zj-log-line {
  margin-bottom: 4px;
  opacity: 0.8;
}

.zj-log-line.success { color: #2dbc00; }
.zj-log-line.warn { color: #dd5200; }
.zj-log-line.error { color: #dd5200; }
.zj-log-line.info { color: #666; }

/* 3. 结果报告卡片 - 品牌色（增强对比度）*/
.zj-result-card {
  min-height: 600px;
  background: #f8f8f8;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.zj-result-legacy {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  gap: 28px;
}

.zj-score-panel {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.zj-report-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zj-ai-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 10px;
}

.zj-ai-text {
  color: #e2e8f0;
  line-height: 1.7;
  font-size: 15px;
}

.zj-summary-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
}

.zj-summary-title {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
  font-weight: 600;
}

.zj-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zj-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 14px;
}

.zj-summary-icon {
  color: #4ade80;
}

.zj-summary-text {
  flex: 1;
}

.zj-issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zj-issue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.zj-issue-icon {
  color: #facc15;
}

.zj-issue-text {
  flex: 1;
  color: #e2e8f0;
  font-size: 14px;
}

.zj-issue-score {
  color: #f87171;
  font-weight: 700;
}

.zj-lead-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zj-lead-success {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  font-weight: 600;
}

.zj-score-excellent {
  border-color: #2dbc00;
  color: #2dbc00;
  box-shadow: 0 0 20px rgba(45, 188, 0, 0.2);
}

.zj-score-warning {
  border-color: #dd5200;
  color: #dd5200;
  box-shadow: 0 0 20px rgba(221, 82, 0, 0.2);
}

.zj-score-danger {
  border-color: #dd5200;
  color: #dd5200;
  box-shadow: 0 0 20px rgba(221, 82, 0, 0.2);
}

.zj-ai-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zj-lead-input {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 2px solid #bdbdef;
  border-radius: 8px;
  color: #171344;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zj-lead-input:focus {
  border-color: #0079de;
  box-shadow: 0 0 0 3px rgba(0, 121, 222, 0.1);
}

.zj-lead-btn {
  background: #dd5200;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zj-lead-btn:hover {
  transform: translateY(-1px);
  background: #c04800;
  box-shadow: 0 4px 15px rgba(221, 82, 0, 0.3);
}

.zj-btn-retry {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.zj-btn-retry:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* AI 结论区 - 品牌色（增强对比度）*/
.zj-ai-summary {
  background: #ffffff;
  border-left: 4px solid #0079de;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 121, 222, 0.15);
  border: 1px solid #e0e0e0;
}

.zj-ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.zj-ai-icon {
  font-size: 24px;
}

.zj-ai-header h3 {
  margin: 0;
  color: #171344;
  font-size: 18px;
  font-weight: 700;
}

.zj-ai-verdict {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
  margin-bottom: 16px;
}

.zj-impact-box {
  background: #f0f7ff;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid #0079de;
}

.zj-impact-label {
  color: #333;
  font-weight: 500;
}

.zj-impact-value {
  color: #dd5200;
  font-weight: 700;
}

/* 核心评分与风险概览 (New) */
.zj-score-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.zj-score-box {
  display: flex;
  justify-content: center;
}

.zj-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 8px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zj-score-label {
  font-size: 14px;
  margin-top: 5px;
  font-weight: normal;
}

.zj-risk-stats {
  display: flex;
  gap: 20px;
}

.zj-stat-item {
  flex: 1;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #bdbdef;
}

.zj-stat-item.warning {
  background: #fff5f0;
  border-color: #dd5200;
}

.zj-stat-num {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.zj-stat-desc {
  color: #666;
  font-size: 13px;
}

.zj-stat-item.warning .zj-stat-num {
  color: #dd5200;
}

/* 锁定证据链 - 品牌色 */
.zj-locked-section {
  background: #f8f8f8;
  border-radius: 12px;
  border: 2px solid #bdbdef;
  overflow: hidden;
}

.zj-locked-header {
  padding: 16px 24px;
  border-bottom: 2px solid #bdbdef;
  background: #ffffff;
}

.zj-locked-header h3 {
  margin: 0;
  font-size: 16px;
  color: #171344;
  font-weight: 600;
}

.zj-blur-list {
  position: relative;
  padding: 20px;
}

.zj-risk-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  color: #171344;
}

.zj-risk-icon {
  margin-right: 12px;
}

.zj-risk-title {
  flex: 1;
  font-size: 14px;
}

.zj-risk-status {
  background: rgba(221, 82, 0, 0.1);
  color: #dd5200;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #dd5200;
}

.zj-blur-row {
  height: 20px;
  background: #e0e0e0;
  margin: 15px 0;
  border-radius: 4px;
  filter: blur(4px);
  opacity: 0.5;
}

.zj-unlock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.95) 80%);
  display: flex;
  align-items: flex-end; /* 靠下对齐 */
  justify-content: center;
  padding-bottom: 40px;
  z-index: 10;
}

.zj-unlock-box {
  background: #ffffff;
  border: 2px solid #0079de;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  width: 85%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 121, 222, 0.2);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.zj-unlock-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.zj-unlock-box h3 {
  margin: 0 0 15px 0;
  color: #171344;
  font-size: 18px;
}

.zj-unlock-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  text-align: left;
  display: inline-block;
}

.zj-unlock-box li {
  margin-bottom: 8px;
  color: #666;
  font-size: 14px;
}

.zj-lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zj-success-msg {
  color: #2dbc00;
  font-weight: 600;
  padding: 10px;
  background: rgba(45, 188, 0, 0.1);
  border: 1px solid #2dbc00;
  border-radius: 6px;
}

.zj-btn-retry-text {
  margin-top: 20px;
  background: none;
  border: none;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}

@media (max-width: 768px) {
  .zj-score-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 场景4：AI生成 - 品牌色 */
.zj-scene-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.zj-ai-brain {
  font-size: 80px;
  margin-bottom: 20px;
  animation: pulse-brain 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0, 121, 222, 0.3));
}

.zj-scene-ai::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(0, 121, 222, 0.3);
  box-shadow: 0 0 40px rgba(0, 121, 222, 0.15);
  animation: aiGlow 2.6s ease-in-out infinite;
}

@keyframes aiGlow {
  0%, 100% { transform: scale(0.96); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.zj-ai-brain.thinking {
  animation: pulse-brain 1.5s infinite; /* 正常思考速度 */
}

.zj-ai-brain.suspense {
  animation: pulse-brain 3s infinite; /* 慢速闪烁 */
}

@keyframes pulse-brain {
  0% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 10px rgba(0, 121, 222, 0.5)); }
  50% { transform: scale(1.1); opacity: 0.8; filter: drop-shadow(0 0 30px rgba(0, 121, 222, 0.7)); }
  100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 10px rgba(0, 121, 222, 0.5)); }
}

.zj-typing-text {
  font-family: monospace;
  color: #0079de;
  font-size: 16px;
  font-weight: 600;
  border-right: 2px solid #0079de;
  animation: blink-cursor 0.7s infinite;
  white-space: pre-wrap;
  text-align: center;
  max-width: 80%;
}

@keyframes blink-cursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: #0079de; }
}

/* 响应式适配 */
@media (max-width: 768px) {
  .zj-result-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .zj-score-panel {
    padding: 20px;
  }
}

/* AI Flash Effect - 品牌色 */
.zj-flash {
  filter: drop-shadow(0 0 50px rgba(0, 121, 222, 0.8)) brightness(1.3);
  transform: scale(1.2);
  transition: all 0.1s ease-in-out;
}

/* 时间显示 */
.zj-timer {
  font-family: monospace;
  color: #0079de;
  font-weight: 600;
  font-size: 14px;
}

/* 可选报告提示区域 */
.zj-optional-report {
  background: #f8f8f8;
  border: 2px dashed #bdbdef;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}

.zj-optional-report .zj-lead-input {
  width: 100%;
  max-width: 400px;
}

.zj-optional-report .zj-lead-btn {
  display: inline-block;
  width: auto;
}
