:root {
    --brand-orange: #ff6a00;
    --brand-orange-light: #ff8b33;
    --brand-dark: #0d1c2e;
    --text-muted: #5f6b7a;
    --bg-light: #f6f7fb;
    --border-color: rgba(13, 28, 46, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-light);
    color: var(--brand-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.page-header {
    margin-bottom: 48px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--brand-orange);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.page-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-item {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.article-item:hover {
    border-color: var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.article-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-category {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
}

.article-category:hover {
    text-decoration: underline;
}

.article-date {
    color: var(--text-muted);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--brand-orange);
}

.article-excerpt {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 106, 0, 0.1);
    color: var(--brand-orange);
    border-radius: 999px;
    font-weight: 600;
}

.pagination {
    max-width: 1200px;
    margin: 48px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.pagination li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.pagination li::marker {
    display: none;
    content: none;
}

/* 基础样式 - 未选中状态 */
.pagination a,
.pagination span,
.pagination li a {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--brand-dark);
    padding: 10px 14px;
    border-radius: 12px;
    min-width: 42px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.2s ease, color 0.2s ease;
    text-align: center;
}

/* 隐藏统计信息（共X条）- 只隐藏第一个li中的统计信息，且不是active状态，且没有data属性 */
.pagination li:first-child:not(.active) a:not([href]):not([data-ci-pagination-page]) {
    display: none;
}

/* 确保当前页（active）的链接显示 */
.pagination li.active a {
    display: inline-block !important;
}

.pagination a[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 选中状态 - 当前页 */
.pagination li.active a,
.pagination li.active span {
    border-color: rgba(255, 106, 0, 0.35) !important;
    color: var(--brand-orange) !important;
    background: rgba(255, 106, 0, 0.05) !important;
}

/* 未选中状态的悬停效果 */
.pagination a:hover:not([disabled]):not([href=""]),
.pagination li:not(.active) a:hover {
    border-color: rgba(255, 106, 0, 0.35);
    color: var(--brand-orange);
}

/* 省略号样式 */
.pagination .page-ellipsis,
.pagination li.ellipsis {
    color: var(--text-muted);
    padding: 0 8px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    user-select: none;
    border: none;
    background: transparent;
    cursor: default;
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .article-item {
        flex-direction: column;
        padding: 24px;
    }

    .article-thumb {
        width: 100%;
        height: 200px;
    }
}

