/* 从 gallery.html 提取的大块内联 CSS */

        /* Search Container Styles */
        .search-container {
            flex: 1;
            min-width: 300px;
        }

        .search-form {
            display: flex;
            gap: 10px;
            align-items: center;
            width: 100%;
        }

        .search-input-wrapper {
            position: relative;
            flex: 1;
            min-width: 250px;
        }

        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 14px;
        }

        .search-input {
            width: 100%;
            padding: 10px 40px 10px 40px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: white;
        }

        .search-input:focus {
            outline: none;
            border-color: #ffd700;
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
        }

        .search-clear {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 14px;
            cursor: pointer;
            padding: 4px;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .search-clear:hover {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
        }

        .search-btn {
            padding: 10px 20px;
            background: linear-gradient(135deg, #ffd700, #ffb347);
            border: none;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
        }

        .search-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
        }

        .search-result-info {
            padding: 10px 16px;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.08));
            border-radius: 10px;
            border-left: 3px solid #ffd700;
            margin-top: 1rem;
            font-size: 14px;
            color: #6b7280;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Image Name Wrapper */
        .image-name-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .image-name {
            flex: 1;
            font-weight: 600;
            color: #1f2937;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .rename-btn {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            border: none;
            background: transparent;
            color: #9ca3af;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            transition: all 0.2s ease;
            flex-shrink: 0;
            opacity: 0;
        }

        .card-info:hover .rename-btn {
            opacity: 1;
        }

        .rename-btn:hover {
            background: #ffd700;
            color: white;
        }

        .form-hint {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 6px;
        }

        /* Responsive Search */
        @media (max-width: 768px) {
            .search-container {
                min-width: 100%;
            }

            .search-form {
                flex-direction: column;
            }

            .search-input-wrapper {
                max-width: 100%;
                width: 100%;
                min-width: unset;
            }

            .search-btn {
                width: 100%;
                justify-content: center;
            }
        }

        /* Gallery Layout with Sidebar */
        .gallery-layout {
            display: flex;
            gap: 24px;
            min-height: calc(100vh - 200px);
        }

        /* Category Sidebar */
        /* ====== 分类侧边栏 ====== */
        .category-sidebar {
            width: 260px;
            flex-shrink: 0;
            background: white;
            border-radius: 14px;
            padding: 16px;
            border: 1px solid var(--gray-200);
            height: fit-content;
            position: sticky;
            top: 100px;
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--gray-100);
        }

        .sidebar-header h3 {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-500);
            display: flex;
            align-items: center;
            gap: 7px;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .sidebar-header h3 i {
            color: var(--gray-400);
            font-size: 12px;
        }

        .add-category-btn {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            color: var(--gray-500);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            transition: all 0.2s ease;
        }

        .add-category-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .category-list {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .category-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            border-radius: 9px;
            color: var(--gray-600);
            text-decoration: none;
            transition: all 0.15s ease;
            position: relative;
        }

        .category-item i {
            font-size: 13px;
            width: 16px;
            text-align: center;
        }

        .category-item:hover {
            background: var(--gray-50);
            color: var(--gray-900);
        }

        .category-item.active {
            background: #fffbeb;
            color: var(--primary-hover);
            font-weight: 600;
        }

        .category-item.active i {
            color: var(--primary) !important;
        }

        .category-name {
            flex: 1;
            font-size: 13.5px;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .category-item.active .category-name {
            font-weight: 600;
        }

        .category-count {
            font-size: 11px;
            font-weight: 500;
            color: var(--gray-400);
            background: var(--gray-100);
            padding: 1px 7px;
            border-radius: 6px;
            min-width: 20px;
            text-align: center;
        }

        .category-item.active .category-count {
            background: rgba(245,158,11,0.12);
            color: var(--primary-hover);
        }

        .category-divider {
            height: 1px;
            background: var(--gray-100);
            margin: 8px 4px;
        }

        .category-actions {
            display: none;
            gap: 3px;
            position: absolute;
            right: 8px;
        }

        .category-item:hover .category-actions {
            display: flex;
        }

        .category-item:hover .category-count {
            display: none;
        }

        .cat-action-btn {
            width: 24px;
            height: 24px;
            border-radius: 6px;
            border: none;
            background: white;
            color: var(--gray-400);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            transition: all 0.15s ease;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }

        .cat-action-btn:hover {
            background: var(--primary);
            color: white;
        }

        .cat-action-btn.danger:hover {
            background: #ef4444;
        }

        .gallery-main {
            flex: 1;
            min-width: 0;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 16px;
        }

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

        .form-input {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .form-input:focus {
            outline: none;
            border-color: #ffd700;
            box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
        }

        .color-picker, .icon-picker {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .color-option {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.15s ease;
            outline: 2px solid transparent;
            outline-offset: 2px;
        }

        .color-option:hover { transform: scale(1.15); }

        .color-option.selected {
            outline-color: currentColor;
            transform: scale(1.1);
        }

        .icon-option {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            font-size: 14px;
            transition: all 0.15s ease;
        }

        .icon-option:hover {
            border-color: #d1d5db;
            color: #374151;
            background: #f9fafb;
        }

        .icon-option.selected {
            border-color: var(--primary);
            background: #fffbeb;
            color: var(--primary);
        }

        /* Move Modal Styles */
        .move-hint {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 16px;
        }

        .move-category-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 300px;
            overflow-y: auto;
        }

        .move-category-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 10px;
            border: 2px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .move-category-item:hover {
            border-color: #ffd700;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 193, 7, 0.05));
        }

        .move-category-item.selected {
            border-color: #3b82f6;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.08));
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

        .move-category-item span {
            font-size: 14px;
            font-weight: 500;
            color: #374151;
        }

        .banana-btn-confirm {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            color: white;
            border: 2px solid #22c55e;
            box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
        }

        .banana-btn-confirm:hover {
            background: linear-gradient(135deg, #16a34a, #15803d);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
        }

        .banana-btn-confirm:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }

        /* Responsive Sidebar */
        @media (max-width: 1024px) {
            .gallery-layout {
                flex-direction: column;
            }

            .category-sidebar {
                width: 100%;
                position: static;
            }

            .category-list {
                flex-direction: row;
                flex-wrap: wrap;
            }

            .category-item {
                flex: 0 0 auto;
            }

            .category-divider {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .category-sidebar {
                padding: 12px;
            }

            .sidebar-header h3 {
                font-size: 14px;
            }

            .category-item {
                padding: 8px 10px;
            }

            .category-name {
                font-size: 13px;
            }
        }

        /* Mode Toggle Styles */
        .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;
        }

        /* Gallery Header Styles - 参考充值页面样式 */
        .gallery-header {
            margin-bottom: 2rem;
        }

        /* Header Top Row - Title and Stats */
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .header-info {
            text-align: left;
        }

        .gallery-title {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #d97706, #b45309);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.5rem;
        }

        .gallery-subtitle {
            font-size: 1rem;
            color: #6b7280;
            margin: 0;
        }

        .header-stats {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .header-stats .stat-item {
            display: flex;
            align-items: baseline;
            gap: 0.5rem;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.1));
            padding: 0.75rem 1.25rem;
            border-radius: 12px;
            border: 2px solid rgba(255, 215, 0, 0.3);
        }

        .header-stats .stat-number {
            font-size: 1.75rem;
            font-weight: 700;
            color: #d97706;
        }

        .header-stats .stat-label {
            font-size: 0.9rem;
            color: #6b7280;
            font-weight: 500;
        }

        /* Header Controls Row - Search and Actions */
        .header-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            padding: 1rem 0;
            border-top: 1px solid rgba(229, 231, 235, 0.5);
        }

        .gallery-actions {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            align-items: center;
        }

        /* Selection Info */
        .selection-info {
            width: 100%;
            padding: 0.75rem 1rem;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.08));
            border-radius: 10px;
            border-left: 3px solid #3b82f6;
            font-size: 14px;
            color: #1e40af;
        }

        .selection-info strong {
            color: #1e40af;
            font-weight: 700;
        }

        /* ====== 图库工具栏按钮 ====== */
        .action-btn {
            padding: 8px 18px;
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 7px;
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
            min-height: 38px;
            background: white;
            color: var(--gray-700);
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        }

        .action-btn::before,
        .action-btn::after {
            display: none;
        }

        .action-btn i {
            font-size: 13px;
            transition: transform 0.2s ease;
        }

        .action-btn:hover {
            border-color: var(--primary);
            color: var(--primary-hover);
            box-shadow: 0 2px 8px rgba(245,158,11,0.12);
            transform: translateY(-1px);
        }

        .action-btn:hover i {
            transform: scale(1.1);
        }

        .action-btn.secondary {
            background: white;
            color: var(--gray-700);
            border-color: var(--gray-200);
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        }

        .action-btn.secondary:hover {
            background: #fffbeb;
            border-color: var(--primary);
            color: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(245,158,11,0.12);
        }

        .action-btn.danger {
            background: white;
            color: #dc2626;
            border-color: #fecaca;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        }

        .action-btn.danger:hover {
            background: #fef2f2;
            border-color: #f87171;
            color: #b91c1c;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(239,68,68,0.12);
        }

        .action-btn.primary {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 1px 3px rgba(245,158,11,0.2);
        }

        .action-btn.primary:hover {
            background: var(--primary-hover);
            border-color: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245,158,11,0.25);
        }

        .action-btn.edit-again {
            background: white;
            color: #2563eb;
            border-color: #bfdbfe;
            box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        }

        .action-btn.edit-again:hover {
            background: #eff6ff;
            border-color: #60a5fa;
            color: #1d4ed8;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(59,130,246,0.12);
        }

        /* ====== 卡片底部迷你按钮 ====== */
        .mini-btn.edit-again {
            background: var(--gray-100);
            color: #3b82f6;
            border: none;
        }

        .mini-btn.edit-again:hover {
            background: #3b82f6;
            color: white;
            transform: none;
            box-shadow: none;
        }

        .action-btn:active {
            transform: translateY(0);
            box-shadow: 0 1px 2px rgba(0,0,0,0.06);
        }

        .action-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
            background: var(--gray-100) !important;
            border-color: var(--gray-200) !important;
            color: var(--gray-400) !important;
        }

        .action-btn:disabled:hover::before,
        .action-btn:disabled:hover::after {
            display: none;
        }

        /* Selection Features - 数字序号设计 */
        .selection-checkbox {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            z-index: 10;
            opacity: 0;
            transition: all 0.3s ease;
            width: 2rem;
            height: 2rem;
        }

        /* 选择模式下隐藏悬浮按钮 */
        body.select-mode .overlay-actions,
        body.select-mode .image-actions {
            display: none !important;
        }

        body.select-mode .selection-checkbox {
            opacity: 1;
        }

        .gallery-card:hover .selection-checkbox {
            opacity: 1;
        }

        .image-checkbox {
            appearance: none;
            width: 2rem;
            height: 2rem;
            border: 3px solid rgba(255, 215, 0, 0.8);
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 220, 0.9));
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
        }

        .image-checkbox:hover {
            border-color: rgba(255, 215, 0, 1);
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 193, 7, 0.2));
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
        }

        .image-checkbox:checked {
            background: linear-gradient(135deg, #ffd700, #ffb347);
            border-color: #ffa500;
            transform: scale(1.1);
        }

        .selection-number {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            font-weight: 700;
            color: #8b4513;
            pointer-events: none;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
            z-index: 2;
        }

        .gallery-card.selected {
            transform: scale(0.98);
            box-shadow: 0 0 0 4px #ffd700, 0 8px 25px rgba(255, 215, 0, 0.4);
            border-radius: 15px;
            transition: all 0.3s ease;
        }

        .gallery-card.selected::before {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            background: linear-gradient(135deg, #ffd700, #ffb347, #ffa500);
            border-radius: 18px;
            z-index: -1;
            opacity: 0.8;
            animation: bananaSelectedGlow 2s ease-in-out infinite alternate;
        }

        @keyframes bananaSelectedGlow {
            0% { 
                opacity: 0.8; 
                box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
            }
            100% { 
                opacity: 0.5;
                box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
            }
        }

        /* New Banana Theme Delete Modal Styles */
        .banana-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1000;
            align-items: center;
            justify-content: center;
            opacity: 1;
        }

        .banana-modal-overlay.show {
            animation: bananaModalFadeIn 0.3s ease-out forwards;
        }

        @keyframes bananaModalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .banana-modal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
        }

        .banana-delete-modal {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            max-width: 500px;
            width: 90vw;
            max-height: 90vh;
            background: white;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 
                0 25px 60px rgba(255, 193, 7, 0.4),
                0 0 0 1px rgba(255, 215, 0, 0.2);
            animation: bananaModalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1001 !important;
        }

        @keyframes bananaModalSlideUp {
            from {
                transform: translate(-50%, -50%) scale(0.9);
                opacity: 0;
            }
            to {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
        }

        .banana-modal-header {
            background: linear-gradient(135deg, #ff8c42 0%, #ffa500 50%, #ffd700 100%);
            padding: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .banana-modal-header::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: repeating-linear-gradient(
                45deg,
                transparent,
                transparent 10px,
                rgba(255, 255, 255, 0.1) 10px,
                rgba(255, 255, 255, 0.1) 20px
            );
            animation: bananaHeaderPattern 8s linear infinite;
        }

        @keyframes bananaHeaderPattern {
            0% { transform: translateX(-40px) translateY(-40px); }
            100% { transform: translateX(0px) translateY(0px); }
        }

        .banana-warning-emoji {
            font-size: 32px;
            animation: bananaWarningPulse 1.5s ease-in-out infinite;
            z-index: 2;
            position: relative;
        }

        @keyframes bananaWarningPulse {
            0%, 100% { transform: scale(1) rotate(0deg); }
            25% { transform: scale(1.1) rotate(-5deg); }
            50% { transform: scale(1.15) rotate(0deg); }
            75% { transform: scale(1.1) rotate(5deg); }
        }

        .banana-modal-title {
            color: white;
            font-size: 20px;
            font-weight: 700;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            z-index: 2;
            position: relative;
        }

        .banana-close-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 2;
            position: relative;
        }

        .banana-close-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(180deg) scale(1.1);
        }

        .banana-close-btn span {
            color: white;
            font-size: 18px;
            line-height: 1;
        }

        .banana-modal-body {
            padding: 32px 24px;
            background: linear-gradient(145deg, #fffef7, #fff8dc);
        }

        .banana-warning-content {
            display: flex;
            gap: 24px;
            align-items: flex-start;
        }

        .banana-warning-icon {
            flex-shrink: 0;
        }

        .banana-bounce {
            font-size: 48px;
            animation: bananaBounce 2s ease-in-out infinite;
            filter: drop-shadow(0 4px 8px rgba(255, 140, 66, 0.3));
        }

        @keyframes bananaBounce {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            25% { transform: translateY(-8px) rotate(-5deg); }
            50% { transform: translateY(-12px) rotate(0deg); }
            75% { transform: translateY(-8px) rotate(5deg); }
        }

        .banana-message-area {
            flex: 1;
        }

        .banana-main-message {
            font-size: 18px;
            font-weight: 600;
            color: #8b4513;
            margin: 0 0 20px 0;
            line-height: 1.4;
        }

        .banana-warning-details {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .banana-warning-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            background: rgba(255, 215, 0, 0.1);
            border-radius: 8px;
            border-left: 4px solid #ffd700;
        }

        .banana-bullet {
            font-size: 16px;
            flex-shrink: 0;
        }

        .banana-warning-item span:last-child {
            font-size: 14px;
            color: #b8860b;
            font-weight: 500;
        }

        .banana-modal-footer {
            padding: 20px 24px 24px;
            background: linear-gradient(145deg, #fffef7, #fff8dc);
            display: flex;
            justify-content: center;
            gap: 16px;
        }

        .banana-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            min-width: 120px;
            justify-content: center;
            text-transform: none;
            letter-spacing: normal;
        }

        .banana-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s ease;
        }

        .banana-btn:hover::before {
            left: 100%;
        }

        .banana-btn-icon {
            font-size: 16px;
            transition: transform 0.3s ease;
        }

        .banana-btn:hover .banana-btn-icon {
            transform: scale(1.2) rotate(10deg);
        }

        .banana-btn-text {
            font-size: 14px;
            font-weight: 600;
        }

        .banana-btn-cancel {
            background: linear-gradient(135deg, #ffd700, #ffb347);
            color: #8b4513;
            border: 2px solid #ffd700;
            box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
        }

        .banana-btn-cancel:hover {
            background: linear-gradient(135deg, #ffb347, #ffa500);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
            border-color: #ffb347;
        }

        .banana-btn-delete {
            background: linear-gradient(135deg, #ff8c42, #ff6b35);
            color: white;
            border: 2px solid #ff8c42;
            box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
        }

        .banana-btn-delete:hover {
            background: linear-gradient(135deg, #ff6b35, #e55039);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
            border-color: #ff6b35;
        }

        .banana-btn:active {
            transform: translateY(0) scale(0.98);
        }

        /* Page Size Selector Styles */
        /* ====== 分页控件 ====== */
        .page-size-selector {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: auto;
        }

        .page-size-selector label {
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-500);
        }

        .page-size-select {
            padding: 6px 10px;
            border-radius: 8px;
            border: 1px solid var(--gray-200);
            background: white;
            color: var(--gray-700);
            font-weight: 500;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            outline: none;
        }

        .page-size-select:hover { border-color: var(--gray-300); }
        .page-size-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }

        .page-jump {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .page-jump label {
            color: var(--gray-500);
            font-weight: 500;
            font-size: 13px;
        }

        .page-jump-input {
            width: 52px;
            padding: 6px 8px;
            border-radius: 8px;
            border: 1px solid var(--gray-200);
            background: white;
            color: var(--gray-700);
            font-weight: 500;
            font-size: 13px;
            text-align: center;
            outline: none;
            transition: all 0.2s ease;
        }

        .page-jump-input:hover { border-color: var(--gray-300); }
        .page-jump-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,158,11,0.1); }

        .page-jump-input::-webkit-outer-spin-button,
        .page-jump-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        .page-jump-input[type=number] { -moz-appearance: textfield; }

        .page-jump-btn {
            padding: 6px 10px;
            border-radius: 8px;
            border: 1px solid var(--gray-200);
            background: white;
            color: var(--gray-600);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .page-jump-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .page-jump-btn:active { transform: scale(0.96); }

        .pagination-container {
            margin-top: 32px;
            padding: 16px 20px;
            background: var(--gray-50);
            border-radius: 14px;
            border: 1px solid var(--gray-200);
        }

        .pagination-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .page-btn {
            padding: 8px 16px;
            background: white;
            color: var(--gray-600);
            border: 1px solid var(--gray-200);
            border-radius: 9px;
            font-weight: 500;
            font-size: 13px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .page-btn::before { display: none; }

        .page-btn:hover:not(.disabled) {
            background: #fffbeb;
            border-color: var(--primary);
            color: var(--primary-hover);
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(245,158,11,0.1);
        }

        .page-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: var(--gray-50);
            border-color: var(--gray-200);
            color: var(--gray-400);
        }

        .page-numbers {
            display: flex;
            gap: 4px;
            align-items: center;
        }

        .page-number {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 9px;
            color: var(--gray-600);
            font-weight: 600;
            font-size: 13px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .page-number:hover:not(.active) {
            background: #fffbeb;
            border-color: var(--primary);
            color: var(--primary-hover);
        }

        .page-number.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 2px 8px rgba(245,158,11,0.25);
        }

        .page-dots {
            color: var(--gray-400);
            font-weight: 500;
            padding: 0 4px;
            font-size: 13px;
        }

        .page-info {
            text-align: center;
            font-size: 12px;
            color: var(--gray-500);
            font-weight: 500;
            padding: 6px 14px;
            background: white;
            border-radius: 8px;
            display: inline-block;
            margin: 0;
            border: 1px solid var(--gray-200);
        }

        .pagination-footer {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 16px;
            margin-top: 12px;
            flex-wrap: wrap;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .banana-delete-modal {
                margin: 20px;
                max-width: none;
            }
            
            .banana-warning-content {
                flex-direction: column;
                text-align: center;
                gap: 16px;
            }
            
            .banana-modal-footer {
                flex-direction: column;
                align-items: center;
            }
            
            .banana-btn {
                width: 100%;
                max-width: 200px;
            }
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .header-top {
                flex-direction: column;
                align-items: flex-start;
            }

            .gallery-title {
                font-size: 1.8rem;
            }

            .gallery-subtitle {
                font-size: 0.9rem;
            }

            .gallery-header {
                margin-bottom: 1.5rem;
            }

            .header-stats .stat-item {
                padding: 0.5rem 1rem;
            }

            .header-stats .stat-number {
                font-size: 1.25rem;
            }

            .header-controls {
                flex-direction: column;
                align-items: stretch;
            }

            .search-container {
                width: 100%;
                margin: 0;
            }

            .gallery-actions {
                justify-content: center;
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .gallery-title {
                font-size: 1.5rem;
            }

            .gallery-subtitle {
                font-size: 0.85rem;
            }

            .header-stats .stat-number {
                font-size: 1.1rem;
            }

            .header-stats .stat-label {
                font-size: 0.8rem;
            }
        }
        
        /* Avatar and Username Styles */
        .avatar-display {
            margin-right: 0;
            transition: transform 0.2s ease;
            cursor: pointer;
            text-decoration: none !important;
        }
        
        .avatar-display:hover {
            transform: scale(1.05);
        }
        
        .credits-display {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
            text-decoration: none !important;
            color: white !important;
        }
        
        .credits-display:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
        }
        
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--gray-200);
        }
        
        .default-user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--gray-200);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 14px;
        }
        
        .username-display {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            margin-right: 0;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        /* 桌面端个人中心按钮样式 */
        .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 (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;
            }
        }
        
        /* Profile Dropdown Styles */
        .profile-dropdown {
            position: relative;
            display: inline-block;
        }
        
        .profile-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.3s ease;
            text-decoration: none;
            font-size: 14px;
            white-space: nowrap;
        }
        
        .profile-btn:hover {
            background: var(--gray-100);
            color: var(--primary);
        }
        
        .dropdown-arrow {
            font-size: 10px;
            transition: transform 0.3s ease;
        }
        
        .profile-dropdown.active .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        .dropdown-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            min-width: 180px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1000;
            overflow: hidden;
        }
        
        .profile-dropdown.active .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        
        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: var(--text-primary);
            text-decoration: none;
            transition: all 0.3s ease;
            border-bottom: 1px solid var(--gray-100);
            margin: 4px 8px;
            border-radius: 20px;
            border-bottom: none;
        }
        
        .dropdown-item:last-child {
            margin-bottom: 8px;
        }
        
        .dropdown-item:hover {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            transform: translateX(4px);
        }
        
        .dropdown-item i {
            font-size: 14px;
            width: 16px;
            flex-shrink: 0;
        }
        
        .dropdown-item span {
            font-size: 14px;
            font-weight: 500;
        }
        
        /* Different colors for different menu items */
        .dropdown-item:nth-child(1) i { color: #3b82f6; }
        .dropdown-item:nth-child(2) i { color: #10b981; }
        .dropdown-item:nth-child(3) i { color: #8b5cf6; }
        .dropdown-item:nth-child(4) i { color: #f59e0b; }
        
        .dropdown-item:hover i {
            color: white;
        }
        
        @media (max-width: 768px) {
            .dropdown-menu {
                right: -20px;
                min-width: 160px;
            }
        }

        /* 强制响应式布局 - 直接覆盖 - 美观优化版 */
        @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;
            }
            
            /*                         图库内容响应式 - 1024px */
            .gallery-header {
                flex-direction: column !important;
                align-items: center !important;
                text-align: center !important;
                gap: 16px !important;
                margin-bottom: 24px !important;
                padding-bottom: 16px !important;
            }
            
            .header-info {
                text-align: center !important;
            }
            
            .header-info h1 {
                font-size: 24px !important;
            }
            
            .header-info p {
                font-size: 14px !important;
                margin-top: 4px !important;
            }
            
            .gallery-stats {
                text-align: center !important;
            }
            
            .stat-number {
                font-size: 20px !important;
            }
            
            .stat-label {
                font-size: 12px !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;
            }
            
            /*                         图库内容响应式 - 900px */
            .gallery-header {
                flex-direction: column !important;
                align-items: center !important;
                text-align: center !important;
                gap: 14px !important;
                margin-bottom: 20px !important;
                padding-bottom: 14px !important;
            }
            
            .header-info {
                text-align: center !important;
            }
            
            .header-info h1 {
                font-size: 22px !important;
            }
            
            .header-info p {
                font-size: 13px !important;
                margin-top: 3px !important;
            }
            
            .gallery-stats {
                text-align: center !important;
            }
            
            .stat-number {
                font-size: 18px !important;
            }
            
            .stat-label {
                font-size: 11px !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;
            }
            
            /*                         图库内容响应式 - 768px */
            .gallery-header {
                flex-direction: column !important;
                align-items: center !important;
                text-align: center !important;
                gap: 12px !important;
                margin-bottom: 16px !important;
                padding-bottom: 12px !important;
            }
            
            .header-info {
                text-align: center !important;
            }
            
            .header-info h1 {
                font-size: 20px !important;
            }
            
            .header-info p {
                font-size: 12px !important;
                margin-top: 2px !important;
            }
            
            .gallery-stats {
                text-align: center !important;
            }
            
            .stat-number {
                font-size: 16px !important;
            }
            
            .stat-label {
                font-size: 10px !important;
            }
            
            /* 移动端                        图库网格优化 */
            .modern-gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
                gap: 16px !important;
            }
            
            .dropdown-menu {
                right: -20px;
                min-width: 160px;
            }
        }
        
        /* Image Card Info Styles - 提示词和时间信息 */
        .card-info {
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .image-name {
            font-weight: 600;
            color: #1f2937;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .image-prompt {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            font-size: 12px;
            color: #6b7280;
            line-height: 1.4;
            padding: 6px 8px;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 193, 7, 0.08));
            border-radius: 8px;
            border-left: 3px solid #ffd700;
            max-height: 60px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }

        .image-prompt i {
            color: #fbbf24;
            font-size: 12px;
            margin-top: 2px;
            flex-shrink: 0;
        }

        .image-prompt span {
            flex: 1;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            word-break: break-word;
        }

        .image-prompt:hover {
            max-height: none;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 193, 7, 0.15));
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
        }

        .image-prompt:active {
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
        }

        .image-prompt:hover span {
            -webkit-line-clamp: unset;
        }

        .image-prompt.copied {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
            border-left-color: #22c55e;
            animation: copySuccess 0.6s ease;
        }

        @keyframes copySuccess {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        /* 复制成功提示Toast */
        .copy-toast {
            position: fixed;
            z-index: 10000;
            background: linear-gradient(135deg, #22c55e, #16a34a);
            color: white;
            padding: 12px 20px;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .copy-toast i {
            font-size: 16px;
        }

        .image-time {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            color: #9ca3af;
            padding: 4px 8px;
            background: rgba(243, 244, 246, 0.5);
            border-radius: 6px;
        }

        .image-time i {
            color: #6b7280;
            font-size: 10px;
        }

        .image-actions {
            display: flex;
            gap: 6px;
            margin-top: 4px;
            justify-content: space-between;
        }

        /* 响应式优化 */
        @media (max-width: 768px) {
            .image-prompt {
                font-size: 11px;
                padding: 5px 7px;
            }

            .image-time {
                font-size: 10px;
                padding: 3px 6px;
            }

            .image-name {
                font-size: 13px;
            }
        }

        /* Language Modal Styles */
        .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);
            color: white;
            border-color: #f59e0b;
        }
        
        .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;
            }
        }
    