/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: MicrosoftYaHei, 'PingFang SC', 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif;
}

/* PC端 - 核心内容区域 */
.content-section {
    background-color: rgba(246, 248, 249, 1);
    width: 1200px;
    height: 486px;
    margin: 50px auto;
    padding: 50px 37px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cards-container {
    width: 1126px;
    height: 366px;
    display: flex;
    justify-content: space-between;
}

/* PC端 - 单个卡片 */
.service-card {
    position: relative;
    width: 296px;
    height: 366px;
    background: url('../images/bg1.png') center center no-repeat;
    background-size: 296px 366px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 18px;
}

.service-card:nth-child(2) {
    background-image: url('../images/bg2.png');
}

.service-card:nth-child(3) {
    background-image: url('../images/bg3.png');
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* PC端 - 卡片上半部分 - 图标区域 */
.card-top {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PC端 - 卡片图标 */
.card-icon {
    width: 94px;
}

/* PC端 - 卡片底部文字区域 */
.card-footer {
    background-color: rgba(51, 103, 233, 1.0);
    border-radius: 0px 0px 18px 18px;
    height: 80px;
    width: 296px;
    display: flex;
    align-items: center;
}

.card-text {
    width: 190px;
    height: 24px;
    color: rgba(246, 248, 249, 1);
    font-size: 24px;
    white-space: nowrap;
    line-height: 30px;
    margin-left: 24px;
}

/* ========== WAP端 - 移动端适配 ========== */
@media screen and (max-width: 768px) {
    /* 移动端 - 核心内容区域 */
    .content-section {
        width: 100%;
        height: auto;
        margin: 20px auto;
        padding: 20px 15px;
    }

    .cards-container {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* 移动端 - 单个卡片 */
    .service-card {
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center center;
        border-radius: 10px;
        overflow: hidden;
    }

    /* 移动端 - 卡片图标 */
    .card-icon {
        width: 60px;
    }

    /* 移动端 - 卡片底部文字区域 */
    .card-footer {
        height: 50px;
        width: 100%;
        border-radius: 0px 0px 10px 10px;
    }

    .card-text {
        font-size: 16px;
        line-height: 20px;
        margin-left: 15px;
    }
}