/**
 * 51ziy.com版权所有，未经允许请勿复制！
 */
.posts-item.card,
.enlighter {
    position: relative;
    padding: 10px !important;
    margin-bottom: 25px;
    background-color: #ffffff; 
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: visible;
}

.posts-item.card::before,
.enlighter::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 
                20px 0 #ffbd2e, 
                20px 0 0 1px rgba(0,0,0,0.05), 
                40px 0 #28c940, 
                40px 0 0 1px rgba(0,0,0,0.05); 
    z-index: 10;
}

.posts-item.card {
    padding-top: 10px !important;
}

.posts-item.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 115, 170, 0.3);
    box-shadow: 0 15px 30px rgba(0, 85, 128, 0.12);
    z-index: 99;
}

.posts-item.card .item-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 0;
}

.posts-item.card .item-thumbnail img {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.posts-item.card:hover .item-thumbnail img {
    transform: scale(1.08);
}

.posts-item.card .item-body {
    padding: 0;
    margin-top: 10px;
}

.posts-item.card .item-heading {
    min-height: 2.8em;
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.4em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.posts-item.card .item-heading > a { 
    font-weight: bold 
    color: #333;
    text-decoration: none; 
    transition: color 0.3s;
}
.posts-item.card:hover .item-heading > a {
    color: #f74735;
}

.posts-item.card .item-tags {
    min-height: 24px; 
    margin-bottom: 6px;
}
.posts-item.card .item-tags .but,
.posts-item.card .meta-category a {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    display: inline-block !important;
    padding: 4px 10px !important;
    margin: 0 6px 8px 0 !important;
    font-size: 10px !important;
    font-weight: normal !important; 
    text-decoration: none !important;
    border-radius: 999px !important;
    background-color: #f1f3f5 !important;
    color: #5f6368 !important;
    border: 1px solid #e9ecef !important;
    transition: all .3s ease-out !important;
    box-shadow: none !important;
}

.posts-item.card .item-tags .but::before,
.posts-item.card .meta-category a::before {
    content: '' !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform .6s cubic-bezier(.1,.7,.3,1), opacity .6s ease;
    z-index: -1 !important;
}

.posts-item.card .item-tags .but:hover,
.posts-item.card .meta-category a:hover {
    transform: translateY(-2px);
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 5px 12px -2px rgba(0,0,0,.2) !important;
}

.posts-item.card .item-tags .but:hover::before,
.posts-item.card .meta-category a:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.posts-item.card .item-tags .but:nth-child(4n+1):hover,
.posts-item.card .meta-category a:nth-child(4n+1):hover { background-color: #8e44ad !important; }
.posts-item.card .item-tags .but:nth-child(4n+1)::before,
.posts-item.card .meta-category a:nth-child(4n+1)::before { background-image: radial-gradient(circle, #9b59b6, #8e44ad) !important; }

.posts-item.card .item-tags .but:nth-child(4n+2):hover,
.posts-item.card .meta-category a:nth-child(4n+2):hover { background-color: #27ae60 !important; }
.posts-item.card .item-tags .but:nth-child(4n+2)::before,
.posts-item.card .meta-category a:nth-child(4n+2)::before { background-image: radial-gradient(circle, #2ecc71, #27ae60) !important; }

.posts-item.card .item-tags .but:nth-child(4n+3):hover,
.posts-item.card .meta-category a:nth-child(4n+3):hover { background-color: #2980b9 !important; }
.posts-item.card .item-tags .but:nth-child(4n+3)::before,
.posts-item.card .meta-category a:nth-child(4n+3)::before { background-image: radial-gradient(circle, #3498db, #2980b9) !important; }

.posts-item.card .item-tags .but:nth-child(4n+4):hover,
.posts-item.card .meta-category a:nth-child(4n+4):hover { background-color: #d35400 !important; }
.posts-item.card .item-tags .but:nth-child(4n+4)::before,
.posts-item.card .meta-category a:nth-child(4n+4)::before { background-image: radial-gradient(circle, #e67e22, #d35400) !important; }


.posts-item.card .item-tags .but .fa {
    margin-right: 4px;
    font-size: 10px; 
}

body.dark-theme .posts-item.card {
    background-color: #2a2d33; 
    border-color: #40454d;   
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
    background-image: none !important;
}
body.dark-theme .posts-item.card:hover {
    border-color: #6a9ee8;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .posts-item.card .item-heading > a { color: #e8ecf1; }
body.dark-theme .posts-item.card:hover .item-heading > a { color: #79b0ed; }

body.dark-theme .posts-item.card .item-tags .but,
body.dark-theme .posts-item.card .meta-category a {
    background-color: #3a3e44 !important;
    color: #bdc3c7 !important;
    border-color: #4a4e54 !important;
    box-shadow: none !important;
    font-weight: bold !important; 
}

@media (max-width: 768px) {
    .posts-item.card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.1);
    }
    body.dark-theme .posts-item.card:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,.25);
    }
}