.modal-overlay {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 999; /* 确保在弹窗下方 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;  /* 原800px */
    height: 400px; /* 原500px */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.modal-content {
    display: flex;
    background-color: #fff;
    width: 100%; /* 弹窗内容宽度 */
    height: 100%; /* 弹窗内容高度 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1001; /* 确保内容在模态框背景之上 */
}
.modal-left {
    flex: 1;
    background: linear-gradient(to bottom, rgba(5, 117, 230, 1), rgba(0, 242, 96, 0.5)), 
                url('/usr/themes/tb-theme/img/login-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}


.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.description {
    margin-top: 20px;
}

.slogan {
    font-size: 14px;
    line-height: 1.6;
    color: #f0f0f0;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.1em;
}

.modal-left .logo img {
    max-width: 80px;
    margin-bottom: 20px;
}

.modal-left .description h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.modal-left .description p {
    font-size: 14px;
    line-height: 1.6;
}

.modal-right {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff; /* 天蓝色背景 */
    position: relative;
    overflow: hidden;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
    border-bottom: 1px solid #ddd; /* 为整个 tabs 添加底部边框 */
}

.tab-link {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    background-color: transparent; /* 去掉背景色 */
    border: none; /* 去掉默认按钮边框 */
    outline: none;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent; /* 默认无底线 */
}

.tab-link.active {
    color: #009FFF; /* 激活状态文字颜色 */
    border-bottom: 3px solid #009FFF; /* 激活状态蓝色底线 */
}
.tab-link:hover {
    color: #007bff; /* 悬停时文字颜色 */
}
.tab-content {
    flex: 1;
    padding: 5px 0; /* 减少内边距 */
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-group {
    margin-bottom: 12px;
    position: relative; /* 新增相对定位 */
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 8px;
    height: 38px; /* 新增固定高度 */
    line-height: 1.5;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #009FFF;
    outline: none;
}
/* 按钮间距调整 */
.form-actions {
    /* margin-top: 15px; 原默认更大 */
    margin-top: 25px; /* 原15px */
}
.input-group {
    display: flex;
    position: relative;
    align-items: center;
    margin-bottom: 0;
}

.input-group input {
    flex: 1;
    height: 36px; /* 微调高度 */
}
/* 注册表单按钮单独调整 */
#registerForm .form-actions {
    margin-top: 30px;
}
/* .pw-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
    color: #007bff;
} */
.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    color: #007bff;
}
.btn-primary {
    background-color: #009FFF;
    color: #fff;
    border: none;
    padding: 8px 15px;
    height: 38px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-top: 10px;
}

.options a {
    color: #007bff;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* 错误提示文字样式 */
.error-message {
    display: none; /* 默认隐藏 */
    color: #ff4d4f; /* 红色文字 */
    position: absolute; /* 改为绝对定位 */
    bottom: -18px; /* 距离输入框底部定位 */
    right: 0;
    left: auto !important; /* 覆盖原有左侧定位 */
    margin-top: 0; /* 移除原margin-top */
    line-height: 1.2; /* 紧凑行高 */
    height: 16px; /* 固定高度 */
    font-size: 11px; /* 缩小字号 */
    text-align: right;
    padding-right: 5px; /* 右侧留出间距 */
}

/* 用户名邮箱重复注册校验 */
/* 输入框校验失败时的高亮样式 */
input.invalid {
    border-color: #ff4d4f; /* 红色边框 */
}

/* 错误提示文字样式 */
.error-message {
    color: #ff4d4f; /* 红色文字 */
    font-size: 12px;
    margin-top: 5px;
    display: none; /* 默认隐藏 */
}
@media (max-width: 768px) {
    .modal {
        width: 95% !important;
        height: auto !important;
        min-height: 300px;
    }
    .modal-content {
        flex-direction: column;
    }
    .modal-left {
        padding: 20px 15px;
    }
}
/* 保持错误提示可见性 */
input.invalid + .error-message {
    display: block !important;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 添加密码切换按钮样式 */
.pw-toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        padding: 0;
        z-index: 2;
    }
    .input-group {
        position: relative;
    }
        /* 调整成功提示样式 */
.alert-micro {
    padding: 8px 12px !important;
    font-size: 11px !important;
    margin: 10px 0 !important;
    line-height: 1.4;
    border-width: 1px;
    border-radius: 3px;
    max-width: 215px;
}
/* 添加按钮状态样式 */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-error {
    background-color: #ff4757 !important;
    animation: shake 0.5s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
}
.fa-spinner {
    margin-right: 8px;
}
/* 忘记密码弹窗样式 */
#forgotModal .modal.compact {
    width: 480px;
    max-width: 90%;
    height: auto;
    min-height: 320px;
}

.alert-micro {
    padding: 8px 12px;
    font-size: 13px;
    margin: 10px 0;
    line-height: 1.4;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
/* 忘记密码弹窗样式 - 独立命名空间 */
#forgotModal .modal-content {
    display: flex;
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.forgot-modal-left {
    flex: 1;
    background: linear-gradient(to bottom, rgba(5, 117, 230, 1), rgba(0, 242, 96, 0.5)), 
                url('/usr/themes/tb-theme/img/login-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.forgot-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.forgot-logo {
    max-width: 60px;
    margin-right: 10px;
}

.forgot-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.forgot-description {
    margin-top: 20px;
}

.forgot-slogan {
    font-size: 14px;
    line-height: 1.6;
    color: #f0f0f0;
    text-align: center;
    margin-top: 10px;
}

.forgot-modal-right {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    position: relative;
}

.forgot-modal-title {
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.forgot-form-group {
    margin-bottom: 12px;
    position: relative;
}

.forgot-form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.forgot-form-group input {
    width: 100%;
    padding: 8px;
    height: 38px;
    line-height: 1.5;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.forgot-form-group input:focus {
    border-color: #009FFF;
    outline: none;
}

.forgot-form-actions {
    margin-top: 25px;
}

.forgot-btn-primary {
    background-color: #009FFF;
    color: #fff;
    border: none;
    padding: 8px 15px;
    height: 38px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.forgot-btn-primary:hover {
    background-color: #0056b3;
}

.forgot-text-center {
    text-align: center;
}

.forgot-mt-15 {
    margin-top: 15px;
}

.forgot-back-to-login {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.forgot-back-to-login:hover {
    text-decoration: underline;
}

.forgot-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.forgot-error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    position: absolute;
    bottom: -18px;
    right: 0;
    text-align: right;
    padding-right: 5px;
}

/* 错误状态 */
input.forgot-invalid {
    border-color: #ff4d4f;
}

input.forgot-invalid + .forgot-error-message {
    display: block !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #forgotModal .modal-content {
        flex-direction: column;
    }
    .forgot-modal-left {
        padding: 20px 15px;
    }
}


/* 移动用户信息栏到导航菜单行 */
.user-info-bar {
    position: relative;
    display: flex;
    align-items: center;
    padding: 5px 0;
    vertical-align: middle;
    top: 0;
    right: 0;
    margin-left: 15px;
    font-size: 15px;
    color: #999;
    z-index: 1000;
}


/* 调整header容器样式 */
.header .container {
    display: flex;
    align-items: center; /* 垂直居中 */
    flex-wrap: wrap; /* 允许换行 */
    position: relative;
    padding: 10px 0; /* 增加垂直内边距 */
}

/* 调整logo和brand */


.brand {
    font-size: 14px;
    margin-left: 10px;
    color: #666;
    line-height: 1.2;
    max-height: 40px;
    overflow: hidden;
}

/* 调整导航菜单 */
.site-navbar {
    display: flex;
    align-items: center;
    margin: 0;
    margin-left:auto;
    margin-right: 15px;
    padding: 0;
    flex-grow: 1; /* 占据剩余空间 */
    justify-content: flex-end; /* 水平居中 */
    flex-wrap: wrap;
}

.site-navbar > li {
    list-style: none;
    margin: 0 8px; /* 调整菜单项间距 */
    padding: 5px 0;
    position: relative;
}

.site-navbar > li > a {
    display: block;
    padding: 8px 12px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap; /* 防止文字换行 */
}

.site-navbar > li > a:hover {
    background-color: #f5f5f5;
}

.site-navbar > li > a i {
    margin-right: 5px;
}

/* 调整搜索按钮 */
.navto-search a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #666;
    font-size: 16px;
    transition: all 0.3s;
}

.navto-search a:hover {
    background: #e0e0e0;
    color: #333;
}

/* 调整用户信息栏 */
.user-info-container {
    margin-left: auto; /* 移动到最右侧 */
}


.user-info-bar a, .user-info-bar span {
    padding: 5px 3px;
    white-space: nowrap;
}

.user-info-bar .welcome-message {
    font-size: 13px;
    color: #666;
}

.user-info-bar .vip-link {
    color: #e67e22;
    font-weight: bold;
}

.user-info-bar .sep {
    color: #ddd;
    padding: 0 2px;
}

    
/* .user-info-bar a {
    color: #333;
    text-decoration: none;
}

.user-info-bar a:hover {
    text-decoration: underline;
}

/* 分隔线样式 */
.user-info-bar .sep {
    margin: 0 5px;
    color: #ccc;
}

/* VIP链接特殊样式 */
/* .user-info-bar .vip-link {
    color: #e67e22;
    font-weight: bold;
}  */

/* 移动端菜单图标 */
.m-icon-nav {
    display: none; /* 默认隐藏 */
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .site-navbar {
        justify-content: flex-start;
    }
    
    .user-info-container {
        margin-left: 0;
        order: 3;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo, .brand {
        margin-bottom: 10px;
    }
    
    .site-navbar {
        width: 100%;
        justify-content: flex-start;
    }
    
    .m-icon-nav {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

/* 模态框样式保持不变 */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

     