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

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

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: #0066cc;
}

/* 导航栏样式 */
nav ul {
    display: flex;
    list-style: none;
}

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #0066cc;
}

/* 英雄区域样式 */
.hero {
    background-color: #f5f5f5;
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=modern%20technology%20company%20building%20exterior%20with%20blue%20theme&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0052a3;
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

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

.about p {
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* 产品中心样式 */
.products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

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

.product-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

.product-item p {
    font-size: 14px;
    color: #666;
}

/* 新闻资讯样式 */
.news {
    padding: 80px 0;
    background-color: #fff;
}

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

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

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

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.news-item p {
    font-size: 14px;
    color: #666;
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.contact-info {
    text-align: center;
    font-size: 16px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 20px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .about h2,
    .products h2,
    .news h2,
    .contact h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}