/* 智慧农业页面专用样式 */
:root {
    --primary-green: #28a745;
    --secondary-green: #20c997;
    --accent-green: #17a2b8;
    --earth-brown: #8B4513;
    --sky-blue: #87CEEB;
    --gradient-agriculture: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --gradient-secondary: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

/* 导航栏 */
.navbar {
    background: rgba(40, 167, 69, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar.scrolled {
    background: rgba(40, 167, 69, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    background: var(--gradient-agriculture);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* 主页横幅 */
.hero-section {
    background: 
        radial-gradient(circle at 10% 20%, rgba(135, 206, 235, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(34, 139, 34, 0.2) 0%, transparent 40%),
        var(--gradient-agriculture);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.agriculture-animation {
    animation: float 8s ease-in-out infinite;
    text-align: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    25% { transform: translateY(-20px) scale(1.05) rotate(5deg); }
    50% { transform: translateY(-30px) scale(1.1) rotate(-5deg); }
    75% { transform: translateY(-20px) scale(1.05) rotate(3deg); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.agricultural-element {
    position: absolute;
    opacity: 0.1;
    animation: floatElement 20s infinite linear;
    font-size: 1.5rem;
    color: white;
}

.agricultural-element:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.agricultural-element:nth-child(2) { top: 20%; left: 80%; animation-delay: 2s; }
.agricultural-element:nth-child(3) { top: 30%; left: 20%; animation-delay: 4s; }
.agricultural-element:nth-child(4) { top: 40%; left: 70%; animation-delay: 6s; }
.agricultural-element:nth-child(5) { top: 60%; left: 15%; animation-delay: 8s; }
.agricultural-element:nth-child(6) { top: 70%; left: 85%; animation-delay: 10s; }
.agricultural-element:nth-child(7) { top: 80%; left: 25%; animation-delay: 12s; }
.agricultural-element:nth-child(8) { top: 15%; left: 50%; animation-delay: 14s; }
.agricultural-element:nth-child(9) { top: 85%; left: 60%; animation-delay: 16s; }
.agricultural-element:nth-child(10) { top: 50%; left: 40%; animation-delay: 18s; }

@keyframes floatElement {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 定义部分 */
.definition-points {
    margin-top: 2rem;
}

.point-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.point-item:hover {
    background: rgba(40, 167, 69, 0.1);
    transform: translateX(5px);
}

.definition-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.definition-chart {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.chart-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chart-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.chart-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-agriculture);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
}

/* 技术卡片 */
.tech-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.tech-card:hover::before {
    left: 0;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.tech-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-radius: 50%;
    color: var(--primary-green);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    background: var(--gradient-agriculture);
    color: white;
    transform: rotate(360deg);
}

.tech-features {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 应用场景卡片 */
.scenario-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.scenario-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.scenario-header {
    background: var(--gradient-agriculture);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.scenario-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.scenario-content {
    padding: 1.5rem;
}

.scenario-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 优势时间线 */
.advantages-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--gradient-agriculture);
    border-radius: 50%;
    margin-right: 2rem;
    flex-shrink: 0;
    position: relative;
}

.timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 2rem;
    height: 2px;
    background: var(--gradient-agriculture);
    transform: translateY(-50%);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    border-left: 3px solid rgba(40, 167, 69, 0.1);
}

/* 发展趋势卡片 */
.trend-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trend-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.trend-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(160, 82, 45, 0.05));
    border-radius: 50%;
    color: var(--earth-brown);
    font-size: 1.8rem;
}

.trend-progress {
    margin-top: 1.5rem;
}

.progress-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-agriculture);
    transition: width 1s ease;
}

/* 联系部分 */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
}

/* 表单样式 */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--gradient-agriculture);
    color: white;
    border-radius: 16px 16px 0 0;
    border: none;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.1);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-agriculture);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .definition-chart {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .scenario-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-marker {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .timeline-marker::after {
        display: none;
    }
    
    .timeline-content {
        border-left: none;
        border-top: 3px solid rgba(40, 167, 69, 0.1);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .tech-card,
    .scenario-card,
    .trend-card {
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* 动画和过渡增强 */
* {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #28a745;
        border: 2px solid #28a745;
    }
    
    .tech-card,
    .scenario-card,
    .trend-card {
        border: 2px solid #333;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}