/* ============================================
   工商/财税/资质 列表页样式（修复移动端缩放）
   标准 5 断点 (Bootstrap 5)，最大宽度 1200px
   ============================================ */

/* ---------- 引入阿里巴巴普惠体 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Alibaba+PuHuiTi:wght@400;500;600;700&display=swap');

/* ---------- 全局重置与防溢出 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
}

/* ---------- 主容器 ---------- */
.gs-list-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
    word-break: break-word;
}

/* ---------- 页面标题 ---------- */
.gs-page-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.gs-page-title h3 {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
    margin: 0;
    background: linear-gradient(0deg, #f18212, rgb(186 97 6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}

/* ---------- 文章列表（卡片式） ---------- */
.gs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gs-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    border: 1px solid #f0f2f5;
    overflow: hidden;
    width: 100%;
}
.gs-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    border-color: #1a73e8;
}

.gs-item a {
    display: block;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.gs-item-title {
    font-size: 20px; /* 与首页服务卡片标题一致 */
    font-weight: 600;
    color: #0a2540;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    word-break: break-word;
    overflow-wrap: break-word;
}
.gs-item a:hover .gs-item-title {
    color: #1a73e8;
}

.gs-item-summary {
    color: #495057;
    font-size: 15px; /* 首页段落字号 */
    line-height: 1.6;
    margin-top: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.gs-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
    border-top: 1px dashed #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}
.gs-item-date::before {
    content: '📅 ';
}
.gs-item-views::before {
    content: '👁️ ';
}

/* ---------- 分页样式 ---------- */
.gs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    list-style: none;
    max-width: 100%;
}

.gs-pagination a,
.gs-pagination span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.9rem;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #0a2540;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    white-space: nowrap;
}

.gs-pagination a:hover {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.25);
}

.gs-pagination .thisclass {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
    min-width: 42px;
    height: 42px;
    padding: 0 0.9rem;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    cursor: default;
}

.gs-pagination .disabled {
    color: #adb5bd;
    background: #f1f3f5;
    border-color: #dee2e6;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

.gs-pagination .page-omit {
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 300;
    pointer-events: none;
    min-width: 20px;
    padding: 0 0.2rem;
    height: auto;
}

.gs-pagination .index,
.gs-pagination .pre,
.gs-pagination .next,
.gs-pagination .end {
    padding: 0 1.2rem;
}

/* ==========================================
   响应式断点（Bootstrap 5 标准 5 断点）
   ========================================== */

/* ---------- xs (< 576px) ---------- */
@media (max-width: 575.98px) {
    .gs-list-wrapper {
        padding: 1rem 0.8rem;
    }
    .gs-page-title h3 {
        font-size: 18px; /* 移动端标题 */
        border-bottom-width: 3px;
    }
    .gs-item a {
        padding: 1rem 1.2rem;
    }
    .gs-item-title {
        font-size: 16px; /* 移动端卡片标题 */
    }
    .gs-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        font-size: 13px;
    }
    .gs-pagination {
        gap: 0.3rem;
        margin-top: 2rem;
    }
    .gs-pagination a,
    .gs-pagination span,
    .gs-pagination .thisclass {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
        padding: 0 0.4rem;
        border-radius: 6px;
    }
    .gs-pagination .index,
    .gs-pagination .pre,
    .gs-pagination .next,
    .gs-pagination .end {
        padding: 0 0.6rem;
        font-size: 0.75rem;
    }
    .gs-pagination .page-omit {
        min-width: 16px;
        font-size: 0.75rem;
    }
}

/* ---------- sm (576 ~ 767.98px) ---------- */
@media (min-width: 576px) and (max-width: 767.98px) {
    .gs-list-wrapper {
        padding: 1.5rem 1.2rem;
    }
    .gs-page-title h3 {
        font-size: 20px;
    }
    .gs-item a {
        padding: 1.2rem 1.5rem;
    }
    .gs-item-title {
        font-size: 18px;
    }
    .gs-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .gs-pagination a,
    .gs-pagination span,
    .gs-pagination .thisclass {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        padding: 0 0.6rem;
    }
}

/* ---------- md (768 ~ 991.98px) ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gs-list-wrapper {
        padding: 1.8rem 1.5rem;
    }
    .gs-page-title h3 {
        font-size: 22px;
    }
    .gs-item a {
        padding: 1.4rem 1.8rem;
    }
    .gs-item-title {
        font-size: 20px;
    }
    .gs-pagination a,
    .gs-pagination span,
    .gs-pagination .thisclass {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
        padding: 0 0.8rem;
    }
}

/* ---------- lg (992 ~ 1199.98px) ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* 保持默认 */
}

/* ---------- xl (≥ 1200px) ---------- */
@media (min-width: 1200px) {
    /* 保持默认 */
}

/* ---------- 触摸设备优化（无 hover 悬停） ---------- */
@media (hover: none) {
    .gs-item:hover {
        transform: none !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
        border-color: #f0f2f5 !important;
    }
    .gs-item a:hover .gs-item-title {
        color: #0a2540 !important;
    }
    .gs-pagination a:hover {
        background: #f8f9fa !important;
        color: #0a2540 !important;
        border-color: #e9ecef !important;
        transform: none !important;
        box-shadow: none !important;
    }
    .gs-item a:active {
        opacity: 0.7;
    }
    .gs-pagination a:active {
        background: #1a73e8 !important;
        color: #fff !important;
    }
}

/* ---------- 打印样式 ---------- */
@media print {
    .gs-item {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        transform: none !important;
    }
    .gs-pagination {
        display: none !important;
    }
}