/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}

/* 统计卡片样式 */
.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 增强的统计卡片样式 */
.stat-item-enhanced {
    text-align: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-item-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number-enhanced {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label-enhanced {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 500;
}

/* 进度条样式 */
.progress-section {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #409eff;
}

/* 日志样式 */
.log-container {
    max-height: 400px;
    overflow-y: auto;
    background: #fafafa;
    border-radius: 4px;
    padding: 10px;
}

.log-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
}

.log-item:last-child {
    border-bottom: none;
}

.log-time {
    font-size: 12px;
    color: #909399;
    margin-right: 10px;
    min-width: 140px;
}

.log-message {
    flex: 1;
    font-size: 14px;
    color: #303133;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .el-col {
        margin-bottom: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-item-enhanced {
        padding: 20px 10px;
        margin-bottom: 15px;
    }
    
    .stat-number-enhanced {
        font-size: 28px;
    }
    
    .stat-icon {
        font-size: 20px;
    }
    
    .stat-label-enhanced {
        font-size: 14px;
    }
}

/* 动画效果 */
.el-card {
    transition: all 0.3s ease;
}

.el-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 加载动画 */
.el-loading-mask {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 自定义滚动条 */
.log-container::-webkit-scrollbar {
    width: 6px;
}

.log-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.log-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.log-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 站点状态增强样式 */
.site-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
}

.site-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-health {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.site-health .el-progress {
    flex: 1;
    min-width: 60px;
}

.health-score {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
}

.scrape-stats {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.scrape-stats-horizontal {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    line-height: 1.3;
}

.stat-item-horizontal {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.stat-label {
    color: #666;
    font-size: 10px;
}

.stat-value {
    font-weight: 500;
    color: #303133;
    font-size: 11px;
}

.stat-value.success {
    color: #67c23a;
}

.action-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
}

.action-buttons .el-button {
    margin: 0;
    font-size: 11px;
    padding: 5px 8px;
}

.last-scrape {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 10px;
}

.last-scrape > div:first-child {
    font-weight: 500;
    color: #303133;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
}

.time-ago {
    font-size: 9px;
    color: #909399;
    white-space: nowrap;
}

.no-data {
    color: #c0c4cc;
    font-size: 11px;
    font-style: italic;
}

/* 站点概览样式 */
.sites-overview {
    margin-top: 16px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e4e7ed;
}

.overview-item {
    text-align: center;
    padding: 8px 10px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #ebeef5;
}

.overview-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border-color: #409eff;
}

.overview-number {
    font-size: 20px;
    font-weight: bold;
    color: #409eff;
    margin-bottom: 4px;
    line-height: 1;
}

.overview-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

/* 表格整体样式优化 */
.el-table {
    font-size: 12px;
    width: 100% !important;
}

.el-table .el-table__cell {
    padding: 8px 0;
}

.el-table .el-table__header-wrapper .el-table__cell {
    padding: 12px 0;
    font-weight: 600;
    font-size: 13px;
}

/* 确保表格容器占满宽度 */
.el-card .el-table {
    width: 100% !important;
}

/* 站点状态表格特定样式 */
.el-table .site-info {
    min-width: 0;
}

.el-table .site-health .el-progress-bar__outer {
    background-color: #f0f2f5;
}

.el-table .site-health .el-progress-bar__inner {
    transition: width 0.3s ease;
}

/* 响应式设计 - 站点状态 */
@media (max-width: 1200px) {
    .site-name {
        font-size: 12px;
    }
    
    .health-score {
        font-size: 10px;
        min-width: 28px;
    }
    
    .overview-number {
        font-size: 18px;
    }
    
    .stat-item {
        font-size: 10px;
    }
    
    .last-scrape {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .site-info {
        gap: 4px;
        padding: 2px 0;
    }
    
    .site-name {
        font-size: 11px;
    }
    
    .health-score {
        font-size: 9px;
        min-width: 25px;
    }
    
    .scrape-stats {
        gap: 2px;
    }
    
    .stat-item {
        font-size: 9px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .stat-value {
        font-size: 9px;
    }
    
    .last-scrape {
        font-size: 9px;
    }
    
    .time-ago {
        font-size: 9px;
    }
    
    .overview-number {
        font-size: 16px;
    }
    
    .overview-label {
        font-size: 9px;
    }
    
    .sites-overview {
        padding: 8px 10px;
        margin-top: 12px;
    }
    
    .overview-item {
        padding: 6px 8px;
    }
}
