/* Global Styles */
:root {
    --primary-color: #4caf50;    /* 清新的绿色 */
    --secondary-color: #2196f3;  /* 明亮的蓝色 */
    --text-color: #455a64;       /* 深灰蓝色文字 */
    --light-color: #f5f9f4;      /* 浅绿色背景 */
    --dark-color: #2e7d32;       /* 深绿色 */
    --border-color: #e0e0e0;     /* 浅灰色边框 */
    --container-width: 1140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
}

.primary-btn:hover {
    background-color: #1976d2;  /* 深蓝色 */
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

p {
    margin-bottom: 15px;
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 20px 0;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: #fff;
    margin: 0;
}

.tagline {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button .btn {
    padding: 10px 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(76, 175, 80, 0.7), rgba(33, 150, 243, 0.7)), url('https://images.unsplash.com/photo-1562664361-364570547e3d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.hero-btn {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 18px;
}

.hero-btn:hover {
    background-color: #1976d2;  /* 深蓝色 */
    color: #fff;
}

/* About Section */
.about {
    background-color: var(--light-color);
    text-align: center;
}

.about h2 {
    margin-bottom: 50px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Products Sections */
.products,
.featured-products,
.popular-products {
    padding: 50px 0;
}

.products {
    background-color: #fff;
}

.featured-products {
    background-color: var(--light-color);
}

.popular-products {
    background-color: #fff;
    padding-bottom: 60px;
}

.products h2,
.featured-products h2,
.popular-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product:hover .product-image img {
    transform: scale(1.1);
}

.product h3 {
    padding: 20px 20px 10px;
    font-size: 20px;
}

.product p {
    padding: 0 20px 20px;
    color: #666;
}

/* Services Section */
.services {
    background-color: var(--light-color);
    text-align: center;
}

.services h2 {
    margin-bottom: 50px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
}

.service i {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(rgba(46, 125, 50, 0.8), rgba(25, 118, 210, 0.8)), url('https://images.unsplash.com/photo-1512909006721-3d6018887383?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
}

.cta h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta .btn {
    padding: 15px 40px;
    font-size: 18px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: #fff;
    font-size: 24px;
}

.footer-links h4, .footer-contact h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-button {
        margin-top: 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .feature, .service {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

/* Add this for the pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7); /* 与secondary-color匹配的蓝色 */
    }
    70% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
} 