﻿body {
    margin: 0px;
    padding: 0px;
    font-family: "Microsoft yahei", Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

div {
    /*overflow: hidden;*/
    font-size: 13px;
}

a {
    text-decoration: none;
    color: #646464;
}

ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clear::after {
    content: "";
    display: block;
    height: 0;
    visibility: hidden;
    clear: both;
}

.image-check-code-box {
    width: 100%;
    height: 100%;
    border: solid 1px #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
}
/*--------------GAP------------------------*/

/* 容器样式 - 核心改为Flex布局实现真正居中 */
.card-container {
    max-width: 1200px;
    margin: 0 auto; /* 容器整体水平居中 */
    display: flex;
    flex-wrap: wrap; /* 自动换行 */
    justify-content: center; /* 关键：子元素水平居中 */
    gap: 20px; /* 卡片之间的间距（行列都生效） */
    padding: 0 10px;
    margin-top: 40px;
}

/* 单个卡片样式 */
.content-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 150px; /* 卡片固定高度 */
    flex: 0 0 calc(33.333% - 20px); /* 3列布局，减去间距 */
    max-width: calc(33.333% - 20px); /* 限制最大宽度 */
    min-width: 300px; /* 最小宽度，避免缩放过小 */
}

/* 图片容器 */
.card-img {
    flex: 0 0 120px; /* 固定宽度，不缩放 */
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
}

    .card-img img {
        object-fit: cover; /* 保持图片比例，裁剪多余部分 */
    }

/* 文字内容容器 */
.card-text {
    flex: 1; /* 占据剩余空间 */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .card-text h3 {
        font-size: 18px;
        color: #333;
        margin-bottom: 8px;
    }

    .card-text p {
        font-size: 14px;
        color: #666;
        line-height: 1.5;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* 最多显示3行文字 */
        -webkit-box-orient: vertical;
    }

@media (max-width: 768px) {
    .content-card {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
        height: auto;
        flex-direction: column;
        padding: 10px;
    }

    .card-img {
        flex: none;
        width: 100%;
        height: 160px;
        margin-right: 0;
        margin-bottom: 10px;
    }
        /* 卡片图片自适应 */
        .card-img img {
            width: 100%;
            height: 100%;
        }
}

/* 手机端登录框改为底部排布，不悬浮遮挡 */
@media (max-width:1240px) {
    .center-wrap {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        padding: 10px;
    }

    .slider-container {
        height: auto;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .content-card {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
        height: 150px; /* 维持固定高度，不自动高度 */
        flex-direction: row !important; /* 横向排列，禁止上下换行 */
        padding: 10px;
    }

    .card-img {
        flex: 0 0 100px; /* 移动端缩小图片宽度 */
        width: auto;
        height: auto;
        margin-right: 12px;
        margin-bottom: 0; /* 清除底部间距 */
    }

        .card-img img {
            width: 80px;
            height: 80px;
        }
}