/*
Theme Name:   Astra Child (VisionChinese)
Template:     astra
Version:      1.0.0
Description:  VisionChinese 博客定制：今日特色帖 + 最多阅读排行榜
*/

/* ========================================
   Featured Hero
   ======================================== */
.vc-featured-hero {
    max-width: 1200px;
    margin: 20px auto 24px;
    padding: 0 20px;
    box-sizing: border-box;
}
.vc-hero-inner {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vc-hero-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.vc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(245, 240, 230, 0.72) 0%,
        rgba(245, 240, 230, 0.4)  55%,
        rgba(245, 240, 230, 0)    100%
    );
}
.vc-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 440px;
    padding: 2.5rem;
    color: #1a1a2e;
    max-width: 55%;
}
.vc-hero-badge {
    display: inline-block;
    background: #2d6a4f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    width: fit-content;
    text-transform: uppercase;
}
.vc-hero-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    opacity: 0.85;
}
.vc-hero-cat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15em 0.65em;
    border-radius: 3px;
}
.vc-hero-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
    font-weight: 700;
    color: #1a1a2e !important;
    line-height: 1.3;
    margin: 0 0 0.8rem !important;
    text-shadow: none;
}
.vc-hero-meta {
    color: #4a5568;
}
.vc-hero-date {
    color: #4a5568;
}
.vc-hero-excerpt {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4a5568;
    margin: 0 0 1.3rem !important;
}
.vc-hero-btn {
    display: inline-block;
    background: #2d6a4f;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5em 1.25em;
    border-radius: 6px;
    transition: background 0.2s;
    width: fit-content;
}
.vc-hero-inner:hover .vc-hero-btn {
    background: #1b4332;
}

/* ========================================
   Most Read Leaderboard
   ======================================== */
.vc-most-read {
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 0 20px;
    box-sizing: border-box;
}
.vc-most-read-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.vc-most-read-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f4f8;
}
.vc-trophy-icon {
    font-size: 1.2rem;
    line-height: 1;
}
.vc-most-read-header h3 {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: 0.02em;
}
.vc-most-read-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.35rem;
}
.vc-most-read-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    transition: background 0.15s;
}
.vc-most-read-item:hover {
    background: #f7f8fc;
}
.vc-rank-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: #94a3b8;
}
.vc-most-read-item.rank-1 .vc-rank-num {
    background: linear-gradient(135deg, #f6c90e, #f59e0b);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.vc-most-read-item.rank-2 .vc-rank-num {
    background: linear-gradient(135deg, #d8d8d8, #94a3b8);
}
.vc-most-read-item.rank-3 .vc-rank-num {
    background: linear-gradient(135deg, #d4975b, #b45309);
}
.vc-most-read-title {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vc-most-read-title:hover {
    color: #e53e3e;
    text-decoration: none;
}
.vc-view-count {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #9ca3af;
    white-space: nowrap;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .vc-hero-inner {
        min-height: 320px;
        border-radius: 10px;
    }
    .vc-hero-content {
        min-height: 320px;
        padding: 1.5rem;
    }
    .vc-most-read-list {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Resource Cards: prevent image cropping
   ======================================== */
.vch-res img {
    height: 160px !important;
    object-fit: contain !important;
    background: #f5f7fa;
}
