.border_card_box {
    width: 90vw;
    margin: 0 auto;
}

.border_card_box_title {
    font-size: 2.5vw;
    text-align: center;
    font-weight: bold;
}

.border_card_box_remoke {
    font-size: 1vw;
    text-align: center;
}

/* 轮播图外层可视窗口容器 */
.carousel-container {
    overflow: hidden; /* 必须：隐藏超出部分 */
    width: 100%;
    position: relative;
}

/* 卡片包裹层 */
.border_card {
    display: flex; /* 必须：横向排布 */
    flex-wrap: nowrap; /* 必须：绝对不能换行 */
    width: max-content; /* 必须：让宽度根据内容自适应拓展 */
    will-change: transform; /* 提早告知浏览器优化性能 */
}

.border_card {
    margin-top: 3vw;
    display: flex;
    flex-wrap: nowrap;
    gap: 3vw;
    margin-bottom: 3vw;
    /* overflow: hidden; */
}

.border_card > * {
    flex: 0 0 calc((100% - 3vw * 4) / 5);
    flex-shrink: 0;
}

.border_card_item {
    border-radius: 0.5vw;
    border-top: 0.2vw solid transparent;
    overflow: hidden;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.border_card_item_img {
    padding: 0.2vw;
    margin-bottom: 0.5vw;
}

.border_card_item_img img {
    width: 83%;
    border-radius: 0.5vw;
    overflow: hidden;
    margin: 0 auto;
    margin-top: 0.8vw;
}

.border_card_item_text {
    padding: 0.2vw 1.8vw;
    font-size: 0.8vw;
    margin-top: auto;
}

.border_card_item_text_p1 {
    margin-bottom: 0.1vw;
    font-size: 1.1vw;
    white-space: nowrap; /* 强制文本在一行内显示 */
    overflow: hidden; /* 溢出内容隐藏 */
    text-overflow: ellipsis; /* 溢出部分显示省略号 */
    color: #000000;
}

.border_card_item_text_p2 {
    font-size: 0.7vw;
    color: #333333;
}

.border_card_item_text_p2 > span:first-child {
    color: #fb6b5c;
}

.border_card_item_text_p2 > span:last-child {
    margin-left: 0.5vw;
}

.border_card_item_button {
    margin: 0.2vw 1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    height: 2vw;
    border-radius: 5vw;
    margin-bottom: 1vw;
    cursor: pointer;
    color: #ffffff;
    padding-right: 0.5vw;
    font-size: 1vw;
}

.border_card_item_button svg {
    width: 0.8vw;
    height: 0.8vw;
    margin-left: 0.5vw;
}

/* PC 端基础设置 */
.border_card_item {
    cursor: default;
    /* 核心：让外层容器本身不响应 JS 的 onclick 事件 */
    pointer-events: none;
    margin-bottom: 8px;
}

.border_card_item_button {
    /* 核心：让按钮恢复响应点击 */
    pointer-events: auto;
    cursor: pointer;
}
.card_img_pc{
    display: block;
}
.card_img_m{
    display: none;
}
/* 移动端适配 (通常针对屏幕宽度小于 768px) */
@media screen and (max-width: 768px) {
    .card_img_pc{
        display: none;
    }
    .card_img_m{
        display: block;
    }
    .border_card_item {
    background: transparent !important;
    }
        .border_card_box {
        width: 95vw; /* 移动端边距缩小，利用更多空间 */
        overflow: hidden;
    }

    .border_card_box_title {
        font-size: 5vw; /* 调大标题字号，方便阅读 */
    }

    .border_card_box_remoke {
        font-size: 3vw; /* 调大说明字号 */
    }

    .border_card {
        grid-template-columns: repeat(2, 1fr); /* 改为双列布局 */
        gap: 3vw; /* 适当加大间距，防止误触 */
        margin-top: 5vw;
    }

    .border_card_item {
        pointer-events: auto;
        cursor: pointer;
        border-radius: 2vw; /* 圆角随屏幕比例放大 */
        box-shadow: none;
        border: none;
    }

    .border_card_item_text {
        padding: 2vw 0;
        font-size: 3.23vw; /* 调整文字大小以匹配移动端视觉 */
    }

    .border_card_item_text_p1 {
        margin-bottom: 1vw;
        font-weight: bold;
        font-size: 3.75vw;
    }

    .border_card_item_text_p2 {
        font-size: 3vw;
        display: none;
    }

    /* 隐藏按钮 */
    .border_card_item_button {
        display: none !important;
    }

    .border_card_item:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
}


/* 卡片包裹层 */
.border_card {
    display: flex; /* 必须：横向排布 */
    flex-wrap: nowrap; /* 必须：绝对不能换行 */
    width: max-content; /* 必须：让宽度根据内容自适应拓展 */

    /* 核心性能优化：强制浏览器启用 GPU 加速 */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 移除这个可能导致宽度冲突的 CSS 选择器，完全交由 JS 控制卡片宽度 */
/*
.border_card > * {
    flex: 0 0 calc((100% - 3vw * 4) / 5);
    flex-shrink: 0;
}
*/
/* 替换为纯粹的缩减声明即可 */
.border_card_item {
    flex-shrink: 0; /* 防止被挤压 */
    will-change: transform;
    display: flex;
    flex-direction: column;
}

/* 移动端适配里有一个致命的闪烁隐患 */
@media screen and (max-width: 768px) {
    .border_card {
        /* 致命错误修复：原本这里改成了 grid-template-columns，
           这会直接摧毁 Flex 跑马灯布局，导致移动端无限闪烁或错位！ */
        /* display: grid;  <-- 千万不要加这一句 */
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }

    .border_card_item_img {
        padding: 0.2vw;
        width: 19vw !important;
        height: 19vw !important;
        margin: 0 auto;
    }

    .border_card_item_img img {
        width: 100%;
        border-radius: 0.5vw;
        overflow: hidden;
        margin: 0 auto;
        margin-top: 0.8vw;
        height: 100%;
        border-radius: 2vw;
        overflow: hidden;
    }


}