/* BioIntelMap Specific Styles */

:root {
  --bim-primary: #0ea5e9; /* Cyan 500 */
  --bim-primary-dark: #0284c7;
  --bim-accent: #ea580c; /* Brand Orange */
  --bim-bg-subtle: #f0f9ff;
  --bim-card-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.1), 0 8px 10px -6px rgba(14, 165, 233, 0.05);
}

/* Page Hero Enhancement */
.bim-hero {
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 40%),
              radial-gradient(circle at bottom left, rgba(234, 88, 12, 0.05), transparent 40%),
              #ffffff;
  min-height: calc(100vh - 72px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 80px 0;
}

.bim-hero .container.bim-hero-grid {
  display: flex !important;
  flex-flow: row nowrap;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  height: auto;
}

.bim-hero-content {
  flex: 0 0 50%;
  min-width: 0;
  text-align: left;
  max-width: none;
}

.bim-hero-content .badge {
  background: rgba(14, 165, 233, 0.1);
  color: var(--bim-primary);
  border-color: rgba(14, 165, 233, 0.2);
  margin-bottom: 24px;
}

.bim-hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  max-width: none;
  width: 100%;
}

.bim-hero-content .subhead {
  text-align: left;
  margin-left: 0;
  max-width: none;
  width: 100%;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  opacity: 1;
  padding-right: 0;
}

/* Existing simulated graph styles (kept for lower sections) */
.kg-visual {
  position: relative;
  width: 100%;
  height: 400px;
}

.kg-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--bim-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--bim-primary);
  animation: bim-pulse 3s infinite ease-in-out;
}

.kg-node.accent {
  background: var(--bim-accent);
  box-shadow: 0 0 15px var(--bim-accent);
  width: 16px;
  height: 16px;
}

.kg-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--bim-primary), transparent);
  transform-origin: left center;
  opacity: 0.3;
}

@keyframes bim-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* NEW SVG Animation Styles */
.bio-hero-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

/* Hero Neural System Integration */
.hero-neural-wrapper {
  flex: 0 0 40%;
  min-width: 0;
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  filter: drop-shadow(0 30px 60px rgba(14, 165, 233, 0.1));
}

.hero-neural-wrapper .bio-neural-system {
  transform: scale(0.55);
  transform-origin: center center;
  margin: 0;
  flex-shrink: 0;
  will-change: transform;
}

@media (max-width: 1400px) {
  .hero-neural-wrapper .bio-neural-system { transform: scale(0.55); }
}

@media (max-width: 1200px) {
  .hero-neural-wrapper .bio-neural-system { transform: scale(0.5); }
}

.mol-node-center circle:first-child {
  animation: pulse-core 4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.link-pulse {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-line 2s ease-out forwards, pulse-opacity 4s infinite 2s;
}

.dna-helix {
  animation: drift-dna 10s ease-in-out infinite alternate;
  transform-origin: center;
}

.mol-node circle {
  animation: node-float 3s ease-in-out infinite alternate;
  transform-origin: center;
  transform-box: fill-box;
}

.mol-node:nth-child(even) circle {
  animation-duration: 4s;
  animation-delay: 0.5s;
}

.particles-bg circle {
  animation: particle-float 5s linear infinite;
}

@keyframes pulse-core {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.2); }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 0.8; stroke-width: 2px; }
  50% { opacity: 0.4; stroke-width: 1px; }
}

@keyframes drift-dna {
  0% { transform: translate(300px, 250px) rotate(-30deg) scale(1); }
  100% { transform: translate(300px, 250px) rotate(-25deg) scale(1.05); }
}

@keyframes node-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes particle-float {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-15px); opacity: 0.6; }
  100% { transform: translateY(0); opacity: 0.3; }
}

/* Capabilities Section - Bio-Neural Web Design */
.bio-neural-section {
  position: relative;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.bio-particle-env {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.03) 0%, transparent 70%);
}

.bio-particle {
  position: absolute;
  width: 200px; height: 200px;
  background: var(--bim-primary);
  filter: blur(100px);
  opacity: 0.1;
  border-radius: 50%;
}

.bio-particle:nth-child(1) { top: 10%; left: 10%; animation: particle-float 20s infinite alternate; }
.bio-particle:nth-child(2) { bottom: 10%; right: 10%; background: var(--bim-accent); animation: particle-float 25s infinite alternate-reverse; }
.bio-particle:nth-child(3) { top: 40%; left: 50%; animation: particle-float 15s infinite alternate; }

.bio-neural-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  height: calc(100vh - 72px); /* 减去顶部导航高度，确保真垂直居中 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-neural-system {
  position: relative;
  width: 1000px;
  height: 600px;
  /* 确保在小屏幕下也能保持居中比例 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Neural Core - 量子生物中枢重构 */
.neural-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 160px; height: 160px;
  margin-top: -80px; 
  margin-left: -80px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-hologram {
  position: absolute;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-ring {
  position: absolute;
  border: 1px dashed var(--bim-primary);
  border-radius: 50%;
  opacity: 0.3;
}

.hologram-ring:nth-child(1) {
  width: 100%; height: 100%;
  animation: rotate-ring 10s linear infinite;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(14, 165, 233, 0.2);
}

.hologram-ring:nth-child(2) {
  width: 130%; height: 130%;
  animation: rotate-ring 15s linear infinite reverse;
  border-style: dashed;
  border-width: 1px;
}

.hologram-ring:nth-child(3) {
  width: 160%; height: 160%;
  animation: rotate-ring 20s linear infinite;
  border-style: dotted;
  border-width: 1px;
  opacity: 0.15;
}

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

.core-pulsar {
  position: absolute;
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--brand-primary) 0%, #dc2626 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(234, 88, 12, 0.5), inset 0 0 20px rgba(255,255,255,0.3);
  z-index: 1;
}

.neural-core.is-visible .core-pulsar {
  animation: core-energy 3s ease-in-out infinite;
}

@keyframes core-energy {
  0%, 100% { transform: scale(1); filter: brightness(1); box-shadow: 0 0 30px rgba(234, 88, 12, 0.4); }
  50% { transform: scale(1.05); filter: brightness(1.2); box-shadow: 0 0 60px rgba(234, 88, 12, 0.6); }
}

/* Neural Paths - 确保背景坐标 500,300 绝对对准 */
.neural-svg {
  position: absolute;
  top: 0; left: 0; 
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  shape-rendering: geometricPrecision;
}

.neural-path {
  fill: none;
  stroke: var(--bim-primary);
  stroke-width: 1.5px;
  stroke-dasharray: 0;
  opacity: 0.35;
}

.neural-signal {
  filter: drop-shadow(0 0 10px var(--bim-primary));
  opacity: 1;
}

/* 核心引擎 SVG 动画 */
.core-svg-wrapper {
  position: relative;
  z-index: 5;
  width: 80px;
  height: 80px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-scientific-svg {
  width: 100%;
  height: 100%;
}

.svg-ring-outer {
  transform-origin: center;
  animation: rotate-scientific 10s linear infinite;
}

.svg-core-node {
  animation: core-pulse-scale 3s ease-in-out infinite;
  transform-origin: center;
}

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

@keyframes core-pulse-scale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.leaf-icon-scientific svg {
  width: 100%;
  height: 100%;
}

/* Neural Leaf Nodes (The content) */
.neural-leaf {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 320px;
  transition: all 0.4s ease;
  z-index: 5;
}

.leaf-icon-scientific {
  width: 72px; height: 72px;
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bim-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 16px;
}

.neural-leaf:hover .leaf-icon-scientific {
  background: var(--brand-gradient);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(234, 88, 12, 0.3);
  border-color: transparent;
}

.leaf-text h3 {
  font-size: 1.65rem; /* 稍微加大标题字号 */
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
  transition: color 0.3s;
  line-height: 1.3;
}

.leaf-text p {
  font-size: 1.2rem; /* 稍微加大内容字号 */
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}

.neural-leaf:hover h3 {
  color: var(--bim-primary);
}

/* Positioning - Adjusted for 1fr 1fr layout */
.neural-leaf.top-left { top: 60px; left: -20px; text-align: right; flex-direction: row-reverse; }
.neural-leaf.top-right { top: 60px; right: -20px; text-align: left; }
.neural-leaf.bottom-left { bottom: 60px; left: -20px; text-align: right; flex-direction: row-reverse; }
.neural-leaf.bottom-right { bottom: 60px; right: -20px; text-align: left; }

/* Removed redundant mobile media query that was hiding elements */

/* Strategy Section - Screen 3 Redesign - Optimized for Height */
.bio-strategy-section {
  position: relative;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 40px; /* 从 100px 0 60px 减小底部间距 */
  overflow: hidden;
}

.strategy-container {
  max-width: 1100px; /* 缩小容器宽度提升聚合感 */
  width: 100%;
  position: relative;
  z-index: 1;
  transform: scale(0.92); /* 整体轻微缩小，确保不溢出 */
  transform-origin: center;
}

.strategy-header {
  text-align: center;
  margin-bottom: 40px; /* 压缩间距 */
}

.header-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  color: var(--bim-primary);
  opacity: 0.6;
  display: block;
  margin-bottom: 10px;
}

.strategy-header h2 {
  font-size: 2.4rem; /* 缩小标题 */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.header-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.strategy-board {
  display: flex;
  gap: 40px; /* 压缩间距 */
  align-items: center;
}

/* Trends Side */
.strategy-trends {
  flex: 1;
}

.trend-main-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 32px;
  padding: 45px 40px; /* 压缩内边距 */
  color: white;
  position: relative;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 35px; /* 压缩间距 */
}

.trend-item-new {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.trend-icon-box {
  width: 48px; /* 缩小图标框 */
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bim-primary);
  flex-shrink: 0;
}

.trend-text h3 {
  font-size: 1.25rem; /* 缩小字号 */
  font-weight: 700;
  margin-bottom: 10px;
  color: #f8fafc;
}

.trend-text p {
  font-size: 0.9rem; /* 缩小字号 */
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* Pain Points Side */
.strategy-pains {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 16px; /* 压缩间距 */
}

.pain-scan-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: 20px;
  padding: 18px 25px; /* 压缩内边距 */
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.pain-scan-card:hover {
  background: white;
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(14, 165, 233, 0.08);
  border-color: var(--bim-primary);
}

.pain-marker {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bim-primary);
  opacity: 0.3;
  font-family: 'Inter', sans-serif;
}

.pain-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.pain-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 960px) {
  .strategy-board { flex-direction: column; }
  .bio-strategy-section { padding: 80px 24px; }
  .trend-main-card { padding: 40px 30px; }
}

/* Advantages: Digital Lab Lattice Design */
.adv-section-lattice {
  padding: 40px 0; /* 显著缩小上下间距，从 100px 减至 40px */
  background-color: #f4f7fa; /* 更明确的数字化底色 */
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px; 
  position: relative;
  overflow: hidden;
}

/* 背景十字定位符 */
.lattice-decor-stream {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g stroke="%230ea5e9" stroke-width="0.5" opacity="0.1"><line x1="48" y1="50" x2="52" y2="50"/><line x1="50" y1="48" x2="50" y2="52"/></g></svg>');
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

.lattice-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}

.lattice-item {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 蜂窝容器 - 强化 3D 悬浮感 */
.lattice-hex {
  width: 110px;
  height: 125px;
  background: white;
  position: relative;
  margin-bottom: 25px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.08);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lattice-hex::before {
  content: '';
  position: absolute;
  top: 1px; left: 1px; right: 1px; bottom: 1px;
  background: white;
  clip-path: inherit;
  z-index: 1;
}

.lattice-hex::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bim-primary), #10b981);
  opacity: 0.05;
  transition: opacity 0.5s;
}

.hex-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hex-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--bim-primary);
  opacity: 0.4;
  margin-bottom: 2px;
}

/* 图标容器强化 */
.hex-icon-wrapper {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.5s ease;
}

.main-icon {
  width: 100%;
  height: 100%;
  color: var(--bim-primary);
  z-index: 2;
  filter: drop-shadow(2px 2px 0px rgba(14, 165, 233, 0.15));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 核心发光点：心跳动效 */
.icon-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--bim-primary);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  transition: all 0.5s ease;
  animation: icon-heartbeat 2s infinite;
}

@keyframes icon-heartbeat {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
  70% { transform: scale(4); opacity: 0; box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
  100% { transform: scale(1); opacity: 0; }
}

/* 悬浮状态 */
.lattice-item:hover .main-icon {
  color: white;
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.lattice-item:hover .icon-pulse {
  opacity: 1;
  transform: scale(3);
  background: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.lattice-item.tech .main-icon { color: var(--bim-accent); }
.lattice-item.app .main-icon { color: #10b981; }

.lattice-item.tech:hover .icon-pulse { background: white; }
.lattice-item.app:hover .icon-pulse { background: white; }

.lattice-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.lattice-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 10px;
  opacity: 0.8;
}

/* 各节点个性化 */
.lattice-item.tech .lattice-hex::after { background: linear-gradient(135deg, var(--bim-accent), #f59e0b); }
.lattice-item.tech .hex-num, .lattice-item.tech .hex-icon { color: var(--bim-accent); }

.lattice-item.app .lattice-hex::after { background: linear-gradient(135deg, #10b981, #059669); }
.lattice-item.app .hex-num, .lattice-item.app .hex-icon { color: #10b981; }

@media (max-width: 960px) {
  .lattice-grid { flex-direction: column; align-items: center; gap: 60px; }
  .lattice-item { width: 100%; max-width: 400px; }
}

@media (max-width: 960px) {
  .adv-grid { grid-template-columns: 1fr; gap: 30px; }
  .adv-card-glass { padding: 40px 30px; }
}

/* Detail Sections Enhancement */
.detail-block {
  padding: 40px 0; /* 从 80px 0 减半，使内容衔接更紧密 */
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center; /* 确保垂直方向在屏幕中更居中 */
  justify-content: center; /* 确保容器在 PC 端居中 */
}

.detail-grid {
  display: flex;
  flex-direction: row; /* 确保 PC 端默认为横向排列 */
  gap: 60px; /* 缩小间距 */
  align-items: center;
  width: 100%;
}

.detail-grid.reverse {
  flex-direction: row-reverse;
}

.detail-content {
  flex: 1; /* 平分比例，更稳定 */
  min-width: 0;
}

.detail-image-box {
  flex: 1;
  min-width: 0;
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(14, 165, 233, 0.1);
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.05);
  overflow: hidden;
  min-height: 400px; /* 增加最小高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section 6 Specific: Scenarios Layout */
.bim-scenarios-section .detail-grid {
  display: flex;
  flex-direction: row; /* PC端保持左右排列 */
  gap: 80px; /* 加大左右间距 */
  align-items: center;
}

.bim-scenarios-section .detail-content {
  flex: 1;
}

.bim-scenarios-section .chat-container-box {
  flex: 1.2;
}

@media (max-width: 960px) {
  .bim-scenarios-section .detail-grid {
    flex-direction: column !important; /* 移动端回归堆叠 */
    gap: 40px;
  }
}

.bg-subtle .detail-image-box {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
}

/* Section 4 Specific: KG Library Layout */
.bim-kg-section .detail-grid {
  display: flex;
  flex-direction: row; /* PC端保持左右排列 */
  gap: 80px;
  align-items: center;
}

.bim-kg-section .detail-content {
  flex: 1;
}

.bim-kg-section .kg-container-box {
  flex: 1.2;
  background: #f8fafc;
  border-radius: 24px;
  padding: 0;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.kg-grid-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}

.kg-dynamic-visual {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.kg-line-anim {
  stroke: var(--bim-primary);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.3;
}

.kg-sub-node {
  fill: var(--bim-primary);
  opacity: 0.6;
}

.kg-main-node {
  fill: #ffffff;
  stroke: var(--bim-accent);
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(234, 88, 12, 0.3));
}

.kg-main-node-ring {
  fill: none;
  stroke: var(--bim-accent);
  stroke-width: 1;
  opacity: 0.25;
  animation: ring-pulse 3s infinite;
  transform-origin: center;
}

.kg-main-text {
  fill: var(--bim-accent);
  font-size: 8px;
  font-weight: 800;
  pointer-events: none;
}

.svg-pill-bg {
  fill: white;
  stroke: rgba(14, 165, 233, 0.1);
  stroke-width: 0.5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.kg-svg-text {
  fill: var(--text-main);
  font-size: 7.5px;
  font-weight: 700;
  pointer-events: none;
}

@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.25; }
  100% { transform: scale(1.6); opacity: 0; }
}

.kg-signal-dot {
  opacity: 0.8;
  filter: drop-shadow(0 0 3px var(--bim-primary));
}

.kg-label-float, .kg-label-main, .l-1, .l-2, .l-3, .l-4, .l-5, .l-6 {
  display: none;
}

@media (max-width: 960px) {
  .bim-kg-section .detail-grid {
    flex-direction: column !important;
    gap: 40px;
  }
  .bim-kg-section .detail-content,
  .bim-kg-section .kg-container-box {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* AI Analysis Monitor */
.analysis-monitor {
  width: 100%;
  padding: 24px;
  background: #0f172a;
  border-radius: 16px;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
  font-size: 0.8rem;
  position: relative;
}

.monitor-header {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.monitor-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.monitor-line {
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.monitor-line .cmd { color: #38bdf8; }
.monitor-line .path { color: #10b981; }

.analysis-progress-container {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: white;
  font-size: 0.75rem;
}

.progress-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--bim-primary);
  width: 65%;
  box-shadow: 0 0 10px var(--bim-primary);
  animation: progress-slide 3s infinite alternate ease-in-out;
}

@keyframes progress-slide {
  from { width: 30%; }
  to { width: 90%; }
}

/* Chat Interface Enhancement */
.chat-app-window {
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.1);
}

.chat-header {
  padding: 12px 20px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.chat-actions {
  display: flex;
  gap: 6px;
}

.action-dot {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  border-radius: 50%;
}

.chat-window {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(to bottom, #ffffff, #f0f9ff);
}

.chat-row {
  display: flex;
  gap: 12px;
  max-width: 90%;
}

.user-row {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-row {
  align-self: flex-start;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.user-avatar {
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.ai-avatar {
  background: var(--bim-primary);
  color: white;
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.chat-bubble.user {
  background: white;
  border-top-right-radius: 4px;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.chat-bubble.ai {
  background: var(--bim-primary);
  color: white;
  border-top-left-radius: 4px;
  background: linear-gradient(135deg, var(--bim-primary) 0%, var(--bim-primary-dark) 100%);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0 0 0;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.detail-content h3 {
  font-size: 2rem; /* 加大标题，使其更具结构感 */
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.detail-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--bim-primary);
  font-weight: bold;
}

.kg-node-animate {
  animation: kg-node-pulse 2s infinite ease-in-out;
  transform-origin: center;
}

@keyframes kg-node-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.team-modern-layout {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.team-leader-side {
  flex: 0 0 320px;
}

.team-expertise-side {
  flex: 1;
}

.expertise-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  height: 100%;
}

.leader-card-modern {
  background: white;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.leader-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.leader-card-modern:hover::before {
  opacity: 1;
}

.leader-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(234, 88, 12, 0.2);
}

.leader-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
}

.leader-avatar {
  width: 90px; height: 90px;
  background: var(--brand-gradient);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.2);
}

.leader-tech-icon {
  width: 65%;
  height: 65%;
}

.leader-badge {
  background: #0f172a;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.leader-card-body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.leader-title {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.leader-card-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.expertise-card-compact {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  position: relative;
}

.expertise-card-compact:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-color: var(--bim-primary);
}

.exp-header-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.exp-header-row h4 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
}

.exp-icon-box {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bim-bg-subtle);
  color: var(--bim-primary);
  flex-shrink: 0;
}

.expertise-card-compact.brand .exp-icon-box { background: var(--brand-surface-tint); color: var(--brand-primary); }
.expertise-card-compact.consultant .exp-icon-box { background: #e0f2fe; color: #0ea5e9; }
.expertise-card-compact.ai .exp-icon-box { background: #f5f3ff; color: #6366f1; }
.expertise-card-compact.sys .exp-icon-box { background: #ecfdf5; color: #10b981; }

.exp-icon-box svg {
  width: 24px; height: 24px;
}

.exp-list-compact {
  list-style: none;
  padding: 0; margin: 0;
}

.exp-list-compact li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  text-align: left;
}

.exp-list-compact li::before {
  content: '•';
  color: var(--brand-primary);
  font-weight: bold;
}

.exp-desc-compact {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .team-modern-layout {
    flex-direction: column;
  }
  .team-leader-side {
    flex: none;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .expertise-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

.section-header-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  position: relative;
}

.section-header-centered h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
  color: var(--text-main);
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--bim-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header-centered p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.8;
}

/* Detail Sections */
.detail-block {
  padding: 100px 0;
}

/* ==========================================================================
   Mobile & Tablet Compatibility (Unified Layout for < 1024px)
   ========================================================================== */

@media (max-width: 991px) {
  /* Common Spacing & Reset */
  .section, .detail-block, .adv-section-lattice {
    padding: 20px 0; /* 显著压缩间距 */
  }

  .section-header-centered {
    margin-bottom: 25px !important; /* 压缩标题与内容的间距 */
  }

  .container {
    padding: 0 20px;
  }

  /* Typography Scale Up for Vertical Layout */
  h1 { font-size: 3.2rem !important; line-height: 1.15 !important; }
  h2 { font-size: 2.2rem !important; }
  h3 { font-size: 1.8rem !important; }

  .bim-hero-content .badge {
    padding: 8px 20px;
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .bim-hero-content .subhead {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 40px;
  }

  .cta .btn {
    padding: 14px 32px;
    font-size: 1.1rem;
  }

  /* Hero Section: Centered & Stacked */
  .bim-hero {
    padding: 120px 0 80px;
    min-height: auto;
  }
  
  .bim-hero-grid {
    flex-direction: column !important;
    text-align: center;
    gap: 60px; /* 加大文字与图的间距 */
  }
  
  .bim-hero-content {
    flex: none;
    width: 100%;
    margin-bottom: 0;
  }
  
  .hero-neural-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 420px; /* 适当减小高度，适配平板比例 */
    overflow: visible;
    flex: none;
  }

  .hero-neural-wrapper .bio-neural-system {
    transform: scale(0.72); /* 优化 iPad Air/Mini 比例，确保完整显示 */
    transform-origin: center center;
    margin: 0;
  }

  /* Strategy Section: Stacked */
  .bio-strategy-section {
    min-height: auto; /* 取消全屏高度限制，解决上下太空的问题 */
    padding: 40px 0;  /* 恢复紧凑间距 */
  }

  .strategy-board {
    flex-direction: column;
    gap: 32px; /* 稍微缩小此类间的间距 */
  }
  
  .strategy-container {
    transform: none;
    max-width: 100%;
  }

  .trend-main-card {
    border-radius: 24px;
    padding: 35px 25px;
    gap: 25px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  }

  .trend-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .trend-icon-box svg {
    width: 20px;
    height: 20px;
  }

  .trend-text h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .trend-text p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* Pain Points Refinement on Mobile */
  .strategy-pains {
    gap: 12px;
  }

  .pain-scan-card {
    padding: 15px 20px;
    border-radius: 16px;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-left: 4px solid rgba(14, 165, 233, 0.15); /* 增加左侧装饰条 */
  }

  .pain-scan-card:hover {
    border-left-color: var(--bim-primary);
  }

  .pain-marker {
    font-size: 1.1rem;
    min-width: 24px;
  }

  .pain-body h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
  }

  .pain-body p {
    font-size: 0.85rem;
  }

  /* Lattice Grid: Optimized Spacing */
  .lattice-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
  }

  @media (max-width: 1024px) {
    .lattice-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 30px;
    }
  }

  @media (max-width: 767px) {
    .lattice-grid {
      grid-template-columns: 1fr;
      gap: 15px;
      margin-top: 10px;
    }
  }

  .lattice-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .lattice-hex {
    margin-bottom: 8px; /* 显著缩小图标与文字的间距 */
    transform: scale(0.85);
  }

  /* Detail Blocks: Vertical Flow (KG, AI, Scenarios) */
  .detail-grid, .detail-grid.reverse {
    flex-direction: column !important;
    gap: 30px;
  }

  .detail-content {
    order: 1;
    text-align: center;
    flex: none;
    width: 100%;
  }
  
  .feature-list li {
    text-align: left;
  }

  /* Image/Visual Containers */
  .kg-container-box, .chat-container-box, .detail-image-box {
    order: 2;
    flex: none;
    width: 100%;
    min-height: 420px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bim-kg-section .kg-container-box {
    order: 2;
    flex: none;
    width: 100%;
    min-height: 300px; /* 减小最小高度 */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0; /* 增加上下内边距 */
  }

  .bim-kg-section .kg-dynamic-visual {
    transform: scale(0.9); /* 缩小比例以适应容器 */
    transform-origin: center center;
    width: 100%;
    max-width: 400px; /* 限制最大宽度 */
  }

  /* 针对手机端的进一步优化 */
  @media (max-width: 767px) {
    h1 { font-size: 2.6rem !important; }
    
    .bim-kg-section .kg-dynamic-visual {
      transform: scale(1.1); /* 手机端稍微收缩，防止文字溢出屏幕 */
    }

    .hero-neural-wrapper .bio-neural-system {
      transform: scale(0.5); /* 稍微调大，提升视觉冲击力 */
    }
    .hero-neural-wrapper {
      height: 320px;
    }
  }

  @media (max-width: 480px) {
    h1 { font-size: 2.2rem !important; }
    
    .hero-neural-wrapper .bio-neural-system {
      transform: scale(0.38); /* 极小屏幕也适当加大 */
    }
    .hero-neural-wrapper {
      height: 240px;
    }
  }

  .bg-subtle .detail-image-box {
    padding: 20px; /* 减小内边距，让黑框有更多展开空间 */
    min-height: 320px; /* 调小最小高度 */
  }

  .analysis-monitor {
    width: 100%;
    max-width: 500px; /* 限制手机端最大宽度 */
    padding: 20px; /* 稍微压缩内边距 */
  }

  /* Chat Window Refinement */
  .chat-row {
    max-width: 95%;
  }
  
  .chat-bubble {
    font-size: 0.85rem;
  }

  /* Team Section: Vertical */
  .team-modern-layout {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .team-leader-side, .team-expertise-side {
    width: 100%;
    max-width: 600px;
  }

  .expertise-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* Specific Landscape Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .bim-hero { padding: 60px 0; }
}
