/* ==========================================
   记分板测试工具 - 专用样式
   ========================================== */

/* 测试功能区 */
.test-section {
    margin: 30px 0;
    padding: 0;
}

.test-section > h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* 测试项卡片 */
.test-item {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.test-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.test-item h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-item h3 i {
    color: #3498db;
}

/* 测试按钮 */
.test-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
    margin-bottom: 12px;
}

.test-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

.test-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* 测试结果显示区 */
.test-result {
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 20px;
}

.test-result p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-result .success {
    color: #27ae60;
    background: #e8f8f5;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #27ae60;
}

.test-result .error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .test-section > h2 {
        font-size: 1.3rem;
    }

    .test-item {
        padding: 15px;
    }

    .test-item h3 {
        font-size: 1.1rem;
    }

    .test-button {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .test-result {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .test-section {
        margin: 20px 0;
    }

    .test-section > h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .test-item {
        padding: 12px;
        margin: 15px 0;
    }

    .test-item h3 {
        font-size: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
