/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 基础样式 */
.xunmeng-stats-container {
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    box-sizing: border-box;
}

/* 网格布局 */
.xunmeng-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* 统计项样式 */
.xunmeng-stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    margin-bottom: 16px;
}

/* 悬停效果 */
.xunmeng-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 图标样式 */
.xunmeng-stat-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
    transition: transform 0.3s ease;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.xunmeng-stat-item:hover .xunmeng-stat-icon {
    transform: scale(1.1);
}

/* 数字样式 */
.xunmeng-stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* 标签样式 */
.xunmeng-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    letter-spacing: 0.5px;
}

/* 网站运行时间特殊样式 */
.xunmeng-stat-item.uptime-item {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    padding: 24px;
    min-height: 100px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.xunmeng-stat-item.uptime-item .xunmeng-stat-icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.xunmeng-stat-item.uptime-item .xunmeng-stat-number {
    color: white;
    font-size: 28px;
}

.xunmeng-stat-item.uptime-item .xunmeng-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 - 大屏幕 */
@media (min-width: 1200px) {
    .xunmeng-stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 响应式设计 - 中等屏幕 */
@media (max-width: 1199px) and (min-width: 992px) {
    .xunmeng-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 响应式设计 - 小屏幕 */
@media (max-width: 991px) and (min-width: 768px) {
    .xunmeng-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .xunmeng-stat-item {
        padding: 20px 14px;
        min-height: 140px;
    }
    
    .xunmeng-stat-icon {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .xunmeng-stat-number {
        font-size: 20px;
    }
    
    .xunmeng-stat-label {
        font-size: 12px;
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 767px) and (min-width: 480px) {
    .xunmeng-stats-container {
        padding: 20px;
        margin: 12px 0;
    }
    
    .xunmeng-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .xunmeng-stat-item {
        padding: 18px 12px;
        min-height: 120px;
    }
    
    .xunmeng-stat-icon {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .xunmeng-stat-number {
        font-size: 18px;
    }
    
    .xunmeng-stat-label {
        font-size: 11px;
    }
    
    .xunmeng-stat-item.uptime-item {
        padding: 20px;
        min-height: 100px;
    }
    
    .xunmeng-stat-item.uptime-item .xunmeng-stat-number {
        font-size: 22px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 479px) {
    .xunmeng-stats-container {
        padding: 16px;
        margin: 8px 0;
        border-radius: 8px;
    }
    
    .xunmeng-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .xunmeng-stat-item {
        padding: 16px 10px;
        min-height: 100px;
        border-radius: 8px;
    }
    
    .xunmeng-stat-icon {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .xunmeng-stat-number {
        font-size: 16px;
    }
    
    .xunmeng-stat-label {
        font-size: 10px;
    }
    
    .xunmeng-stat-item.uptime-item {
        padding: 16px;
        min-height: 80px;
    }
    
    .xunmeng-stat-item.uptime-item .xunmeng-stat-number {
        font-size: 18px;
    }
}

/* 小部件特殊样式 */
.widget .xunmeng-stats-container {
    margin: 0;
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.widget .xunmeng-stats-grid {
    gap: 12px;
    margin-bottom: 12px;
}

.widget .xunmeng-stat-item {
    padding: 14px 8px;
    min-height: 90px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.widget .xunmeng-stat-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

.widget .xunmeng-stat-number {
    font-size: 14px;
}

.widget .xunmeng-stat-label {
    font-size: 9px;
}

.widget .xunmeng-stat-item.uptime-item {
    padding: 14px;
    min-height: 70px;
}

.widget .xunmeng-stat-item.uptime-item .xunmeng-stat-number {
    font-size: 16px;
}

/* 与寻梦主题风格一致的颜色 */
/* 文章总数 */
.xunmeng-stat-item:nth-child(1) {
    border-top: 4px solid #4CAF50;
}

.xunmeng-stat-item:nth-child(1) .xunmeng-stat-number {
    color: #4CAF50;
}

.xunmeng-stat-item:nth-child(1) .xunmeng-stat-icon {
    color: #4CAF50;
}

/* 用户总数 */
.xunmeng-stat-item:nth-child(2) {
    border-top: 4px solid #2196F3;
}

.xunmeng-stat-item:nth-child(2) .xunmeng-stat-number {
    color: #2196F3;
}

.xunmeng-stat-item:nth-child(2) .xunmeng-stat-icon {
    color: #2196F3;
}

/* 评论总数 */
.xunmeng-stat-item:nth-child(3) {
    border-top: 4px solid #FF9800;
}

.xunmeng-stat-item:nth-child(3) .xunmeng-stat-number {
    color: #FF9800;
}

.xunmeng-stat-item:nth-child(3) .xunmeng-stat-icon {
    color: #FF9800;
}

/* 浏览总数 */
.xunmeng-stat-item:nth-child(4) {
    border-top: 4px solid #9C27B0;
}

.xunmeng-stat-item:nth-child(4) .xunmeng-stat-number {
    color: #9C27B0;
}

.xunmeng-stat-item:nth-child(4) .xunmeng-stat-icon {
    color: #9C27B0;
}
