.header-title {
    text-align: center;
    margin: 40px 0 20px;
    color: #d71c2a;
    font-size: 24px;
    position: relative;
}

.header-title span {
    background-color: #d71c2a;
    color: white;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 4px;
    margin-left: 5px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-bottom: 30px;
}

.city-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-item {
    padding: 5px 15px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.tab-item.active {
    background-color: #d71c2a;
    color: white;
    border-color: #d71c2a;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.card {
    width: 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    text-align: center;
}

.card-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em; /* 调整行高适应设计 */
    max-height: 4.5em; /* 3行的高度，line-height * 3 */

}

.btn-city {
    background-color: #d71c2a;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-city:hover {
    background-color: #b01621;
}

.footer-services {
    background-color: #f5f5f5;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.services-list {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 200px;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.icon:nth-child(1) { background-color: #d71c2a; }
.icon:nth-child(2) { background-color: #ff6b00; }
.icon:nth-child(3) { background-color: #00a6e0; }
.icon:nth-child(4) { background-color: #33cc33; }

.service-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.service-desc {
    font-size: 12px;
    color: #666;
}