/* 数据统计小工具样式 - 与主题风格保持一致 */
.data-stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1480px;
    height: 55px;
    background: #fff;
    border-radius: 15px;
    padding: 0 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

.data-stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.02) 0%, rgba(0, 123, 255, 0.05) 100%);
    z-index: 0;
}

.stats-item {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-2px);
}

.stats-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 25px;
    background: #eaeaea;
}

.stats-icon {
    margin-right: 12px;
    font-size: 18px;
    color: #007bff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stats-item:hover .stats-icon {
    background: #007bff;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.stats-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-number {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    line-height: 1;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.stats-item:hover .stats-number {
    color: #007bff;
    transform: scale(1.05);
}

.stats-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.stats-item:hover .stats-label {
    color: #007bff;
}

/* 响应式设计 - 与主题保持一致 */
@media (max-width: 1500px) {
    .data-stats-container {
        width: 100%;
        max-width: 1480px;
        padding: 0 20px;
    }
    
    .stats-number {
        font-size: 18px;
    }
    
    .stats-icon {
        font-size: 16px;
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
}

@media (max-width: 1200px) {
    .data-stats-container {
        height: 50px;
        padding: 0 15px;
        border-radius: 12px;
    }
    
    .stats-number {
        font-size: 16px;
    }
    
    .stats-label {
        font-size: 11px;
    }
    
    .stats-icon {
        font-size: 14px;
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
}

@media (max-width: 992px) {
    .data-stats-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        padding: 20px;
        border-radius: 15px;
        margin: 0 auto;
    }
    
    .stats-item {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    
    .stats-item:not(:last-child)::after {
        display: none;
    }
    
    .stats-item:not(:last-child) {
        border-bottom: 1px solid #eaeaea;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    
    .stats-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .stats-content {
        align-items: center;
    }
    
    .stats-number {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .stats-label {
        font-size: 12px;
        text-transform: none;
    }
}

/* 768px以下完全隐藏 */
@media (max-width: 768px) {
    .data-stats-container {
        display: none !important;
    }
}

/* 576px以下也隐藏（小屏手机） */
@media (max-width: 576px) {
    .data-stats-container {
        display: none !important;
    }
}

/* 动画效果 - 与主题风格一致 */
.stats-item {
    animation: fadeInUp 0.6s ease-out;
}

.stats-item:nth-child(1) { animation-delay: 0.1s; }
.stats-item:nth-child(2) { animation-delay: 0.2s; }
.stats-item:nth-child(3) { animation-delay: 0.3s; }
.stats-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 数字动画效果 */
.stats-number {
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 悬停时的整体效果 */
.data-stats-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* 确保移动端显示 */
@media (max-width: 1200px) {
    .data-stats-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* 小工具容器确保可见 */
.widget .data-stats-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 移动端特殊处理 */
@media (max-width: 768px) {
    .widget .data-stats-container {
        width: 100% !important;
        max-width: calc(100vw - 30px) !important;
        margin: 10px auto !important;
        overflow: visible !important;
    }
}
