
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

svg{
    width: auto;
    height: 16px;
}

:root {
    --primary: #4a6bff;
    --primary-dark: #3a56d4;
    --secondary: #ff7e5f;
    --light: #f8f9fa;
    --dark: #333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f7ff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.search-box {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    box-shadow: var(--shadow);
    border-radius: 50px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.1rem;
    outline: none;
}

.search-box button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.search-box button:hover {
    background: #ff6b4a;
}

/* 服务列表区域 */
.services-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.style-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.style-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.style-btn:hover, .style-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* 服务列表通用样式 */
.service-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 200px;
    display: block;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 2rem;
    margin-bottom: 1rem !important  ;
    color: var(--primary);
    margin-top: 0px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.service-meta div{
    display: flex;
    gap: 5px;
    align-items: anchor-center;
}

.service-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.service-phone {
    color: var(--secondary);
    font-weight: 500;
}

.service-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-footer {
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

/* 样式1：卡片式 */
.card-style .services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card-style .service-item {
    display: flex;
    flex-direction: column;
}

.card-style .service-img {
    height: 180px;
}

.card-style .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-style .service-description {
    flex: 1;
}

/* 样式2：列表式 */
.list-style .services-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-style .service-item {
    display: flex;
}

.list-style .service-img {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.list-style .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-style .service-title {
    margin-bottom: 0.5rem;
}

.list-style .service-meta {
    margin-bottom: 0.5rem;
}

/* 样式3：缩略图式 */
.thumb-style .services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.thumb-style .service-item {
    text-align: center;
}

.thumb-style .service-img {
    height: 150px;
}

.thumb-style .service-meta {
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.thumb-style .service-description {
    font-size: 0.9rem;
}

/* 样式4：网格式 */
.grid-style .services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.grid-style .service-item {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.grid-style .service-img {
    height: 100%;
    border-radius: 10px 0 0 10px;
}

.grid-style .service-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-style .service-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.grid-style .service-description {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* 页脚 */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.service-btn{
    float: right;
    display: block;
    width: 100px;
    height: 40px;
    line-height: 30px;
    position: relative;
    border-radius: 5px;
    border: none;
    background: #3897ea;
    cursor: pointer;
    padding: 0;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid-style .services-container {
        grid-template-columns: 1fr;
    }
    
    .list-style .service-item {
        flex-direction: column;
    }
    
    .list-style .service-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .grid-style .service-item {
        grid-template-columns: 1fr;
    }
    
    .grid-style .service-img {
        height: 180px;
        border-radius: 10px 10px 0 0;
    }
}

@media (max-width: 576px) {
    .card-style .services-container,
    .thumb-style .services-container {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .search-box input,
    .search-box button {
        width: 100%;
        border-radius: 0;
    }
    
    .search-box button {
        padding: 15px;
    }
}
