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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* ===== 容器 ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== 表单卡片 ===== */
.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== 头部 ===== */
.header {
    text-align: center;
    margin-bottom: 28px;
}

.header h1 {
    font-size: 26px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
    background: #fff;
}

.form-group input::placeholder {
    color: #cbd5e1;
}

/* ===== 复选框组 ===== */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: #c7d2fe;
    background: #f5f3ff;
}

.checkbox-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    accent-color: #818cf8;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 15px;
    color: #475569;
    user-select: none;
}

/* ===== 按钮 ===== */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 40px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* ===== 成功页面 ===== */
.success-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    font-weight: bold;
}

.success-card h2 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 8px;
}

.success-card p {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 24px;
}

/* ===== 错误提示 ===== */
.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.error-box p {
    color: #dc2626;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ===== 大屏适配 ===== */
@media (min-width: 768px) {
    .container {
        max-width: 520px;
        padding: 40px 20px;
    }

    .form-card {
        padding: 40px 36px;
    }

    .header h1 {
        font-size: 30px;
    }
}
