/* 通用样式 */
* {
    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;
}

/* 头部导航 */
header {
    background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.logo p {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
    padding: 5px 10px;
}

.nav-links a:hover {
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* 主要内容容器 */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Banner区域 */
.banner {
    background: linear-gradient(rgba(198, 40, 40, 0.8), rgba(229, 57, 53, 0.8)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><rect fill="%23c62828" width="1200" height="400"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.banner h2 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 卡片样式 */
.card {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.card h3 {
    color: #c62828;
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c62828;
}

.card h4 {
    color: #e53935;
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.card ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.card li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* 服务网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

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

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

.service-item h4 {
    color: #c62828;
    font-size: 20px;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* 联系信息 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-item h4 {
    color: #c62828;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e53935;
}

.contact-item p {
    margin-bottom: 10px;
    color: #555;
}

.contact-item strong {
    color: #333;
    display: inline-block;
    min-width: 80px;
}

/* 页脚 */
footer {
    background-color: #2c2c2c;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #e53935;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

    .nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .banner h2 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .card {
        padding: 25px;
    }

    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
