/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 卡片容器 */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.card-wide {
    max-width: 900px;
}

/* 标题 */
.card h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

/* 按钮 */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    margin-top: 10px;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-group .btn {
    flex: 1;
}

/* 错误提示 */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* 准考证信息表格 */
.ticket-info {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    border: 1px solid #eee;
}

.ticket-info th,
.ticket-info td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ticket-info th {
    width: 30%;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
}

.ticket-info td {
    color: #333;
    font-weight: 600;
}

.ticket-info tr:last-child th,
.ticket-info tr:last-child td {
    border-bottom: none;
}

/* 成绩表格 */
.score-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}

.score-table th,
.score-table td {
    padding: 16px;
    text-align: center;
    border: 1px solid #eee;
}

.score-table th {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    font-weight: 500;
}

.score-table td {
    background: #fff;
    color: #333;
}

.score-table .highlight {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

/* 提示文字 */
.tips {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 20px;
}

/* 导航栏 */
.nav {
    text-align: center;
    margin-bottom: 20px;
}

.nav a {
    color: #4a90d9;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.nav a:hover {
    text-decoration: underline;
}

/* 准考证预览图 */
.ticket-preview {
    text-align: center;
    margin: 20px 0;
}

.ticket-preview img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
