/* 联系页Banner样式 */
.contact-banner {
    position: relative;
    height: 300px;
    color: #fff;
    display: flex;
    align-items: center;
    background-color: #222;
}

.contact-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
}

.contact-banner .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-banner h1 {
    font-size: 42px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.contact-banner h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #4CAF50;
}

.contact-banner p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    color: #eee;
}

/* 联系表单+信息区域 */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    color: #222;
}

.contact-form-wrapper h2::after,
.contact-info-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #4CAF50;
}

.contact-form-wrapper p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 联系表单样式 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4CAF50;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.send-message-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-message-btn:hover {
    background-color: #3d8b40;
}

/* 联系信息样式 */
.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #222;
}

.info-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 地图区域样式 */
.map-section {
    position: relative;
    height: 400px;
    background-color: #f5f5f5;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.visit-factory-card {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 350px;
    z-index: 2;
}

.visit-factory-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 15px;
}

.visit-factory-card h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #222;
}

.visit-factory-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.view-map-btn {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-map-btn:hover {
    background-color: #3d8b40;
}

.map-marker {
    position: absolute;
    top: 50%;
    right: 100px;
    transform: translateY(-50%);
    text-align: center;
    z-index: 2;
}

.map-marker i {
    font-size: 30px;
    color: #0066cc;
    margin-bottom: 10px;
}

.map-marker span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    max-width: 200px;
}

/* 优势模块样式 */
.contact-advantages {
    background-color: #222;
    color: #fff;
    padding: 60px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.advantage-card {
    padding: 20px;
}

.advantage-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.advantage-card h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.advantage-card p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* 页脚样式微调（匹配设计图） */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
    gap: 30px;
    padding: 60px 0 40px;
}

.footer-logo-col p {
    color: #999;
    margin: 20px 0;
    line-height: 1.6;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: #4CAF50;
}

.footer-links-col h4,
.footer-products-col h4,
.footer-contact-col h4,
.footer-newsletter-col h4 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links-col ul,
.footer-products-col ul,
.footer-contact-col ul {
    list-style: none;
}

.footer-links-col li,
.footer-products-col li {
    margin-bottom: 10px;
}

.footer-links-col a,
.footer-products-col a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-col a:hover,
.footer-products-col a:hover {
    color: #4CAF50;
}

.footer-contact-col li {
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.footer-contact-col i {
    color: #4CAF50;
    margin-top: 3px;
}

.footer-newsletter-col p {
    color: #999;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    background-color: #333;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.subscribe-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background-color: #3d8b40;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

.footer-policies {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.footer-policies a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: #4CAF50;
}

.footer-policies span {
    color: #666;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .contact-row {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        row-gap: 40px;
    }

    .footer-contact-col,
    .footer-newsletter-col {
        grid-column: span 3;
    }

    .map-marker {
        right: 50px;
    }
}

@media (max-width: 768px) {
    .contact-banner {
        height: 250px;
    }

    .contact-banner h1 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .visit-factory-card {
        left: 20px;
        max-width: 300px;
        padding: 20px;
    }

    .map-marker {
        display: none;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-contact-col,
    .footer-newsletter-col {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-banner {
        height: 200px;
    }

    .contact-banner h1 {
        font-size: 24px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .visit-factory-card {
        position: relative;
        top: 20px;
        left: 20px;
        right: 20px;
        transform: none;
        max-width: calc(100% - 40px);
        margin: 0 auto;
    }

    .map-section {
        height: 450px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-contact-col,
    .footer-newsletter-col {
        grid-column: span 1;
    }

    .send-message-btn {
        width: 100%;
        justify-content: center;
    }
}