/* 模态框样式 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f8f9fa;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-family: 'Microsoft YaHei';
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #666;
}

.modal-body {
    padding: 25px;
}

/* 基础样式重置 */
body {
    font-size: 12px;
    border: none;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 表单样式 */
#register_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.td {
    font-size: 14px;
    text-align: right;
    vertical-align: middle;
    color: #646464;
    padding-right: 15px;
    width: 120px;
    font-family: 'Microsoft YaHei';
}

.text {
    width: 280px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.text:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#regbutton {
    width: 280px;
    height: 42px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    background: #007bff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.1s;
    font-family: 'Microsoft YaHei';
}

#regbutton:hover {
    background-color: #0056b3;
}

#regbutton:active {
    transform: translateY(1px);
}

.error {
    color: #dc3545;
    font-size: 12px;
    padding-left: 10px;
    white-space: nowrap;
}

.ok {
    color: #28a745;
    font-size: 12px;
    padding-left: 10px;
}

.notice {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.5;
}

.notice a {
    color: #0066cc;
    text-decoration: none;
}

.notice a:hover {
    text-decoration: underline;
}

.a {
    font-size: 14px;
}

.a a {
    color: #0066cc;
    text-decoration: none;
}

.a a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .td {
        width: 100px;
        font-size: 13px;
        padding-right: 10px;
    }
    
    .text, #regbutton {
        width: 100%;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
}