/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --accent-color: #8BC34A;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-light: #BDBDBD;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-wechat {
    background: linear-gradient(135deg, #07C160, #05a350);
    color: white;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.btn-wechat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

.btn-ai {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 访问次数显示 */
.visit-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(56, 142, 60, 0.1));
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    margin-left: 20px;
}

.visit-counter i {
    font-size: 16px;
}

.visit-counter span {
    font-size: 14px;
}

/* 下拉菜单 */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown .dropdown-menu li {
    margin: 0;
}

.nav-menu .dropdown .dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-menu .dropdown .dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    position: relative;
    min-height: auto;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a5f1a 0%, #2e7d32 50%, #4CAF50 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1.5" fill="rgba(255,255,255,0.06)"/></svg>');
    background-size: 200px 200px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 16px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.hero-actions .btn-large {
    margin: 0 10px;
}

.hero-actions .btn-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-status {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    margin-top: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
    position: relative;
    margin-top: 40px;
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-align: center;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 功能区域 */
.feature-section {
    padding: 100px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse > * {
    direction: ltr;
}

.feature-content {
    max-width: 500px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.2);
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-highlight {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.feature-highlight strong {
    color: var(--primary-color);
    font-size: 18px;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin: 24px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 图片卡片 */
.feature-image {
    display: flex;
    justify-content: center;
}

.image-card {
    width: 100%;
    max-width: 450px;
    height: 337.5px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.image-card:hover {
    transform: translateY(-10px);
}

.image-placeholder {
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: white;
    font-size: 18px;
    font-weight: 500;
}

.image-placeholder i {
    font-size: 64px;
    opacity: 0.9;
}

.image-card img {
    width: 100%;
    height: 337.5px;
    object-fit: cover;
}

.disease-img {
    background: linear-gradient(135deg, #FF6B6B, #EE5A5A);
}

.pest-img {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.wiki-img {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* 更多功能 */
.more-features {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 58px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.card-icon i {
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 关于我们 */
.ai-experience {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.ai-experience .ai-content h2 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 58px;
    text-align: center;
}

.ai-experience .ai-content .about-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-experience .ai-content .about-image {
    flex: 0 0 450px;
    max-width: 450px;
}

.ai-experience .ai-content .about-image img {
    width: 100%;
    height: 338px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-experience .ai-content .about-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.ai-experience .ai-content .about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}



.ai-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.ai-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.ai-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.ai-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-grid.reverse {
        direction: ltr;
    }
    
    .feature-content {
        text-align: center;
        max-width: 100%;
    }
    
    .feature-icon {
        margin: 0 auto 24px;
    }
    
    .stats-row {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ai-content h2 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-actions,
    .ai-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}
