
        /* 基础样式 */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        .app-wrapper {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
        .app-header {
            background: #fff;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .container {
            max-width: 1366px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .header-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
        }
        
        /* Logo */
        .logo a {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: #1a1a2e;
            font-size: 22px;
            font-weight: 600;
        }
        
        .logo img {
            height: 32px;
        }
        
        /* 主导航 */
        .main-nav {
            flex: 1;
            display: flex;
            justify-content: flex-end;
        }
        
        .nav-list {
            display: flex;
            align-items: center;
            gap: 8px;
            list-style: none;
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            color: #1a1a2e;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.2s;
            font-weight: 500;
        }
        
        .nav-link:hover {
            background: #f5f7fa;
            color: #667eea;
        }
        
        /* 用户头像样式 - 参照个人中心 */
        .user-link {
            padding: 4px 12px 4px 8px;
            background: #f8fafc;
            border-radius: 40px;
        }
        
        .user-link:hover {
            background: #eef2ff;
        }
        
        .user-avatar-small {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 15px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(102,126,234,0.3);
        }
        
        .user-avatar-small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .user-name-text {
            font-weight: 500;
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .role-badge {
            font-size: 10px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 20px;
        }
        
        .role-badge.admin {
            background: linear-gradient(135deg, #ff4d4f, #ff7875);
            color: #fff;
        }
        
        .role-badge.svip {
            background: linear-gradient(135deg, #722ed1, #b37feb);
            color: #fff;
        }
        
        .role-badge.vip {
            background: linear-gradient(135deg, #faad14, #ffc53d);
            color: #fff;
        }
        
        .role-badge.normal {
            background: #f0f0f0;
            color: #666;
        }
        
        .dropdown-arrow {
            font-size: 10px;
            color: #999;
            margin-left: 4px;
            transition: transform 0.2s;
        }
        
        .user-link:hover .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        /* 下拉菜单 - 电脑版竖向菜单 */
        .dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.12);
            min-width: 260px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s;
            list-style: none;
            padding: 8px 0;
            border: 1px solid rgba(0,0,0,0.06);
        }
        
        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-header {
            padding: 16px 16px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .dropdown-header span:first-child {
            font-weight: 600;
            color: #1a1a2e;
        }
        
        .dropdown-divider {
            height: 1px;
            background: #f0f0f0;
            margin: 8px 0;
        }
        
        .dropdown-menu li {
            margin: 0;
        }
        
        .dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 20px;
            color: #333;
            text-decoration: none;
            transition: all 0.2s;
            font-size: 14px;
        }
        
        .dropdown-menu a:hover {
            background: #f8fafc;
            color: #667eea;
        }
        
        .menu-icon {
            width: 24px;
            text-align: center;
            font-size: 18px;
        }
        
        .menu-text {
            flex: 1;
        }
        
        /* 身份切换区域 */
        .role-switch-section {
            background: #fafbfc;
        }
        
        .role-switch-header {
            padding: 8px 20px;
            font-size: 11px;
            font-weight: 600;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .role-switch-link {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        
        .role-switch-link .role-info {
            flex: 1;
        }
        
        .role-switch-link .role-name {
            font-weight: 500;
            font-size: 14px;
        }
        
        .role-switch-link .role-desc {
            font-size: 11px;
            color: #999;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 140px;
        }
        
        .switch-badge {
            font-size: 10px;
            padding: 2px 8px;
            background: #667eea;
            color: #fff;
            border-radius: 20px;
        }
        
        .logout-link {
            color: #ff4d4f !important;
        }
        
        .logout-link:hover {
            background: #fff2f0 !important;
            color: #ff4d4f !important;
        }
        
        /* 管理员入口特殊样式 */
        .admin-nav .nav-link {
            background: linear-gradient(135deg, #667eea10, #764ba210);
            color: #667eea;
        }
        
        .admin-nav .nav-link:hover {
            background: linear-gradient(135deg, #667eea20, #764ba220);
        }
        
        /* 注册按钮 */
        .btn-register {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff !important;
            border-radius: 24px;
            padding: 8px 20px !important;
        }
        
        .btn-register:hover {
            opacity: 0.9;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102,126,234,0.3);
        }
        
        /* 移动端菜单 */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: center;
            gap: 4px;
            width: 44px;
            height: 44px;
            padding: 8px;
            background: none;
            border: none;
            cursor: pointer;
        }
        
        .mobile-menu-toggle span {
            width: 100%;
            height: 2px;
            background: #1a1a2e;
            border-radius: 2px;
            transition: all 0.2s;
        }
        
        .mobile-menu {
            position: fixed;
            top: 0;
            left: -280px;
            width: 280px;
            height: 100vh;
            background: #fff;
            box-shadow: 4px 0 20px rgba(0,0,0,0.1);
            z-index: 1001;
            transition: left 0.3s;
            overflow-y: auto;
        }
        
        .mobile-menu.active {
            left: 0;
        }
        
        .mobile-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .mobile-menu-header span {
            font-size: 18px;
            font-weight: 600;
            color: #1a1a2e;
        }
        
        .mobile-menu-close {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: #f5f7fa;
            border: none;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .mobile-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.4);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .mobile-nav-list {
            list-style: none;
            padding: 12px 0;
        }
        
        .mobile-nav-list li {
            margin: 0;
        }
        
        .mobile-nav-list a {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 14px 20px;
            color: #1a1a2e;
            text-decoration: none;
            font-weight: 500;
            transition: background 0.2s;
        }
        
        .mobile-nav-list a:hover {
            background: #f5f7fa;
        }
        
        .mobile-nav-list .nav-icon {
            width: 24px;
            font-size: 18px;
            text-align: center;
        }
        
        .mobile-divider {
            height: 1px;
            background: #f0f0f0;
            margin: 12px 0;
        }
        
        .mobile-section-title {
            padding: 8px 20px;
            font-size: 11px;
            font-weight: 600;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* 维护提示栏 */
        .maintenance-bar {
            background: #f39c12;
            color: #fff;
            text-align: center;
            padding: 6px;
            font-size: 13px;
        }
        
        .app-main {
            flex: 1;
        }
        
        
        /* 下载弹窗卡片样式 */
.download-menu {
    position: relative;
}

.download-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 35px -8px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.download-menu:hover .download-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-popup-inner {
    padding: 12px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.download-item:hover {
    background: #f5f7fa;
}

.download-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.download-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.download-btn {
    background: #f1f5f9;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: #667eea;
    transition: all 0.2s;
    flex-shrink: 0;
}

.download-item:hover .download-btn {
    background: #667eea;
    color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .download-popup {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    
    .download-menu:hover .download-popup {
        transform: translateY(0);
    }
    
    .download-popup-inner {
        padding: 16px;
    }
}
        
        /* 响应式 */
        @media (max-width: 768px) {
            .app-header {
                display: none !important;
            }
            .container {
                padding: 0 16px;
            }
            
            .main-nav .nav-list {
                display: none;
            }
            
            .mobile-menu-toggle {
                display: flex;
            }
            
            .user-name-text {
                display: none;
            }
            
            .role-badge {
                display: none;
            }
            
            .dropdown-arrow {
                display: none;
            }
            
            .user-link {
                padding: 4px;
                background: none;
            }
            
            .user-link:hover {
                background: none;
            }
        }
