body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  min-height: 100vh;
  color: #e0f7fa;
  background: linear-gradient(135deg, #0a1833 0%, #102a43 60%, #1de9b6 100%);
  position: relative;
  overflow-x: hidden;
}

.navbar {
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(20,30,40,0.82);
  box-shadow: 0 2px 16px 0 rgba(33,150,243,0.10);
  backdrop-filter: blur(8px);
}
.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #1de9b6;
  letter-spacing: 2px;
  text-shadow: 0 0 12px #1de9b6, 0 0 2px #2196f3;
}
/* 顶部菜单优化 */
.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu li {
  padding: 0;
  margin: 0;
}
.nav-link {
  display: block;
  color: #e0f7fa;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  letter-spacing: 1px;
  position: relative;
}
.nav-link:hover, .nav-link:focus {
  color: #fff;
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 100%);
  box-shadow: 0 0 12px #1de9b6;
  text-shadow: 0 0 8px #1de9b6;
  outline: none;
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 100%);
  box-shadow: 0 0 18px #2196f3;
  text-shadow: 0 0 8px #1de9b6;
}
.user-avatar {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #1de9b6 0%, #2196f3 100%);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px #1de9b6;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.user-avatar:hover {
  box-shadow: 0 0 18px #2196f3;
}

.hero {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px;
  padding-bottom: 32px;
  position: relative;
  z-index: 2;
  gap: 48px;
}
.hero-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px #1de9b6, 0 0 2px #2196f3;
  margin-bottom: 18px;
}
.hero-content p {
  font-size: 1.25rem;
  color: #e0f7fa;
  margin-bottom: 28px;
}
.hero-upload-btn {
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 100%);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 16px 38px;
  box-shadow: 0 0 18px #1de9b6, 0 0 2px #2196f3;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 1px;
}
.hero-upload-btn:hover {
  background: linear-gradient(90deg, #2196f3 0%, #1de9b6 100%);
  box-shadow: 0 0 32px #2196f3;
}
.hero-visual {
  min-width: 320px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ai-anim {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #1de9b6 0%, #2196f3 80%, #0a1833 100%);
  box-shadow: 0 0 80px 20px #1de9b6, 0 0 32px 8px #2196f3;
  opacity: 0.85;
  animation: aiPulse 2.5s infinite alternate;
}
@keyframes aiPulse {
  0% { box-shadow: 0 0 80px 20px #1de9b6, 0 0 32px 8px #2196f3; }
  100% { box-shadow: 0 0 120px 40px #2196f3, 0 0 48px 16px #1de9b6; }
}

.main-section {
  display: flex;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto 0 auto;
  padding: 32px 0 0 0;
  z-index: 2;
  position: relative;
}
.main-left, .main-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.main-left {
  background: rgba(255,255,255,0.10);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(33,150,243,0.10);
  padding: 28px 18px 18px 18px;
}
.main-right {
  gap: 18px;
}
.data-card {
  background: rgba(20,30,40,0.82);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(33,150,243,0.13);
  padding: 18px 18px 12px 18px;
  margin-bottom: 0;
  color: #e0f7fa;
  border: 1.5px solid rgba(33,150,243,0.13);
  transition: box-shadow 0.2s, border 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.data-card:hover {
  box-shadow: 0 0 32px #1de9b6;
  border: 1.5px solid #1de9b6;
}
.data-card h3 {
  color: #1de9b6;
  font-size: 1.08rem;
  margin: 0 0 10px 0;
}

/* 科普信息区 */
.science-section {
  max-width: 1200px;
  margin: 48px auto 0 auto;
  background: rgba(20,30,40,0.82);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(33,150,243,0.10);
  padding: 32px 20px 24px 20px;
  z-index: 2;
  position: relative;
}
.sci-tabs {
  display: flex;
  gap: 0;
  width: 100%;
  margin-bottom: 18px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(33,150,243,0.04);
}
.sci-tab {
  flex: 1 1 0;
  background: rgba(33,150,243,0.10);
  color: #1de9b6;
  border: none;
  outline: none;
  font-size: 1.08rem;
  padding: 12px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  letter-spacing: 1px;
}
.sci-tab.active {
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 100%);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(33,150,243,0.13);
}
.sci-tab-content {
  display: none;
  animation: fadeInSci 0.5s;
  color: #e0f7fa;
}
.sci-tab-content.active {
  display: block;
}
@keyframes fadeInSci {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.science-gallery {
  display: flex;
  gap: 18px;
  margin-top: 8px;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1rem;
  color: #1de9b6;
  background: rgba(33,150,243,0.10);
  border-radius: 10px;
  padding: 10px 8px 6px 8px;
  box-shadow: 0 1px 6px rgba(33,150,243,0.08);
}
.gallery-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(33,150,243,0.10);
  margin-bottom: 4px;
}
.science-links {
  margin: 0;
  padding-left: 16px;
  font-size: 1rem;
}
.science-links a {
  color: #1de9b6;
  text-decoration: underline;
  transition: color 0.2s;
}
.science-links a:hover {
  color: #fff;
  text-shadow: 0 0 8px #1de9b6;
}

/* 用户评价区 */
.testimonial-section {
  max-width: 1200px;
  margin: 48px auto 0 auto;
  padding: 32px 0 24px 0;
  z-index: 2;
  position: relative;
}
.testimonial-section h2 {
  color: #1de9b6;
  font-size: 1.4rem;
  margin-bottom: 24px;
  text-align: center;
}
.testimonial-list {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.testimonial-item {
  background: rgba(20,30,40,0.82);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(33,150,243,0.13);
  padding: 18px 18px 12px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 260px;
  max-width: 340px;
}
.testimonial-item img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 8px #1de9b6;
}
.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.testimonial-name {
  color: #1de9b6;
  font-weight: bold;
  font-size: 1.08rem;
}
.testimonial-text {
  background: rgba(33,150,243,0.10);
  border-radius: 8px;
  padding: 8px 12px;
  color: #e0f7fa;
  font-size: 1rem;
  margin-top: 2px;
}

/* 页脚 */
footer {
  background: rgba(20,30,40,0.92);
  color: #e0f7fa;
  padding: 24px 0 12px 0;
  text-align: center;
  margin-top: 48px;
  border-top: 1.5px solid rgba(33,150,243,0.13);
}
.footer-partners {
  margin-bottom: 10px;
}
.footer-partners img {
  height: 32px;
  margin: 0 8px;
  filter: grayscale(1) brightness(1.2);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}
.footer-partners img:hover {
  filter: none;
  opacity: 1;
}
.footer-info {
  font-size: 0.98rem;
  color: #b2f2bb;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .main-section, .science-section, .testimonial-section {
    max-width: 98vw;
    padding-left: 2vw;
    padding-right: 2vw;
  }
}
@media (max-width: 900px) {
  .main-section {
    flex-direction: column;
    gap: 18px;
  }
  .main-left, .main-right {
    padding: 0;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .navbar {
    padding: 0 10px;
    height: 54px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .nav-menu {
    gap: 10px;
    font-size: 0.98rem;
  }
  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  .hero {
    flex-direction: column;
    gap: 18px;
    padding-top: 60px;
    min-height: 320px;
  }
  .hero-content h1 {
    font-size: 1.3rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-visual {
    min-width: 180px;
    min-height: 180px;
  }
  .ai-anim {
    width: 120px;
    height: 120px;
  }
  .main-section {
    padding: 12px 0 0 0;
  }
  .science-section {
    padding: 12px 2vw 8px 2vw;
  }
  .testimonial-section {
    padding: 12px 0 8px 0;
  }
  .footer-partners img {
    height: 22px;
  }
} 

/* 主功能区居中大卡片 */
.main-center {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.upload-card {
  flex: 2;
  min-width: 420px;
  width: 100%;
  background: rgba(20,30,40,0.92);
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 rgba(33,150,243,0.18);
  padding: 32px 24px 24px 24px;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid rgba(33,150,243,0.18);
  backdrop-filter: blur(8px);
}
.upload-card h2 {
  color: #1de9b6;
  font-size: 1.35rem;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 700;
}
.upload-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}
.preview-area {
  width: 100%;
  min-height: 180px;
  background: rgba(33,150,243,0.10);
  border: 2.5px dashed #1de9b6;
  border-radius: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
  cursor: pointer;
}
.preview-area.dragover {
  border-color: #2196f3;
}
.preview-placeholder {
  color: #b2f2bb;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.preview-img {
  max-width: 100%;
  max-height: 160px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px #1de9b6;
}
.upload-btn {
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  box-shadow: 0 0 12px #1de9b6, 0 0 2px #2196f3;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 1px;
}
.upload-btn:hover {
  background: linear-gradient(90deg, #2196f3 0%, #1de9b6 100%);
  box-shadow: 0 0 24px #2196f3;
}
.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(33,150,243,0.10);
  border-radius: 8px;
  margin: 18px 0 8px 0;
  overflow: hidden;
  box-shadow: 0 0 8px #1de9b6;
}
.progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 100%);
  border-radius: 8px;
  animation: progressAnim 2s linear forwards;
}
@keyframes progressAnim {
  from { width: 0; }
  to { width: 100%; }
}
.result-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.7s;
  margin-top: 18px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.result-section h3 {
  color: #1de9b6;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.result-section .result-img {
  max-width: 90%;
  max-height: 120px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px #1de9b6;
}
.result-section .risk-level {
  display: inline-block;
  font-weight: bold;
  padding: 4px 16px;
  border-radius: 16px;
  font-size: 1.08rem;
  margin: 0 0 10px 0;
  color: #fff;
  background: linear-gradient(90deg, #e74c3c 0%, #ffb300 100%);
  box-shadow: 0 0 8px #e74c3c;
}
.result-section .suggestions {
  margin: 10px 0 0 0;
  padding-left: 0;
  list-style: none;
  color: #e0f7fa;
  font-size: 1rem;
}
.result-section .suggestions li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-section .result-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.result-section .result-actions button {
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 8px #1de9b6;
  transition: background 0.2s;
}
.result-section .result-actions button:hover {
  background: linear-gradient(90deg, #2196f3 0%, #1de9b6 100%);
}

/* 历史识别记录卡片 */
.history-section {
  flex: 1.2;
  min-width: 320px;
  width: 100%;
  background: rgba(33,150,243,0.10);
  border-radius: 14px;
  box-shadow: 0 1px 8px #1de9b6;
  padding: 18px 14px 12px 14px;
  margin-top: 24px;
}
.history-section h3 {
  color: #1de9b6;
  font-size: 1.08rem;
  margin: 0 0 10px 0;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20,30,40,0.82);
  border-radius: 8px;
  box-shadow: 0 1px 4px #1de9b6;
  padding: 6px 8px;
}
.history-item img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}
.history-pest {
  font-weight: bold;
  color: #1de9b6;
  font-size: 1rem;
}
.history-meta {
  font-size: 0.92rem;
  color: #b2f2bb;
}

/* 英雄区补充 */
.hero-extra {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.hero-feature {
  background: rgba(33,150,243,0.10);
  color: #1de9b6;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 6px #1de9b6;
}

/* 系统亮点卡片组 */
.feature-cards {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 0 auto 0 auto;
  max-width: 1100px;
  padding: 32px 0 0 0;
  z-index: 2;
  position: relative;
}
.feature-card {
  background: rgba(20,30,40,0.92);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(33,150,243,0.13);
  border: 1.5px solid rgba(33,150,243,0.13);
  padding: 22px 18px 16px 18px;
  min-width: 180px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
  cursor: pointer;
}
.feature-card:hover {
  box-shadow: 0 0 32px #1de9b6;
  border: 1.5px solid #1de9b6;
  transform: translateY(-6px) scale(1.04);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #1de9b6;
  text-shadow: 0 0 8px #1de9b6;
}
.feature-title {
  color: #1de9b6;
  font-size: 1.08rem;
  font-weight: bold;
  margin-bottom: 6px;
}
.feature-desc {
  color: #e0f7fa;
  font-size: 0.98rem;
}

/* 合作伙伴logo带 */
.partner-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 32px auto 0 auto;
  padding: 0 0 0 0;
  max-width: 900px;
  opacity: 0.85;
}
.partner-bar span {
  color: #b2f2bb;
  font-size: 1rem;
  margin-right: 8px;
}
.partner-bar img {
  height: 32px;
  filter: grayscale(1) brightness(1.2);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}
.partner-bar img:hover {
  filter: none;
  opacity: 1;
}

/* 渐变分割线 */
.section-divider {
  width: 100vw;
  height: 6px;
  margin: 36px 0 0 0;
  background: linear-gradient(90deg, #1de9b6 0%, #2196f3 50%, #7c4dff 100%);
  opacity: 0.18;
  border-radius: 3px;
  box-shadow: 0 0 18px #1de9b6;
}

@media (max-width: 900px) {
  .feature-cards {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 0 0 0;
  }
  .feature-card {
    min-width: 140px;
    max-width: 48vw;
    padding: 14px 6vw 10px 6vw;
  }
  .partner-bar {
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px auto 0 auto;
  }
}
@media (max-width: 600px) {
  .feature-cards {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 0 0 0;
  }
  .feature-card {
    min-width: 0;
    max-width: 98vw;
    padding: 10px 2vw 8px 2vw;
  }
  .partner-bar img {
    height: 20px;
  }
  .section-divider {
    height: 3px;
    margin: 16px 0 0 0;
  }
} 

@media (max-width: 900px) {
  .nav-menu {
    gap: 10px;
  }
  .nav-link {
    padding: 8px 8px;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .nav-menu {
    flex-direction: column;
    gap: 0;
    background: rgba(20,30,40,0.98);
    position: absolute;
    top: 54px;
    left: 0;
    width: 100vw;
    z-index: 200;
    display: none; /* 可后续用JS控制展开 */
  }
  .nav-link {
    width: 100vw;
    text-align: center;
    padding: 16px 0;
    font-size: 1.1rem;
    border-radius: 0;
  }
} 

/* ECharts 图表容器优化 */
#heatmap, #trendchart {
  width: 100% !important;
  max-width: 700px;
  min-height: 280px;
  height: 340px;
  margin: 0 auto;
  display: block;
}
.data-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 600px) {
  #heatmap, #trendchart {
    max-width: 98vw;
    min-height: 200px;
    height: 220px;
  }
} 

.ai-analyzing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 24px 0 18px 0;
}
.ai-analyzing .ai-anim {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #1de9b6 0%, #2196f3 80%, #0a1833 100%);
  box-shadow: 0 0 48px 8px #1de9b6, 0 0 24px 4px #2196f3;
  opacity: 0.92;
  position: relative;
  margin-bottom: 18px;
  animation: aiAnalyzingPulse 1.2s infinite alternate;
}
@keyframes aiAnalyzingPulse {
  0% { box-shadow: 0 0 48px 8px #1de9b6, 0 0 24px 4px #2196f3; }
  100% { box-shadow: 0 0 80px 20px #2196f3, 0 0 32px 8px #1de9b6; }
}
.ai-analyzing .ai-anim::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid #1de9b6;
  border-top: 4px solid #2196f3;
  border-bottom: 4px solid #7c4dff;
  opacity: 0.7;
  animation: aiAnalyzingSpin 1.1s linear infinite;
}
@keyframes aiAnalyzingSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.ai-analyzing-text {
  font-size: 1.25rem;
  color: #1de9b6;
  letter-spacing: 2px;
  margin-top: 8px;
  text-shadow: 0 0 8px #2196f3;
  font-weight: 600;
} 