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

/* Community QR menu: opens on hover or keyboard focus without shifting the
   header layout. */
.community-nav-wrap { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; }
.community-nav-wrap::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.community-nav-tab { border: 0; font-family: inherit; cursor: pointer; background: transparent; }
.community-nav-wrap:hover .community-nav-tab,
.community-nav-wrap:focus-within .community-nav-tab { background: var(--gray-100); color: var(--text-primary); }
.community-qr-popover {
    position: absolute; z-index: 12000; top: calc(100% + 10px); left: 0; right: auto; width: 248px; box-sizing: border-box;
    padding: 16px; border: 1px solid rgba(148, 163, 184, .28); border-radius: 16px;
    background: rgba(255, 255, 255, .98); box-shadow: 0 18px 48px rgba(15, 23, 42, .2); text-align: center;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(.98);
    transform-origin: top left; transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.community-qr-popover::before { content: ""; position: absolute; top: -7px; left: 28px; width: 13px; height: 13px; border-top: 1px solid rgba(148, 163, 184, .28); border-left: 1px solid rgba(148, 163, 184, .28); background: #fff; transform: rotate(45deg); }
.community-nav-wrap:hover .community-qr-popover,
.community-nav-wrap:focus-within .community-qr-popover,
.community-nav-wrap.is-open .community-qr-popover { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
.home-header .header-content > .nav-tabs { overflow: visible !important; }
.home-header .community-nav-wrap { z-index: 13000; }
.app-header .header-content > .nav-tabs { overflow: visible !important; }
.app-header .community-nav-wrap { z-index: 13000; }
.community-qr-popover-title { display: flex; align-items: center; justify-content: center; gap: 7px; color: #172554; font-size: 15px; font-weight: 700; }
.community-qr-popover-title i { color: #2563eb; }
.community-qr-popover p { margin: 7px 0 12px; color: #64748b; font-size: 12px; line-height: 1.55; }
.community-qr-popover img { display: block; width: 196px; height: 196px; margin: 0 auto; padding: 8px; box-sizing: border-box; border: 1px solid #dbeafe; border-radius: 12px; background: #fff; }
.community-qr-popover small { display: block; margin-top: 9px; color: #475569; font-size: 11px; line-height: 1.45; }
.community-qr-empty { padding: 46px 10px; border: 1px dashed #bfdbfe; border-radius: 10px; color: #64748b; font-size: 12px; }
@media (max-width: 680px) { .community-qr-popover { position: fixed; top: 66px; right: 12px; width: min(248px, calc(100vw - 24px)); transform-origin: top right; } }

        .entry-notification-modal {
            position: fixed;
            inset: 0;
            z-index: 10050;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }

        .entry-notification-modal.show {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .entry-notification-overlay {
            position: absolute;
            inset: 0;
            background: rgba(17, 24, 39, 0.68);
            backdrop-filter: blur(5px);
        }

        .entry-notification-dialog {
            --entry-accent: #2563eb;
            position: relative;
            width: min(760px, 100%);
            max-height: min(720px, calc(100vh - 40px));
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.72);
            border-radius: 8px;
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
        }

        .entry-notification-type-success .entry-notification-dialog { --entry-accent: #059669; }
        .entry-notification-type-warning .entry-notification-dialog { --entry-accent: #d97706; }
        .entry-notification-type-error .entry-notification-dialog { --entry-accent: #dc2626; }

        .entry-notification-header {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 24px 26px 20px;
            border-bottom: 1px solid #e5e7eb;
        }

        .entry-notification-icon {
            width: 42px;
            height: 42px;
            flex: 0 0 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: color-mix(in srgb, var(--entry-accent) 12%, white);
            color: var(--entry-accent);
            font-size: 18px;
        }

        .entry-notification-eyebrow {
            margin: 0 0 3px;
            color: var(--entry-accent);
            font-size: 12px;
            font-weight: 700;
        }

        .entry-notification-header h2 {
            margin: 0;
            color: #111827;
            font-size: 21px;
            line-height: 1.35;
            letter-spacing: 0;
            overflow-wrap: anywhere;
        }

        .entry-notification-content {
            min-height: 110px;
            padding: 24px 26px;
            overflow-y: auto;
            color: #374151;
            font-size: 15px;
            line-height: 1.75;
            overflow-wrap: anywhere;
        }

        .entry-notification-content > :first-child { margin-top: 0; }
        .entry-notification-content > :last-child { margin-bottom: 0; }
        .entry-notification-content a { color: #1d4ed8; }
        .entry-notification-content img { max-width: 100%; height: auto; }
        .entry-notification-intro {
            margin-bottom: 20px;
            color: #334155;
            font-size: 15px;
            line-height: 1.75;
        }
        .entry-notification-intro p { margin: 0 0 8px; }
        .entry-notification-intro p:last-child { margin-bottom: 0; }
        .entry-notification-qr-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }
        .entry-notification-qr-card {
            min-width: 0;
            padding: 16px 14px 14px;
            text-align: center;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
        }
        .entry-notification-group-card { border-color: #bfdbfe; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%); }
        .entry-notification-taobao-card { border-color: #fed7aa; background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%); }
        .entry-notification-qr-heading { display: flex; justify-content: center; align-items: center; gap: 7px; color: #1e293b; font-weight: 700; font-size: 16px; }
        .entry-notification-group-card .entry-notification-qr-heading { color: #1d4ed8; }
        .entry-notification-taobao-card .entry-notification-qr-heading { color: #c2410c; }
        .entry-notification-qr-caption { margin: 6px 0 12px; color: #64748b; font-size: 12px; }
        .entry-notification-qr-image { display: block; width: min(100%, 220px); aspect-ratio: 1; object-fit: contain; margin: 0 auto 10px; padding: 7px; border-radius: 10px; background: #fff; box-shadow: 0 5px 18px rgba(15, 23, 42, .1); }
        .entry-notification-qr-card small { display: block; color: #64748b; font-size: 11px; line-height: 1.5; }
        .entry-notification-qr-placeholder { display: grid; place-items: center; width: min(100%, 220px); aspect-ratio: 1; margin: 0 auto 10px; border-radius: 10px; color: #94a3b8; background: #f1f5f9; font-size: 12px; }
        .entry-notification-admin-content { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e5e7eb; }

        .entry-notification-footer {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 16px;
            padding: 18px 26px;
            border-top: 1px solid #e5e7eb;
            background: #f9fafb;
        }

        .entry-notification-error {
            flex: 1;
            margin: 0;
            color: #b91c1c;
            font-size: 13px;
        }

        .entry-notification-confirm-btn {
            min-width: 132px;
            min-height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 0;
            border-radius: 6px;
            padding: 10px 20px;
            background: var(--entry-accent);
            color: #ffffff;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
        }

        .entry-notification-confirm-btn:hover { filter: brightness(0.94); }
        .entry-notification-confirm-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--entry-accent) 28%, transparent); outline-offset: 2px; }
        .entry-notification-confirm-btn:disabled { cursor: wait; opacity: 0.72; }

        @media (max-width: 560px) {
            .entry-notification-modal { padding: 14px; }
            .entry-notification-dialog { max-height: calc(100vh - 28px); }
            .entry-notification-header { padding: 20px 18px 17px; }
            .entry-notification-content { padding: 20px 18px; }
            .entry-notification-qr-grid { grid-template-columns: 1fr; }
            .entry-notification-footer { align-items: stretch; flex-direction: column; padding: 15px 18px 18px; }
            .entry-notification-confirm-btn { width: 100%; }
        }

        .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: fixed;
            inset: 0;
            width: 100vw;
            height: 100vh;
            max-height: none;
            padding: 7vh 5vw;
            background: rgba(15, 23, 42, .58);
            backdrop-filter: blur(4px);
            z-index: 10050;
            overflow: auto;
        }
        #notificationPanel.is-open { display: flex; align-items: center; justify-content: center; }
        #notificationPanel > * { box-sizing: border-box; }
        .notification-panel-heading, .notification-panel-toolbar, .notification-panel-body, .notification-panel-footer { width: min(980px, 100%); }
        .notification-panel-heading { border-radius: 16px 16px 0 0; }

        .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-body {
            display: grid;
            grid-template-columns: minmax(260px, .82fr) minmax(0, 1.5fr);
            min-height: 470px;
            background: #fff;
        }
        .notification-panel-content { max-height: 470px; overflow-y: auto; border-right: 1px solid #e5e7eb; }
        .notification-detail { min-width: 0; padding: 28px 30px; overflow-y: auto; background: #fff; }
        .notification-detail h3 { margin: 14px 0 18px; color: #111827; font-size: 23px; line-height: 1.35; }
        .notification-detail-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #94a3b8; font-size: 12px; }
        .notification-detail-content { color: #374151; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
        .notification-detail-content a { color: #2563eb; }
        .notification-detail-state { margin-top: 28px; padding-top: 16px; border-top: 1px solid #e5e7eb; color: #64748b; font-size: 12px; }
        .notification-detail-empty { height: 100%; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #94a3b8; text-align: center; }
        .notification-detail-empty i { font-size: 32px; color: #cbd5e1; }

        .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) {
            #notificationPanel { padding: 14px; }
            .notification-panel-body { grid-template-columns: 1fr; min-height: 0; }
            .notification-panel-content { max-height: 34vh; border-right: 0; border-bottom: 1px solid #e5e7eb; }
            .notification-detail { min-height: 260px; padding: 22px 18px; }
        }

        .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;
                flex-wrap: nowrap !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;
            }
        }
    
