/* ========================================
   Agrisale 官网 - 共享样式
   ======================================== */

/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --local-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --cloud-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-bg: #fff3cd;
    --warning-border: #ffc107;
    --warning-text: #856404;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #888;
    --bg-light: #f8f9fa;
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --border-radius-pill: 25px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* Header */
.header {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.header p {
    font-size: 18px;
    opacity: 0.9;
}

.header .subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-top: 5px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-link.active {
    background: white;
    color: #667eea;
}

/* Version Badge */
.version-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--border-radius-pill);
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
}

/* Content */
.content {
    padding: 50px 40px;
}

/* Section */
.section {
    margin-bottom: 50px;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.section-intro {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 16px;
}

/* Product Cards (Homepage) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #eee;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: #667eea;
}

.product-card .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-card .tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-pill);
    display: inline-block;
}

.product-card .description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.product-card .feature-highlights {
    text-align: left;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
}

.product-card .feature-highlights li {
    padding: 5px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.product-card .feature-highlights li::marker {
    color: #667eea;
}

.product-card.local-version {
    border-top: 4px solid #f5576c;
}

.product-card.cloud-version {
    border-top: 4px solid #4facfe;
}

/* Download Grid */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.download-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: #667eea;
}

.download-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.download-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.download-card .file-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
}

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

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    font-size: 12px;
    padding: 8px 20px;
    margin-top: 10px;
}

.btn-local {
    background: var(--local-gradient);
    color: white;
}

.btn-cloud {
    background: var(--cloud-gradient);
    color: white;
}

.download-btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius-pill);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: var(--secondary-gradient);
    font-size: 12px;
    padding: 8px 20px;
    margin-top: 10px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.comparison-table th:first-child {
    background: #5a67d8;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: #f8f9ff;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-light);
}

.comparison-table .check {
    color: #10b981;
    font-size: 18px;
}

.comparison-table .cross {
    color: #ef4444;
    font-size: 18px;
}

/* Recommendation Cards */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.recommendation-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 30px;
    border-left: 4px solid #667eea;
}

.recommendation-card.local {
    border-left-color: #f5576c;
}

.recommendation-card.cloud {
    border-left-color: #4facfe;
}

.recommendation-card h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.recommendation-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    padding-left: 25px;
    position: relative;
}

.recommendation-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
}

.recommendation-card.local li::before {
    color: #f5576c;
}

.recommendation-card.cloud li::before {
    color: #4facfe;
}

/* Features List */
.features {
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    padding: 30px;
    margin-top: 20px;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 20px;
}

.features h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 18px;
}

/* Update Notes */
.update-notes {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 20px;
    margin-top: 20px;
    border-radius: var(--border-radius-sm);
}

.update-notes h3 {
    color: var(--warning-text);
    margin-bottom: 10px;
}

.update-notes ul {
    margin-left: 20px;
    color: var(--warning-text);
}

.update-notes li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    color: var(--text-secondary);
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .copyright {
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #ccc;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: white;
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 40px 20px;
    }
    
    .header h1 {
        font-size: 32px;
    }
    
    .header .subtitle {
        font-size: 16px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .content {
        padding: 30px 20px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 28px;
    }
    
    .comparison-table {
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
