/* ===== 基础重置与变量 ===== */
:root {
    --primary: #2d6a35;
    --primary-dark: #1a4a21;
    --primary-light: #4a9a55;
    --accent: #c8a44e;
    --accent-light: #f0e4c8;
    --text: #2c2c2c;
    --text-light: #666;
    --bg: #fafaf7;
    --bg-alt: #f0ece0;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 ===== */
.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: 0 2px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: auto;
    object-fit: contain;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* 语言切换按钮 */
.lang-toggle {
    padding: 6px 14px;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

.nav-link {
    display: block;
    padding: 8px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(45,106,53,0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero 首页 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a20 0%, #2d5a35 30%, #3a7a44 60%, #5a9a5a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    letter-spacing: 6px;
    font-weight: 300;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 2px;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(200,164,78,0.4);
}

.btn-primary:hover {
    background: #d4b060;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(200,164,78,0.5);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.8);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* ===== 通用 Section ===== */
.section {
    padding: 100px 0;
}

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

.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto 60px;
    border-radius: 2px;
}

/* ===== 关于我们 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text);
    line-height: 2;
}

.about-text strong {
    color: var(--primary-dark);
}

.about-intro {
    font-size: 18px !important;
    color: var(--primary-dark) !important;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(45,106,53,0.1);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.stat-unit {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--white);
    padding: 36px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

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

/* ===== 产地介绍 ===== */
.origin-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.origin-text p {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 2;
}

.origin-text strong {
    color: var(--primary-dark);
}

.origin-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    background: var(--white);
    padding: 28px 20px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.feature-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== 产品中心 ===== */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
}

.tab-btn:hover {
    background: rgba(45,106,53,0.06);
}

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

.product-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-grid.active {
    display: grid;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #f5f5f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 600;
}

.product-spec {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

/* ===== 新闻动态 ===== */
.news-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.news-item {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    position: relative;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 116px;
    top: 10px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-alt);
}

.news-date {
    min-width: 100px;
    text-align: right;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    padding-top: 4px;
}

.news-content {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex: 1;
    transition: var(--transition);
}

.news-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-link h3 {
    font-size: 17px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    transition: var(--transition);
}

.news-link:hover h3 {
    color: var(--primary);
}

.news-content h3 {
    font-size: 17px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== 新闻内容 ===== */
.news-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.nc-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.nc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.nc-date {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.nc-title {
    font-size: 18px;
    color: var(--primary-dark);
    padding: 20px 20px 10px;
    line-height: 1.4;
}

.nc-body {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    flex: 1;
}

.nc-body p {
    margin-bottom: 10px;
}

.nc-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 20px 20px;
}

.nc-gallery img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    transition: var(--transition);
}

.nc-gallery img:hover {
    transform: scale(1.03);
}

.nc-gallery img:only-child {
    grid-column: 1 / -1;
    height: 200px;
}

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45,106,53,0.08);
    border-radius: 50%;
}

.contact-item h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-light);
}

.map-placeholder {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d5e8d0 0%, #c8dcc0 30%, #b8d0a8 60%, #a8c898 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    position: relative;
}

.map-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(45,106,53,0.05) 39px, rgba(45,106,53,0.05) 40px),
                repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(45,106,53,0.05) 39px, rgba(45,106,53,0.05) 40px);
}

.map-pin {
    font-size: 48px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    animation: float 2s ease-in-out infinite;
}

.map-bg p {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
}

.map-sub {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--text-light) !important;
    margin-top: 8px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.2);
    padding: 4px;
    border-radius: 8px;
}

.footer-brand h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--white);
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
}

.footer h4 {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer ul li:hover {
    opacity: 1;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .about-grid,
    .origin-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

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

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

    .lang-toggle {
        padding: 5px 10px;
        font-size: 12px;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        padding: 14px 20px;
        text-align: center;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-logo {
        width: 120px;
    }

    .section {
        padding: 70px 0;
    }

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

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

    .news-timeline::before {
        left: 20px;
    }

    .news-item {
        flex-direction: column;
        gap: 8px;
        padding-left: 40px;
    }

    .news-item::before {
        left: 16px;
    }

    .news-date {
        text-align: left;
        min-width: auto;
    }

    .product-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

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

@media (max-width: 480px) {
    .about-values {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-number {
        font-size: 28px;
    }

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

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

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

    .news-content-grid {
        grid-template-columns: 1fr;
    }
}