/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #4CAF50;
}

/* 页面标题 */
.page-header {
    background-color: #4CAF50;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2rem;
}

/* 横幅区域 */
.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1500x500');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 6rem 0;
}

.banner h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #45a049;
}

/* 服务卡片 */
.services {
    padding: 4rem 0;
}

.services h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 新闻 */
.news {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.news h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.news-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-item h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.news-item span {
    display: block;
    color: #666;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* 关于我们内容 */
.about-content {
    padding: 4rem 0;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.about-text ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.8rem;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 团队介绍 */
.team {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.team h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.member {
    text-align: center;
}

.member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.member h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* 公司概况 */
.company-overview {
    padding: 4rem 0;
}

.company-overview h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* 时间线 */
.timeline {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.timeline h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.timeline-items {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-items::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #4CAF50;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    position: absolute;
    width: 100px;
    background-color: #4CAF50;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    top: 10px;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -120px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -120px;
}

.timeline-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: #333;
}

/* 荣誉资质 */
.certifications {
    padding: 4rem 0;
}

.certifications h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.cert-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cert-item {
    background-color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

/* 产品页面 */
.products {
    padding: 4rem 0;
}

.product-category {
    margin-bottom: 4rem;
}

.product-category h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.product-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

/* 联系信息 */
.contact-info {
    padding: 4rem 0;
    display: flex;
    gap: 3rem;
}

.contact-details h3, .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
}

/* 联系表单 */
.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 地图 */
.map {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.map h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.map-embed img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h4, .footer-links h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #4CAF50;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 1.5rem;
    }

    .nav-links li {
        margin: 0 1rem;
    }

    .banner h2 {
        font-size: 2rem;
    }

    .service-cards, .news-items, .team-members, .product-grid, .footer-content {
        grid-template-columns: 1fr;
    }

    .about-content, .contact-info {
        flex-direction: column;
    }

    .timeline-items::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        right: auto;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .banner h2 {
        font-size: 1.8rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .services h3, .news h3, .team h3, .timeline h3, .certifications h3, .products h3, .map h3 {
        font-size: 1.5rem;
    }
}