/* 参赛证查询页面样式 */

.query-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    margin: 40px auto;
}

.query-container h1 {
    text-align: center;
    color: #1a5276;
    margin-bottom: 10px;
    font-size: 24px;
}

.query-container .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #3498db;
}

.hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26, 82, 118, 0.4);
}

button:active {
    transform: translateY(0);
}

.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 6px;
    display: none;
}

.result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    display: block;
}

.result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    display: block;
}

.result-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.result.success .result-title {
    color: #155724;
}

.result.error .result-title {
    color: #721c24;
}

.student-info {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.student-info p {
    margin: 8px 0;
    color: #333;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.download-btn {
    flex: 1;
    display: inline-block;
    padding: 12px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #218838;
}

.download-btn:first-child {
    background: #007bff;
}

.download-btn:first-child:hover {
    background: #0069d9;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}