/* 从 index.html 提取的大块内联 CSS */
/* --- block 1 --- */

        .announcement-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .announcement-modal.show {
            opacity: 1;
            pointer-events: auto;
        }
        
        .announcement-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }
        
        .announcement-modal-content {
            position: relative;
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            animation: modalFadeIn 0.3s ease-out;
        }
        
        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        
        .announcement-close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.05);
            border: none;
            color: #6b7280;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
            z-index: 10;
        }
        
        .announcement-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: #374151;
            transform: rotate(90deg);
        }
        
        .announcement-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 3rem 2rem 2rem;
        }
        
        .announcement-content {
            font-size: 1rem;
            line-height: 1.6;
            color: #374151;
        }
        
        .announcement-content h1, .announcement-content h2, 
        .announcement-content h3, .announcement-content h4 {
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .announcement-content p {
            margin-bottom: 1rem;
        }
        
        .announcement-content ul, .announcement-content ol {
            margin-left: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .announcement-content a {
            color: #667eea;
            text-decoration: none;
        }
        
        .announcement-content a:hover {
            text-decoration: underline;
        }
        
        .announcement-modal-footer {
            padding: 1.5rem;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: center;
        }
        
        .btn {
            padding: 0.75rem 2rem;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #ffd700, #ffb347);
            color: #5c4a00;
            border: 2px solid #ffc125;
            padding: 0.9rem 2.5rem;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 
                0 4px 15px rgba(255, 215, 0, 0.3),
                inset 0 -2px 5px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary::after {
            content: '🍌';
            margin-left: 0.3rem;
            font-size: 1.1rem;
        }
        
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .btn-primary:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .btn-primary:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 
                0 8px 25px rgba(255, 215, 0, 0.4),
                inset 0 -2px 8px rgba(0, 0, 0, 0.15);
            background: linear-gradient(135deg, #ffed4e, #ffd700);
        }
        
        .btn-primary:active {
            transform: translateY(-1px) scale(1.02);
        }
        
        @media (max-width: 768px) {
            .announcement-modal-content {
                width: 95%;
                max-height: 90vh;
            }
            
            .announcement-modal-body {
                padding: 2.5rem 1.5rem 1.5rem;
            }
        }
    
/* --- block 3 --- */

        .support-ticket-reply-modal {
            position: fixed;
            inset: 0;
            z-index: 10030;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .support-ticket-reply-modal.show {
            display: flex;
        }

        .support-ticket-reply-overlay {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.62);
            backdrop-filter: blur(6px);
        }

        .support-ticket-reply-dialog {
            position: relative;
            width: min(92vw, 640px);
            max-height: 86vh;
            overflow: hidden;
            border-radius: 22px;
            background: #fff;
            box-shadow: 0 26px 80px rgba(15, 23, 42, 0.24);
            animation: supportTicketReplyFadeIn 0.28s ease-out;
        }

        @keyframes supportTicketReplyFadeIn {
            from {
                opacity: 0;
                transform: translateY(14px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .support-ticket-reply-header {
            padding: 22px 24px 14px;
            background: linear-gradient(135deg, #2563eb, #4f46e5);
            color: #fff;
        }

        .support-ticket-reply-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 22px;
            font-weight: 700;
        }

        .support-ticket-reply-subtitle {
            margin-top: 8px;
            font-size: 13px;
            opacity: 0.9;
        }

        .support-ticket-reply-body {
            padding: 22px 24px 18px;
            max-height: calc(86vh - 160px);
            overflow-y: auto;
        }

        .support-ticket-reply-meta {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 18px;
        }

        .support-ticket-reply-meta-item {
            padding: 12px 14px;
            border-radius: 14px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .support-ticket-reply-meta-item span {
            font-size: 12px;
            color: #64748b;
        }

        .support-ticket-reply-meta-item strong {
            color: #0f172a;
            font-size: 14px;
            line-height: 1.6;
            word-break: break-word;
        }

        .support-ticket-reply-content-label {
            margin: 8px 0 10px;
            font-size: 14px;
            font-weight: 700;
            color: #1e293b;
        }

        .support-ticket-reply-content {
            padding: 16px 18px;
            border-radius: 16px;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1e293b;
            line-height: 1.85;
            word-break: break-word;
        }

        .support-ticket-reply-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
            color: #2563eb;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
        }

        .support-ticket-reply-link:hover {
            text-decoration: underline;
        }

        .support-ticket-reply-footer {
            padding: 0 24px 24px;
            display: flex;
            justify-content: flex-end;
        }

        .support-ticket-reply-confirm-btn {
            border: none;
            border-radius: 14px;
            padding: 12px 18px;
            font-size: 14px;
            font-weight: 700;
            color: #fff;
            background: linear-gradient(135deg, #10b981, #059669);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 10px 28px rgba(16, 185, 129, 0.25);
        }

        .support-ticket-reply-confirm-btn:disabled {
            opacity: 0.72;
            cursor: not-allowed;
            box-shadow: none;
        }

        @media (max-width: 768px) {
            .support-ticket-reply-dialog {
                width: min(94vw, 640px);
            }

            .support-ticket-reply-header,
            .support-ticket-reply-body,
            .support-ticket-reply-footer {
                padding-left: 16px;
                padding-right: 16px;
            }

            .support-ticket-reply-meta {
                grid-template-columns: 1fr;
            }

            .support-ticket-reply-title {
                font-size: 18px;
            }
        }
    
/* --- block 5 --- */

        .language-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .language-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
        }
        
        .language-modal-content {
            position: relative;
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
            max-width: 400px;
            width: 90vw;
            transform: scale(0.9);
            transition: transform 0.3s ease;
            overflow: hidden;
        }
        
        .language-modal-header {
            padding: 20px 24px;
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .language-modal-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 4px;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }
        
        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .language-options {
            padding: 24px;
        }
        
        .language-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            margin-bottom: 8px;
        }
        
        .language-option:last-child {
            margin-bottom: 0;
        }
        
        .language-option:hover {
            background: #f3f4f6;
            transform: translateX(4px);
        }
        
        .language-option.active {
            background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
            color: white !important;
            border-color: #f59e0b !important;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
        }
        
        .language-option .flag {
            font-size: 20px;
            display: inline-block;
            min-width: 24px;
        }
        
        .language-option .lang-name {
            font-size: 16px;
            font-weight: 500;
        }
        
        @media (max-width: 768px) {
            .language-modal-content {
                max-width: 320px;
            }
            
            .language-modal-header {
                padding: 16px 20px;
            }
            
            .language-modal-header h3 {
                font-size: 16px;
            }
            
            .language-options {
                padding: 20px;
            }
        }
    
/* --- block 7 --- */

        /* 通知按钮样式 - 使用 id 选择器 + !important 确保最高优先级 */
        #notificationContainer {
            position: relative !important;
            display: inline-flex !important;
            align-items: center !important;
            margin-right: 4px !important;
            flex-shrink: 0 !important;
        }

        #notificationBtn {
            background: transparent !important;
            border: none !important;
            cursor: pointer !important;
            font-size: 15px !important;
            color: #6b7280 !important;
            padding: 6px !important;
            border-radius: 50% !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: background 0.2s, color 0.2s !important;
            width: 27px !important;
            height: 27px !important;
            min-width: 27px !important;
            min-height: 27px !important;
            max-width: 27px !important;
            max-height: 27px !important;
        }

        #notificationBtn:hover {
            background: rgba(102, 126, 234, 0.1) !important;
            color: #667eea !important;
        }

        #notificationBtn i {
            font-size: 15px !important;
        }

        #notificationBadge {
            display: none !important;
            position: absolute !important;
            top: 0 !important;
            right: 0 !important;
            background: #ef4444 !important;
            color: white !important;
            font-size: 9px !important;
            font-weight: 600 !important;
            min-width: 14px !important;
            height: 14px !important;
            border-radius: 7px !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 3px !important;
        }

        #notificationBadge.show {
            display: flex !important;
        }

        #notificationPanel {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            width: 360px;
            max-height: 480px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            overflow: hidden;
            margin-top: 8px;
        }

        .notification-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 1px solid #e5e7eb;
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: white;
        }

        .notification-panel-header span {
            font-weight: 600;
            font-size: 14px;
        }

        .mark-all-read-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            font-size: 12px;
            padding: 4px 10px;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .mark-all-read-btn:hover {
            background: rgba(255,255,255,0.3);
        }

        .notification-panel-content {
            max-height: 400px;
            overflow-y: auto;
        }

        .notification-item {
            padding: 14px 16px;
            border-bottom: 1px solid #f3f4f6;
            cursor: pointer;
            transition: background 0.2s;
        }

        .notification-item:hover {
            background: #f9fafb;
        }

        .notification-item.unread {
            background: #eff6ff;
        }

        .notification-item.unread:hover {
            background: #dbeafe;
        }

        .notification-item-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 6px;
        }

        .notification-item-title {
            font-weight: 600;
            color: #1f2937;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .notification-item-title .pinned-icon {
            color: #f59e0b;
            font-size: 12px;
        }

        .notification-item-time {
            font-size: 12px;
            color: #9ca3af;
        }

        .notification-item-content {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .notification-type-badge {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: 600;
            margin-left: 6px;
        }

        .notification-type-info { background: #dbeafe; color: #1e40af; }
        .notification-type-success { background: #d1fae5; color: #065f46; }
        .notification-type-warning { background: #fef3c7; color: #92400e; }
        .notification-type-error { background: #fee2e2; color: #991b1b; }

        .notification-empty {
            padding: 40px 20px;
            text-align: center;
            color: #9ca3af;
        }

        .notification-empty i {
            font-size: 36px;
            margin-bottom: 12px;
            display: block;
        }

        .notification-loading {
            padding: 30px;
            text-align: center;
            color: #9ca3af;
        }

        @media (max-width: 768px) {
            .notification-panel {
                position: fixed !important;
                top: auto !important;
                bottom: 70px !important;
                right: 10px !important;
                left: auto !important;
                width: 320px !important;
                max-height: 60vh !important;
                z-index: 10001 !important;
            }
        }

        .mode-toggle-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-left: 20px;
            margin-right: 20px;
        }

        .mode-toggle {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
            cursor: pointer;
        }

        .mode-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #FFD700 0%, #FFC125 100%);
            transition: 0.4s;
            border-radius: 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 8px;
        }

        .toggle-slider:before {
            content: "";
            position: absolute;
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        input:checked + .toggle-slider {
            background: linear-gradient(135deg, #FFD700 0%, #FFC125 100%);
        }

        input:checked + .toggle-slider:before {
            transform: translateX(30px);
        }

        .toggle-icon-left,
        .toggle-icon-right {
            color: white;
            font-size: 12px;
            z-index: 1;
            transition: all 0.3s;
        }

        .toggle-icon-left {
            opacity: 1;
        }

        .toggle-icon-right {
            opacity: 0.5;
        }

        input:checked ~ .toggle-icon-left {
            opacity: 0.5;
            color: white;
        }

        input:checked ~ .toggle-icon-right {
            opacity: 1;
            color: white;
        }

        .mode-label {
            font-size: 13px;
            color: #666;
            font-weight: 500;
            min-width: 60px;
        }

        /* 响应式 */
        @media (max-width: 768px) {
            .mode-toggle-container {
                margin-right: 10px;
            }

            .mode-label {
                display: none;
            }

            .mode-toggle {
                width: 50px;
                height: 26px;
            }

            .toggle-slider:before {
                height: 18px;
                width: 18px;
            }

            input:checked + .toggle-slider:before {
                transform: translateX(24px);
            }
        }

        /* Logo动画 */
        #site-name {
            transition: all 0.3s ease;
        }

        #logo-icon {
            transition: all 0.3s ease;
        }

        #google-logo {
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }

        /* 桌面端头部布局优化 */
        @media (min-width: 1025px) {
            .header-content {
                padding: 12px 32px !important;
                gap: 24px !important;
                display: flex !important;
                justify-content: space-between !important;
                align-items: center !important;
            }

            .nav-tabs {
                flex: 1 !important;
                display: flex !important;
                justify-content: center !important;
                gap: 16px !important;
                margin: 0 32px !important;
            }

            .nav-tab {
                background: rgba(255, 255, 255, 0.9);
                border: 1px solid rgba(0, 0, 0, 0.1);
                border-radius: 20px;
                padding: 8px 16px;
                font-size: 14px;
                transition: all 0.3s ease;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
                color: var(--text-primary);
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                white-space: nowrap;
                min-width: fit-content;
            }

            .nav-tab:hover {
                background: rgba(255, 255, 255, 1);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                transform: translateY(-1px);
                color: var(--text-primary);
            }

            .nav-tab.active {
                background: var(--primary);
                color: white;
                border-color: var(--primary);
                box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            }

            .nav-tab.active:hover {
                background: var(--primary-hover);
                color: white;
            }

            .user-menu {
                display: flex !important;
                align-items: center !important;
                gap: 16px !important;
                flex-shrink: 0 !important;
            }

            .user-info {
                margin-right: 16px !important;
            }

            .user-actions {
                display: flex !important;
                align-items: center !important;
                gap: 12px !important;
                flex-wrap: nowrap !important;
            }

            /* 桌面端个人中心按钮椭圆样式 */
            .user-actions .profile-dropdown .profile-btn {
                background: rgba(255, 255, 255, 0.9);
                border: 1px solid rgba(0, 0, 0, 0.1);
                border-radius: 20px;
                padding: 6px 14px;
                font-size: 14px;
                transition: all 0.3s ease;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
                color: var(--text-primary);
            }

            .user-actions .profile-dropdown .profile-btn:hover {
                background: rgba(255, 255, 255, 1);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                transform: translateY(-1px);
            }

            .user-actions .recharge-history-btn,
            .user-actions .admin-btn,
            .user-actions .logout-btn {
                background: rgba(255, 255, 255, 0.9);
                border: 1px solid rgba(0, 0, 0, 0.1);
                border-radius: 20px;
                padding: 6px 14px;
                font-size: 14px;
                transition: all 0.3s ease;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
                color: var(--text-primary);
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                min-height: 32px;
                white-space: nowrap;
            }

            .user-actions .recharge-history-btn:hover,
            .user-actions .admin-btn:hover,
            .user-actions .logout-btn:hover {
                background: rgba(255, 255, 255, 1);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                transform: translateY(-1px);
            }
        }

        /* 强制响应式布局 - 直接覆盖 - 美观优化版 */
        @media (max-width: 1024px) {
            .app-header {
                min-height: 100px !important;
                height: auto !important;
                padding: 8px 0 !important;
            }

            .header-content {
                display: grid !important;
                grid-template-columns: 1fr auto !important;
                grid-template-rows: auto auto auto !important;
                gap: 12px !important;
                align-items: start !important;
                min-height: 80px !important;
                height: auto !important;
                padding: 12px 16px !important;
            }

            .logo {
                grid-column: 1 !important;
                grid-row: 1 !important;
                justify-self: start !important;
                align-self: center !important;
            }

            .user-menu {
                display: contents !important;
            }

            .user-menu .user-info {
                grid-column: 2 !important;
                grid-row: 1 !important;
                justify-self: end !important;
                align-self: center !important;
            }

            .user-menu .user-actions {
                grid-column: 1 / -1 !important;
                grid-row: 2 !important;
                justify-self: center !important;
                display: flex !important;
                flex-wrap: wrap !important;
                gap: 8px !important;
                row-gap: 8px !important;
                margin-top: 4px !important;
                justify-content: center !important;
                padding: 8px 0 !important;
            }

            .nav-tabs {
                grid-column: 1 / -1 !important;
                grid-row: 3 !important;
                justify-self: center !important;
                display: flex !important;
                flex-wrap: wrap !important;
                gap: 8px !important;
                row-gap: 8px !important;
                margin-top: 4px !important;
                padding: 8px 0 4px 0 !important;
                width: 100% !important;
                justify-content: center !important;
            }

            /* 1024px断点导航标签样式 */
            .nav-tab {
                background: rgba(255, 255, 255, 0.8) !important;
                border: 1px solid rgba(0, 0, 0, 0.08) !important;
                border-radius: 18px !important;
                padding: 8px 16px !important;
                font-size: 13px !important;
                transition: all 0.3s ease !important;
                color: var(--text-primary) !important;
            }

            .nav-tab:hover {
                background: rgba(255, 255, 255, 1) !important;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
                color: var(--text-primary) !important;
            }

            .nav-tab.active {
                background: var(--primary) !important;
                color: white !important;
                border-color: var(--primary) !important;
                box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
            }

            .nav-tab.active:hover {
                background: var(--primary-hover) !important;
                color: white !important;
            }

            /* 确保1024px断点图标和文字都可见 */
            .nav-tab i,
            .nav-tab span {
                color: inherit !important;
                opacity: 1 !important;
                display: inline !important;
            }

            /* 美化按钮样式 */
            .user-actions .profile-dropdown,
            .user-actions .recharge-history-btn,
            .user-actions .admin-btn,
            .user-actions .logout-btn {
                background: rgba(255, 255, 255, 0.9) !important;
                border: 1px solid rgba(0, 0, 0, 0.1) !important;
                border-radius: 20px !important;
                padding: 6px 14px !important;
                font-size: 12px !important;
                transition: all 0.3s ease !important;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
                color: var(--text-primary) !important;
                text-decoration: none !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 6px !important;
                min-height: 32px !important;
                white-space: nowrap !important;
            }

            .user-actions .profile-dropdown:hover,
            .user-actions .recharge-history-btn:hover,
            .user-actions .admin-btn:hover,
            .user-actions .logout-btn:hover {
                background: rgba(255, 255, 255, 1) !important;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
                transform: translateY(-1px) !important;
            }
        }

        @media (max-width: 900px) {
            .app-header {
                min-height: 120px !important;
                padding: 6px 0 !important;
            }

            .header-content {
                min-height: 100px !important;
                padding: 10px 12px !important;
                gap: 10px !important;
            }

            .user-menu .user-actions {
                gap: 6px !important;
                row-gap: 6px !important;
                padding: 6px 0 !important;
            }

            .nav-tabs {
                gap: 6px !important;
                row-gap: 6px !important;
                padding: 6px 0 2px 0 !important;
            }

            .user-actions .profile-btn,
            .user-actions .recharge-history-btn,
            .user-actions .admin-btn,
            .user-actions .logout-btn {
                font-size: 11px !important;
                padding: 5px 12px !important;
                border-radius: 18px !important;
                background: rgba(255, 255, 255, 0.9) !important;
                border: 1px solid rgba(0, 0, 0, 0.08) !important;
                color: var(--text-primary) !important;
                text-decoration: none !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 5px !important;
                min-height: 30px !important;
                white-space: nowrap !important;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
                transition: all 0.3s ease !important;
            }

            .username-display {
                display: none !important;
            }

            /* 导航标签美化 */
            .nav-tab {
                background: rgba(255, 255, 255, 0.8) !important;
                border: 1px solid rgba(0, 0, 0, 0.08) !important;
                border-radius: 16px !important;
                padding: 6px 12px !important;
                font-size: 12px !important;
                transition: all 0.3s ease !important;
                color: var(--text-primary) !important;
            }

            .nav-tab:hover {
                background: rgba(255, 255, 255, 1) !important;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
                color: var(--text-primary) !important;
            }

            .nav-tab.active {
                background: var(--primary) !important;
                color: white !important;
                border-color: var(--primary) !important;
                box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
            }

            .nav-tab.active:hover {
                background: var(--primary-hover) !important;
                color: white !important;
            }

            /* 确保图标和文字都可见 */
            .nav-tab i,
            .nav-tab span {
                color: inherit !important;
                opacity: 1 !important;
                display: inline !important;
            }
        }

        @media (max-width: 768px) {
            .app-header {
                min-height: 130px !important;
                padding: 4px 0 !important;
            }

            .header-content {
                min-height: 115px !important;
                padding: 8px 12px !important;
                gap: 8px !important;
            }

            .user-menu .user-actions {
                justify-content: center !important;
                gap: 5px !important;
                row-gap: 6px !important;
                padding: 4px 0 !important;
            }

            .nav-tabs {
                gap: 5px !important;
                row-gap: 6px !important;
                padding: 4px 0 !important;
            }

            /* 移动端进一步美化 */
            .user-actions .profile-dropdown,
            .user-actions .recharge-history-btn,
            .user-actions .admin-btn,
            .user-actions .logout-btn {
                font-size: 10px !important;
                padding: 4px 10px !important;
                border-radius: 16px !important;
                min-height: 28px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                background: rgba(255, 255, 255, 0.95) !important;
                border: 1px solid rgba(0, 0, 0, 0.08) !important;
                color: var(--text-primary) !important;
                text-decoration: none !important;
                gap: 4px !important;
                white-space: nowrap !important;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
                transition: all 0.3s ease !important;
            }

            .user-actions .profile-dropdown:hover,
            .user-actions .recharge-history-btn:hover,
            .user-actions .admin-btn:hover,
            .user-actions .logout-btn:hover {
                background: rgba(255, 255, 255, 1) !important;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
                transform: translateY(-1px) !important;
            }

            .nav-tab {
                font-size: 11px !important;
                padding: 5px 10px !important;
                border-radius: 14px !important;
                min-height: 28px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                background: rgba(255, 255, 255, 0.8) !important;
                border: 1px solid rgba(0, 0, 0, 0.08) !important;
                color: var(--text-primary) !important;
                transition: all 0.3s ease !important;
            }

            .nav-tab:hover {
                background: rgba(255, 255, 255, 1) !important;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
                color: var(--text-primary) !important;
            }

            .nav-tab.active {
                background: var(--primary) !important;
                color: white !important;
                border-color: var(--primary) !important;
                box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
            }

            .nav-tab.active:hover {
                background: var(--primary-hover) !important;
                color: white !important;
            }

            /* 移动端确保图标和文字都可见 */
            .nav-tab i,
            .nav-tab span {
                color: inherit !important;
                opacity: 1 !important;
                display: inline !important;
                font-size: inherit !important;
            }

            /* 确保按钮图标和文字都可见 */
            .user-actions .profile-dropdown i,
            .user-actions .recharge-history-btn i,
            .user-actions .admin-btn i,
            .user-actions .logout-btn i {
                color: inherit !important;
                opacity: 1 !important;
                display: inline !important;
                font-size: inherit !important;
                margin-right: 4px !important;
            }
        }
    