/**
 * 列表页专用样式
 */

/* ===== 布局 ===== */
.content-wrap {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.content-left {
    flex: 1;
    min-width: 0;
}

.content-right {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ===== 侧边栏小部件 ===== */
.widget {
    background: var(--stn-card-bg);
    border: 1px solid var(--stn-border);
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: var(--stn-shadow);
    display: flex;
    flex-direction: column;
}

.widget-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--stn-text-light);
    border-bottom: 1px solid rgba(212, 168, 92, 0.1);
    padding-bottom: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.widget-title i {
    color: var(--stn-primary);
}

.hot-list {
    display: flex;
    flex-direction: column;
}
.hot-list .hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    cursor: pointer;
}
.hot-list .hot-item:last-child {
    border-bottom: none;
}
.hot-list .hot-item:hover {
    padding-left: 6px;
    color: var(--stn-text-light);
}
.hot-list .hot-rank {
    font-weight: 700;
    color: var(--stn-primary);
    font-size: 0.8rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.hot-list .hot-rank.top1 {
    color: #f1c40f;
}
.hot-list .hot-rank.top2 {
    color: #bdc3c7;
}
.hot-list .hot-rank.top3 {
    color: #e67e22;
}
.hot-list .hot-info {
    flex: 1;
}
.hot-list .hot-info .title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stn-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hot-list .hot-info .views {
    font-size: 0.7rem;
    color: var(--stn-text-muted);
}

.update-list {
    display: flex;
    flex-direction: column;
}
.update-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    cursor: pointer;
}
.update-item:last-child {
    border-bottom: none;
}
.update-item:hover {
    padding-left: 4px;
    color: var(--stn-text-light);
}
.update-item .date {
    font-size: 0.65rem;
    color: var(--stn-text-muted);
    flex-shrink: 0;
    width: 56px;
}
.update-item .title {
    font-size: 0.85rem;
    color: var(--stn-text-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.update-item:hover .title {
    color: var(--stn-text-light);
}

/* ===== 分类头部 ===== */
.category-header {
    background: var(--stn-card-bg);
    border: 1px solid var(--stn-border);
    border-radius: 12px;
    padding: 28px 30px;
    margin-bottom: 28px;
    box-shadow: var(--stn-shadow);
}
.category-header .cat-icon {
    font-size: 2.2rem;
    color: var(--stn-primary);
    margin-bottom: 6px;
}
.category-header h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--stn-text-light);
    font-weight: 700;
}
.category-header .desc {
    color: var(--stn-text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}
.category-header .stats {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--stn-text-muted);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.category-header .stats i {
    margin-right: 4px;
    color: var(--stn-primary);
}

/* ===== 排序工具栏 ===== */
.archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.archive-count {
    color: var(--stn-text-muted);
    font-size: 0.85rem;
}
.archive-sort {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.archive-sort span {
    font-size: 0.8rem;
    color: var(--stn-text-muted);
}
.archive-sort .sort-link {
    font-size: 0.8rem;
    color: var(--stn-text-body);
    padding: 4px 14px;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration: none;
}
.archive-sort .sort-link:hover {
    color: var(--stn-text-light);
    background: rgba(255, 255, 255, 0.05);
}
.archive-sort .sort-link.active {
    color: var(--stn-primary);
    background: rgba(212, 168, 92, 0.1);
}

/* ===== 文章列表容器 ===== */
.article-list-wrap {
    background: var(--stn-card-bg);
    border: 1px solid var(--stn-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--stn-shadow);
}

/* ===== 列表文章项 ===== */
.list-article-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.list-article-item:last-child {
    border-bottom: none;
}
.list-article-item:hover {
    background: var(--stn-card-bg);
    padding-left: 30px;
}

.list-article-item .order-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--stn-text-muted);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}
.list-article-item .order-num.top {
    color: var(--stn-primary);
}

.list-article-item .info {
    flex: 1;
    min-width: 0;
}
.list-article-item .info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--stn-text-light);
    transition: var(--transition);
}
.list-article-item:hover .info h4 {
    color: #fff;
}
.list-article-item .info .excerpt {
    font-size: 0.85rem;
    color: var(--stn-text-muted);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-article-item .info .meta {
    font-size: 0.7rem;
    color: var(--stn-text-muted);
    display: flex;
    gap: 16px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.list-article-item .info .meta i {
    margin-right: 3px;
    font-size: 0.6rem;
}

.list-article-item .fa-chevron-right {
    color: var(--stn-text-muted);
    font-size: 0.7rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.list-article-item:hover .fa-chevron-right {
    color: var(--stn-primary);
    transform: translateX(4px);
}

/* ===== 空状态 ===== */
.stn-empty-msg {
    padding: 40px 20px;
    text-align: center;
    color: var(--stn-text-muted);
}
.stn-empty-msg a {
    color: var(--stn-primary);
    text-decoration: underline;
}
.stn-empty-msg a:hover {
    color: var(--stn-secondary);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--stn-text-body);
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}
.pagination a:hover {
    background: var(--stn-card-bg);
    color: var(--stn-text-light);
    border-color: rgba(212, 168, 92, 0.2);
}
.pagination a.active {
    background: rgba(212, 168, 92, 0.15);
    color: var(--stn-text-light);
    border-color: var(--stn-primary);
    font-weight: 700;
}
.pagination .disabled {
    color: var(--stn-text-muted);
    opacity: 0.4;
    cursor: default;
}
.pagination .dots {
    color: var(--stn-text-muted);
    cursor: default;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .content-right {
        width: 260px;
    }
    .list-article-item {
        padding: 14px 18px;
        flex-wrap: wrap;
    }
}

@media (max-width: 820px) {
    .content-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .content-right {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .content-right .widget {
        flex: 1;
        min-width: 200px;
    }
    .category-header {
        padding: 20px;
    }
    .category-header h1 {
        font-size: 1.6rem;
    }
    .archive-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 14px;
    }
    .content-right .widget {
        min-width: 100%;
    }
    .list-article-item {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .list-article-item .info h4 {
        font-size: 0.9rem;
    }
    .list-article-item .info .excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    .list-article-item .order-num {
        display: none;
    }
    .category-header h1 {
        font-size: 1.3rem;
    }
    .category-header .stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}