        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding-bottom: 80px;
            color: #e5e7eb;
            /* 星空动态背景 */
            background-color: #000000;
            background-image:
                radial-gradient(#ffffff 1px, transparent 1px),
                radial-gradient(#60a5fa 1px, transparent 1px);
            background-size: 120px 120px, 180px 180px;
            background-position: 0 0, 60px 60px;
            animation: starry 60s linear infinite;
        }
        @keyframes starry {
            from {
                background-position: 0 0, 60px 60px;
            }
            to {
                background-position: -1000px 1000px, -940px 1060px;
            }
        }
        .page-container {
            width: 100%;
            max-width: 850px;
            padding: 16px;
            box-sizing: border-box;
        }
        .page-title-main {
            font-size: 22px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 4px;
            background: linear-gradient(90deg, #ff5fa2, #ff8cc8, #ff5fa2, #ff8cc8);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: title-gradient 3s ease-in-out infinite;
            text-shadow: 0 0 20px rgba(255, 95, 162, 0.5);
        }
        @keyframes title-gradient {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }
        .page-title-sub {
            font-size: 12px;
            text-align: center;
            margin-bottom: 16px;
            line-height: 1.4;
            background: linear-gradient(90deg, #e5e7eb, #a78bfa, #60a5fa, #34d399, #e5e7eb);
            background-size: 300% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: subtitle-gradient 4s ease-in-out infinite;
        }
        @keyframes subtitle-gradient {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }
        .card {
            background: #000000;
            padding: 16px 18px 20px;
            border-radius: 8px;
            /* border: 1px solid #333; */
            width: 100%;
            box-sizing: border-box;
        }
        .tabs {
            display: flex;
            border-radius: 9999px;
            background-color: rgba(31,41,55,0.9);
            padding: 2px;
            margin-bottom: 16px;
        }
        .tab-btn {
            flex: 1;
            border: none;
            background: transparent;
            color: #9ca3af;
            font-size: 14px;
            padding: 6px 0;
            border-radius: 9999px;
            cursor: pointer;
        }
        .tab-btn.active {
            background: #3b82f6;
            color: #f9fafb;
            font-weight: 600;
        }
        h1 {
            margin: 0 0 16px;
            font-size: 18px;
            text-align: center;
            color: #f9fafb;
        }
        .field {
            margin-bottom: 14px;
        }
        label {
            display: block;
            margin-bottom: 4px;
            font-size: 14px;
            color: #e5e7eb;
        }
        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 8px 10px;
            border-radius: 4px;
            border: 1px solid #4b5563;
            box-sizing: border-box;
            font-size: 14px;
            background-color: #000000;
            color: #f9fafb;
        }
        input[type="text"]::placeholder,
        input[type="password"]::placeholder {
            color: #6b7280;
        }
        input[type="text"]:focus,
        input[type="password"]:focus {
            outline: none;
            border-color: #60a5fa;
            box-shadow: 0 0 0 1px rgba(96,165,250,0.4);
        }
        button {
            width: 100%;
            padding: 9px 12px;
            border-radius: 4px;
            border: none;
            background-color: #3b82f6;
            color: #ffffff;
            font-size: 14px;
            cursor: pointer;
        }
        button:hover {
            background-color: #2563eb;
        }
        .error {
            margin-bottom: 12px;
            padding: 8px 10px;
            border-radius: 4px;
            background-color: #fef2f2;
            color: #b91c1c;
            font-size: 13px;
        }
        .success {
            margin-bottom: 12px;
            padding: 8px 10px;
            border-radius: 4px;
            background-color: rgba(22,163,74,0.15);
            color: #bbf7d0;
            font-size: 13px;
        }
        .info {
            margin-top: 10px;
            font-size: 12px;
            color: #9ca3af;
            text-align: center;
        }
        .logout {
            margin-top: 16px;
            text-align: center;
        }
        .logout a {
            color: #3b82f6;
            text-decoration: none;
            font-size: 13px;
        }
        .logout a:hover {
            text-decoration: underline;
        }
        .logout-btn {
            display: inline-block;
            padding: 10px 24px;
            background: linear-gradient(135deg, #dc2626, #ef4444);
            color: #fff;
            text-decoration: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            text-align: center;
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
            transition: all 0.3s ease;
        }
        .logout-btn:hover {
            background: linear-gradient(135deg, #b91c1c, #dc2626);
            box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
            transform: translateY(-2px);
        }
        .logout-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
        }
        .bottom-nav {
            position: fixed;
            left: 50%;
            bottom: 20px;
            transform: translateX(-50%);
            width: calc(100% - 32px);
            max-width: 420px;
            background: rgba(17, 17, 17, 0.98);
            border-radius: 16px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.6);
            border: 1px solid rgba(51, 51, 51, 0.8);
            display: flex;
            overflow: hidden;
            z-index: 10;
        }
        .bottom-nav a {
            flex: 1;
            padding: 10px 0;
            text-align: center;
            text-decoration: none;
            font-size: 13px;
            color: #9ca3af;
            transition: background 0.2s ease, color 0.2s ease;
        }
        .bottom-nav a:hover {
            background: rgba(42, 219, 92, 0.15);
            color: #f3f4f6;
        }
        .bottom-nav a.active {
            background: #2adb5c;
            color: #000;
            font-weight: 600;
        }
        /* 悬浮提示 */
        #toast-container {
            position: fixed;
            right: 16px;
            bottom: 16px;
            z-index: 2000;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
        }
        .toast {
            min-width: 220px;
            max-width: 320px;
            padding: 12px 14px;
            border-radius: 10px;
            color: #f9fafb;
            font-size: 13px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
            opacity: 1;
            pointer-events: auto;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        .toast.info { background: #333333; }
        .toast.success { background: #10b981; }
        .toast.error { background: #ef4444; }
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .hidden {
            display: none !important;
        }
        .section-title {
            font-size: 18px;
            color: #f3f4f6;
            font-weight: 600;
            margin-bottom: 12px;
            text-align: center;
        }
        .section-card {
            background: rgba(17, 17, 17, 0.8);
            border: 1px solid rgba(51, 51, 51, 0.6);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 18px;
        }
        .section-card h3 {
            margin: 0 0 8px;
            font-size: 15px;
            color: #2adb5c;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .section-card p {
            margin: 0;
            font-size: 12px;
            color: #9ca3af;
            line-height: 1.5;
        }
        .qrcode-box {
            border: 1px dashed rgba(51, 51, 51, 0.8);
            border-radius: 12px;
            padding: 16px;
            background: rgba(0, 0, 0, 0.6);
            text-align: center;
            margin-top: 8px;
        }
        .qrcode-box img {
            display: block;
            width: 180px;
            height: 180px;
            object-fit: contain;
            border-radius: 12px;
            background: #fff;
            padding: 8px;
            margin: 0 auto 12px;
        }
        #qrcode-container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .status-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            color: #ccc;
            background: rgba(51, 51, 51, 0.6);
            margin-top: 6px;
        }
        .status-pill.success {
            background: rgba(16, 185, 129, 0.2);
            color: #bbf7d0;
        }
        .status-pill.error {
            background: rgba(248, 113, 113, 0.2);
            color: #fecaca;
        }
        .status-box {
            margin-top: 12px;
            padding: 10px;
            border-radius: 12px;
            font-size: 12px;
            line-height: 1.5;
        }
        /* 账号管理页面的状态提示 - 固定悬浮在顶部 */
        #manage-status {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            margin-top: 0;
            min-width: 200px;
            max-width: 90%;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            opacity: 1;
            visibility: visible;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }
        #manage-status.hidden {
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-20px);
            pointer-events: none;
        }
        .status-box.info {
            background: #333333;
            border: 1px solid #444444;
            color: #ccc;
        }
        .status-box.success {
            background: #10b981;
            border: 1px solid #0d9668;
            color: #fff;
        }
        .status-box.error {
            background: #ef4444;
            border: 1px solid #dc2626;
            color: #fff;
        }
        .result-warning {
            margin-top: 10px;
            font-size: 12px;
            padding: 8px 10px;
            border-radius: 8px;
            background: rgba(248, 113, 113, 0.1);
            border: 1px dashed rgba(248, 113, 113, 0.4);
            color: #fecaca;
        }
        .roles-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 8px;
        }
        .server-area-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 10px;
        }
        .server-area-card {
            padding: 12px;
            border-radius: 12px;
            background: rgba(17, 17, 17, 0.8);
            border: 1px solid rgba(51, 51, 51, 0.6);
        }
        .server-area-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }
        .server-area-name {
            font-size: 14px;
            color: #f9fafb;
            font-weight: 600;
        }
        .server-area-meta {
            font-size: 12px;
            color: #94a3b8;
        }
        .server-area-servers {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .server-chip {
            padding: 4px 8px;
            border-radius: 8px;
            border: 1px solid rgba(42, 219, 92, 0.4);
            font-size: 11px;
            color: #2adb5c;
            background: rgba(42, 219, 92, 0.15);
        }
        .server-chip.more {
            border-style: dashed;
            color: #fbbf24;
            border-color: rgba(251, 191, 36, 0.5);
            background: rgba(251, 191, 36, 0.15);
        }
        .role-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(17, 17, 17, 0.8);
            border: 1px solid rgba(51, 51, 51, 0.6);
        }
        .role-card-index {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            background: rgba(42, 219, 92, 0.2);
            color: #2adb5c;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 13px;
        }
        .role-card-info {
            flex: 1;
        }
        .role-card-name {
            font-size: 14px;
            color: #f9fafb;
            font-weight: 600;
        }
        .role-card-meta {
            font-size: 12px;
            color: #bfdbfe;
            margin-top: 2px;
        }
        .role-card-subtext {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 2px;
        }
        .role-card-power {
            text-align: right;
        }
        .role-card-power-label {
            font-size: 11px;
            color: #cbd5f5;
        }
        .role-card-power-value {
            font-size: 14px;
            color: #fbbf24;
            font-weight: 600;
            margin-top: 2px;
        }
        .role-card-empty {
            font-size: 12px;
            color: #94a3b8;
        }
        .role-modal-backdrop {
            position: fixed;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(6px);
            z-index: 9999;
        }
        .role-modal {
            width: min(520px, 100%);
            max-height: 90vh;
            background: rgba(17, 17, 17, 0.98);
            border: 1px solid rgba(51, 51, 51, 0.8);
            border-radius: 20px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .role-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 22px;
            border-bottom: 1px solid rgba(51, 51, 51, 0.6);
        }
        .role-modal-title {
            margin: 0;
            font-size: 18px;
            color: #e2e8f0;
            font-weight: 600;
        }
        .role-modal-subtitle {
            margin: 4px 0 0;
            font-size: 12px;
            color: #94a3b8;
        }
        .role-modal-close {
            border: none;
            background: rgba(34, 34, 34, 0.9);
            color: #94a3b8;
            width: 32px;
            height: 32px;
            border-radius: 999px;
            font-size: 18px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, color 0.2s ease;
        }
        .role-modal-close:hover {
            background: rgba(42, 219, 92, 0.2);
            color: #e2e8f0;
        }
        .role-modal-body {
            padding: 16px 22px 22px;
            overflow-y: auto;
        }
        .role-modal-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .role-modal-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 12px 14px;
            border-radius: 14px;
            background: rgba(17, 17, 17, 0.9);
            border: 1px solid rgba(51, 51, 51, 0.6);
        }
        .role-modal-index {
            width: 34px;
            height: 34px;
            border-radius: 999px;
            background: rgba(42, 219, 92, 0.2);
            color: #2adb5c;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .role-modal-info {
            flex: 1;
        }
        .role-modal-name {
            font-size: 15px;
            color: #f9fafb;
            font-weight: 600;
        }
        .role-modal-meta,
        .role-modal-submeta {
            font-size: 12px;
            color: #94a3b8;
            margin-top: 2px;
        }
        .role-modal-meta {
            color: #2adb5c;
        }
        .role-modal-power {
            text-align: right;
        }
        .role-modal-power-label {
            font-size: 11px;
            color: #cbd5f5;
        }
        .role-modal-power-value {
            font-size: 15px;
            color: #fbbf24;
            font-weight: 600;
            margin-top: 3px;
        }
        .role-modal-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            margin-top: 10px;
            width: 100%;
        }
        .role-modal-select-btn {
            border: none;
            border-radius: 999px;
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 600;
            color: #0f172a;
            background: linear-gradient(90deg, #34d399, #10b981);
            cursor: pointer;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }
        .role-modal-select-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        /* 紧凑布局角色卡片样式 */
        .role-item-compact {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
        }
        .role-item-main {
            flex: 1;
            min-width: 0;
        }
        .role-item-header {
            display: flex;
            align-items: baseline;
            gap: 12px;
            flex-wrap: wrap;
        }
        .role-item-name {
            font-size: 15px;
            color: #f9fafb;
            font-weight: 600;
        }
        .role-item-power {
            font-size: 13px;
            color: #fbbf24;
            font-weight: 500;
        }
        .role-item-details {
            font-size: 12px;
            color: #94a3b8;
            margin-top: 4px;
        }
        .role-item-action {
            flex-shrink: 0;
        }
        .role-item-action .role-modal-select-btn {
            white-space: nowrap;
        }
        /* 角色弹窗搜索框样式 */
        .role-search-wrapper {
            padding: 0 16px 12px;
        }
        .role-search-input {
            width: 100%;
            padding: 10px 14px;
            border-radius: 10px;
            border: 1px solid rgba(75, 85, 99, 0.6);
            background: rgba(17, 17, 17, 0.9);
            color: #f9fafb;
            font-size: 14px;
            box-sizing: border-box;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .role-search-input::placeholder {
            color: #6b7280;
        }
        .role-search-input:focus {
            border-color: #60a5fa;
            box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
        }
        .section-card.disabled-ui {
            opacity: 0.7;
        }
        .section-card.disabled-ui button {
            cursor: not-allowed;
            filter: grayscale(0.4);
        }
        .account-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .account-card {
            padding: 14px 16px;
            border-radius: 14px;
            background: rgba(17, 17, 17, 0.9);
            border: 1px solid rgba(51, 51, 51, 0.6);
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .account-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .script-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #cbd5f5;
            cursor: pointer;
            user-select: none;
        }
        .script-toggle-input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }
        .script-toggle-track {
            width: 34px;
            height: 18px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.35);
            position: relative;
            transition: background 0.2s ease;
        }
        .script-toggle-track::after {
            content: "";
            position: absolute;
            top: 2px;
            left: 2px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #f8fafc;
            transition: transform 0.2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
        }
        .script-toggle-input:checked + .script-toggle-track {
            background: #2adb5c;
        }
        .script-toggle-input:checked + .script-toggle-track::after {
            transform: translateX(16px);
        }
        .account-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 12px;
            color: #94a3b8;
        }
        .account-meta-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .account-delete-btn {
            border: none;
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 12px;
            font-weight: 600;
            color: #fecdd3;
            background: rgba(248, 113, 113, 0.15);
            cursor: pointer;
            transition: opacity 0.15s ease;
        }
        .account-delete-btn:hover {
            opacity: 0.85;
        }
        .account-filename {
            font-size: 14px;
            font-weight: 600;
            color: #f8fafc;
            word-break: break-all;
            flex: 1;
        }
        .account-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 8px;
        }
        .account-btn {
            flex: 1 1 calc(33.333% - 6px);
            min-width: calc(33.333% - 6px);
            border: none;
            border-radius: 10px;
            padding: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.15s ease, opacity 0.15s ease;
        }
        .account-btn:hover {
            transform: translateY(-1px);
        }
        .account-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        .account-btn.danger {
            background: linear-gradient(90deg, #f43f5e, #e11d48);
            color: #fff;
            box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
        }
        .account-btn.primary {
            background: linear-gradient(90deg, #0ea5e9, #6366f1);
            color: #fff;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
        }
        .account-btn.primary:hover {
            opacity: 0.95;
        }
        .account-btn.accent {
            background: linear-gradient(90deg, #f97316, #ec4899);
            color: #fff;
            box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
        }
        .account-btn.accent:hover {
            opacity: 0.95;
        }
        .account-btn.account-btn-info {
            background: transparent;
            color: #fbbf24;
            border: 1px solid rgba(251, 191, 36, 0.4);
            box-shadow: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            position: relative;
            overflow: hidden;
            flex: 1 1 calc(50% - 5px);
            min-width: calc(50% - 5px);
        }
        .account-btn.account-btn-info::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
            transition: left 0.5s ease;
        }
        .account-btn.account-btn-info:hover::before {
            left: 100%;
        }
        .account-btn.account-btn-info:hover {
            transform: translateY(-2px);
            background: rgba(251, 191, 36, 0.15);
            border-color: rgba(251, 191, 36, 0.7);
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
        }
        .account-btn.account-btn-log {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            color: #fff;
            box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            position: relative;
            overflow: hidden;
            flex: 1 1 calc(50% - 5px);
            min-width: calc(50% - 5px);
        }
        .account-btn.account-btn-log::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }
        .account-btn.account-btn-log:hover::before {
            left: 100%;
        }
        .account-btn.account-btn-log:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
        }
        .account-btn.placeholder {
            background: rgba(30, 64, 175, 0.2);
            color: #bfdbfe;
            border: 1px dashed rgba(96, 165, 250, 0.4);
        }
        .account-btn.salt-history-group-btn {
            background: linear-gradient(90deg, #ec4899, #f472b6);
            color: #fff;
            box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
            position: relative;
            overflow: visible;
        }
        .account-btn.salt-history-group-btn:hover {
            opacity: 0.95;
            box-shadow: 0 6px 18px rgba(236, 72, 153, 0.5);
        }
        .salt-snowflake {
            position: absolute;
            color: rgba(255, 255, 255, 0.8);
            font-size: 10px;
            pointer-events: none;
            user-select: none;
            z-index: 1000;
            animation: salt-snowfall linear infinite;
        }
        @keyframes salt-snowfall {
            0% {
                transform: translateY(-20px) translateX(0) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(60px) translateX(20px) rotate(360deg);
                opacity: 0;
            }
        }
        .account-btn.salt-group-btn {
            background: linear-gradient(90deg, #10b981, #34d399);
            color: #fff;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
        }
        .account-btn.salt-group-btn:hover {
            opacity: 0.95;
            box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
        }
        .account-btn.salt-map-btn {
            background: linear-gradient(135deg, #f59e0b, #d97706, #f97316);
            color: #fff;
            box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
            position: relative;
            overflow: hidden;
        }
        .account-btn.salt-map-btn::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transform: rotate(45deg);
            animation: salt-map-shine 3s infinite;
        }
        @keyframes salt-map-shine {
            0% {
                left: -50%;
            }
            100% {
                left: 150%;
            }
        }
        .account-btn.salt-map-btn:hover {
            opacity: 0.95;
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
            transform: translateY(-2px);
        }
        /* 现代化按钮样式 */
        .modern-btn {
            position: relative;
            overflow: hidden;
        }

        .modern-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
        }

        .modern-btn:hover div {
            left: 100%;
        }

        .modern-btn:active {
            transform: translateY(0);
            transition: transform 0.1s ease;
        }

        .modern-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        }

        .task-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            z-index: 120;
        }
        .task-modal.visible {
            display: flex;
        }
        .task-modal-dialog {
            width: 100%;
            max-width: 760px;
            background: #111111;
            border: 1px solid rgba(51, 51, 51, 0.5);
            border-radius: 20px;
            box-shadow: 0 25px 80px rgba(17, 17, 17, 0.85);
            padding: 20px 24px 24px;
        }
        .task-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }
        .task-modal-title {
            font-size: 18px;
            font-weight: 700;
            color: #f8fafc;
        }
        .task-modal-subtitle {
            font-size: 13px;
            color: #94a3b8;
            margin-top: 4px;
        }
        .task-modal-close {
            border: none;
            background: rgba(148, 163, 184, 0.15);
            width: 32px;
            height: 32px;
            border-radius: 999px;
            color: #e2e8f0;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }
        .task-modal-close:hover,
        .task-modal button.task-modal-close:hover,
        #clubBossModal .task-modal-close:hover {
            background: rgba(16, 185, 129, 0.3) !important;
            background-color: rgba(16, 185, 129, 0.3) !important;
        }
        .task-modal-close:focus,
        #clubBossModal .task-modal-close:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
        }
        .task-modal-body {
            max-height: 60vh;
            overflow-y: auto;
            padding-right: 4px;
        }
        /* 日志模态框：只让内容框滚动，外层不滚动 */
        #logModal .task-modal-body {
            max-height: none;
            overflow: visible;
            padding-right: 0;
        }
        .task-modal-content {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .log-modal-content-text {
            max-height: 60vh;
            overflow-y: auto;
            white-space: pre-wrap;
            word-break: break-all;
            font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            font-size: 12px;
            line-height: 1.5;
            color: #e5e7eb;
            background: rgba(17, 17, 17, 0.9);
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(148, 163, 184, 0.4);
        }

        /* 个人信息模态框样式 */
        #infoModal .task-modal-body {
            max-height: 60vh;
            overflow-y: auto;
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
        }
        .info-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 12px;
            background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%),
                        radial-gradient(circle at bottom right, rgba(167, 139, 250, 0.08), transparent 55%),
                        rgba(17, 17, 17, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.4);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        }
        .info-item-icon {
            width: 32px;
            height: 32px;
            border-radius: 9999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            background: transparent; /* 图标容器背景设为透明 */
            color: inherit;
            flex-shrink: 0;
            overflow: hidden;
        }
        .info-item-icon-img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }
        .info-item-icon-fallback {
            width: 32px;
            height: 32px;
            border-radius: 9999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            background: rgba(17, 17, 17, 0.9);
            color: #e5e7eb;
            flex-shrink: 0;
        }
        .info-item-text {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }
        .info-item-label {
            font-size: 13px;
            color: #e5e7eb;
            margin-bottom: 2px;
        }
        .info-item-value {
            font-size: 15px;
            font-weight: 600;
            color: #facc15;
            text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
        }
        .task-modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 18px;
        }
        .task-modal-cancel,
        .task-modal-save {
            border-radius: 12px;
            padding: 10px 18px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }
        .task-modal-cancel {
            border: 1px solid rgba(148, 163, 184, 0.4);
            background: transparent;
            color: #e2e8f0;
        }
        .task-modal-cancel:hover,
        #clubBossModal .task-modal-cancel:hover,
        button.task-modal-cancel:hover {
            border-color: rgba(16, 185, 129, 0.6) !important;
            background-color: rgba(16, 185, 129, 0.15) !important;
            color: #34d399 !important;
        }
        .task-modal-cancel:focus,
        #clubBossModal .task-modal-cancel:focus {
            outline: none;
            border-color: #10b981 !important;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
        }
        .task-modal-save {
            border: none;
            background: linear-gradient(90deg, #2563eb, #7c3aed);
            color: #fff;
            box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
        }
        .task-modal-save:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        .task-modal-loading {
            text-align: center;
            color: #94a3b8;
            font-size: 13px;
            padding: 16px 0;
        }
        .task-section {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .task-section-title {
            font-size: 14px;
            font-weight: 700;
            color: #c4b5fd;
            display: flex;
            align-items: center;
            gap: 6px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .task-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 12px;
        }
        .task-field {
            border: 1px solid rgba(148, 163, 184, 0.25);
            border-radius: 14px;
            padding: 10px 12px;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            min-height: 56px;
        }
        .task-field-select {
            flex-direction: row;
            align-items: center;
        }
        .task-field-text-input {
            flex-direction: row;
            align-items: center;
            position: relative;
            padding-bottom: 20px;
        }
        .task-field-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
        }
        .task-field-text-input .task-field-text {
            flex-direction: row;
            align-items: center;
            gap: 8px;
            flex: 0 0 auto;
            flex-shrink: 0;
        }
        .task-field-label {
            font-size: 13px;
            font-weight: 600;
            color: #f8fafc;
            white-space: nowrap;
        }
        .task-field-desc {
            font-size: 11px;
            color: #94a3b8;
        }
        .task-field-text-input .task-field-desc {
            position: absolute;
            bottom: -18px;
            left: 12px;
            font-size: 11px;
            color: #94a3b8;
            white-space: nowrap;
        }
        .task-field-control {
            flex-shrink: 0;
        }
        .task-field-select .task-field-control,
        .task-field-time-select .task-field-control {
            width: auto;
            min-width: 80px;
        }
        .task-field-select select,
        .time-select-container select {
            width: auto;
            min-width: 60px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.4);
            background: rgba(17, 17, 17, 0.8);
            color: #e2e8f0;
            padding: 6px 8px;
            font-size: 13px;
        }
        .task-field-select select:focus,
        .time-select-container select:focus {
            outline: none;
            border-color: rgba(99, 102, 241, 0.9);
        }
        .time-select-container {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .time-separator {
            color: #e2e8f0;
            font-weight: bold;
            user-select: none;
        }
        .task-field-text-input .task-field-control {
            flex: 1;
            min-width: 100px;
        }
        .task-text-input {
            width: 100%;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.4);
            background: rgba(17, 17, 17, 0.8);
            color: #e2e8f0;
            padding: 6px 8px;
            font-size: 13px;
            box-sizing: border-box;
        }
        .task-text-input:focus {
            outline: none;
            border-color: rgba(99, 102, 241, 0.9);
        }
        .task-text-input::placeholder {
            color: #64748b;
        }
        .task-switch {
            position: relative;
            width: 40px;
            height: 20px;
            display: inline-flex;
            align-items: center;
        }
        .task-switch input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        .task-switch span {
            position: relative;
            display: block;
            width: 100%;
            height: 100%;
            background: rgba(148, 163, 184, 0.4);
            border-radius: 999px;
            transition: background 0.2s ease;
        }
        .task-switch span::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #f8fafc;
            top: 1px;
            left: 1px;
            transition: transform 0.2s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        }
        .task-switch input:checked + span {
            background: linear-gradient(90deg, #34d399, #3b82f6);
        }
        .task-switch input:checked + span::after {
            transform: translateX(20px);
        }
        /* 动态渐变按钮背景 */
        .dynamic-gradient-btn {
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #667eea 100%);
            background-size: 300% 300%;
            animation: gradientFlow 8s ease infinite;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .dynamic-gradient-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);
            animation: shine 3s infinite;
        }
        .dynamic-gradient-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }
        .dynamic-gradient-btn:active {
            transform: translateY(0);
        }
        @keyframes gradientFlow {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }
        @keyframes shine {
            0% {
                left: -100%;
            }
            50%, 100% {
                left: 100%;
            }
        }
        @media (max-width: 480px) {
            .page-title-main {
                font-size: 20px;
            }
            .card {
                padding: 16px 14px 18px;
            }
            .bottom-nav {
                bottom: 12px;
            }
        }
        .salt-toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            max-width: 320px;
            background: #000000;
            border-radius: 16px;
            padding: 14px 18px;
            font-size: 13px;
            color: #f8fafc;
            border: 1px solid #60a5fa;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
            z-index: 140;
        }
        .salt-toast.hidden {
            display: none;
        }
        .salt-toast.success {
            border-color: #10b981;
        }
        .salt-toast.error {
            border-color: #ef4444;
        }
        .salt-detection {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 150;
            padding: 20px;
        }
        .salt-detection.hidden {
            display: none;
        }
        .salt-detection-card {
            background: #111111;
            border: 1px solid rgba(96, 165, 250, 0.3);
            border-radius: 20px;
            padding: 24px;
            max-width: 360px;
            width: 100%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
        }
        .salt-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(148, 163, 184, 0.3);
            border-top-color: #38bdf8;
            border-radius: 50%;
            margin: 0 auto 16px;
            animation: spin 1s linear infinite;
        }
        .salt-detection-message {
            font-size: 14px;
            color: #e2e8f0;
            margin-bottom: 20px;
        }
        .salt-detection-close {
            border: none;
            border-radius: 999px;
            background: rgba(248, 113, 113, 0.15);
            color: #fecdd3;
            padding: 8px 18px;
            font-size: 12px;
            cursor: pointer;
        }
        .salt-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            z-index: 145;
        }
        .salt-modal-card {
            width: 100%;
            max-width: 420px;
            background: #111111;
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: 18px;
            box-shadow: 0 25px 80px rgba(17, 17, 17, 0.85);
            padding: 22px;
            max-height: 90vh;
            overflow-y: auto;
        }
        .salt-modal-title {
            font-size: 16px;
            font-weight: 600;
            color: #f8fafc;
            margin-bottom: 12px;
        }
        .salt-date-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .salt-date-item {
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid rgba(99, 102, 241, 0.3);
            background: rgba(17, 17, 17, 0.8);
            color: #e2e8f0;
            cursor: pointer;
            transition: border-color 0.2s ease, transform 0.15s ease;
        }
        .salt-date-item:hover {
            border-color: rgba(248, 113, 113, 0.7);
            transform: translateY(-1px);
        }
        .salt-date-item.disabled {
            opacity: 0.45;
            cursor: not-allowed;
            border-style: dashed;
        }
        .salt-date-label {
            font-size: 14px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .salt-date-type {
            font-size: 11px;
            padding: 2px 8px;
            border-radius: 999px;
            background: rgba(59, 130, 246, 0.15);
            color: #93c5fd;
        }
        .salt-date-type.fourth {
            background: rgba(236, 72, 153, 0.15);
            color: #fbcfe8;
        }
        .salt-modal-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 16px;
        }
        .salt-btn {
            border: none;
            border-radius: 10px;
            padding: 8px 14px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            background: linear-gradient(90deg, #2563eb, #7c3aed);
            color: #fff;
        }
        .salt-btn.ghost {
            background: rgba(148, 163, 184, 0.15);
            color: #cbd5f5;
        }
        .salt-report-card {
            width: 100%;
            max-width: 960px;
            background: #ffffff;
            border-radius: 18px;
            padding: 24px;
            box-shadow: 0 30px 80px rgba(15, 23, 42, 0.5);
            color: #0f172a;
            max-height: 90vh;
            overflow-y: auto;
        }
        .salt-report-header {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }
        .salt-report-title {
            font-size: 20px;
            font-weight: 700;
        }
        .salt-report-subtitle {
            font-size: 13px;
            color: #475569;
        }
        .salt-report-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .salt-table-wrapper {
            overflow-x: auto;
            border-radius: 20px;
            padding: 1px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(147, 51, 234, 0.35));
            box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
        }
        .salt-table {
            width: 100%;
            min-width: 2000px;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 12px;
            background: #fff;
            border-radius: 18px;
            overflow: hidden;
        }
        .salt-table thead th {
            background: linear-gradient(120deg, #f472b6, #ec4899 55%, #db2777);
            color: #f8fafc;
            padding: 11px 14px;
            font-size: 11px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            border-bottom: 1px solid rgba(248, 250, 252, 0.4);
            position: sticky;
            top: 0;
            z-index: 2;
            text-align: center;
            white-space: nowrap;
        }
        .salt-table thead th:nth-child(1) { width: 80px; min-width: 80px; } /* 排名 */
        .salt-table thead th:nth-child(2) { width: 120px; min-width: 120px; } /* 类别 */
        .salt-table thead th:nth-child(3) { width: 200px; min-width: 200px; } /* 俱乐部名称 */
        .salt-table thead th:nth-child(4) { width: 120px; min-width: 120px; } /* 战力 */
        .salt-table thead th:nth-child(5) { width: 100px; min-width: 100px; } /* 服务器 */
        .salt-table thead th:nth-child(6) { width: 100px; min-width: 100px; } /* 红淬 */
        .salt-table thead th:nth-child(7) { width: 220px; min-width: 220px; } /* 成员1 */
        .salt-table thead th:nth-child(8) { width: 220px; min-width: 220px; } /* 成员2 */
        .salt-table thead th:nth-child(9) { width: 220px; min-width: 220px; } /* 成员3 */
        .salt-table thead th:nth-child(10) { width: 500px; min-width: 500px; } /* 公告 */
        .salt-table tbody td:nth-child(1) { width: 80px; min-width: 80px; }
        .salt-table tbody td:nth-child(2) { width: 120px; min-width: 120px; white-space: nowrap; }
        .salt-table tbody td:nth-child(3) { width: 200px; min-width: 200px; white-space: nowrap; }
        .salt-table tbody td:nth-child(4) { width: 120px; min-width: 120px; }
        .salt-table tbody td:nth-child(5) { width: 100px; min-width: 100px; }
        .salt-table tbody td:nth-child(6) { width: 100px; min-width: 100px; }
        .salt-table tbody td:nth-child(7) { width: 220px; min-width: 220px; }
        .salt-table tbody td:nth-child(8) { width: 220px; min-width: 220px; }
        .salt-table tbody td:nth-child(9) { width: 220px; min-width: 220px; }
        .salt-table tbody td:nth-child(10) { width: 500px; min-width: 500px; white-space: normal; word-wrap: break-word; }
        .salt-table thead th:nth-child(2),
        .salt-table tbody td:nth-child(2) {
            text-align: left;
        }
        .salt-table tbody td {
            padding: 12px 14px;
            border-bottom: 1px solid #f1f5f9;
            color: #0f172a;
            font-weight: 600;
            text-align: center;
        }
        .salt-table tbody tr:last-child td {
            border-bottom: none;
        }
        .salt-table tbody tr:nth-child(even) {
            background: #f8fafc;
        }
        .salt-table tbody tr:hover {
            background: #eef2ff;
        }
        .salt-row-highlight {
            background: linear-gradient(90deg, rgba(254, 243, 199, 0.6), rgba(255, 228, 181, 0.6));
        }
        .salt-table-total-row td {
            font-weight: 600;
            background: #111111;
            color: #f8fafc;
        }
        .salt-table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        /* 盐场战报表格样式（7列，百分比宽度以适配不同屏幕） */
        .salt-report-table {
            width: 100%;
            min-width: 720px;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 13px;
            font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 6px 20px rgba(8, 15, 36, 0.06);
        }
        .salt-report-table thead th {
            background: #2563eb; /* 纯色表头，蓝色 */
            color: #ffffff;
            padding: 10px 12px;
            font-size: 12px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            position: sticky;
            top: 0;
            z-index: 2;
            text-align: center;
            white-space: nowrap;
        }
        /* 使用百分比宽度以便响应式调整（总和约为100%） */
        .salt-report-table thead th:nth-child(1) { width: 8%; min-width: 60px; } /* 排名 */
        .salt-report-table thead th:nth-child(2) { width: 30%; min-width: 140px; text-align: left; } /* 角色 */
        .salt-report-table thead th:nth-child(3) { width: 10%; min-width: 60px; } /* 击杀 */
        .salt-report-table thead th:nth-child(4) { width: 10%; min-width: 60px; } /* 死亡 */
        .salt-report-table thead th:nth-child(5) { width: 15%; min-width: 80px; } /* KDA */
        .salt-report-table thead th:nth-child(6) { width: 10%; min-width: 60px; } /* 刨地 */
        .salt-report-table thead th:nth-child(7) { width: 17%; min-width: 80px; } /* 复活丹 */
        .salt-report-table tbody td:nth-child(1) { width: 8%; min-width: 60px; }
        .salt-report-table tbody td:nth-child(2) { width: 30%; min-width: 140px; white-space: nowrap; text-align: left; }
        .salt-report-table tbody td:nth-child(3) { width: 10%; min-width: 60px; }
        .salt-report-table tbody td:nth-child(4) { width: 10%; min-width: 60px; }
        .salt-report-table tbody td:nth-child(5) { width: 15%; min-width: 80px; }
        .salt-report-table tbody td:nth-child(6) { width: 10%; min-width: 60px; }
        .salt-report-table tbody td:nth-child(7) { width: 17%; min-width: 80px; }
        .salt-report-table tbody td {
            padding: 10px 12px;
            border-bottom: 1px solid #f1f5f9;
            color: #0f172a;
            font-weight: 600;
            text-align: center;
        }
        .salt-report-table tbody tr:last-child td {
            border-bottom: none;
        }
        .salt-report-table tbody tr:nth-child(even) {
            background: #f8fafc;
        }
        .salt-report-table tbody tr:hover {
            background: #eef2ff;
        }
        .salt-report-table .salt-table-total-row td {
            font-weight: 600;
            background: #111111;
            color: #f8fafc;
        }
        /* 报表布局：主内容 + 侧边统计 */
        .salt-report-body {
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }
        .salt-report-main {
            flex: 1 1 auto;
            min-width: 0;
        }
        .salt-report-side {
            width: 320px;
            flex: 0 0 320px;
        }
        .side-card {
            background: #ffffff;
            border-radius: 10px;
            padding: 10px;
            margin-bottom: 12px;
            box-shadow: 0 4px 12px rgba(2,6,23,0.06);
            border: 1px solid rgba(15,23,42,0.06);
        }
        .side-title {
            background: #5b21b6;
            color: #fff;
            padding: 8px 10px;
            border-radius: 8px;
            font-weight: 700;
            margin: -10px -10px 8px -10px;
            text-align: center;
        }
        .side-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            border-bottom: 1px dashed rgba(15,23,42,0.04);
        }
        .side-row:last-child { border-bottom: none; }
        .side-label { color: #475569; font-size: 13px; }
        .side-value { font-weight: 800; color: #111827; background: #f3f4f6; padding: 6px 10px; border-radius: 999px; }
        .side-list-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0;
        }
        .side-list-avatar img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
        .side-list-name { flex: 1; font-weight: 700; color: #0f172a; }
        .side-list-value { font-weight: 800; color: #6b21a8; }
        .side-list-rank { width: 20px; text-align: center; font-weight: 800; color: #fff; background: #8b5cf6; border-radius: 6px; padding: 2px 4px; }
        /* 统计 pill 样式 */
        .stat-pill { display: inline-block; padding: 6px 8px; border-radius: 8px; font-weight: 800; min-width: 36px; text-align: center; }
        .stat-kill { background: #059669; color: #fff; }
        .stat-build { background: #f59e0b; color: #fff; }
        .stat-death { background: #ef4444; color: #fff; }
        .stat-revive { background: #10b981; color: #fff; }
        .stat-kda { background: transparent; color: #0f172a; font-weight: 700; }
        .stat-total { background: #6b21a8; color: #fff; padding: 8px 12px; border-radius: 6px; display: inline-block; }
        .salt-rank-pill {
            width: 34px;
            height: 34px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 15px;
            color: #0f172a;
            background: #e2e8f0;
            box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.15);
        }
        .salt-rank-pill.gold {
            background: linear-gradient(135deg, #fcd34d, #f97316);
            color: #78350f;
        }
        .salt-rank-pill.silver {
            background: linear-gradient(135deg, #e2e8f0, #cbd5f5);
            color: #1e293b;
        }
        .salt-rank-pill.bronze {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: #78350f;
        }
        .salt-role-info {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
        }
        .salt-role-avatar {
            width: 32px;
            height: 32px;
            border-radius: 9999px;
            object-fit: cover;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
        }
        .salt-role-avatar-fallback {
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 12px;
            color: #475569;
            text-transform: uppercase;
        }
        /* 小屏适配：隐藏复活丹列并微调列宽 */
        @media (max-width: 720px) {
            .salt-report-table thead th:nth-child(7),
            .salt-report-table tbody td:nth-child(7) {
                display: none;
            }
            .salt-report-table thead th:nth-child(2),
            .salt-report-table tbody td:nth-child(2) {
                width: 40%;
            }
            .salt-report-table thead th:nth-child(5),
            .salt-report-table tbody td:nth-child(5) {
                width: 20%;
            }
        }
        @media (max-width: 420px) {
            .salt-report-table { font-size: 12px; }
            .salt-report-table thead th { padding: 8px 10px; }
            .salt-report-table tbody td { padding: 8px 10px; }
        }
        .salt-role-meta {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .salt-role-name {
            font-weight: 600;
            font-size: 13px;
            color: #0f172a;
        }
        .salt-role-badges {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
        }
        .salt-badge-chip {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 999px;
            background: #e0e7ff;
            color: #3730a3;
            border: 1px solid rgba(79, 70, 229, 0.15);
        }
        .salt-badge-chip[data-badge="kill"] {
            background: rgba(253, 230, 138, 0.6);
            color: #92400e;
            border-color: rgba(245, 158, 11, 0.3);
        }
        .salt-badge-chip[data-badge="revive"] {
            background: rgba(134, 239, 172, 0.55);
            color: #065f46;
            border-color: rgba(16, 185, 129, 0.35);
        }
        .salt-badge-chip[data-badge="kda"] {
            background: rgba(221, 214, 254, 0.7);
            color: #5b21b6;
            border-color: rgba(139, 92, 246, 0.35);
        }
        .salt-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-bottom: 18px;
        }
        .salt-summary-card {
            border-radius: 14px;
            padding: 12px;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
        }
        
        /* 下雪背景效果 */
        .snow-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
        }
        .snowflake {
            position: absolute;
            color: #ffffff;
            font-size: 1em;
            font-family: Arial, sans-serif;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
            animation: snowfall linear infinite;
            opacity: 0.8;
        }
        @keyframes snowfall {
            0% {
                transform: translateY(-100vh) translateX(0) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.8;
            }
            90% {
                opacity: 0.8;
            }
            100% {
                transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
                opacity: 0;
            }
        }
        .page-container {
            position: relative;
            z-index: 2;
        }
        /* 自定义滚动条样式 - 深色主题 */
        /* Webkit浏览器 (Chrome, Safari, Edge) */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.5);
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(100, 116, 139, 0.6);
            border-radius: 4px;
            border: 1px solid rgba(15, 23, 42, 0.3);
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(148, 163, 184, 0.8);
        }
        /* Firefox浏览器 */
        * {
            scrollbar-width: thin;
            scrollbar-color: rgba(100, 116, 139, 0.6) rgba(15, 23, 42, 0.5);
        }

        /* 右下角悬浮弹窗样式 */
        .update-log-popup {
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: 320px;
            max-height: 400px;
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
            border: 1px solid rgba(148, 163, 184, 0.3);
            border-radius: 12px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            overflow: hidden;
            animation: slideIn 0.3s ease-out;
        }

        .update-log-popup.show {
            display: block;
        }

        @keyframes slideIn {
            from {
                transform: translateY(100px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .update-log-header {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(90deg, rgba(255, 95, 162, 0.1), rgba(255, 140, 200, 0.1));
        }

        .update-log-title {
            font-size: 16px;
            font-weight: 600;
            color: #ff5fa2;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .update-log-title::before {
            content: "📋";
            font-size: 18px;
        }

        .update-log-close {
            background: none;
            border: none;
            color: rgba(148, 163, 184, 0.8);
            font-size: 20px;
            cursor: pointer;
            padding: 4px 6px;
            border-radius: 4px;
            transition: all 0.2s ease;
            line-height: 1;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .update-log-close:hover {
            color: #ff5fa2;
            background: rgba(255, 95, 162, 0.1);
        }

        .update-log-content {
            padding: 16px 20px;
            max-height: 280px;
            overflow-y: auto;
            color: #e2e8f0;
            font-size: 14px;
            line-height: 1.6;
        }

        .update-log-content::-webkit-scrollbar {
            width: 6px;
        }

        .update-log-content::-webkit-scrollbar-track {
            background: rgba(15, 23, 42, 0.5);
            border-radius: 3px;
        }

        .update-log-content::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.6);
            border-radius: 3px;
        }

        .update-log-content::-webkit-scrollbar-thumb:hover {
            background: rgba(148, 163, 184, 0.8);
        }

        .update-log-item {
            margin-bottom: 12px;
            padding: 8px 12px;
            background: rgba(30, 41, 59, 0.5);
            border-radius: 6px;
            border-left: 3px solid #ff5fa2;
        }

        .update-log-date {
            font-size: 12px;
            color: rgba(148, 163, 184, 0.8);
            margin-bottom: 4px;
            font-weight: 500;
        }

        .update-log-text {
            color: #e2e8f0;
            margin: 0;
            font-size: 13px;
        }

        .update-log-footer {
            padding: 12px 20px;
            border-top: 1px solid rgba(148, 163, 184, 0.2);
            text-align: center;
        }

        .update-log-show-btn {
            background: linear-gradient(135deg, #ff5fa2, #ff8cc8);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 6px -1px rgba(255, 95, 162, 0.3);
        }

        .update-log-show-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 8px -1px rgba(255, 95, 162, 0.4);
        }

        /* 悬浮按钮样式 */
        .floating-btn {
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: auto;
            min-width: 80px;
            height: 40px;
            background: linear-gradient(135deg, #ff5fa2, #ff8cc8);
            border: none;
            border-radius: 20px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            padding: 0 16px;
            box-shadow: 0 8px 16px -4px rgba(255, 95, 162, 0.4);
            z-index: 999;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }

        .floating-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 12px 20px -4px rgba(255, 95, 162, 0.5);
        }

        @keyframes pulse {
            0%, 100% {
                box-shadow: 0 8px 16px -4px rgba(255, 95, 162, 0.4);
            }
            50% {
                box-shadow: 0 8px 16px -4px rgba(255, 95, 162, 0.4), 0 0 0 0 rgba(255, 95, 162, 0.7);
            }
        }

        /* 当弹窗显示时隐藏悬浮按钮 */
        .floating-btn.hide {
            display: none;
        }

        /* 统一按钮样式 */
        .account-actions .modern-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.9);
            font-size: 13px;
            font-weight: 500;
            padding: 12px 16px;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            letter-spacing: 0.5px;
            cursor: pointer;
        }

        .account-actions .modern-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
            border-color: rgba(255, 255, 255, 0.2);
            color: #fff;
        }

        .account-actions .modern-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* 禁用状态 */
        .account-actions .modern-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            box-shadow: none !important;
            background: rgba(255, 255, 255, 0.02);
        }

        /* 颜色变体 - 保持一致的深色玻璃拟态风格，通过边框和微光区分 */
        .btn-primary-glass {
            background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05)) !important;
            border-color: rgba(51, 51, 51, 0.5) !important;
        }
        .btn-primary-glass:hover {
            background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1)) !important;
            border-color: rgba(59, 130, 246, 0.5) !important;
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.2) !important;
        }

        .btn-success-glass {
            background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05)) !important;
            border-color: rgba(16, 185, 129, 0.3) !important;
        }
        .btn-success-glass:hover {
            background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1)) !important;
            border-color: rgba(16, 185, 129, 0.5) !important;
            box-shadow: 0 0 15px rgba(16, 185, 129, 0.2) !important;
        }

        .btn-warning-glass {
            background: linear-gradient(145deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05)) !important;
            border-color: rgba(245, 158, 11, 0.3) !important;
        }
        .btn-warning-glass:hover {
            background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1)) !important;
            border-color: rgba(245, 158, 11, 0.5) !important;
            box-shadow: 0 0 15px rgba(245, 158, 11, 0.2) !important;
        }

        .btn-purple-glass {
            background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.05)) !important;
            border-color: rgba(139, 92, 246, 0.3) !important;
        }
        .btn-purple-glass:hover {
            background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.1)) !important;
            border-color: rgba(139, 92, 246, 0.5) !important;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.2) !important;
        }

        .btn-rose-glass {
            background: linear-gradient(145deg, rgba(244, 63, 94, 0.1), rgba(225, 29, 72, 0.05)) !important;
            border-color: rgba(244, 63, 94, 0.3) !important;
        }
        .btn-rose-glass:hover {
            background: linear-gradient(145deg, rgba(244, 63, 94, 0.2), rgba(225, 29, 72, 0.1)) !important;
            border-color: rgba(244, 63, 94, 0.5) !important;
            box-shadow: 0 0 15px rgba(244, 63, 94, 0.2) !important;
        }

        /* 危险按钮玻璃态 */
        .btn-danger-glass {
            background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05)) !important;
            border-color: rgba(239, 68, 68, 0.3) !important;
            color: rgba(255, 255, 255, 0.8) !important;
        }
        .btn-danger-glass:hover {
            background: linear-gradient(145deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1)) !important;
            border-color: rgba(239, 68, 68, 0.5) !important;
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
            color: #fff !important;
        }

        /* 信息按钮玻璃态 */
        .btn-info-glass {
            background: linear-gradient(145deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.05)) !important;
            border-color: rgba(14, 165, 233, 0.3) !important;
        }
        .btn-info-glass:hover {
            background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(2, 132, 199, 0.1)) !important;
            border-color: rgba(14, 165, 233, 0.5) !important;
            box-shadow: 0 0 15px rgba(14, 165, 233, 0.2) !important;
        }

        /* 激活按钮样式优化 */
        .btn-activate-glass {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2)) !important;
            border: 1px solid rgba(139, 92, 246, 0.3) !important;
            color: white !important;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .btn-activate-glass:hover {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.4)) !important;
            border-color: rgba(139, 92, 246, 0.6) !important;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.3) !important;
        }

        /* 账号管理 - 添加账号按钮组样式 */
        .add-account-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }
        .add-account-btn.active,
        #btn-add-bin.active {
            background: rgba(16, 185, 129, 0.25) !important;
            border-color: rgba(16, 185, 129, 0.7) !important;
            box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
        }
        #btn-add-qrcode.active {
            background: rgba(59, 130, 246, 0.25) !important;
            border-color: rgba(59, 130, 246, 0.7) !important;
            box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
        }
        #btn-add-phone.active {
            background: rgba(168, 85, 247, 0.25) !important;
            border-color: rgba(168, 85, 247, 0.7) !important;
            box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
        }
        .add-account-panel {
            animation: slideDown 0.2s ease-out;
        }
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .panel-close-btn:hover {
            color: #f87171 !important;
            transform: scale(1.1);
        }
        .panel-close-btn:focus {
            outline: none;
            color: #10b981 !important;
        }
