/* HRagri - Hengrun Agricultural Technology Website Styles */
/* 参考隆基绿能、约翰迪尔、利马兰德的设计风格 */

:root {
    --primary-green: #1a5d1a;
    --secondary-green: #2e7d32;
    --accent-gold: #c9a227;
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gradient-green: linear-gradient(135deg, #1a5d1a 0%, #2e7d32 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 5%;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    padding: 16px 48px;
    background: var(--gradient-green);
    color: var(--text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn:hover {
    background: transparent;
    border-color: var(--text-light);
    transform: translateY(-3px);
}

/* Section Styles */
.section {
    padding: 100px 5%;
}

.section-dark {
    background: var(--dark-bg);
    color: var(--text-light);
}

.section-light {
    background: var(--light-bg);
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-dark .section-subtitle {
    color: #aaa;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.service-desc {
    color: #666;
    line-height: 1.8;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Markets Section */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.market-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.market-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.market-card:hover img {
    transform: scale(1.1);
}

.market-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}

.market-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.market-crops {
    font-size: 14px;
    opacity: 0.8;
}

/* About Page Styles */
.page-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 700;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-item {
    text-align: center;
    padding: 40px;
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: white;
}

.mission-title {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Solutions Page */
.solution-section {
    padding: 80px 5%;
}

.solution-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-container.reverse {
    direction: rtl;
}

.solution-container.reverse > * {
    direction: ltr;
}

.solution-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.solution-content h2 {
    font-size: 36px;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.solution-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.solution-features {
    list-style: none;
    margin-top: 30px;
}

.solution-features li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-text p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-about p {
    color: #aaa;
    margin-top: 20px;
    line-height: 1.8;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

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

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .solution-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .markets-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: white;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 30px;
}

.lang-switch a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-switch a:hover {
    color: var(--text-light);
}

.lang-switch a.active {
    background: var(--accent-gold);
    color: var(--dark-bg);
}

.lang-divider {
    color: #555;
    font-size: 14px;
}
