/**
 * info-list.css - Styles for the knowledge center list page
 */

/* 主内容区域 */
.info-list-content {
    padding: 60px 0;
    background-color: var(--background-secondary);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-header p {
    font-size: 18px;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 文章列表样式 - 非卡片形式，带右侧图片 */
.info-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.info-item {
    padding: 30px 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.info-content {
    flex: 1;
}

.info-image {
    flex: 0 0 200px;
    align-self: flex-start;
}

.info-image img {
    width: 100%;
    height: auto;
    max-height: 180px;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.info-divider {
    height: 1px;
    background-color: var(--border-color);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.info-item:last-child .info-divider {
    display: none;
}

.info-date {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.info-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-title a:hover {
    color: var(--primary-blue);
}

.info-summary {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 16px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    font-size: 15px;
}

.read-more-btn:hover {
    background-color: var(--button-hover);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-link.active {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
}

.page-link:hover:not(.active) {
    background-color: var(--neutral-light-gray);
    border-color: var(--neutral-medium-gray);
}

.page-ellipsis {
    color: var(--text-primary);
    padding: 0 5px;
    align-self: center;
    line-height: 38px;
}

.prev, .next {
}

/* Tablet adjustments */
@media (max-width: 991px) {
    .info-list-content {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 17px;
        max-width: 90%;
    }

    .info-item {
        gap: 25px;
    }

    .info-image {
        flex: 0 0 180px;
    }
    
    .info-image img {
        max-height: 160px;
    }

    .info-title {
        font-size: 22px;
    }

    .info-summary {
        font-size: 15px;
    }

    .read-more-btn {
        padding: 9px 18px;
        font-size: 14px;
    }
}

/* Mobile adjustments (enhancing existing 768px breakpoint) */
@media (max-width: 768px) {
    .info-list-content {
        padding: 40px 0;
    }
    .container {
        padding: 0 10px;
    }

    .page-header {
        margin-bottom: 30px;
    }
    .page-header h1 {
        font-size: 28px;
    }
    .page-header p {
        font-size: 16px;
    }

    .info-item {
        flex-direction: column;
        padding: 25px 0;
        gap: 15px;
    }
    
    .info-image {
        margin-top: 0;
        margin-bottom: 15px;
        flex: 0 0 auto;
        order: -1;
        width: 100%;
        max-width: 100%;
        align-self: center;
    }
    
    .info-image img {
        max-height: 220px;
        border-radius: 4px;
    }
    
    .info-content {
        width: 100%;
    }

    .info-date {
        font-size: 13px;
    }

    .info-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .info-summary {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .read-more-btn {
        padding: 8px 16px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .pagination {
        margin-top: 30px;
        gap: 6px;
    }
    .page-link {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
    .page-ellipsis {
        line-height: 34px;
    }
}

/* Smaller Mobile adjustments (enhancing existing 576px breakpoint) */
@media (max-width: 576px) {
    .info-list-content {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 24px;
    }
    .page-header p {
        font-size: 15px;
    }

    .info-item {
        padding: 20px 0;
    }
    
    .info-title {
        font-size: 18px;
        line-height: 1.35;
    }

    .info-summary {
        font-size: 14px;
        line-height: 1.55;
    }

    .read-more-btn {
        padding: 10px 15px;
    }

    .pagination {
        gap: 5px;
    }
    .page-link {
        font-weight: normal;
    }
    .page-link.prev, .page-link.next {
        padding: 0 10px;
    }
}
