* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f7f8fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    margin-bottom: 30px;
    text-align: center;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.5px;
}

.status-banner {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.status-banner.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.status-banner.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.status-icon {
    width: 28px;
    height: 28px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-banner.warning .status-icon {
    background: #e0a800;
}

.status-banner.error .status-icon {
    background: #dc3545;
}

.status-text {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    color: #2d3748;
}

.check-btn {
    background: linear-gradient(135deg, #28a745 0%, #20913c 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.check-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.check-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.check-btn.loading {
    background: #6c757d;
}

.group {
    margin-bottom: 36px;
}

.group-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #4a5568;
    padding-left: 4px;
}

.model-card {
    background: white;
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
}

.model-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.model-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
}

.success-rate {
    background: linear-gradient(135deg, #28a745 0%, #20913c 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.success-rate.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.success-rate.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.model-name {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.history-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-bar {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
    height: 32px;
    align-items: center;
}

.history-item {
    width: 8px;
    height: 28px;
    border-radius: 3px;
    background: #e2e8f0;
    transition: all 0.2s ease;
}

.history-item.ok {
    background: linear-gradient(180deg, #48bb78 0%, #38a169 100%);
}

.history-item.slow {
    background: linear-gradient(180deg, #ecc94b 0%, #d69e2e 100%);
}

.history-item.error {
    background: linear-gradient(180deg, #fc8181 0%, #e53e3e 100%);
}

.history-item:hover {
    transform: scaleY(1.15);
}

.history-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a0aec0;
    padding: 0 2px;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: #718096;
    font-size: 13px;
}

footer p {
    margin: 5px 0;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.history-item.new {
    animation: slideIn 0.3s ease;
}

/* 工具提示 */
.history-item {
    position: relative;
    cursor: pointer;
}

.history-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.history-item:hover::after {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .model-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .model-info {
        min-width: auto;
        width: 100%;
    }
    
    .history-container {
        width: 100%;
    }
    
    .status-banner {
        flex-wrap: wrap;
    }
    
    .check-btn {
        width: 100%;
        margin-top: 10px;
    }
}
