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

body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #2d6a2e;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #2d6a2e;
}

/* 首屏 */
.hero {
    margin-top: 60px;
    height: 500px;
    background: linear-gradient(135deg, #1a5c1a 0%, #2d8a2e 50%, #4caf50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 16px;
    letter-spacing: 4px;
}

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

.btn {
    display: inline-block;
    padding: 12px 36px;
    background: #fff;
    color: #2d6a2e;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 通用区块 */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 32px;
    color: #2d6a2e;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
}

.section-gray {
    background: #f8f9f8;
    max-width: 100%;
    padding: 80px 20px;
}

.section-gray > h2,
.section-gray > p {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 核心优势 */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.adv-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.adv-item:hover {
    transform: translateY(-4px);
}

.adv-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.adv-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2d6a2e;
}

.adv-item p {
    font-size: 14px;
    color: #666;
}

/* 产品区域 */
.product-group {
    margin-bottom: 50px;
}

.product-group h3 {
    font-size: 22px;
    color: #2d6a2e;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
}

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

.product-card {
    background: #fff;
    border: 1px solid #e8f5e9;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.12);
}

.product-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}

.product-card p {
    font-size: 13px;
    color: #888;
}

.product-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
}

/* 代加工 */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.process-item {
    text-align: center;
    padding: 30px 16px;
    background: #f0faf0;
    border-radius: 10px;
    transition: background 0.2s;
}

.process-item:hover {
    background: #d4edda;
}

.process-item h3 {
    font-size: 20px;
    color: #2d6a2e;
    margin-bottom: 8px;
}

.process-item p {
    font-size: 13px;
    color: #666;
}

/* 联系我们 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-label {
    display: inline-block;
    background: #2d6a2e;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    min-width: 60px;
    text-align: center;
}

.contact-form p {
    margin-bottom: 20px;
    color: #555;
    font-size: 15px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4caf50;
}

.contact-form .btn {
    align-self: flex-start;
    padding: 10px 30px;
    background: #2d6a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form .btn:hover {
    background: #1a5c1a;
    transform: none;
    box-shadow: none;
}

/* 底部 */
footer {
    background: #2d6a2e;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
}

footer p {
    margin-bottom: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero {
        height: 360px;
    }

    nav ul {
        display: none;
    }

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

    .section h2 {
        font-size: 24px;
    }
}
