/* ========================================
   列表页面专用样式 - list.css
   适用于文章列表、新闻列表等页面
   ======================================== */

/* 页面主体容器 */
.list-main {
    background-color: #f5f5f5;
    padding: 20px 0 40px;
    min-height: 600px;
}

.list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb-nav {
    background-color: #fff;
    padding: 15px 25px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 14px;
    color: #666;
}

.breadcrumb-item a {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #ccc;
    margin: 0 10px;
    font-size: 12px;
}

/* ========================================
   列表内容区域
   ======================================== */
.list-content {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 35px 45px;
}

/* 列表标题区域 */
.list-header {
    margin-bottom: 5px;
}

.list-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-title i {
    color: #1a5276;
    font-size: 24px;
}

/* 红色短横线标识 */
.red-indicator {
    width: 50px;
    height: 4px;
    background-color: #c0392b;
    border-radius: 2px;
    margin-bottom: 15px;
}

/* 分割线 */
.list-divider {
    height: 1px;
    background: linear-gradient(to right, #ddd, transparent);
    margin-bottom: 25px;
}

/* ========================================
   文章列表
   ======================================== */
.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background-color: #fafafa;
}

.article-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-link:hover {
    color: #1a5276;
}

.article-link:hover .article-title-text {
    padding-left: 8px;
}

.article-title-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: padding-left 0.2s ease;
    position: relative;
    padding-left: 15px;
}

/* 列表项前面的小圆点 */
.article-title-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: #999;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.article-item:hover .article-title-text::before {
    background-color: #c0392b;
}

.article-date {
    font-size: 14px;
    color: #999;
    white-space: nowrap;
    margin-left: 20px;
    font-family: "Microsoft YaHei", sans-serif;
}

/* ========================================
   分页组件 - 新版样式
   ======================================== */
.pagination-wrapper {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* 分页按钮通用样式 */
.page-btn,
.page-num {
    display: inline-block;
    height: 38px;
    line-height: 36px;
    padding: 0 16px;
    margin: 0 3px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.25s ease;
    cursor: pointer;
    vertical-align: middle;
}

/* 分页按钮悬停效果 */
.page-btn:hover,
.page-num:hover {
    color: #fff;
    background-color: #1a5276;
    border-color: #1a5276;
    text-decoration: none;
}

/* 首页、尾页按钮 */
.page-first,
.page-last {
    font-weight: 500;
}

/* 上一页、下一页按钮 */
.page-prev,
.page-next {
    padding: 0 14px;
}

/* 页码数字 */
.page-num {
    min-width: 38px;
    padding: 0 10px;
    text-align: center;
    font-weight: 500;
}

/* 当前页码 */
.page-num.current {
    color: #fff;
    background-color: #c0392b;
    border-color: #c0392b;
    cursor: default;
}

.page-num.current:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* 禁用状态 */
.page-btn.disabled,
.page-num.disabled {
    color: #bbb;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .list-content {
        padding: 25px 20px;
    }

    .list-title {
        font-size: 22px;
    }

    .list-title i {
        font-size: 20px;
    }

    .article-link {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 10px;
    }

    .article-title-text {
        white-space: normal;
        margin-bottom: 8px;
        width: 100%;
    }

    .article-date {
        margin-left: 15px;
        font-size: 13px;
    }

    /* 分页响应式 */
    .pagination-wrapper {
        margin-top: 25px;
        padding-top: 20px;
    }

    .page-btn,
    .page-num {
        height: 34px;
        line-height: 32px;
        padding: 0 12px;
        margin: 2px;
        font-size: 13px;
    }

    .page-num {
        min-width: 34px;
        padding: 0 8px;
    }

    .page-first,
    .page-last {
        display: none;
    }

    .breadcrumb-nav {
        padding: 12px 15px;
    }

    .breadcrumb-list {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .list-content {
        padding: 20px 15px;
    }

    .list-title {
        font-size: 20px;
    }

    .article-title-text {
        font-size: 15px;
    }

    /* 分页小屏幕 */
    .page-btn,
    .page-num {
        height: 32px;
        line-height: 30px;
        padding: 0 10px;
        margin: 2px 1px;
        font-size: 12px;
    }

    .page-num {
        min-width: 32px;
        padding: 0 6px;
    }

    .page-prev,
    .page-next {
        padding: 0 8px;
    }
}

/* ========================================
   打印样式
   ======================================== */
@media print {
    .header-narrow,
    .header-bg,
    .navbar,
    .breadcrumb-nav,
    .footer,
    .floating-sidebar,
    .pagination-wrapper {
        display: none !important;
    }

    .list-main {
        background: none;
        padding: 0;
    }

    .list-content {
        box-shadow: none;
        padding: 0;
    }

    .article-list {
        page-break-inside: avoid;
    }

    .article-item {
        page-break-inside: avoid;
        border-bottom: 1px solid #ddd;
    }
}
