* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  scroll-behavior: smooth;
  background-color: #fafbfc;
}

.hero-section {
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  padding: 80px 20px;
  border-radius: 20px;
  margin-bottom: 40px;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
}

.hero-content p {
  color: #64748b;
  margin-top: 10px;
}

.hero-btns button {
  margin: 10px;
  border-radius: 20px;
}

.hero-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.hero-cards .card {
  padding: 20px;
  width: 220px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.hero-ui {
  background: linear-gradient(135deg, #e0f2fe, #eef2ff);
  padding: 90px 20px;
  border-radius: 20px;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  color: #1e293b;
}

.hero-subtitle {
  margin-top: 10px;
  color: #64748b;
}

.btn-start {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
}

.btn-login {
  background: #e5e7eb;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
}

.feature-card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  width: 240px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
/* 导航 */
#mainNav {
  transition: 0.4s;
}
#mainNav.navbar-scrolled {
  background: #000 !important;
}

/* Banner */
.banner {
  min-height: 100vh;
  background: linear-gradient(135deg, #165DFF, #0F388A);
  padding-top: 80px;
}

/* 数据统计 */
.stats {
  background: #165DFF;
}
.stat-box {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

/* 通用 */
.line {
  width: 60px;
  height: 4px;
  border-radius: 2px;
}
.py-6 { padding: 80px 0; }
.py-7 { padding: 100px 0; }

/* 项目可视化中枢 */
.visual-lab {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.1), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(59, 130, 246, 0.09), transparent 34%),
    linear-gradient(180deg, #f5f9ff 0%, #eff4fc 100%);
}

.visual-lab .container {
  position: relative;
  z-index: 1;
}

.visual-lab-head {
  max-width: 860px;
  margin: 0 auto 28px;
}

.visual-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #0f3b7a;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

.visual-kpi-row {
  margin-bottom: 18px;
}

.visual-kpi-card {
  height: 100%;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dbe7fb;
  box-shadow: 0 10px 22px rgba(28, 72, 138, 0.08);
}

.visual-kpi-card .kpi-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.visual-kpi-card .kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f2f5f;
}

.visual-panel {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #d8e5f8;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.95));
  box-shadow: 0 16px 34px rgba(20, 59, 117, 0.11);
}

.visual-step-card {
  position: relative;
  height: 100%;
  padding: 18px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dce8fb;
  box-shadow: 0 8px 20px rgba(24, 61, 121, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.visual-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(24, 61, 121, 0.14);
}

.visual-step-card .step-index {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #7c93ba;
}

.visual-step-card .step-icon {
  font-size: 22px;
  margin-bottom: 10px;
  color: #2f6fd5;
}

.visual-step-card h6 {
  font-weight: 700;
  margin-bottom: 6px;
  color: #163965;
}

.visual-step-card small {
  color: #64748b;
}

.visual-network-chart {
  height: 360px;
  border-radius: 14px;
  background: #f8fbff;
}

.visual-tag {
  font-size: 12px;
  font-weight: 600;
  color: #1d4f92;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
}

.visual-insight-panel .insight-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0ebfb;
}

.visual-insight-panel .insight-item + .insight-item {
  margin-top: 10px;
}

.visual-insight-panel i {
  color: #16a34a;
  font-size: 16px;
  margin-top: 2px;
}

.visual-insight-panel h6 {
  margin-bottom: 4px;
  color: #123765;
  font-weight: 700;
}

.visual-insight-panel p {
  margin-bottom: 0;
  color: #52637d;
  font-size: 14px;
}

.visual-lab #compareChart {
  width: 100% !important;
  height: 300px !important;
}

/* 可视化卡片 */
.visa-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.visa-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 成果卡片 */
.result-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: 0.3s;
}
.result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* 时间轴 */
.timeline {
  position: relative;
  padding-left: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: #165DFF;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #165DFF;
}
.timeline-content {
  border-radius: 12px;
}

/* 团队卡片 */
.team-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

/* 预测模块全局样式 */
.predict-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
  min-height: 100vh;
}

.section-header {
  margin-bottom: 4rem !important;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.section-desc {
  color: #4a5568;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.title-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3182ce, #63b3ed);
  margin: 0 auto;
  border-radius: 2px;
}

/* 核心容器 - 上下布局 */
.predict-container {
  display: flex;
  flex-direction: row;   /* ✅ 改这里 */
  gap: 2rem;
  align-items: flex-start;
}

/* 玻璃拟态卡片 */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
  transform: translateY(-2px);
}

/* 卡片头部 */
.card-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 0.3rem;
}

.card-subtitle {
  color: #718096;
  font-size: 0.95rem;
}

/* 表单样式 */
.upload-form {
  width: 100%;
}

.form-group {
  width: 100%;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

/* 文件上传组件 */
.file-upload {
  position: relative;
  width: 100%;
  height: 180px;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(247, 250, 252, 0.6);
}

.file-upload:hover {
  border-color: #3182ce;
  background: rgba(240, 248, 255, 0.8);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.file-placeholder {
  text-align: center;
  color: #718096;
  padding: 1rem;
}

.file-name {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f8fafc;
}

.file-name-inner {
  background: #e8f4f8;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  color: #2d3748;
  font-weight: 500;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 预测按钮 */
.predict-btn {
  background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.predict-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(49, 130, 206, 0.4);
}

.predict-btn:active {
  transform: translateY(0);
}

/* 结果区域样式 */
.result-section {
  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 加载状态 */
.loading-section {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.loading-spinner {
  margin-bottom: 1.5rem;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #e2e8f0;
  border-top: 5px solid #3182ce;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #4a5568;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.progress-bar {
  width: 80%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3182ce, #63b3ed);
  width: 0%;
  border-radius: 4px;
  animation: progress 3s ease infinite;
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* 空状态 */
.empty-section {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.empty-icon {
  margin-bottom: 1.5rem;
  color: #cbd5e0;
}

.empty-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.empty-desc {
  color: #718096;
  max-width: 80%;
}

/* 网络可视化 */
.network-visualization {
  width: 100%;
}

.vis-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
}

.chart-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* 结果表格 */
.result-table-container {
  width: 100%;
}

.table-header {
  width: 100%;
}

.table-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
}

.download-btn {
  background: #f7fafc;
  color: #3182ce;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-btn:hover {
  background: #e8f4f8;
  border-color: #3182ce;
}

.table-responsive {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table th {
  background: #f7fafc;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
}

.table td {
  padding: 1rem;
  color: #4a5568;
  border-bottom: 1px solid #f0f4f8;
}

.table tr:hover {
  background: #f8fafc;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .visual-lab {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .visual-panel {
    padding: 16px;
  }

  .visual-network-chart {
    height: 300px;
  }

  .predict-container {
    flex-direction: column;
  }
  
  .glass-card {
    padding: 2rem;
  }
  
  .chart-container {
    height: 300px;
  }
  
  .table-responsive {
    max-height: 300px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .visual-badge {
    font-size: 11px;
  }

  .visual-step-card {
    padding: 14px 12px;
  }

  .visual-network-chart {
    height: 260px;
  }

  .glass-card {
    padding: 1.5rem;
  }
  
  .file-upload {
    height: 150px;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .table-responsive {
    max-height: 250px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}
.analysis-box {
  background: linear-gradient(135deg, #edf2ff, #f0f9ff);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-panel {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-panel {
  background: rgba(255,255,255,0.7);
  padding: 20px;
  border-radius: 16px;
}
.history-item {
  cursor: pointer;
  transition: 0.2s;
}

.history-item:hover {
  background: #edf2ff;
  transform: translateX(3px);
}
.feature-icon {
  font-size: 28px;
  color: #3b82f6;
  margin-bottom: 10px;
}
/* ===== Hero整体居中 ===== */
.hero-ui {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 110px 20px 40px;
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.15), transparent 32%),
    radial-gradient(circle at 86% 78%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(145deg, #edf4ff, #f4f8ff);
  position: relative;
}

/* 内容容器 */
.hero-container {
  max-width: 860px;
  padding: 34px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 44px rgba(23, 56, 108, 0.12);
}

.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0.2px;
  color: #112b4d;
}

.hero-subtitle {
  margin-top: 12px;
  font-size: 18px;
  color: #4b6284;
}

.hero-buttons {
  margin-top: 24px;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-start,
.btn-login {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
}

.btn-start {
  background: linear-gradient(120deg, #2466d9, #1d4fa8);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.btn-login {
  background: #ffffff;
  color: #1f4f92;
  border: 1px solid #d5e3fb;
}

.hero-minimal-meta {
  margin-top: 26px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-minimal-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #274a78;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d8e7fe;
}

.hero-minimal-meta i {
  margin-right: 5px;
  color: #2f6fd5;
}

/* ===== 导航栏融入Hero并保持深色质感 ===== */
#mainNav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: #0b1a32 !important;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px rgba(9, 20, 40, 0.3);
}

#mainNav.navbar-scrolled {
  background: #081224 !important;
  box-shadow: 0 14px 34px rgba(5, 12, 24, 0.32);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

#mainNav .navbar-brand,
#mainNav .nav-link {
  color: #f3f8ff !important;
  font-weight: 600;
  letter-spacing: 0.2px;
}

#mainNav .nav-link {
  position: relative;
  margin: 0 6px;
  transition: color 0.25s ease;
}

#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5ed3ff, #85f0ff);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus,
#mainNav .nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(133, 240, 255, 0.35);
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link:focus::after,
#mainNav .nav-link.active::after {
  transform: scaleX(1);
}

#mainNav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

#mainNav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(94, 211, 255, 0.28);
}

#mainNav #navLoginBtn {
  border-color: rgba(133, 240, 255, 0.65);
  color: #e8fbff;
  background: rgba(11, 26, 50, 0.5);
}

#mainNav #navLoginBtn:hover,
#mainNav #navLoginBtn:focus {
  background: rgba(94, 211, 255, 0.18);
  color: #ffffff;
}

/* 认证弹窗专业化样式 */
.auth-modal-dialog {
  max-width: 500px;
}

.auth-modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 40, 80, 0.28);
}

.auth-modal-header {
  background: linear-gradient(120deg, #0e2a50, #1f4d8e);
  color: #f5f9ff;
  border-bottom: none;
}

.auth-modal-header .btn-close {
  filter: invert(1) brightness(1.2);
}

.auth-modal-body {
  padding: 0;
  background: #ffffff;
}

.auth-layout {
  min-height: auto;
}

.auth-panel {
  background: #ffffff;
  padding: 14px 16px 14px;
}

.auth-subtitle {
  color: #5f7596;
  font-size: 12px;
  margin-bottom: 8px !important;
}

.auth-tabs {
  gap: 8px;
  background: #eef4ff;
  border-radius: 10px;
  padding: 5px;
}

.auth-tabs .nav-link {
  border: none;
  border-radius: 8px;
  color: #395981;
  font-weight: 600;
}

.auth-tabs .nav-link.active {
  background: #ffffff;
  color: #143a68;
  box-shadow: 0 2px 8px rgba(36, 73, 130, 0.16);
}

.auth-form .form-label {
  font-weight: 600;
  color: #27466f;
  margin-bottom: 6px;
}

.auth-form .mb-3 {
  margin-bottom: 12px !important;
}

.auth-input-group .input-group-text {
  background: #f3f7ff;
  border-color: #d8e6fb;
  color: #466c9e;
}

.auth-input-group .form-control {
  border-color: #d8e6fb;
  box-shadow: none;
}

.auth-input-group .form-control:focus {
  border-color: #73a8f5;
  box-shadow: 0 0 0 0.18rem rgba(78, 145, 239, 0.2);
}

.auth-submit-btn {
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 9px 12px;
}

.auth-login-btn {
  background: linear-gradient(120deg, #2f6fd5, #1f58b0);
  color: #ffffff;
}

.auth-register-btn {
  background: linear-gradient(120deg, #1d9b74, #118a66);
  color: #ffffff;
}

.auth-message {
  min-height: 16px;
}

@media (max-width: 991px) {
  .hero-container {
    padding: 24px 18px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  #mainNav .navbar-collapse {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(8, 18, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  #mainNav #navAuthArea {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .hero-minimal-meta {
    gap: 8px;
  }

  .hero-minimal-meta span {
    font-size: 12px;
  }
}
.hero-container {
  animation: fadeUp 1s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 粒子背景层 */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* 内容浮在上面 */
.hero-container {
  position: relative;
  z-index: 2;
}
.feature-card {
  position: relative;
  transition: all 0.3s ease;
  border-radius: 14px;
}

/* 悬浮发光 */
.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 10px 30px rgba(59,130,246,0.2),
    0 0 20px rgba(59,130,246,0.3);
}

/* 边缘光效 */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: 0.3s;
}

.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  transition: 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2);
  color: #2563eb;
}
/* 左右布局比例 */
.upload-card {
  width: 380px;
  min-width: 320px;
}

.result-card {
  flex: 1;
}

/* 左侧固定（高级感） */
.upload-card {
  position: sticky;
  top: 100px;
}
.visa-card {
  position: relative;
}

/* 箭头 */
.visa-card::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #94a3b8;
}

/* 最后一个不显示箭头 */
.col-md-2:last-child .visa-card::after {
  display: none;
}
/* 查询模块局部样式（避免污染全局导航与容器） */
.gene-query-section .container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gene-query-section h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.gene-query-section .query-layout-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gene-query-section .query-block-card {
  border: 1px solid #dce7f7;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 6px 16px rgba(15, 42, 78, 0.06);
}

.gene-query-section .single-query-card {
  border-left: 4px solid #2563eb;
}

.gene-query-section .dual-compare-card {
  border-left: 4px solid #0ea5e9;
}

.gene-query-section .visual-separate-card {
  border-left: 4px solid #10b981;
}


.gene-query-section .query-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f1f5f9;
    border-radius: 6px;
}

.gene-query-section .form-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gene-query-section .form-item label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.gene-query-section .form-item input,
.gene-query-section .form-item select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 200px;
}

.gene-query-section .form-item button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gene-query-section #queryBtn {
    background-color: #3b82f6;
    color: #fff;
}

.gene-query-section #queryBtn:hover {
    background-color: #2563eb;
}

.gene-query-section #downloadBtn {
    background-color: #10b981;
    color: #fff;
}

.gene-query-section #downloadBtn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

.gene-query-section #downloadBtn:hover:not(:disabled) {
    background-color: #059669;
}

.gene-query-section #addFavoriteBtn,
.gene-query-section #exportReportBtn {
  border: 1px solid #bdd1ef;
  background: #ffffff;
  color: #2f4f78;
  font-size: 14px;
  padding: 8px 14px;
}

.gene-query-section #addFavoriteBtn:hover,
.gene-query-section #exportReportBtn:hover {
  background: #edf4ff;
  border-color: #6ea0eb;
}

.gene-query-section #exportReportBtn:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

/* 结果区域样式 */
.gene-query-section .result-box {
    margin-top: 20px;
}

.gene-query-section .query-result-header {
  margin-bottom: 10px;
}

.gene-query-section .collapse-toggle-btn {
  min-width: 90px;
}

.gene-query-section .result-info {
    margin-bottom: 15px;
    font-size: 16px;
}

.gene-query-section .score-filter-panel {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fbff;
}

.gene-query-section #scoreFilterSlider {
  width: min(340px, 100%);
}

.gene-query-section .query-visual-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fbff;
}

.gene-query-section .query-visual-chart {
  width: 100%;
  height: 360px;
}

.gene-query-section .query-network-chart {
  width: 100%;
  height: 430px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08), transparent 36%), #f8fbff;
}

.gene-query-section .query-network-chart::before,
.gene-query-section .query-network-chart::after {
  content: "";
  position: absolute;
  inset: -35% -20%;
  pointer-events: none;
  z-index: 0;
}

.gene-query-section .query-network-chart::before {
  background:
    radial-gradient(circle at 22% 28%, rgba(59, 130, 246, 0.13), transparent 28%),
    radial-gradient(circle at 78% 66%, rgba(14, 165, 233, 0.12), transparent 30%);
  animation: networkGlowDrift 14s linear infinite;
}

.gene-query-section .query-network-chart::after {
  background:
    repeating-linear-gradient(120deg, rgba(59, 130, 246, 0.04) 0 2px, transparent 2px 16px),
    radial-gradient(circle, rgba(14, 165, 233, 0.08) 1px, transparent 2px);
  background-size: auto, 26px 26px;
  animation: networkSparkFlow 18s linear infinite;
}

.gene-query-section .query-network-chart > * {
  position: relative;
  z-index: 1;
}

@keyframes networkGlowDrift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, -1%, 0) scale(1); }
}

@keyframes networkSparkFlow {
  0% { transform: translate3d(0, 0, 0); opacity: 0.7; }
  50% { transform: translate3d(-18px, 12px, 0); opacity: 1; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.7; }
}

.gene-query-section .favorite-query-list,
.gene-query-section .favorite-query-item {
  border-color: #e6edf6;
}

.gene-query-section .dual-compare-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.gene-query-section .dual-compare-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gene-query-section #runCompareBtn {
  background: #1d4ed8;
  color: #fff;
}

.gene-query-section #runCompareBtn:hover {
  background: #1e40af;
}

.gene-query-section #compareAIInsightBtn {
  border: 1px solid #9bb6e8;
  background: #ffffff;
  color: #2f5b9a;
  font-size: 14px;
  padding: 8px 12px;
}

.gene-query-section #compareAIInsightBtn:hover {
  background: #edf4ff;
  border-color: #7ea4e1;
}

.gene-query-section #compareAIInsightBtn:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.gene-query-section .compare-summary {
  font-size: 14px;
}

.gene-query-section .compare-ai-insight {
  font-size: 13px;
  line-height: 1.7;
  padding: 10px 12px;
  border: 1px solid #dbe7fb;
  border-radius: 8px;
  background: #f7faff;
}

.gene-query-section .compare-gene-chart {
  width: 100%;
  height: 320px;
}

.gene-query-section .compare-history-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  background: #f8fbff;
}

.gene-query-section .compare-history-item {
  border: 1px solid #e2ebfb;
}

.gene-query-section .compare-diff-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dbe7fb;
  border-radius: 10px;
  background: #f8fbff;
}

.gene-query-section .compare-diff-summary {
  font-size: 13px;
}

.gene-query-section .compare-diff-table-wrap {
  max-height: 360px;
  overflow: auto;
}


.gene-query-section .table-container {
    overflow-x: auto; /* 表格横向滚动 */
}

.gene-query-section table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.gene-query-section th,
.gene-query-section td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.gene-query-section th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: #333;
}

.gene-query-section tr:hover {
    background-color: #f8f9fa;
}

.gene-query-section .query-history-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fbff;
}

.gene-query-section .query-history-item {
  border: 1px solid #e6edf6;
}

.gene-query-section .query-history-item + .query-history-item {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .gene-query-section .query-block-card {
    padding: 12px;
  }

  .gene-query-section .query-box {
    padding: 14px;
  }

  .gene-query-section .form-item {
    width: 100%;
    justify-content: space-between;
  }

  .gene-query-section .form-item input,
  .gene-query-section .form-item select {
    width: 100%;
  }

  .gene-query-section .dual-compare-form .form-item {
    width: 100%;
  }

}