.register-container {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}
.register-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    font-family: 'Microsoft YaHei', '微软雅黑', 'Segoe UI', 'PingFang SC', 'Helvetica Neue', sans-serif;
}
.register-card h2 {
    color: #1e2a3a;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label { display: block; width: 100%; color: #374151; margin-bottom: 8px; font-weight: 600; font-size: 1rem; text-align: left; }
.form-group input, .form-group select {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 1rem;
    transition: 0.2s;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 2px rgba(255,204,0,0.2);
}
.email-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}
.email-group input {
    flex: 1;
    height: 44px;
    box-sizing: border-box;
}
.code-btn {
    background: #ffcc00;
    border: none;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    height: 44px;
    line-height: 44px;
    flex-shrink: 0;
    font-size: 0.9rem; box-sizing: border-box;
}
.required {
    color: #e53935;
}
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.btn-submit, .btn-cancel {
    padding: 12px 30px;
    border: none;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}
.btn-submit {
    background: #0f1724;
    color: #ffd966;
    border: 1px solid #ffcc00;
}
.btn-cancel {
    background: #6c757d;
    color: white;
}
.btn-submit:hover {
    background: #1e2a3a;
}
.btn-cancel:hover {
    background: #5a6268;
}
.custom-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.custom-alert.error {
    background: #fee2e2;
    color: #c62828;
}
.custom-alert.success {
    background: #e0f2e9;
    color: #2e7d32;
}
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.custom-modal-content {
    background: #1e2a3a;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    border: 1px solid #ffcc00;
}
.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #334155;
}
.custom-modal-title {
    color: #ffd966;
    font-weight: bold;
}
.custom-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffd966;
}
.custom-modal-body {
    padding: 20px;
    color: #e2e8f0;
}
.custom-modal-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #334155;
}
.custom-modal-btn {
    background: #ffcc00;
    color: #1e2a3a;
    border: none;
    padding: 8px 24px;
    border-radius: 30px;
    cursor: pointer;
}
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .email-group {
        flex-wrap: wrap;
    }
    .code-btn {
        width: 100%;
        line-height: normal;
        height: auto;
        padding: 10px;
    }
}
/* ========== 注册协议区域 ========== */
.agreement-section {
    margin: 20px 0;
}
.agreement-box {
    background: #ffffff;
    border: 2px solid rgba(255, 204, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    color: #374151;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}
.agreement-box h2 {
    font-size: 18px;
    color: #1e2a3a;
    margin-bottom: 15px;
    text-align: center;
}
.agreement-box h3 {
    font-size: 16px;
    color: #1e2a3a;
    margin-top: 15px;
    margin-bottom: 8px;
}
.agreement-box p {
    text-indent: 2em;
    margin-bottom: 8px;
    color: #374151;
}
.agreement-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.agreement-timer {
    color: #9aaec9;
    font-size: 13px;
}
.agreement-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #e2e8f0;
}
.agreement-label a {
    color: #ffd966;
    text-decoration: underline;
}
.agreement-label input[type=checkbox] {
    width: 18px;
    height: 18px;
    margin: 0;
}