.posts-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.posts-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}

.posts-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

.posts-count {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.posts-list {
    padding: 0;
}

.post-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 10px;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.post-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 8px 0 0 8px;
}

.post-item:hover::before {
    transform: scaleY(1);
}

.post-top {
    border: 2px solid rgba(255, 215, 0, 0.7);
    background: rgba(255, 215, 0, 0.12);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.25);
}

.post-top::before {
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0.6));
}

.top-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.85) 0%, rgba(255, 193, 7, 0.85) 100%);
    color: rgba(0, 0, 0, 0.8);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.post-image {
    flex: 0 0 180px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.9;
    filter: brightness(1.1) contrast(1.05);
}

.post-item:hover .post-image img {
    transform: scale(1.05);
    opacity: 1;
    filter: brightness(1.15) contrast(1.1);
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-link {
    background: rgba(173, 216, 230, 0.2);
    color: rgba(173, 216, 230, 0.95);
    padding: 4px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(173, 216, 230, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.category-link:hover {
    background: rgba(173, 216, 230, 0.7);
    color: rgba(0, 0, 0, 0.8);
    border-color: rgba(173, 216, 230, 0.7);
    transform: translateY(-1px);
    text-shadow: none;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title:hover,
.post-title a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.post-stats {
    display: flex;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.read-more-btn {
    color: rgba(173, 216, 230, 0.95);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(173, 216, 230, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(173, 216, 230, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.read-more-btn:hover {
    background: rgba(173, 216, 230, 0.7);
    color: rgba(0, 0, 0, 0.8);
    border-color: rgba(173, 216, 230, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(173, 216, 230, 0.3);
    text-shadow: none;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 8px;
}

.category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.category-item a:hover {
    background: rgba(173, 216, 230, 0.15);
    color: rgba(173, 216, 230, 0.95);
    border-color: rgba(173, 216, 230, 0.25);
    transform: translateX(2px);
}

.category-list .active {
    background: rgba(173, 216, 230, 0.2);
    color: rgba(173, 216, 230, 0.95);
    font-weight: 600;
    border-color: rgba(173, 216, 230, 0.35);
    box-shadow: 0 2px 8px rgba(173, 216, 230, 0.2);
}

.category-count {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hot-posts {
    list-style: none;
}

.hot-post-item {
    margin-bottom: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.hot-post-item:hover {
    background: rgba(173, 216, 230, 0.12);
    border-color: rgba(173, 216, 230, 0.2);
}

.hot-post-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.hot-post-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hot-post-title:hover {
    color: rgba(173, 216, 230, 0.95);
}

.hot-post-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
        gap: 15px;
        background: rgba(255, 255, 255, 0.15);
        margin-bottom: 15px;
    }

    .post-image {
        flex: none;
        height: 160px;
        border-radius: 6px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .meta-item,
    .stat-item {
        background: rgba(255, 255, 255, 0.12);
        padding: 3px 6px;
    }
    
    .category-item a {
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(173, 216, 230, 0.3) rgba(255, 255, 255, 0.1);
}

.archive-list::-webkit-scrollbar {
    width: 6px;
}

.archive-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.archive-list::-webkit-scrollbar-thumb {
    background: rgba(173, 216, 230, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.archive-list::-webkit-scrollbar-thumb:hover {
    background: rgba(173, 216, 230, 0.5);
}

.archive-item {
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.archive-item:last-child {
    margin-bottom: 0;
}

.archive-item:hover {
    background: rgba(173, 216, 230, 0.15);
    border-color: rgba(173, 216, 230, 0.25);
    transform: translateX(2px);
}

.archive-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 12px 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.archive-item:hover a {
    color: rgba(173, 216, 230, 0.95);
}

.widget-title {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, rgba(173, 216, 230, 0.8), rgba(173, 216, 230, 0.3));
    border-radius: 1px;
}

.archive-count {
    display: inline-block;
    background: rgba(173, 216, 230, 0.2);
    color: rgba(173, 216, 230, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
    border: 1px solid rgba(173, 216, 230, 0.3);
    text-shadow: none;
}

.archive-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.archive-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .archive-list {
        max-height: 300px;
    }
    
    .archive-item {
        margin-bottom: 6px;
    }
    
    .archive-item a {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .archive-count {
        font-size: 10px;
        padding: 1px 6px;
    }
}

@media (max-width: 480px) {
    .archive-list {
        max-height: 250px;
    }
    
    .archive-item {
        margin-bottom: 5px;
    }
    
    .archive-item a {
        font-size: 11px;
        padding: 8px 10px;
    }
}

.archive-group {
    margin-bottom: 20px;
}

.archive-group-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-item::before {
    content: counter(archive-counter);
    counter-increment: archive-counter;
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: rgba(173, 216, 230, 0.2);
    color: rgba(173, 216, 230, 0.8);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(173, 216, 230, 0.3);
}

.archive-list {
    counter-reset: archive-counter;
}
.sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: hidden;
    overflow-y: auto; 
    align-self: start;
}
.main-content{
    align-items: start;
    min-height: 100vh;
    overflow: visible;

}