/* 卡片容器：参考审批服务样式，PC 一行 5 张紧凑小卡 */
.card-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 6px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* 卡片 */
.card {
    width: auto;
    height: auto;
    min-height: 310px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

/* 图片样式：铺满卡片宽度（覆盖 HTML 内联 220x100） */
.card img {
    width: 100% !important;
    height: 115px !important;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease-in-out;
}

/* 标题样式 */
.card h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 12px 12px 8px;
    color: #222;
}

/* 描述样式 */
.card p {
    font-size: 12px;
    color: #888;
    margin: 0 12px;
    height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

/* 按钮样式 */
.card button {
    background-color: #fff;
    color: #4f9cfb;
    /* 按钮边框颜色 */
    border: 1px solid #4f9cfb;
    padding: 7px 26px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* 鼠标悬停样式 */
.card:hover img {
    transform: scale(1.2);
}

.card:hover button {
    background-color: #4b97f3;
    color: #f7f9fc;
    border: 1px solid #008cff;
}

.card:hover p {
    overflow-x: auto;
    white-space: nowrap;

}

.cha {
    text-align: center;
    font-size: 15px;
    color: #52585f;
}

/* ===== 手机端：两列紧凑卡片 ===== */
@media (max-width: 600px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px 10px;
    }
    .card {
        min-height: 0;
        padding: 10px 10px 12px;
        border-radius: 10px;
    }
    .card img {
        height: 88px !important;
        border-radius: 6px;
    }
    .card h4 {
        font-size: 14px;
        margin: 8px 0 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .card p {
        display: none;  /* 手机上隐藏描述，卡片更矮 */
    }
    .card button {
        position: static;          /* 取消绝对定位，不再压住标题 */
        transform: none;
        display: block;
        width: 100%;
        padding: 7px 0;
        font-size: 13px;
        border-radius: 7px;
        margin-top: 8px;
    }
}
