/* assets/css/style.css - 完整样式文件 */

/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f7fa;
    font-family: 'Segoe UI', 'Quicksand', 'Poppins', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== 顶栏样式 ==================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}

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

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.logo-badge {
    background: #f0e6ff;
    color: #8B5CF6;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: #5a5a7a;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link span {
    font-size: 1rem;
}

.nav-link:hover {
    background: #f5f3ff;
    color: #8B5CF6;
}

.nav-link.active {
    background: #8B5CF6;
    color: white;
}

.admin-link {
    background: #fef2f2;
    color: #dc2626;
}

.admin-link:hover {
    background: #fee2e2;
    color: #dc2626;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-badge {
    background: #f5f7fa;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-item {
    color: #8B5CF6;
}

.theme-toggle {
    background: #f5f7fa;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: #e8ecf0;
    transform: scale(1.05);
}

/* ==================== 主体布局 ==================== */
.site-main {
    flex: 1;
    padding: 24px 24px 0;
}

.app-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
}

.left-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* 欢迎卡片 */
.welcome-card {
    background: linear-gradient(135deg, #f8f6ff, #f3f0ff);
    border-radius: 28px;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid #e9e4ff;
}

.welcome-text h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.welcome-text p {
    color: #6c6f93;
    font-size: 0.85rem;
}

.welcome-stats {
    display: flex;
    gap: 28px;
}

.welcome-stat {
    text-align: center;
}

.welcome-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B5CF6;
}

.welcome-stat .stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
}

/* 通用卡片 */
.card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: #ffffff;
    padding: 18px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #f0f2f5;
}

.badge {
    background: #f0e6ff;
    color: #8B5CF6;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 30px;
    margin-left: auto;
    font-weight: 500;
}

.card-body {
    padding: 24px;
}

.card-footer {
    background: #fafbfd;
    padding: 14px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #8B5CF6;
    border-top: 1px solid #f0f2f5;
    font-weight: 500;
}

/* 表单元素 */
textarea, input[type="text"], input[type="password"] {
    width: 100%;
    border: 2px solid #e8ecf0;
    border-radius: 24px;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
    resize: vertical;
    color: #1f2937;
}

textarea:focus, input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

textarea::placeholder, input::placeholder {
    color: #bbb;
    font-size: 0.85rem;
}

.action-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

/* 按钮样式 */
.btn-primary, .btn-success, .btn-catch {
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #8B5CF6;
    color: white;
}

.btn-primary:hover {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(139, 92, 246, 0.25);
}

.btn-success {
    background: #10B981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
}

.btn-catch {
    background: #6366F1;
    color: white;
}

.btn-catch:hover {
    background: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.25);
}

button:active, .btn-primary:active, .btn-success:active {
    transform: scale(0.98);
}

/* 漂流瓶消息气泡 */
.bottle-message {
    background: linear-gradient(135deg, #f8f6ff, #f3f0ff);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    gap: 14px;
    border: 1px solid #e9e4ff;
}

.bubble-icon {
    font-size: 32px;
}

.bubble-content {
    flex: 1;
    font-size: 0.95rem;
    color: #2d2a4a;
    line-height: 1.55;
}

.bubble-time {
    font-size: 0.7rem;
    color: #a19bcb;
    margin-top: 10px;
}

.empty-state {
    text-align: center;
    padding: 28px 20px;
}

.empty-emoji {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-state p {
    color: #8b8ba7;
    margin-bottom: 20px;
}

/* ==================== 聊天室样式 ==================== */
.chat-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: fit-content;
    position: sticky;
    top: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

.chat-header {
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    padding: 18px 22px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #34D399;
    border-radius: 50%;
    display: inline-block;
    margin-left: auto;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.online-text {
    font-size: 0.7rem;
    font-weight: normal;
    opacity: 0.9;
}

/* 聊天消息区域 */
.chat-messages {
    height: 420px;
    overflow-y: auto;
    background: #f8f9fc;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 自定义滚动条 */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #e8ecf0;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* 单条消息 - 确保文字可见 */
.chat-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #8B5CF6;
    transition: all 0.2s;
}

.chat-item:hover {
    background: #fefefe;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 用户名 - 保留用户选择的颜色 */
.chat-name {
    font-weight: 700;
    margin-right: 10px;
    font-size: 0.85rem;
}

/* 时间戳 - 灰色可见 */
.chat-time {
    font-size: 0.65rem;
    color: #9ca3af;
}

/* 消息内容 - 深灰色，确保白色背景下可见 */
.chat-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    word-break: break-word;
    line-height: 1.45;
}

/* 空状态提示 */
.chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* 聊天室表单 */
.chat-form {
    padding: 18px;
    border-top: 1px solid #edeff2;
    background: #ffffff;
}

.chat-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.chat-input-row input[type="text"]:first-child {
    flex: 1;
    padding: 12px 16px;
    border-radius: 40px;
    border: 1.5px solid #e8ecf0;
    font-size: 0.85rem;
    color: #1f2937;
}

.chat-input-row input[type="text"]:first-child::placeholder {
    color: #d1d5db;
}

.chat-input-row input[type="color"] {
    width: 48px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #e8ecf0;
    cursor: pointer;
    background: white;
    padding: 4px;
}

.btn-send {
    background: #8B5CF6;
    border: none;
    padding: 0 22px;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send:hover {
    background: #7C3AED;
    transform: scale(1.02);
}

.chat-footer {
    padding: 12px 18px;
    text-align: center;
    font-size: 0.7rem;
    color: #9ca3af;
    background: #fafbfc;
    border-top: 1px solid #edeff2;
}

/* ==================== 底栏样式 ==================== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #f0f2f5;
    margin-top: 48px;
    padding: 48px 0 24px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.footer-logo-icon {
    font-size: 28px;
}

.footer-desc {
    color: #6c6f93;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: #f5f7fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.social-link:hover {
    background: #8B5CF6;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #6c6f93;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #8B5CF6;
}

.footer-stats li {
    color: #6c6f93;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #f0f2f5;
    padding-top: 24px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.75rem;
}

.footer-icp a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-icp a:hover {
    color: #8B5CF6;
}

/* ==================== 提示浮层 ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 28px;
    border-radius: 60px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    animation: floatInOut 3s ease forwards;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.toast-success {
    background: #ECFDF5;
    color: #065F46;
    border-left: 6px solid #10B981;
}

.toast-error {
    background: #FEF2F2;
    color: #991B1B;
    border-left: 6px solid #EF4444;
}

.toast-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-left: 6px solid #3B82F6;
}

.toast-warning {
    background: #FFFBEB;
    color: #92400E;
    border-left: 6px solid #F59E0B;
}

@keyframes floatInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); visibility: hidden; }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 900px) {
    .site-main {
        padding: 16px;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chat-card {
        position: static;
    }
    
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-nav {
        justify-content: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .footer-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
    }
    
    .welcome-stats {
        justify-content: center;
    }
    
    .card-header {
        flex-wrap: wrap;
    }
}

/* ==================== 暗色模式 ==================== */
body.dark-mode {
    background: #1a1a2e;
}

body.dark-mode .site-header {
    background: rgba(30, 30, 50, 0.95);
    border-bottom-color: #3d3d5c;
}

body.dark-mode .site-footer,
body.dark-mode .card,
body.dark-mode .chat-card {
    background: #2d2d44;
    border-color: #3d3d5c;
}

body.dark-mode .card-header {
    background: #2d2d44;
    color: #e0e0e0;
    border-bottom-color: #3d3d5c;
}

body.dark-mode .card-footer,
body.dark-mode .chat-footer {
    background: #25253a;
    border-top-color: #3d3d5c;
    color: #a0a0c0;
}

body.dark-mode .card-body,
body.dark-mode .chat-messages,
body.dark-mode .chat-form {
    background: #2d2d44;
}

body.dark-mode .chat-messages {
    background: #1e1e2e;
}

body.dark-mode .chat-item {
    background: #3d3d5c;
    border-left-color: #a78bfa;
}

body.dark-mode .chat-item:hover {
    background: #45456a;
}

body.dark-mode .chat-text {
    color: #e2e8f0;
}

body.dark-mode .chat-time {
    color: #64748b;
}

body.dark-mode .chat-empty {
    color: #64748b;
}

body.dark-mode .nav-link {
    color: #b0b0d0;
}

body.dark-mode .nav-link:hover {
    background: #3d3d5c;
    color: #a78bfa;
}

body.dark-mode .nav-link.active {
    background: #8B5CF6;
    color: white;
}

body.dark-mode .admin-link {
    background: #3d1a1a;
    color: #f87171;
}

body.dark-mode .admin-link:hover {
    background: #4a2020;
}

body.dark-mode textarea,
body.dark-mode input[type="text"],
body.dark-mode input[type="password"] {
    background: #3d3d5c;
    border-color: #4d4d6c;
    color: #e5e7eb;
}

body.dark-mode textarea:focus,
body.dark-mode input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

body.dark-mode textarea::placeholder,
body.dark-mode input::placeholder {
    color: #7a7a9a;
}

body.dark-mode .welcome-card {
    background: linear-gradient(135deg, #252540, #2a2a48);
    border-color: #3d3d5c;
}

body.dark-mode .welcome-text h2 {
    color: #e0e0e0;
}

body.dark-mode .welcome-text p {
    color: #a0a0c0;
}

body.dark-mode .stats-badge {
    background: #25253a;
    color: #a0a0c0;
}

body.dark-mode .theme-toggle {
    background: #25253a;
    color: #e0e0e0;
}

body.dark-mode .theme-toggle:hover {
    background: #353550;
}

body.dark-mode .footer-logo {
    color: #e0e0e0;
}

body.dark-mode .footer-col h4 {
    color: #e0e0e0;
}

body.dark-mode .footer-col ul li a,
body.dark-mode .footer-desc,
body.dark-mode .footer-stats li {
    color: #a0a0c0;
}

body.dark-mode .social-link {
    background: #25253a;
}

body.dark-mode .bottle-message {
    background: linear-gradient(135deg, #252540, #2a2a48);
    border-color: #3d3d5c;
}

body.dark-mode .bubble-content {
    color: #d0d0e0;
}

body.dark-mode .bubble-time {
    color: #8a8aaa;
}

body.dark-mode .badge {
    background: #3d3d5c;
    color: #a78bfa;
}

body.dark-mode .chat-input-row input[type="text"]:first-child {
    background: #3d3d5c;
    border-color: #4d4d6c;
    color: #e5e7eb;
}

body.dark-mode .chat-input-row input[type="text"]:first-child::placeholder {
    color: #7a7a9a;
}

body.dark-mode .chat-input-row input[type="color"] {
    background: #3d3d5c;
    border-color: #4d4d6c;
}

body.dark-mode .btn-send {
    background: #8B5CF6;
}

body.dark-mode .btn-send:hover {
    background: #7C3AED;
}

/* ==================== 辅助样式 ==================== */
.card-footer strong {
    color: #8B5CF6;
    font-size: 1.1rem;
}

textarea:focus, input:focus {
    transform: scale(1.01);
}

/* 全局滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #2d2d44;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #4d4d6c;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #5d5d7c;
}

/* 添加到 assets/css/style.css 末尾 - 汉堡菜单样式 */

/* ==================== 汉堡菜单样式 ==================== */

/* 汉堡菜单按钮 - 默认移动端显示，桌面端隐藏 */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: #5a5a7a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 汉堡菜单动画 - 打开状态 */
.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* 桌面端导航 - 默认显示 */
.desktop-nav {
    display: flex;
}

/* 移动端菜单遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* 移动端侧边抽屉菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 201;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

/* 暗色模式下的移动菜单 */
body.dark-mode .mobile-menu {
    background: #2d2d44;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f2f5;
}

body.dark-mode .mobile-menu-header {
    border-bottom-color: #3d3d5c;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

body.dark-mode .mobile-menu-logo {
    color: #e0e0e0;
}

.mobile-menu-logo .logo-icon {
    font-size: 28px;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f7fa;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a5a7a;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: #e8ecf0;
}

body.dark-mode .mobile-menu-close {
    background: #3d3d5c;
    color: #b0b0d0;
}

/* 移动端导航链接 */
.mobile-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    text-decoration: none;
    color: #5a5a7a;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background: #f5f3ff;
    color: #8B5CF6;
}

.mobile-nav-link.active {
    background: #f5f3ff;
    color: #8B5CF6;
    border-left-color: #8B5CF6;
}

.mobile-nav-link span {
    font-size: 1.2rem;
}

.mobile-nav-link.admin-link {
    background: #fef2f2;
    color: #dc2626;
}

.mobile-nav-link.admin-link:hover {
    background: #fee2e2;
}

body.dark-mode .mobile-nav-link {
    color: #b0b0d0;
}

body.dark-mode .mobile-nav-link:hover,
body.dark-mode .mobile-nav-link.active {
    background: #3d3d5c;
    color: #a78bfa;
}

body.dark-mode .mobile-nav-link.admin-link {
    background: #3d1a1a;
    color: #f87171;
}

/* 移动端菜单底部 */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #f0f2f5;
}

body.dark-mode .mobile-menu-footer {
    border-top-color: #3d3d5c;
}

.mobile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #6c6f93;
}

body.dark-mode .mobile-stats {
    color: #a0a0c0;
}

.mobile-theme {
    text-align: center;
}

.mobile-theme-toggle {
    background: #f5f7fa;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #5a5a7a;
    transition: all 0.2s;
    width: 100%;
}

.mobile-theme-toggle:hover {
    background: #e8ecf0;
}

body.dark-mode .mobile-theme-toggle {
    background: #3d3d5c;
    color: #b0b0d0;
}

/* 响应式：移动端隐藏桌面导航，显示汉堡按钮 */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .stats-badge {
        display: none;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .mobile-menu {
        width: 260px;
    }
    
    .mobile-nav-link {
        padding: 12px 20px;
    }
}