/* 农情监测页面专用样式 */

/* 通用样式 */
:root {
    --primary-color: #28a745;
    --primary-dark: #1e7e34;
    --primary-light: #48c774;
    --secondary-color: #ffc107;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --hover-transform: translateY(-8px);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --gradient-primary: linear-gradient(135deg, #28a745, #48c774);
  }
  
  /* 页面横幅 */
  .page-header {
    padding: 7rem 0 4rem;
    background: url('../images/n001.png');
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* 添加半透明遮罩，确保文字清晰可见 */
    opacity: 1;
  }
  
  /* AI部分样式 */
  .ai-section {
    padding: 5rem 0;
    position: relative;
    background-color: var(--bg-light);
  }
  
  .ai-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.03));
    pointer-events: none;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
  }
  
  .section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
  }
  
  .section-header p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* AI图像部分 */
  .ai-image-wrapper {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
  }
  
  .ai-image-wrapper:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }
  
  .ai-image {
    overflow: hidden;
    border-radius: var(--border-radius);
  }
  
  .ai-image img {
    width: 100%;
    transition: transform 0.5s ease;
  }
  
  .ai-image-wrapper:hover .ai-image img {
    transform: scale(1.05);
  }
  
  .tech-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  }
  
  .accuracy-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  }
  
  .accuracy-badge span {
    font-weight: 700;
  }
  
  /* AI特性卡片 */
  .spec-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
  }
  
  .spec-item:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }
  
  .spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }
  
  .spec-icon i {
    color: white;
    font-size: 24px;
  }
  
  .spec-content {
    flex-grow: 1;
  }
  
  .spec-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
  }
  
  .spec-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }
  
  .accuracy-bar {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
  }
  
  .accuracy-bar .progress {
    flex-grow: 1;
    height: 8px;
    border-radius: 4px;
    margin-right: 1rem;
    background-color: #e9ecef;
  }
  
  .accuracy-bar .progress-bar {
    background: var(--gradient-primary);
    border-radius: 4px;
  }
  
  .accuracy-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
  }
  
  .sample-counter {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
  }
  
  .counter-item {
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    text-align: center;
    flex: 1;
  }
  
  .counter-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
  }
  
  .counter-unit {
    font-size: 0.9rem;
    color: var(--primary-color);
  }
  
  .counter-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: block;
  }
  
  .speed-indicator {
    position: relative;
    height: 30px;
    margin-top: 0.75rem;
  }
  
  .speed-bar {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #e9ecef;
    transform: translateY(-50%);
  }
  
  .speed-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 30%;
    background: var(--gradient-primary);
    border-radius: 1.5px;
  }
  
  .speed-bar::after {
    content: '';
    position: absolute;
    left: 30%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(40, 167, 69, 0.2);
  }
  
  .speed-value {
    position: absolute;
    left: 30%;
    top: -6px;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .app-stores {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .store-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-light);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
  }
  
  .store-badge i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
  }
  
  .store-badge:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }
  
  /* 新版AI演示部分 */
  .ai-demo-container {
    margin-top: 4rem;
  }
  
  .model-init-card,
  .upload-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition);
  }
  
  .model-init-card:hover,
  .upload-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }
  
  .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  
  .card-header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }
  
  .card-header i {
    font-size: 2rem;
    margin-right: 1rem;
  }
  
  .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
  }
  
  .upload-card .card-header {
    background-color: #17a2b8;
  }
  
  .card-body {
    padding: 2rem;
  }
  
  .card-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
  }
  
  .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
  }
  
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .btn i {
    margin-right: 0.5rem;
  }
  
  .status-display {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-light);
    border-radius: 50px;
  }
  
  .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #6c757d;
    margin-right: 0.75rem;
    position: relative;
  }
  
  .status-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: inherit;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.5);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 0;
    }
  }
  
  #model-init-status {
    color: var(--text-secondary);
    font-weight: 600;
  }
  
  .upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
  }
  
  .upload-zone:hover {
    border-color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.05);
  }
  
  .upload-zone i {
    font-size: 2.5rem;
    color: #adb5bd;
    margin-bottom: 1rem;
    display: block;
  }
  
  .upload-zone p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  /* AI特性卡片 */
  .ai-features {
    margin-top: 3rem;
  }
  
  .feature-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    text-align: center;
  }
  
  .feature-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  }
  
  .feature-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
  }
  
  .feature-card .icon i {
    font-size: 28px;
    color: white;
  }
  
  .feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
  }
  
  .feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
  }
  
  /* 状态样式 */
  .status-waiting #model-init-status {
    color: var(--text-secondary);
  }
  
  .status-loading .status-indicator {
    background-color: #007bff;
  }
  
  .status-loading #model-init-status {
    color: #007bff;
  }
  
  .status-success .status-indicator {
    background-color: var(--primary-color);
  }
  
  .status-success #model-init-status {
    color: var(--primary-color);
  }
  
  .status-error .status-indicator {
    background-color: #dc3545;
  }
  
  .status-error #model-init-status {
    color: #dc3545;
  }
  
  /* 响应式调整 */
  @media (max-width: 991.98px) {
    .spec-item {
      padding: 1.25rem;
    }
    
    .spec-icon {
      width: 50px;
      height: 50px;
      margin-right: 1rem;
    }
    
    .spec-icon i {
      font-size: 20px;
    }
    
    .spec-content h3 {
      font-size: 1.1rem;
    }
    
    .card-header {
      padding: 1.25rem;
    }
    
    .card-body {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 767.98px) {
    .section-header h2 {
      font-size: 1.75rem;
    }
    
    .card-header i {
      font-size: 1.5rem;
    }
    
    .card-header h3 {
      font-size: 1.1rem;
    }
    
    .feature-card {
      padding: 1.5rem;
    }
    
    .feature-card .icon {
      width: 60px;
      height: 60px;
    }
    
    .feature-card .icon i {
      font-size: 24px;
    }
  }

  /* 监测图片样式 */
  .monitoring-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    position: relative;
  }

  .monitoring-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: url('../images/pattern-dots.png');
    background-size: 12px 12px;
    opacity: 0.1;
    z-index: -1;
  }

  .monitoring-image img {
    transition: all 0.5s ease;
  }

  .monitoring-image:hover img {
    transform: perspective(1000px) rotateY(0deg) scale(1.02) !important;
  }

  /* 图表图片样式 */
  .visualization-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
  }

  .visualization-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 80px;
    height: 80px;
    border-top: 3px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    opacity: 0.3;
    z-index: -1;
  }

  .visualization-image img {
    transition: all 0.5s ease;
  }

  .visualization-image:hover img {
    transform: translateY(-8px);
  }

  /* 部署图样式 */
  .deployment-map img {
    max-width: 85%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
  }

  .deployment-map img:hover {
    transform: scale(1.02);
  }

  /* 案例图片样式 */
  .case-study-image img {
    max-width: 92%;
    border-radius: var(--border-radius);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
  }

  .case-study-image img:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
  }

  /* 识别卡片样式 */
  .ai-section .data-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 5px;
  }

  .ai-section .data-value small {
    font-size: 1rem;
    position: relative;
    top: -5px;
    margin-left: 2px;
  }

  .ai-section .data-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
  }

  .ai-section .speed-bar {
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* 多源数据背景样式 */
  .overview-section .feature-item {
    text-align: center;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .overview-section .feature-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
  }

  .overview-section .feature-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: white;
  }

  .overview-section .feature-item span {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
  }

  .overview-section .success-story {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    display: inline-block;
  }