* {
            -webkit-tap-highlight-color: transparent !important;
            outline: none;
        }
        *:focus {
            outline: none;
        }
        body {
            font-family: 'Arial', sans-serif;
            background: #f4f4f4;
            color: #333;
            padding: 20px;
            margin: 0;
        }
        .comment {
            font-size: 0.72em;
            color: #888;
            text-align: center;
            margin: 0 auto 12px;
            letter-spacing: 0.3px;
        }
        .rainbow-text {
            font-size: 2em;
            text-align: center;
            animation: colorChange 4s ease infinite;
            margin: 10px 0;
        }
        @keyframes colorChange {
            0% { color: #ff6ec7; }
            25% { color: #7873f5; }
            50% { color: #74f5c8; }
            75% { color: #f57f74; }
            100% { color: #f5c874; }
        }

        
        
        /* 页面主容器 */
        .page-wrapper {
            max-width: 1040px;
            margin: 0 auto;
        }

        /* 顶部按钮 */
        .top-nav-bar {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 14px;
            margin: 14px 0 20px;
        }
        .nav-btn {
            display: inline-block;
            padding: 9px 24px;
            font-size: 15px;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            text-decoration: none !important;
            transition: all 0.2s;
            border: none;
            outline: none;
            line-height: 1.4;
        }
        .btn-sponsor {
            background: #ff4757;
            color: #ffffff !important;
            box-shadow: 0 3px 8px rgba(255, 71, 87, 0.35);
        }
        .btn-sponsor:hover {
            background: #ff6b81;
            transform: translateY(-1px);
        }
        .btn-wall {
            background: #2f3542;
            color: #ffffff !important;
            box-shadow: 0 3px 8px rgba(47, 53, 66, 0.3);
        }
        .btn-wall:hover {
            background: #57606f;
            transform: translateY(-1px);
        }

        /* 表格容器 */
        .table-wrap {
            width: 100%;
            margin: 15px auto;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
            border: 1px solid #e1e4e8;
            overflow: hidden;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 0;
            background: #fff;
            table-layout: fixed;
        }
        th, td {
            padding: 11px 10px;
            text-align: left;
            border-bottom: 1px solid #edf0f2;
            border-right: 1px solid #f2f4f6;
            vertical-align: middle;
            box-sizing: border-box;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        th:last-child, td:last-child {
            border-right: none;
        }
        th {
            background-color: #f7f9fa;
            font-size: 15px;
            color: #444;
            font-weight: 700;
        }
        .col-rank { width: 65px; text-align: center; }
        .col-avatar { width: 78px; text-align: center; }
        .col-name { width: auto; text-align: left; }
        .col-qq { width: 140px; text-align: left; }
        .col-amount { width: 125px; text-align: right; }
        th.col-amount h1 {
            justify-content: flex-end;
            text-align: right;
            font-size: 1.05em;
            font-weight: 700;
            color: #374151;
        }
        td.red-text h1, td:last-child h1 {
            justify-content: flex-end;
            text-align: right;
            font-size: 1.25em !important;
            font-weight: 800 !important;
            color: #dc2626 !important;
        }

        tbody tr {
            cursor: pointer;
            transition: background 0.15s;
        }
        tbody tr:hover {
            background-color: #fafbfc;
        }
        table td img {
            width: 56px !important;
            height: 56px !important;
            border-radius: 28px !important;
            object-fit: cover;
            display: block;
            margin: 0 auto;
            border: 1px solid rgba(0, 0, 0, 0.08);
        }
        .black-text {
            color: #1a1a1a;
            font-weight: bold;
        }
        .red-text {
            color: #eb4d4b;
            font-weight: bold;
        }

        /* 徽章基础样式 */
        .chat-user-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            padding: 2.5px 7px;
            border-radius: 4px;
            vertical-align: middle;
            letter-spacing: 0.5px;
            box-sizing: border-box;
            white-space: nowrap;
            position: relative;
            overflow: hidden;
            cursor: default;
            user-select: none;
            margin-right: 5px;
            transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
        }
        .chat-user-badge:hover {
            transform: translateY(-1px) scale(1.04);
        }
        .chat-user-badge::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -120%;
            width: 60%;
            height: 200%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
            transform: rotate(25deg);
            pointer-events: none;
            animation: badgeShineSweep 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }
        @keyframes badgeShineSweep {
            0% { left: -120%; }
            18% { left: 160%; }
            100% { left: 160%; }
        }

        /* 官方团队专属 - 超凡宇宙全息星穹 */
        .chat-user-badge.badge-official {
            background: linear-gradient(135deg, #ff0844 0%, #ff4b2b 25%, #ffd700 45%, #7928ca 70%, #00f2fe 88%, #ff0844 100%);
            background-size: 350% 350%;
            animation: official-flow-anim 3.2s ease infinite;
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.85);
            box-shadow: 0 0 10px rgba(255, 8, 68, 0.6), 0 0 5px rgba(0, 242, 254, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.9);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
        }
        @keyframes official-flow-anim {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* 官方合作专属 - 顶级钻石全息极光 (Ultra 套餐特效) */
        .chat-user-badge.badge-ultra {
            background: linear-gradient(135deg, #00f5d4 0%, #3a86ff 20%, #7b2cbf 40%, #ff007f 60%, #ffd166 80%, #00f5d4 100%);
            background-size: 320% 320%;
            animation: ultra-aurora-anim 3.8s linear infinite;
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.9);
            box-shadow: 0 0 10px rgba(247, 37, 133, 0.6), 0 0 6px rgba(0, 245, 212, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.95);
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
        }
        @keyframes ultra-aurora-anim {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        table h1 {
            margin: 0;
            font-size: 1.1em;
            line-height: 1.35;
            display: flex;
            align-items: center;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* 排名数字样式 */
        .rank-num {
            display: block;
            text-align: center;
            font-family: 'Arial Black', Impact, sans-serif;
            font-style: italic;
            letter-spacing: -0.5px;
            user-select: none;
        }
        .rank-top-1 {
            font-size: 1.45em !important;
            font-weight: 900;
            background: linear-gradient(135deg, #FFF7AA 0%, #FFD700 40%, #F59E0B 75%, #B45309 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
            animation: super-shine 0.8s infinite alternate;
        }
        .rank-top-2 {
            font-size: 1.4em !important;
            font-weight: 900;
            background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 30%, #94A3B8 70%, #475569 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 6px rgba(200, 200, 200, 0.35);
            animation: super-shine 0.8s infinite alternate;
        }
        .rank-top-3 {
            font-size: 1.35em !important;
            font-weight: 900;
            background: linear-gradient(135deg, #FED7AA 0%, #FB923C 30%, #EA580C 70%, #9A3412 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 6px rgba(234, 88, 12, 0.35);
            animation: super-shine 0.8s infinite alternate;
        }
        .rank-top-10 {
            font-size: 1.2em !important;
            font-weight: 800;
            background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .rank-normal {
            font-size: 1.1em !important;
            font-weight: bold;
            color: #888;
        }

        @keyframes super-shine {
            0% { opacity: 1; transform: scale(1); }
            100% { opacity: 0.8; transform: scale(1.06); }
        }

        /* 前三名渐变昵称 */
        .nick-top1 {
            background: linear-gradient(90deg, #ff4e50 0%, #f9d423 35%, #ffd700 65%, #ff4e50 100%) !important;
            background-size: 200% auto !important;
            -webkit-background-clip: text !important;
            background-clip: text !important;
            color: transparent !important;
            animation: nickShine 2.5s linear infinite !important;
            font-weight: 900 !important;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
        }
        .nick-top2 {
            background: linear-gradient(90deg, #ff007f 0%, #ff5252 25%, #ffd700 50%, #c471ed 75%, #ff007f 100%) !important;
            background-size: 200% auto !important;
            -webkit-background-clip: text !important;
            background-clip: text !important;
            color: transparent !important;
            animation: nickShine 2.8s linear infinite !important;
            font-weight: 900 !important;
            text-shadow: 0 0 10px rgba(255, 0, 127, 0.3) !important;
        }
        .nick-top3 {
            background: linear-gradient(90deg, #f12711 0%, #f5af19 35%, #ff9a8b 70%, #f12711 100%) !important;
            background-size: 200% auto !important;
            -webkit-background-clip: text !important;
            background-clip: text !important;
            color: transparent !important;
            animation: nickShine 3s linear infinite !important;
            font-weight: 900 !important;
            text-shadow: 0 0 10px rgba(241, 39, 17, 0.3) !important;
        }

        /* 赞助支付弹窗 */
        .pay-box {
            width: 100%;
            max-width: 500px;
            padding: 24px 20px;
            text-align: center;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .pay-title {
            font-size: 1.35em;
            font-weight: 800;
            color: #1a1a1a;
            margin-bottom: 4px;
        }
        .pay-sub {
            font-size: 0.88em;
            color: #666;
            margin-bottom: 16px;
        }
        .pay-qr-grid {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-bottom: 14px;
        }
        .pay-qr-card {
            background: #f8f9fa;
            border: 1px solid #eee;
            border-radius: 10px;
            padding: 10px;
            width: 180px;
            box-sizing: border-box;
        }
        .pay-qr-name {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 6px;
        }
        .wechat-color { color: #07c160; }
        .alipay-color { color: #1677ff; }
        .pay-qr-card img {
            width: 100%;
            max-width: 145px;
            height: auto;
            border-radius: 6px;
            display: block;
            margin: 0 auto 6px;
            border: 1px solid #ddd;
        }
        .pay-qr-tip {
            font-size: 11px;
            color: #888;
        }
        .pay-contact-box {
            background: #f0f4ff;
            border: 1px dashed #adc6ff;
            border-radius: 8px;
            padding: 9px 12px;
            font-size: 12px;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .pay-qq-btn {
            background: #182848;
            color: #fff !important;
            padding: 3px 10px;
            border-radius: 15px;
            text-decoration: none;
            font-weight: 700;
            font-size: 12px;
            transition: all 0.2s;
        }
        .pay-qq-btn:hover {
            background: #2575fc;
        }

        /* 移动端适配 */
        @media (max-width: 650px) {
            body {
                padding: 8px 3px;
            }
            .comment {
                font-size: 0.66em !important;
                color: #999;
                margin-bottom: 8px;
            }
            .page-wrapper {
                width: 100%;
            }
            .table-wrap {
                margin: 8px 0;
                border-radius: 6px;
                border: 1px solid #e1e4e8;
            }
            table {
                width: 100% !important;
                table-layout: fixed;
            }
            th, td {
                padding: 6px 2px !important;
            }
            .col-rank { width: 26px !important; text-align: center; }
            .col-avatar { width: 40px !important; text-align: center; }
            .col-name { width: auto !important; }
            .col-qq { width: 92px !important; text-align: left; }
            .col-amount { width: 78px !important; text-align: right; }
            
            table td:nth-child(1) { text-align: center; }
            table td:nth-child(2) { text-align: center; }
            
            table th:nth-child(4) h1, table td:nth-child(4) h1 {
                font-size: 11px !important;
                font-weight: 600 !important;
                letter-spacing: -0.3px !important;
                white-space: nowrap !important;
            }
            table th:nth-child(5) h1 {
                font-size: 11px !important;
                font-weight: 700 !important;
                justify-content: flex-end !important;
                text-align: right !important;
            }
            table td:nth-child(5) h1 {
                font-size: 13.5px !important;
                font-weight: 800 !important;
                color: #dc2626 !important;
                justify-content: flex-end !important;
                text-align: right !important;
                white-space: nowrap !important;
            }
            
            table td img {
                width: 36px !important;
                height: 36px !important;
                border-radius: 18px !important;
            }
            th h1, td h1 {
                font-size: 0.85em !important;
            }
            .rank-num {
                font-size: 1.1em !important;
            }
            .chat-user-badge {
                font-size: 7.5px !important;
                padding: 1px 3px !important;
                margin-right: 2px !important;
            }

            .site-modal {
                padding: 14px 6px;
                align-items: flex-start;
                justify-content: center;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            .site-modal-box {
                margin: 10px auto;
                max-height: calc(100vh - 24px);
                width: 100%;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
            }
            .pay-box {
                padding: 18px 10px;
                max-width: 340px;
            }
            .pay-qr-grid {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 8px;
            }
            .pay-qr-card {
                width: 142px;
                padding: 8px 6px;
            }
            .pay-qr-card img {
                max-width: 124px;
            }
            .pay-qr-name {
                font-size: 12px;
                margin-bottom: 4px;
            }
            .pay-qr-tip {
                font-size: 10.5px;
            }
            .table-summary-bar {
                padding: 10px 12px !important;
                font-size: 12px !important;
            }
            .summary-count {
                font-size: 13px !important;
            }
            .summary-amount {
                font-size: 14.5px !important;
            }
            .footer-rainbow-text {
                font-size: 11.5px !important;
            }
            .footer-contacts {
                font-size: 10.5px !important;
                gap: 6px !important;
            }
        }

        @keyframes nickShine {
            0% { background-position: 0% 50%; }
            100% { background-position: 200% 50%; }
        }

        /* 弹窗通用样式 */
        #detailModal { z-index: 1000050 !important; }
        .site-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 999999;
            align-items: center;
            justify-content: center;
            padding: 16px;
            box-sizing: border-box;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .site-modal-box {
            position: relative;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
            max-height: calc(100vh - 40px);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            box-sizing: border-box;
            margin: auto;
        }
        .modal-close {
            position: absolute;
            top: 10px;
            right: 12px;
            width: 28px;
            height: 28px;
            border-radius: 4px;
            background: #eee;
            border: none;
            color: #666;
            font-size: 18px;
            font-weight: bold;
            line-height: 1;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        .modal-close:hover {
            background: #ddd;
            color: #000;
        }

        /* 详情弹窗特定样式 */
        .detail-box {
            width: 100%;
            max-width: 380px;
            padding: 22px 20px;
        }
        .detail-avatar {
            width: 76px;
            height: 76px;
            border-radius: 38px;
            object-fit: cover;
            display: block;
            margin: 0 auto 12px;
            border: 3px solid #f0f2f5;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        .detail-name {
            font-size: 1.15em;
            font-weight: bold;
            text-align: center;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .detail-qq {
            font-size: 0.88em;
            color: #666;
            text-align: center;
            margin-bottom: 12px;
        }
        .detail-total {
            background: #fff5f5;
            border: 1px solid #ffd8d8;
            border-radius: 6px;
            padding: 10px 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .detail-total span:first-child {
            font-weight: bold;
            color: #333;
        }
        .detail-total span:last-child {
            font-size: 1.25em;
            font-weight: bold;
            color: red;
        }
        .detail-records-wrap {
            flex: 1;
            overflow-y: auto;
            max-height: 220px;
            border: 1px solid #eee;
            border-radius: 6px;
            padding: 8px 10px;
            background: #fafafa;
        }
        .detail-rec-item {
            display: flex;
            justify-content: space-between;
            padding: 6px 4px;
            border-bottom: 1px solid #f0f0f0;
            font-size: 0.9em;
        }
        .detail-rec-item:last-child {
            border-bottom: none;
        }
        .detail-rec-item span:last-child {
            font-weight: bold;
            color: red;
        }

        /* 赞助墙弹窗特定样式 */
        .wall-box {
            width: 100%;
            max-width: 780px;
            padding: 24px 20px;
        }
        .wall-title {
            font-size: 1.3em;
            font-weight: bold;
            text-align: center;
            margin: 0 0 4px;
        }
        .wall-sub {
            font-size: 0.85em;
            color: #666;
            text-align: center;
            margin: 0 0 16px;
        }
        .wall-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 12px;
            max-height: 60vh;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 8px;
        }
        .bubble-item {
            position: relative;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.2s ease;
            user-select: none;
            flex-shrink: 0;
        }
        .bubble-item:hover {
            transform: scale(1.18);
            z-index: 50;
        }
        .bubble-item img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            display: block;
        }
        .bubble-tier-1 { width: 72px; height: 72px; border: 3px solid #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.45); }
        .bubble-tier-2 { width: 62px; height: 62px; border: 2.5px solid #0ea5e9; box-shadow: 0 0 10px rgba(14, 165, 233, 0.35); }
        .bubble-tier-3 { width: 54px; height: 54px; border: 2px solid #ea580c; }
        .bubble-tier-4 { width: 48px; height: 48px; border: 2px solid #8b5cf6; }
        .bubble-tier-5 { width: 42px; height: 42px; border: 1.5px solid #cbd5e1; }

        .bubble-tooltip {
            position: absolute;
            bottom: -28px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.85);
            color: #fff;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            white-space: nowrap;
            pointer-events: none;
            opacity: 0;
            visibility: hidden;
            transition: all 0.15s;
            z-index: 100;
        }
        .bubble-item:hover .bubble-tooltip {
            opacity: 1;
            visibility: visible;
        }

        /* 赞助统计栏 */
        .table-summary-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 24px;
            background: #fafbfc;
            border-top: 1px solid #eef0f2;
            font-size: 14px;
            box-sizing: border-box;
        }
        .summary-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .summary-label {
            color: #64748b;
            font-weight: 500;
        }
        .summary-count {
            color: #0f172a;
            font-weight: 700;
            font-size: 15px;
        }
        .summary-amount {
            color: #dc2626;
            font-weight: 800;
            font-size: 16px;
            font-family: 'Arial', sans-serif;
        }
        .summary-sep {
            width: 1px;
            height: 16px;
            background: #e2e8f0;
        }

        /* 底部版权信息 */
        .site-footer {
            text-align: center;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-top: 24px;
            margin-bottom: 20px;
            padding: 10px 0;
            user-select: none;
        }
        .copyright-text-wrap {
            margin-bottom: 6px;
        }
        .footer-rainbow-text {
            background: linear-gradient(90deg, #00ccff, #9d4dff, #ff3b3b, #00ccff);
            background-size: 300% 100%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: richRainbow 8s ease-in-out infinite;
            font-weight: 800;
            font-size: 13.5px;
            letter-spacing: 0.5px;
        }
        @keyframes richRainbow {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .footer-contacts {
            display: flex;
            gap: 8px;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            font-size: 11.5px;
            color: #888;
        }
        .dot-sep {
            color: #ccc;
        }

/* 收款码放大预览弹窗 */
#imgPreviewModal {
    z-index: 1000100 !important;
}
.preview-box {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    margin: auto;
}
.preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}
.preview-img {
    max-width: 82vw;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    -webkit-touch-callout: default !important;
    pointer-events: auto !important;
    user-select: auto !important;
    cursor: zoom-out;
}
.preview-hint {
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}
.zoom-badge {
    display: inline-block;
    font-size: 11px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
    font-weight: 500;
}
