/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2a7546;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Logo图片样式 */
.logo-img[style*="display: none"] {
    display: none !important;
}

.logo-text {
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2a7546;
}

.lang-switch {
    background: #dcf2e3;
    color: #2a7546;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #dcf2e3 0%, #fff 50%, #dcf2e3 100%);
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.3;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    color: #1a3f29;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    color: #2a7546;
    font-weight: 600;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #2a7546;
    color: #fff;
}

.btn-primary:hover {
    background: #235e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 117, 70, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #2a7546;
    border: 2px solid #2a7546;
}

.btn-secondary:hover {
    background: #dcf2e3;
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #dcf2e3 0%, #fff 100%);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: visible;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.5;
    overflow: hidden;
}

.page-header-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    min-height: 400px;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1a3f29;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* 关于我们部分的副标题需要更大的间距 */
.about .section-subtitle {
    margin-bottom: 3rem;
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background: #fff;
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a3f29;
    margin-bottom: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.product-card h3 {
    font-size: 1.5rem;
    color: #1a3f29;
    margin-bottom: 1rem;
}

.product-card p {
    color: #666;
    line-height: 1.8;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a3f29;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-card h3 {
    font-size: 1.5rem;
    color: #2a7546;
    margin-bottom: 1rem;
}

.about-card p {
    color: #666;
    line-height: 1.8;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form-wrapper {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    color: #1a3f29;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a7546;
    box-shadow: 0 0 0 3px rgba(42, 117, 70, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #1a3f29;
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: #666;
}

.info-item a {
    color: #2a7546;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* 页脚 */
.footer {
    background: #1a3f29;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a4c31;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .products-grid,
    .about-cards,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        min-height: 300px;
        padding: 100px 0 60px;
    }

    .page-header-img {
        min-height: 300px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header-bg {
        opacity: 0.4;
    }
}

