/* V2.6 Enhanced Right Sidebar Styles - Optimized Search */

.right-sidebar {
    position: relative;
    width: 280px;
    background: var(--bg-gradient-primary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.right-sidebar-container {
    width: 100%;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}


/* Services Section Styles */
.services-section {
    margin-bottom: 30px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    text-decoration: none;
    color: #fff; // 改为白色
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-item:hover {
    background: rgba(255,255,255,0.12);
    border: 1px solid #ddd; color: #8E44AD;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.service-icon {
    font-size: 24px;
    margin-right: 16px;
    width: 32px;
    text-align: center;
}

.service-content {
    flex: 1;
}

.service-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* Latest Updates Section Styles */
.recent-updates-section {
    margin-bottom: 30px;
}

.recent-updates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.update-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.update-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.update-item a {
    color: #fff; // 改为白色
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-item a:hover {
    color: #8E44AD;
}

.update-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    background: transparent;
    padding: 0;
    box-shadow: none;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.update-category {
    font-size: 12px;
    color: #8E44AD;
    white-space: nowrap;
    background: rgba(142,68,173,0.08);
    padding: 2px 6px;
    border-radius: 10px;
}

/* Section Title Styles */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #8E44AD;
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border: 1px solid #ddd; color: #8E44AD;
    border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .right-sidebar {
        width: 280px;
        background: var(--bg-gradient-primary);
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    
    .service-item {
        padding: 14px;
    }
    
    .service-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .service-name {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .right-sidebar {
        width: 100%;
        margin-right: 0;
        background: var(--bg-gradient-primary);
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    }
    
    
    .services-grid {
        gap: 6px;
    }
    
    .service-item {
        padding: 12px;
    }
    
    .service-icon {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .service-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    
    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .services-grid {
        gap: 4px;
    }
    
    .service-item {
        padding: 10px;
    }
    
    .service-icon {
        font-size: 20px;
        margin-right: 8px;
    }
    
    .service-name {
        font-size: 13px;
    }
    
    .update-item {
        padding: 8px 10px;
    }
    
    .update-date {
        font-size: 11px;
    }
    
    .update-category {
        font-size: 11px;
    }
}


/* 右侧栏紫色背景下文字颜色 */
.right-sidebar .section-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

/* Stats Item Styles */


.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

.stats-update-note {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
