/* 测速页面主要样式 */
.speed-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}
.navbar {
    top: 0;
}
.speed-header {
    text-align: center;
    margin-bottom: 40px;
}

.speed-header h1 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.speed-header p {
    font-size: 1.1rem;
    color: #666;
}

.speed-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.speed-controls {
    text-align: center;
    margin-bottom: 40px;
}

.test-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.test-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.test-btn i {
    font-size: 1rem;
}

.test-progress {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transition: width 0.3s ease;
}

.region-grid {
    display: grid;
    gap: 30px;
}

.region-group {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
}

.region-group h2 {
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.node-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.node-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.node-item:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.node-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.node-name {
    font-size: 1rem;
    color: #1a1a1a;
    flex: 1;
}

.ping-value {
    font-size: 0.95rem;
    color: #666;
    font-family: monospace;
    min-width: 60px;
    text-align: right;
}

.ping-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
}

.ping-status.excellent {
    background: #22c55e;
}

.ping-status.good {
    background: #eab308;
}

.ping-status.poor {
    background: #ef4444;
}

.ping-status.timeout {
    background: #6b7280;
}

@media (max-width: 768px) {
    .speed-section {
        padding: 20px;
    }

    .speed-header h1 {
        font-size: 1.8rem;
    }

    .speed-container {
        padding: 20px;
    }

    .node-list {
        grid-template-columns: 1fr;
    }

    .node-item {
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.test-btn:active {
    animation: pulse 0.3s ease;
} 