/* API测试工具样式 */
body {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

select,
input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

textarea {
    min-height: 120px;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

.button-group {
    margin: 25px 0;
    display: flex;
    gap: 15px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.primary-btn {
    background: #4CAF50;
    color: white;
    flex: 2;
}

.primary-btn:hover {
    background: #45a049;
}

.secondary-btn {
    background: #2196F3;
    color: white;
    flex: 1;
}

.secondary-btn:hover {
    background: #1976D2;
}

.token-info {
    margin-bottom: 25px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.token-info label {
    margin-bottom: 15px;
    color: #2E7D32;
}

#tokenStatus {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.4;
}

.clear-token {
    background: #f44336;
    color: white;
    margin-right: 10px;
}

.clear-token:hover {
    background: #d32f2f;
}

#testTokenBtn,
#refreshTokenBtn {
    background: #FF9800;
    color: white;
    margin-right: 10px;
}

#testTokenBtn:hover,
#refreshTokenBtn:hover {
    background: #F57C00;
}

.response {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    color: #333;
}

#testCases {
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    body {
        margin: 10px;
        padding: 0 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}
