/* 
 * 云南震序律师事务所网站 - 新闻列表页面响应式样式
 */

/* 移动端适配 (从 newslist.html 迁移) */
@media screen and (max-width: 768px) {
    .banner {
        height: 400px !important;
        margin-top: 60px !important;
    }
    .banner-content {
        text-align: center !important;
        padding: 0 15px !important;
    }
    .banner-content h2 {
        font-size: 28px !important;
        margin-bottom: 10px !important;
        text-indent: 0 !important; /* 移除标题的首行缩进 */
    }
    .banner-content p {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        text-indent: 0 !important; /* 移除标题的首行缩进 */
    }
    .banner-content div {
        font-size: 16px !important;
        text-indent: 0 !important; /* 移除标题的首行缩进 */
    }
    .banner-content div p {
        font-size: 18px !important;
        text-indent: 0 !important; /* 移除标题的首行缩进 */
        margin-bottom: 5px !important;
    }
    .scroll-down {
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    /* 子栏目导航移动端适配 */
    .subnav > div {
        flex-direction: column;
    }
    .subnav-item {
        height: 50px !important;
        font-size: 16px !important;
    }
    
    /* 背景容器适配 */
    div[style*="background: url"] {
        background-size: cover !important;
        padding-bottom: 40px !important;
    }
    
    /* 特色文章容器的padding */
    div[style*="padding: 55px 0"] {
        padding-top: 30px !important;
        padding-bottom: 0px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* 特色文章卡片移动端适配 */
    .article-card {
        flex-direction: column !important;
        height: auto !important;
        margin: 0 0 15px 0 !important;
    }
    
    .article-image {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        height: 200px !important;
    }
    
    .article-info {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }
    
    .article-info h2 {
        font-size: 22px !important;
        text-align: left !important; /* 新增：特色文章标题左对齐 */
    }
    
    .article-info p {
        font-size: 14px !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
    }
    
    /* 新闻列表适配 */
    .col-md-6 {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
    }
    
    .news-list-section .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .news-list-section .row {
        margin: 0 !important;
    }
    
    .news-item {
        height: auto !important;
        min-height: 250px !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    .news-item .date span:first-child {
        font-size: 22px !important;
    }
    
    .news-item .date span:last-child {
        font-size: 14px !important;
    }
    
    .news-item h3 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
        text-align: left !important; /* 新增：移动端标题左对齐 */
        display: block !important; /* 确保是块级元素 */
        width: 100% !important; /* 确保占满宽度 */
        height: auto !important; /* 移除固定高度，允许内容决定 */
        min-height: calc(20px * 1.3 * 2); /* 保留最小高度以防内容过少 */
        -webkit-line-clamp: 3 !important; /* 移动端允许显示3行 */
        line-clamp: 3 !important;
    }
    
    .news-item p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    /* 三角形按钮移动端适配 */
    .triangle-button {
        border-top: 10px solid transparent !important;
        border-bottom: 10px solid transparent !important;
        border-left: 16px solid #F4AD03 !important;
        bottom: 20px !important;
        left: 20px !important;
    }
    
    /* 分页器适配 */
    .pagination {
        flex-wrap: wrap !important;
    }
    
    .page-button, .page-num {
        padding: 6px 12px !important;
        margin: 0 3px !important;
        font-size: 14px !important;
    }
}

/* 从 newslist.css 移动过来的 @media 块 */
@media (max-width: 991px) {
    .news-list-page {
        padding-bottom: 60px;
    }

    .news-list-item {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }

    .news-list-content h3 {
        font-size: 20px;
    }

    .pagination {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .news-list-page {
        padding-bottom: 50px;
    }

    .news-list-item {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .news-list-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .news-list-meta {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .news-list-more {
        padding: 6px 15px;
        font-size: 13px;
    }

    .pagination {
        margin-top: 30px;
    }

    /* 调整分页按钮/页码在 767px 断点下的样式 */
     .pagination ul li a,
     .page-button, 
     .page-num {
        padding: 6px 12px !important; /* 保持与原始响应式文件一致 */
        font-size: 13px !important; /* 保持与原始响应式文件一致 */
    }
}

