/* 公共样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f0f2f5 0%, #e6e9ef 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e1e5eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.header {
    background: #fff;
    padding: 35px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f4f9;
}

.logo {
    display: inline-block;
    height: 70px;
    width: 200px;
    background: url('/public/images/logo/logo-hy.png') center no-repeat;
    background-size: contain;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.top-link {
    color: #666;
    font-size: 15px;
    margin-top: 8px;
}

.top-link a {
    color: #3c8ece;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
}

.top-link a:hover {
    color: #fff;
    background: #3c8ece;
    text-decoration: none;
}

.form-container {
    padding: 35px 30px 25px;
}

.form-title {
    text-align: center;
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 18px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3c8ece, #5faee6);
    border-radius: 3px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    padding-left: 3px;
}

.form-group label font {
    color: #e74c3c;
    margin-right: 5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.form-control:focus {
    outline: none;
    border-color: #3c8ece;
    box-shadow: 0 0 0 3px rgba(60, 142, 206, 0.2);
    background: #fff;
}

.form-hint {
    color: #6c757d;
    font-size: 13px;
    margin-top: 8px;
    display: block;
    padding-left: 3px;
}

.captcha-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #e1e5eb;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

.captcha-img.visible {
    display: block;
}

.captcha-img:hover {
    opacity: 0.9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3c8ece, #4a9bd8);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(60, 142, 206, 0.25);
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(135deg, #2b7ab8, #3c8ece);
    box-shadow: 0 6px 15px rgba(60, 142, 206, 0.35);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(1px);
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 22px;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 15px;
}

.forgot-link:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.footer {
    padding: 22px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    font-size: 14px;
    color: #6c757d;
}

.footer a {
    color: #5a6269;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 10px;
    font-weight: 500;
    position: relative;
    padding: 0 5px;
}

.footer a:hover {
    color: #3c8ece;
}

.footer a:after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #d1d9e0;
}

.footer a:last-child:after {
    display: none;
}

.footer div {
    margin-top: 15px;
    color: #98a0a8;
}

/* 注册页面特定样式 */
.terms-box {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 13.5px;
    line-height: 1.7;
    overflow-y: auto;
    resize: vertical;
}

.terms-box::-webkit-scrollbar {
    width: 6px;
}

.terms-box::-webkit-scrollbar-thumb {
    background: #c5d5e6;
    border-radius: 4px;
}

/* 找回密码页面特定样式 */
.help-box {
    background: #f8f9fa;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #3c8ece;
    border-radius: 0 6px 6px 0;
}

.help-box strong {
    color: #2c3e50;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.help-box p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;
}

/* 新增的服务条款同意框样式 */
.terms-agree {
    margin-top: 20px;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-container label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.5;
}

.checkbox-container a {
    color: #3c8ece;
    text-decoration: none;
}

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

/* 新增的弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.3s;
}

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

.modal-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0;
    font-size: 16px;
    color: #495057;
}

.modal-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #e9ecef;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-btn.cancel {
    background-color: #f8f9fa;
    color: #6c757d;
    margin-right: 10px;
}

.modal-btn.cancel:hover {
    background-color: #e9ecef;
}

.modal-btn.confirm {
    background-color: #3c8ece;
    color: white;
}

.modal-btn.confirm:hover {
    background-color: #2b7ab8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .logo {
        height: 70px;
        width: 200px;
    }
    
    .header {
        padding: 30px 15px 15px;
    }
    
    .footer {
        padding: 18px 15px;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .captcha-img {
        width: 100%;
        height: 46px;
    }
    
    .modal-content {
        width: 95%;
        margin: 30% auto;
    }
    
    .modal-footer {
        text-align: center;
    }
}

/* 注册页面响应式调整 */
.register-page .form-group {
    margin-bottom: 22px;
}

.register-page .btn {
    margin-top: 20px;
}

/* 找回密码页面响应式调整 */
.getpwd-page .top-link {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 576px) {
    .getpwd-page .top-link {
        flex-direction: column;
        gap: 8px;
    }
    
    .getpwd-page .top-link a {
        display: block;
        width: 100%;
        text-align: center;
    }
}