/* 官网登录弹窗样式 */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.login-modal-overlay.active {
    display: flex;
}
.login-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.login-modal-header h3 {
    margin: 0 0 8px;
    color: #333;
}
.login-modal-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}
.login-modal-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}
.login-modal-tab.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    margin-bottom: -2px;
}
.login-modal-content {
    display: none;
}
.login-modal-content.active {
    display: block;
}
.login-input-group {
    margin-bottom: 16px;
}
.login-input-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}
.login-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.login-input-group input:focus {
    outline: none;
    border-color: #007bff;
}
.sms-input-group {
    display: flex;
    gap: 10px;
}
.sms-input-group input {
    flex: 1;
}
.sms-input-group button {
    padding: 12px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}
.sms-input-group button:disabled {
    background: #ccc;
}
.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
}
.login-submit-btn:hover {
    background: #0056b3;
}
.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}
.wechat-qr-container {
    text-align: center;
    padding: 20px 0;
}
.wechat-qr-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.qr-hint {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}
.loading-text {
    text-align: center;
    padding: 60px 0;
    color: #999;
}
.login-footer-links {
    text-align: center;
    margin-top: 16px;
}
.login-footer-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}
.login-footer-links a:hover {
    text-decoration: underline;
}
/* 用户区域 */
.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.user-name {
    color: #333;
    font-weight: 500;
}
.logout-link {
    color: #999;
    font-size: 14px;
    cursor: pointer;
}
.logout-link:hover {
    color: #666;
}
/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}
.user-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}
.user-dropdown:hover .user-dropdown-content {
    display: block;
}
.user-dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.user-dropdown-content a:hover {
    background: #f5f5f5;
}
/* 个人中心页面 */
.profile-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.profile-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.profile-name {
    font-size: 24px;
    margin-bottom: 8px;
}
.profile-role {
    opacity: 0.8;
    font-size: 14px;
}
.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.profile-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.profile-card h3 {
    margin: 0 0 16px;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.profile-item:last-child {
    border-bottom: none;
}
.profile-item-label {
    color: #666;
}
.profile-item-value {
    color: #333;
    font-weight: 500;
}
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
}
