/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #0f172a; /* 深蓝色背景 */
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
}

.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #1e293b;
}

.page-content {
    flex: 1;
    display: flex;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

/* 设置模式样式 */
.container.settings-mode .chat {
    display: none;
}

.container.settings-mode .contacts {
    flex: 1;
    width: auto;
    max-width: none; /* 移除最大宽度限制 */
    margin: 0 auto;
}

/* 左侧菜单 */
.menu {
    width: 240px;
    min-width: 240px;
    background-color: #111827;
    border-right: 1px solid #334155;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* 菜单头像区域样式 */
.menu-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.menu-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.menu-avatar .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.menu-avatar .user-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    padding: 2px 8px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 12px;
}

.menu-avatar .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981; /* 在线状态颜色 */
}

.menu-avatar .status-indicator.offline {
    background-color: #94a3b8; /* 离线状态颜色 */
}

/* 头像容器样式 */
.avatar-container {
    padding: 30px 30px 0;
    margin-bottom: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    margin-bottom: 12px;
}

.profile-avatar:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

/* 用户状态样式 */
.user-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    padding: 4px 12px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    margin-top: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981; /* 在线状态颜色 */
}

.status-indicator.offline {
    background-color: #94a3b8; /* 离线状态颜色 */
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    margin-top: 8px;
    text-align: center;
}

.login-placeholder {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.login-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.login-placeholder:hover::before {
    left: 100%;
}

.login-placeholder svg {
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.login-placeholder:hover svg {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.login-placeholder span {
    font-size: 15px;
    font-weight: 500;
}

/* 头像框提示 */
.avatar-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6366F1;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.avatar-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #6366F1 transparent;
}

.avatar-container:hover .avatar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

/* 空头像框样式 */
.empty-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px dashed #6366F1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.empty-avatar svg {
    width: 32px;
    height: 32px;
    color: #6366F1;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.avatar-container:hover .empty-avatar {
    border-color: #818cf8;
    background-color: rgba(99, 102, 241, 0.2);
    transform: scale(1.05);
}

.avatar-container:hover .empty-avatar svg {
    color: #818cf8;
    opacity: 1;
    transform: scale(1.1);
}

/* 菜单项样式 */
.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.menu-items li {
    padding: 14px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #9CA3AF;
    position: relative;
    transition: all 0.3s ease;
}

.menu-items li:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-items li.active {
    color: #ffffff;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
}

.menu-items li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #6366F1;
}

.menu-items li svg {
    width: 22px;
    height: 22px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.menu-items li:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

.menu-items li span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* 退出按钮 */
.menu-footer {
    padding: 0 30px;
    margin-top: 20px;
}

.logout-btn {
    width: 100%;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.logout-btn:hover svg {
    color: #EF4444;
    transform: translateX(2px);
}

.logout-btn svg {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.logout-btn span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* 分割线 */
.menu-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    margin: 20px 30px;
}

/* 联系人列表 */
.contacts {
    width: 280px;
    min-width: 280px;
    background-color: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contacts-header {
    padding: 16px 20px;
    border-bottom: 1px solid #334155;
}

.contacts-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

/* 操作栏 */
.action-bar {
    display: none;
}

.action-btn {
    padding: 8px 12px;
    background-color: #263548;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #2d3748;
    border-color: #3b82f6;
}

.action-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.contact-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* 自定义滚动条样式 */
.contact-list::-webkit-scrollbar {
    width: 6px;
}

.contact-list::-webkit-scrollbar-track {
    background: #1e293b;
}

.contact-list::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 3px;
}

.contact-list::-webkit-scrollbar-thumb:hover {
    background-color: #6b7280;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}

.contact-item:hover {
    background-color: #2d3748;
}

.contact-item.active {
    background-color: #2d3748;
}

.contact-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.contact-name {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-status {
    font-size: 12px;
    color: #94a3b8;
}

.ai-indicator {
    background: linear-gradient(135deg, #6366F1, #3b82f6);
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* 多选相关样式 */
.multi-select-bar {
    display: none;
}

.multi-select-bar.active {
    transform: translateY(0);
}

.multi-select-bar button {
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.multi-select-bar button:hover {
    background-color: #2563eb;
}

.multi-select-bar .cancel-btn {
    background-color: #475569;
    margin-right: 10px;
}

.multi-select-bar .cancel-btn:hover {
    background-color: #64748b;
}

.contact-checkbox {
    display: none;
}

.contact-item.selectable {
    padding-left: 15px;
}

.contact-item.selected {
    background-color: #2d3748;
}

.select-mode-btn {
    display: none;
}

/* 聊天区域 */
.chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #1a1f2e;
    height: 100%;
    overflow: hidden;
}

.chat-header {
    padding: 16px 20px;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-title h2 {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
}

/* AI助手标签样式 */
.ai-enabled-tag {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    border-radius: 4px;
}

/* AI指示器样式 */
.ai-indicator {
    font-size: 11px;
    color: #6366F1;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 聊天输入框容器样式 */
.chat-input-container {
    padding: 16px 20px;
    background-color: #1e293b;
    border-top: 1px solid #334155;
    display: flex;
    gap: 12px;
}

/* 右键菜单样式 */
.context-menu {
    position: fixed;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.2s;
}

.context-menu-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.context-menu-item.danger {
    color: #ef4444;
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.divider {
    height: 1px;
    background: #334155;
    margin: 4px 0;
}

/* 聊天消息样式 */
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-received {
    align-self: flex-start;
    background-color: #2d3748;
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.message-sent {
    align-self: flex-end;
    background-color: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
}

/* 聊天区域空状态 */
.chat-empty {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-size: 15px;
    height: 100%;
}

.chat-input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid #475569;
    background-color: #2d3748;
    color: #e2e8f0;
    font-size: 14px;
    resize: none;
    height: 40px;
    min-height: 40px;
    max-height: 120px;
}

.chat-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3b82f6;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: #2563eb;
}

/* 设置页面样式 */
.settings-page {
    width: 100%;
    height: 100%;
    padding: 40px;
    background-color: #1a1f2e;
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.settings-panel {
    width: 100%;
    max-width: 800px;
    background-color: #1e293b;
    border-radius: 12px;
    padding: 32px;
    margin: 0 auto;
    align-self: flex-start;
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
}

/* 表单元素样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background-color: #2d3748;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #6366F1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    background-color: #2d3748;
    border: 1px solid #475569;
    border-radius: 4px;
    cursor: pointer;
}

/* 自动回复规则样式 */
.auto-reply-rule {
    background-color: #2d3748;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rule-header h4 {
    color: #e2e8f0;
    font-size: 16px;
    margin: 0;
}

/* 下拉选择框样式 */
.form-select {
    width: 100%;
    padding: 10px 12px;
    background-color: #2d3748;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #6366F1;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #4F46E5;
}

.btn-secondary {
    background-color: #2d3748;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    background-color: #374151;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

/* 设置页脚样式 */
.settings-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 美化滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
        height: 95vh;
    }
}

@media (max-width: 992px) {
    .contacts {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .container.settings-mode .contacts {
        width: calc(100% - 80px);
    }
    
    .contacts {
        width: 280px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .menu {
        width: 60px;
    }
    
    .contacts {
        width: 240px;
    }
    
    .container.settings-mode .contacts {
        width: calc(100% - 60px);
    }
}

/* 添加页面内容样式 */
.page-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: #1a1f2e;
}

/* 左侧菜单 */
.menu {
    width: 240px;
    min-width: 240px;
    background-color: #111827;
    border-right: 1px solid #334155;
}

/* 好友页面布局 */
.friends-page {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 聊天区域 */
.chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #1a1f2e;
}

/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 聊天输入框容器 */
.chat-input-container {
    padding: 20px;
    border-top: 1px solid #334155;
    background-color: #1e293b;
    display: flex;
    gap: 12px;
}

/* AI状态标记 */
.ai-status {
    display: flex;
    align-items: center;
}

.ai-enabled-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.ai-enabled-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #6366F1;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* AI徽章样式 */
.ai-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6366F1;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
}

/* 添加科技感元素 */
.container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

/* 添加字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* AI 标记样式 */
.ai-tag {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
    border-radius: 4px;
}

.contact-name-row {
    display: flex;
    align-items: center;
}

.ai-indicator {
    font-size: 12px;
    color: #3b82f6;
    font-weight: normal;
    margin-left: 8px;
}

/* 输入指示器 */
.typing-indicator {
    padding: 10px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    margin: 10px 0;
    color: #3b82f6;
    font-size: 13px;
    text-align: center;
}

/* 聊天开始提示 */
.chat-start {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* 加载消息提示 */
.loading-messages {
    text-align: center;
    padding: 15px;
    color: #94a3b8;
    font-size: 14px;
}

/* 登录弹窗样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-card {
    background-color: #1e293b;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 320px;
    padding: 30px;
    text-align: center;
}

.login-header {
    margin-bottom: 20px;
}

.login-header h2 {
    color: #e2e8f0;
    margin-bottom: 8px;
    font-size: 24px;
}

.login-header p {
    color: #94a3b8;
    font-size: 14px;
}

.qrcode-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.qrcode-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qrcode-loading, .qrcode-scanned, .qrcode-success, .qrcode-expired {
    text-align: center;
    padding: 20px;
}

.qrcode-loading p, .qrcode-scanned p, .qrcode-success p, .qrcode-expired p {
    margin-top: 10px;
    color: #1e293b;
    font-size: 14px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #3b82f6;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-footer {
    color: #94a3b8;
    font-size: 13px;
}

.login-footer a {
    color: #3b82f6;
    text-decoration: none;
    margin-left: 10px;
}

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

/* 登录提示样式 */
.login-reminder {
    background-color: #3b82f6;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.login-reminder a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 5px;
}

.close-reminder {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录操作按钮 */
.login-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.skip-login {
    color: #94a3b8 !important;
}

.skip-login:hover {
    color: #e2e8f0 !important;
}

/* 修改未登录时头像占位符的样式 */
.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(148, 163, 184, 0.2);
}

.avatar-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

.avatar-placeholder:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

.menu-avatar:not(.logged-in) {
    opacity: 0.8;
}

.menu-avatar:not(.logged-in):hover {
    opacity: 1;
}

.menu-avatar:not(.logged-in) .user-name {
    color: #94a3b8;
    font-size: 13px;
}

.menu-avatar:not(.logged-in):hover .user-name {
    color: #3b82f6;
} 