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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: #f8fff9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2e8b57;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

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

/* 报价按钮样式 */
.quote-btn {
    background-color: #2e8b57;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 1.5rem;
}

.quote-btn:hover {
    background-color: #285e61 !important;
    color: white !important;
}

/* Hero Banner Styles */
/* 页面滚动进度条 */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: #2e8b57;
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

.hero {
    background: linear-gradient(rgba(46, 139, 87, 0.8), rgba(46, 139, 87, 0.8)), url('./banner.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    background-color: #f8fff9;
    color: #2e8b57;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.cta-btn:hover {
    background-color: transparent;
    color: #fff;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a535c;
}

/* About Section */
.about {
    background-color: #f8fff9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: #2e8b57;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    background-color: #e8f5e8;
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #2e8b57;
}

/* Advantages Section */
.advantages {
    background-color: #f1f8e9;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background-color: #f8fff9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2e8b57;
}

.advantage-card h3 {
    margin-bottom: 1rem;
    color: #1a535c;
}

/* Product Categories Section */
.products {
    background-color: #f8fff9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #f1f8e9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    background-color: #e8f5e8;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #2e8b57;
}

.product-image img{width:100%;height:100%;object-fit:cover;}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 1rem;
    color: #1a535c;
}

/* Application Scenarios */
.scenarios {
    background-color: #f1f8e9;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.scenario-card {
    background-color: #f8fff9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.scenario-card h3 {
    margin-bottom: 1rem;
    color: #2e8b57;
}

/* Why Choose Us */
.why-choose {
    background-color: #f8fff9;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-item {
    display: flex;
    gap: 1rem;
}

.why-icon {
    font-size: 2rem;
    color: #2e8b57;
    flex-shrink: 0;
}

.why-content h3 {
    margin-bottom: 0.5rem;
    color: #1a535c;
}

/* Certifications */
.certifications {
    background-color: #f1f8e9;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cert-item {
    background-color: #f8fff9;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    color: #2e8b57;
    text-align: center;
}

/* FAQ Section */
.faq {
    background-color: #f8fff9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    background-color: #f1f8e9;
    padding: 2rem;
    border-radius: 8px;
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: #1a535c;
}

/* Contact Section */
.contact {
    background-color: #2e8b57;
    color: white;
}

.contact h2 {
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

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

.submit-btn {
    background-color: #f8fff9;
    color: #2e8b57;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #e8f5e8;
}

/* 错误消息样式 */
.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* 表单消息样式 */
.success-message {
    background-color: #c6f6d5;
    color: #22543d;
}

.error-global {
    background-color: #fed7d7;
    color: #c53030;
}

/* 定制模块样式 */
.custom-section {
    background-color: #f1f8e9;
    padding: 6rem 0;
}

.custom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.custom-text h2 {
    margin-bottom: 1.5rem;
    color: #2e8b57;
}

.custom-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.custom-features {
    list-style: none;
    margin: 2rem 0;
}

.custom-features li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.custom-features li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 0;
}

.custom-image {
    background-color: #e8f5e8;
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #2e8b57;
}

@media (max-width: 768px) {
    .custom-content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #e6fffa;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e6fffa;
}

/* 社媒按钮样式 */
.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    background-color: #2e8b57;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #287349;
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Custom Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #f8fff9;
    margin: 15% auto;
    padding: 2rem;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8f5e8;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2e8b57;
    margin: 0;
}

.close-btn {
    color: #9ca3af;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #6b7280;
}

.modal-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 2rem;
}

.modal-footer {
    text-align: right;
}

.modal-btn {
    background-color: #2e8b57;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background-color: #287349;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

/* Modal animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success and Error Modals */
.modal.success .modal-title {
    color: #10b981;
}

.modal.error .modal-title {
    color: #ef4444;
}

/* Add modal to the end of body */
body {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav ul li {
        margin: 0 0.8rem;
    }
    
    nav ul li a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .quote-btn {
        margin-left: 0.8rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    nav ul {
        gap: 0.3rem;
    }
    
    nav ul li {
        margin: 0 0.5rem;
    }
    
    nav ul li a {
        font-size: 0.85rem;
    }
    
    .quote-btn {
        margin-left: 0.5rem;
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0;
    }
}