/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4CAF50;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #4CAF50;
    color: #fff;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f39c12;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 特性区域样式 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #4CAF50;
}

/* 产品区域样式 */
.products {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

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

.product-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.product-item p {
    margin-bottom: 20px;
}

/* 新闻预览区域样式 */
.news-preview {
    padding: 80px 0;
    background-color: #fff;
}

.news-preview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.news-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h3 a:hover {
    color: #4CAF50;
}

.news-date {
    display: block;
    margin-top: 10px;
    color: #999;
    font-size: 14px;
}

/* 评价区域样式 */
.testimonials {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.testimonials h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

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

.testimonial-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-item p {
    font-size: 16px;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: bold;
    color: #4CAF50;
}

/* CTA区域样式 */
.cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #4CAF50;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

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

.footer-links ul li a:hover {
    color: #4CAF50;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #4CAF50;
}

.breadcrumb span {
    color: #999;
    margin: 0 5px;
}

/* 新闻详情页面样式 */
.news-detail {
    padding: 60px 0;
    background-color: #fff;
}

.news-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.news-meta {
    color: #999;
    margin-bottom: 30px;
    font-size: 14px;
}

.news-content {
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content h2 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #4CAF50;
}

/* 产品页面样式 */
.products-page {
    padding: 60px 0;
    background-color: #fff;
}

.products-page h1 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

/* 关于页面样式 */
.about-page {
    padding: 60px 0;
    background-color: #fff;
}

.about-page h1 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.about-content {
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #4CAF50;
}

/* 联系页面样式 */
.contact-page {
    padding: 60px 0;
    background-color: #fff;
}

.contact-page h1 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.contact-info {
    margin-bottom: 60px;
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.contact-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

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

/* 新闻页面样式 */
.news-page {
    padding: 60px 0;
    background-color: #fff;
}

.news-page h1 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.news-list {
    margin-bottom: 40px;
}

.news-list .news-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.news-list .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-list .news-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-list .news-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list .news-item h3 a:hover {
    color: #4CAF50;
}

.news-list .news-item p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-date {
    display: block;
    margin-top: 10px;
    color: #999;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* 联系页面样式补充 */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #4CAF50;
}

.contact-item p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.faq {
    margin-top: 60px;
}

.faq-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #4CAF50;
}

.faq-item p {
    line-height: 1.6;
}

/* 新闻详情页面样式补充 */
.news-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.prev-news,
.next-news {
    flex: 1;
}

.prev-news {
    margin-right: 20px;
}

.next-news {
    text-align: right;
    margin-left: 20px;
}

.prev-news a,
.next-news a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.prev-news a:hover,
.next-news a:hover {
    color: #4CAF50;
}

/* 产品页面样式补充 */
.product-category {
    margin-bottom: 60px;
}

.product-category h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.product-image {
    flex: 1;
    min-width: 300px;
}

.product-info {
    flex: 2;
    min-width: 300px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.product-info p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.product-info ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.product-info ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        text-align: center;
    }

    .features-grid,
    .products-grid,
    .news-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .features h2,
    .products h2,
    .news-preview h2,
    .testimonials h2,
    .cta h2 {
        font-size: 28px;
    }

    .contact-form {
        padding: 20px;
    }
}