/* 列表页面现代化样式 */

/* 列表标题样式 */
.article-list,
.product-list {
    margin: 20px 0;
}

/* 卡片式列表项样式 */
.card.h-100 {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 三列布局调整 */
@media (min-width: 992px) {
    .col-lg-4 .card.h-100 {
        height: 100%;
    }
}

/* 在大屏幕上优化三列布局 */
@media (min-width: 1200px) {
    .article-list .row {
        max-width: 100%;
    }
}

/* 有图片的卡片内容样式 */
.card-with-image .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 无图片的卡片内容样式 */
.card-no-image {
    height: 100%;
}

.card-no-image .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card.h-100:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.18);
}

/* 列表项图片样式 */
.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card.h-100:hover .card-img-top {
    transform: scale(1.1);
}

/* 列表项内容样式 */
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px;
    transition: color 0.3s ease;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
}

.card.h-100:hover .card-title a {
    color: #3498db;
}

.card-text {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

/* 列表项底部信息样式 */
.card-footer {
    background: #f8f9fa;
    border-top: 1px solid #eef2f7;
    padding: 15px 20px;
    margin-top: auto;
}

/* 阅读更多按钮样式 */
.btn-outline-primary {
    border-color: #3498db;
    color: #3498db;
    border-radius: 6px;
    padding: 6px 16px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 筛选器样式 */
.card.mb-4 {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: none;
}

.card-header {
    background: linear-gradient(135deg, #f8f9ff, #eef2f7);
    border: none;
    padding: 15px 20px;
    border-bottom: 1px solid #eef2f7;
}

.card-body {
    padding: 20px;
}

/* 筛选按钮样式 */
.btn-outline-secondary {
    border-radius: 6px;
    margin: 2px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 排序按钮组样式 */
.btn-group-sm .btn {
    border-radius: 6px;
    padding: 5px 12px;
    margin: 2px;
    transition: all 0.3s ease;
}

/* 分页样式 */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

.page-item .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    color: #3498db;
    transition: all 0.3s ease;
}

.page-item .page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 侧边栏样式 */
aside.col-lg-4 .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .row.g-4 {
        margin: 0 -0.5rem;
    }
    
    .col-md-6 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .card-img-top {
        height: 160px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .btn-outline-primary {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
}

/* 特殊列表项样式 */
.list-group-item {
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    background: #f8f9ff;
}

/* 时间和浏览量样式 */
.text-muted i {
    margin: 0 5px;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 15px 0;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 列表项悬停效果 */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 渐变覆盖层 */
.gradient-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    transition: opacity 0.3s ease;
}

/* 图片容器样式 */
.object-fit-cover {
    object-fit: cover;
}

/* 卡片悬停提升效果 */
.card.h-100:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.18);
}

/* 圆形按钮样式 */
.btn.rounded-pill {
    border-radius: 50rem !important;
}

/* 浅色徽章样式 */
.badge.bg-primary-subtle {
    background-color: #e7f4fc !important;
    color: #3498db;
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* 文章列表项间距 */
.article-list .row.g-4 > [class*="col-"] {
    margin-bottom: 0;
}

/* 加载延迟图片样式 */
[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

[loading="lazy"]:loaded {
    opacity: 1;
}

/* 高亮链接 */
.stretched-link:hover {
    text-decoration: none;
}

/* 卡片边框移除 */
.border-0 {
    border: 0 !important;
}

/* 阴影样式 */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* 透明背景 */
.bg-white {
    background-color: #fff !important;
}

/* 边框样式 */
.border-bottom {
    border-bottom: 1px solid #eef2f7 !important;
}

/* 内边距样式 */
.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

/* 字体大小 */
.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

/* 字重 */
.fw-semibold {
    font-weight: 600 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* 文本样式 */
.text-primary {
    color: #3498db !important;
}

.text-dark {
    color: #2c3e50 !important;
}

.small {
    font-size: 0.875em !important;
}

/* 圆角样式 */
.rounded-top {
    border-top-left-radius: 0.375rem !important;
    border-top-right-radius: 0.375rem !important;
}

/* 间距 */
.g-4,
.gy-4 {
    --bs-gutter-y: 1.5rem;
}

.g-4,
.gx-4 {
    --bs-gutter-x: 1.5rem;
}

.g-5,
.gy-5 {
    --bs-gutter-y: 3rem;
}

.g-5,
.gx-5 {
    --bs-gutter-x: 3rem;
}

/* 溢出隐藏 */
.overflow-hidden {
    overflow: hidden !important;
}

/* 位置定位 */
.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.top-0 {
    top: 0 !important;
}

.start-0 {
    left: 0 !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* 选项卡组 */
.tabs-group {
    margin-bottom: 1rem;
}

/* 选项卡标题 */
.tabs-group .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* 选项卡内容 */
.tabs-group .content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* 筛选器按钮 */
.filter-btn {
    border-radius: 50rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 按钮尺寸 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}