/* 中考报名系统 - 官方风格样式 */

/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ===== 头部 ===== */
.header {
    background: linear-gradient(135deg, #1a56db, #0e2e6d);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

/* ===== 导航栏 ===== */
.nav {
    background: #0e2e6d;
    padding: 10px 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav a:hover {
    background: rgba(255,255,255,0.1);
}

.nav a.active {
    background: rgba(255,255,255,0.2);
}

/* ===== 主容器 ===== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ===== 卡片 ===== */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a56db;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
}

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

label.required::after {
    content: ' *';
    color: #ef4444;
}

input[type="text"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

/* ===== 按钮 ===== */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #1a56db;
    color: white;
}

.btn-primary:hover {
    background: #1648b8;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #0ea271;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

/* ===== 表格 ===== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f9fafb;
    font-weight: bold;
    color: #374151;
}

tr:hover {
    background: #f9fafb;
}

/* ===== 提示信息 ===== */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #1a56db;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-box p {
    color: #1e40af;
    font-size: 14px;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.warning-box p {
    color: #92400e;
    font-size: 14px;
}

/* ===== 步骤指示器 ===== */
.steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step.active .step-circle {
    background: #1a56db;
    color: white;
}

.step.completed .step-circle {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #6b7280;
}

.step.active .step-label {
    color: #1a56db;
    font-weight: bold;
}

/* ===== 登录页面 ===== */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a56db;
    margin-bottom: 10px;
    text-align: center;
}

.login-hint {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .steps {
        flex-wrap: wrap;
        gap: 20px;
    }

    .btn-group {
        flex-direction: column;
    }
}

/* ===== 加载动画 ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* ===== 成功页面 ===== */
.success-icon {
    text-align: center;
    font-size: 80px;
    margin-bottom: 20px;
}

.success-message {
    text-align: center;
    font-size: 24px;
    color: #10b981;
    margin-bottom: 10px;
}

.success-detail {
    text-align: center;
    color: #6b7280;
    margin-bottom: 30px;
}
