/* 分类标题样式 */
.category-header {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-header h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.category-header p {
    color: var(--light-text);
}

/* 文章列表样式 */
.lists {
    flex: 1;
    min-width: 300px;
}

.list-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.list-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.list-item h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.list-item h3 a{
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.7;
}
.item-meta .category a{
    color: var(--light-text);
}
.list-item h3 a,.item-meta .category a{
    text-decoration: none;
}

.post-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #fff;
    vertical-align: middle;
    text-transform: uppercase;
    position: relative;
    top: -1px;
}

.post-flag-top {
    background: linear-gradient(135deg, #ff7a18, #ff4d4f);
    box-shadow: 0 6px 14px rgba(255, 122, 24, 0.26);
    border: 1px solid rgba(255,255,255,0.28);
}

.post-flag-password {
    background: linear-gradient(135deg, #722ed1, #531dab);
    box-shadow: 0 6px 14px rgba(114, 46, 209, 0.26);
    border: 1px solid rgba(255,255,255,0.22);
}

.list-item h3 a:hover,.item-meta .category a:hover {
    color: var(--primary-color);
}

.item-meta {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.item-meta span {
    display: flex;
    align-items: center;
}

.item-meta span::before {
    content: "•";
    margin-right: 5px;
    color: var(--primary-color);
}

.list-item p {
    margin-bottom: 10px;
    color: #555;
}

.item-desc-with-cover {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.item-cover {
    width: min(30%, 180px);
    max-width: 30%;
    max-height: 120px;
    flex: 0 0 min(30%, 180px);
}

.item-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #eee;
}

.item-desc-text {
    flex: 1;
    min-width: 0;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.read-more:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}


/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding: 15px 0;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}


@media (max-width: 340px) {
    .lists {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .item-desc-with-cover {
        flex-direction: column;
    }

    .item-cover {
        width: 100%;
        flex-basis: auto;
    }

    .item-cover img {
        height: auto;
        max-height: 220px;
    }
}