/* 引入 style.css 中的变量 */
@import url('detail-mobile.css');
@media (max-width: 767px) {
    .header-banner {
        margin-top: 56px;
        background: url('../images/mainBusiness/header-bg.png') no-repeat center/cover;
        padding: 20px 10px;
    }

    .header-container div:last-child {
        position: relative;
        margin: 10px 0;
        height: 30px;
    }
    .header-container div:last-child::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: url('../images/search-ash.png') no-repeat center;
        background-size: 16px 16px;
    }

    .header-container input {
        /*width: 300px;*/
        height: 30px;
        padding: 0 30px;
        border: none;
        outline: none;
    }

    .main {
        width: 100%;
        padding: 20px 0;
        background: linear-gradient(to right, #E8ECF5 22%, #D1E7FB 100%);
    }
    /* 文章项样式 */
    .main-article{
        /*position: relative;*/
        width: 1200px;;
        margin: 0 auto;
    }
    .main-article-item {
        border: 1px solid #dee2e6;
        border-radius: 5px;
        padding: 15px;
        margin-bottom: 15px;
        background-color: white;
        cursor: default;
    }
    .main-article-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .main-article-content {
        font-size: 14px;
        line-height: 1.5;
        color: #495057;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .main-article-item div:last-child {
        margin-top: 10px;
        text-align: right;
    }
    .main-article-item div:last-child a {
        display: inline-block;
        color: #007bff;
        text-decoration: none;
        transition: color 0.3s ease;
        border: 1px solid var(--primary);
        width: 160px;
        height: 36px;
        text-align: center;
        line-height: 36px;
    }
    .main-article-item div:last-child a:hover {
        color: var(--primary-dark);
        border: 1px solid var(--primary-dark);
    }

    .main-page-box {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-page {
        list-style-type: none;
        padding: 0;
        gap: 6px;
        position: relative; /* 取消绝对定位 */
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px; /* 增加顶部间距 */
        display: flex; /* 确保使用 flex 布局 */
        flex-wrap: wrap; /* 允许换行 */
        justify-content: center; /* 水平居中 */
    }

    .main-page li {
        background: var(--white);
        font-size: 12px; /* 减小页码文字大小 */
        width: 24px; /* 调整页码宽度 */
        height: 26px; /* 调整页码高度 */
        color: #000000;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: default;
    }

    .main-page li:hover {
        color: var(--white);
        background: var(--primary);
    }

    .main-page li.active {
        color: var(--white);
        background: var(--primary);
    }

    .main-page li.pre,
    .main-page li.next {
        color: var(--white);
        background-color: var(--primary);
        background-size: 6.5px 11px;
        background-repeat: no-repeat;
        background-position: center;
        background-origin: content-box;
        background-clip: content-box;
    }

    .main-page li.pre {
        background-image: url("../images/industry/left.png");
    }

    .main-page li.next {
        background-image: url("../images/industry/right.png");
    }

    .main-page {
        gap: 4px; /* 减小间距 */
    }

    .main-page li {
        font-size: 10px; /* 进一步减小文字大小 */
        width: 20px; /* 减小宽度 */
        height: 22px; /* 减小高度 */
    }

    .main-page li.pre,
    .main-page li.next {
        background-size: 5px 9px; /* 调整背景图标大小 */
    }
}
