        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: #f0f2f5;
            min-height: 100vh;
            display: flex;
        }
        .sidebar {
            width: 240px;
            background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
            color: white;
            min-height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            z-index: 100;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        .sidebar-header {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .sidebar-header h2 {
            font-size: 20px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .sidebar-header .subtitle {
            font-size: 12px;
            opacity: 0.6;
            margin-top: 4px;
        }
        .sidebar-menu {
            padding: 12px 0;
            flex: 1;
            overflow-y: auto;
        }
        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 20px;
            color: rgba(255,255,255,0.7);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 14px;
            font-weight: 500;
            border-left: 3px solid transparent;
            text-decoration: none;
        }
        .menu-item:hover {
            background: rgba(255,255,255,0.08);
            color: white;
        }
        .menu-item.active {
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
            border-left-color: #667eea;
        }
        .menu-item .icon {
            font-size: 18px;
            width: 24px;
            text-align: center;
        }
        .menu-group { display: flex; flex-direction: column; }
        .menu-group .menu-item { border-left-color: transparent; }
        .menu-group .menu-item.active {
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
            border-left-color: #667eea;
        }
        .menu-group .sub-menu {
            display: none;
            flex-direction: column;
            background: rgba(0,0,0,0.15);
        }
        .menu-group .sub-menu.open { display: flex; }
        .menu-group .sub-menu .menu-item {
            padding-left: 56px;
            font-size: 13px;
            border-left: 3px solid transparent;
        }
        .menu-group .sub-menu .menu-item:hover {
            background: rgba(255,255,255,0.06);
        }
        .menu-group .sub-menu .menu-item.active {
            background: rgba(102, 126, 234, 0.15);
            color: #667eea;
            border-left-color: #667eea;
        }
        .menu-arrow {
            margin-left: auto;
            font-size: 12px;
            transition: transform 0.3s ease;
            opacity: 0.5;
        }
        .menu-arrow.open { transform: rotate(180deg); }
        .sidebar-footer {
            padding: 16px 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            font-size: 12px;
            color: rgba(255,255,255,0.4);
        }
        /* ===== 侧边栏折叠按钮 ===== */
        .sidebar-collapse-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 13px;
            user-select: none;
        }
        .sidebar-collapse-btn:hover {
            background: rgba(255,255,255,0.08);
            color: white;
        }
        .sidebar-collapse-btn .arrow {
            transition: transform 0.3s ease;
            font-size: 12px;
        }
        .sidebar-collapse-btn .arrow.collapsed {
            transform: rotate(180deg);
        }
        /* ===== 侧边栏折叠状态 ===== */
        .sidebar.collapsed {
            width: 60px;
        }
        .sidebar.collapsed .sidebar-header h2 span,
        .sidebar.collapsed .sidebar-header .subtitle,
        .sidebar.collapsed .menu-item span:not(.icon),
        .sidebar.collapsed .menu-arrow,
        .sidebar.collapsed .sidebar-footer,
        .sidebar.collapsed .sidebar-collapse-btn .label {
            display: none;
        }
        .sidebar.collapsed .sidebar-header {
            padding: 16px 10px;
            text-align: center;
        }
        .sidebar.collapsed .sidebar-header h2 {
            justify-content: center;
            font-size: 18px;
        }
        .sidebar.collapsed .menu-item {
            justify-content: center;
            padding: 14px 10px;
            border-left: none;
        }
        .sidebar.collapsed .menu-item .icon {
            font-size: 20px;
            width: auto;
        }
        .sidebar.collapsed .sidebar-collapse-btn {
            justify-content: center;
            padding: 12px 10px;
        }
        .sidebar.collapsed + .main-content {
            margin-left: 60px;
        }
        .main-content {
            margin-left: 240px;
            flex: 1;
            min-height: 100vh;
            padding: 30px;
            transition: margin-left 0.3s ease;
        }
        .page { display: none; }
        .page.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .page-header { margin-bottom: 24px; }
        .page-header h1 {
            font-size: 24px;
            font-weight: 700;
            color: #1a1a2e;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .page-header .desc {
            font-size: 14px;
            color: #888;
            margin-top: 4px;
        }
        .card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            padding: 24px;
            margin-bottom: 20px;
        }
        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .search-bar {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            align-items: flex-end;
            flex-wrap: wrap;
        }
        .search-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
            flex: 1;
            min-width: 160px;
        }
        .search-group label {
            font-size: 12px;
            font-weight: 600;
            color: #888;
            padding-left: 4px;
        }
        .search-input {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #e8ecf4;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #f8f9fe;
            outline: none;
        }
        .search-input:focus {
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }
        .search-actions {
            display: flex;
            gap: 8px;
            align-items: flex-end;
            padding-bottom: 2px;
        }
        .search-btn {
            padding: 10px 22px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            height: 42px;
        }
        .search-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }
        .search-btn-clear {
            background: linear-gradient(135deg, #95a5a6, #7f8c8d);
        }
        .search-btn-clear:hover {
            box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
        }
        .stats-bar {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }
        .stat-item {
            background: #f8f9fe;
            padding: 12px 24px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #555;
        }
        .stat-item strong {
            color: #333;
            font-size: 18px;
        }
        .table-wrapper {
            overflow-x: auto;
            border-radius: 12px;
            border: 1px solid #e8ecf4;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        thead {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }
        th {
            padding: 14px 16px;
            text-align: left;
            font-weight: 600;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        td {
            padding: 12px 16px;
            border-bottom: 1px solid #f0f2f8;
            color: #444;
        }
        tr:hover td { background: #f8f9fe; }
        .user-id {
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 12px;
            color: #888;
        }
        .username { font-weight: 600; color: #667eea; }
        .balance {
            font-weight: 700;
            color: #2ecc71;
            font-size: 15px;
        }
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        .status-badge.normal {
            background: #e8f8f0;
            color: #27ae60;
        }
        .status-badge.normal::before {
            content: '●';
            color: #27ae60;
        }
        .status-badge.banned {
            background: #fde8e8;
            color: #e74c3c;
        }
        .status-badge.banned::before {
            content: '●';
            color: #e74c3c;
        }
        .action-btns {
            display: flex;
            gap: 6px;
            flex-wrap: nowrap;
        }
        .btn {
            padding: 6px 14px;
            border: none;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .btn:hover { transform: translateY(-1px); }
        .btn-edit { background: #eef2ff; color: #667eea; }
        .btn-edit:hover { background: #667eea; color: white; }
        .btn-ban { background: #fde8e8; color: #e74c3c; }
        .btn-ban:hover { background: #e74c3c; color: white; }
        .btn-unban { background: #e8f8f0; color: #27ae60; }
        .btn-unban:hover { background: #27ae60; color: white; }
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 25px;
            padding: 15px 0;
        }
        .page-btn {
            padding: 8px 16px;
            border: 2px solid #e8ecf4;
            border-radius: 10px;
            background: white;
            color: #555;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .page-btn:hover:not(:disabled) {
            border-color: #667eea;
            color: #667eea;
        }
        .page-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .page-btn.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border-color: transparent;
        }
        .page-info {
            font-size: 14px;
            color: #888;
            padding: 0 12px;
        }
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.2s ease;
        }
        .modal-overlay.active { display: flex; }
        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .modal {
            background: white;
            border-radius: 20px;
            padding: 30px;
            width: 90%;
            max-width: 420px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }
        .modal h2 {
            font-size: 20px;
            margin-bottom: 8px;
            color: #333;
        }
        .modal .modal-desc {
            font-size: 14px;
            color: #888;
            margin-bottom: 20px;
        }
        .modal .form-group { margin-bottom: 16px; }
        .modal .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #555;
            margin-bottom: 6px;
        }
        .modal .form-group input,
        .modal .form-group select,
        .modal .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid #e8ecf4;
            border-radius: 10px;
            font-size: 15px;
            outline: none;
            transition: all 0.2s ease;
            font-family: inherit;
        }
        .modal .form-group input:focus,
        .modal .form-group select:focus,
        .modal .form-group textarea:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }
        .modal .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        .modal .form-group .user-info {
            background: #f8f9fe;
            padding: 10px 14px;
            border-radius: 10px;
            font-size: 13px;
            color: #666;
        }
        /* 抽奖配置基础信息行 */
        .lottery-base-row {
            display: flex;
            gap: 16px;
        }
        .lottery-base-row .form-group {
            flex: 1;
        }
        .lottery-divider {
            border: none;
            border-top: 1px solid #e8ecf4;
            margin: 20px 0;
        }
        .lottery-section-title {
            font-size: 15px;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .required-star {
            color: #ff4d4f;
            margin-left: 2px;
        }
        /* 奖品卡片 */
        .lottery-prize-card {
            background: #f8f9fe;
            border: 1px solid #e8ecf4;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 14px;
        }
        .lottery-prize-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
        }
        .lottery-prize-card-title {
            font-size: 14px;
            font-weight: 700;
            color: #333;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .lottery-prize-card-body {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        .lottery-prize-field {
            flex: 1;
            min-width: 140px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .lottery-prize-field label {
            font-size: 12px;
            color: #888;
            font-weight: 600;
        }
        .lottery-prize-field .search-input {
            width: 100%;
        }
        /* 开关切换 */
        .lottery-switch {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
        }
        .lottery-switch input {
            opacity: 0;
            width: 0;
            height: 0;
            position: absolute;
        }
        .lottery-switch-slider {
            position: relative;
            width: 40px;
            height: 22px;
            background: #d1d5db;
            border-radius: 22px;
            transition: background 0.3s;
            flex-shrink: 0;
        }
        .lottery-switch-slider::before {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            left: 2px;
            top: 2px;
            background: #fff;
            border-radius: 50%;
            transition: transform 0.3s;
            box-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
        .lottery-switch input:checked + .lottery-switch-slider {
            background: #667eea;
        }
        .lottery-switch input:checked + .lottery-switch-slider::before {
            transform: translateX(18px);
        }
        .lottery-switch-label {
            font-size: 13px;
            color: #666;
            font-weight: 600;
        }
        /* 图片上传区 */
        .prize-upload-zone {
            border: 2px dashed #cbd5e1;
            border-radius: 10px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.3s, background 0.3s;
            min-height: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fff;
        }
        .prize-upload-zone:hover,
        .prize-upload-zone.dragover {
            border-color: #667eea;
            background: #f0f3ff;
        }
        .prize-upload-zone .upload-icon {
            font-size: 26px;
            display: block;
            margin-bottom: 6px;
        }
        .prize-upload-zone .upload-text {
            font-size: 12px;
            color: #999;
        }
        .prize-preview-inner {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .prize-preview-inner img {
            max-width: 60px;
            max-height: 60px;
            border-radius: 8px;
            object-fit: cover;
            border: 1px solid #e8ecf4;
        }
        .prize-preview-inner .upload-text {
            font-size: 12px;
            color: #999;
        }
        .modal .modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 24px;
        }
        .modal .modal-actions .btn {
            flex: 1;
            padding: 12px;
            font-size: 14px;
            border-radius: 10px;
        }
        .btn-primary {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }
        .btn-primary:hover {
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }
        .btn-cancel { background: #f0f2f8; color: #666; }
        .btn-cancel:hover { background: #e8ecf4; }
        .btn-danger {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
        }
        .btn-danger:hover {
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        }
        /* 自定义确认弹窗 */
        .confirm-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.2s ease;
        }
        .confirm-overlay.active { display: flex; }
        .confirm-box {
            background: white;
            border-radius: 20px;
            padding: 32px 36px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
            text-align: center;
        }
        .confirm-box .confirm-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .confirm-box h3 {
            font-size: 18px;
            color: #333;
            margin-bottom: 8px;
        }
        .confirm-box .confirm-desc {
            font-size: 14px;
            color: #888;
            margin-bottom: 24px;
            line-height: 1.5;
        }
        .confirm-box .confirm-actions {
            display: flex;
            gap: 12px;
        }
        .confirm-box .confirm-actions .btn {
            flex: 1;
            padding: 12px;
            font-size: 14px;
            border-radius: 10px;
            font-weight: 600;
        }
        .confirm-box .btn-confirm-cancel {
            background: #f0f2f8;
            color: #666;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .confirm-box .btn-confirm-cancel:hover {
            background: #e8ecf4;
        }
        .confirm-box .btn-confirm-delete {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .confirm-box .btn-confirm-delete:hover {
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
            transform: translateY(-1px);
        }
        .toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            padding: 14px 24px;
            border-radius: 12px;
            color: white;
            font-size: 14px;
            font-weight: 600;
            z-index: 2000;
            animation: toastIn 0.3s ease;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            max-width: 90%;
            text-align: center;
        }
        .toast.success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
        .toast.error { background: linear-gradient(135deg, #e74c3c, #c0392b); }
        .toast.info { background: linear-gradient(135deg, #3498db, #2980b9); }
        @keyframes toastIn {
            from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
            to { transform: translateX(-50%) translateY(0); opacity: 1; }
        }
        .notif-form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .notif-form-grid .full-width { grid-column: 1 / -1; }
        .notif-form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .notif-form-group label {
            font-size: 13px;
            font-weight: 600;
            color: #555;
        }
        .notif-form-group input,
        .notif-form-group select,
        .notif-form-group textarea {
            padding: 10px 14px;
            border: 2px solid #e8ecf4;
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            transition: all 0.2s ease;
            font-family: inherit;
        }
        .notif-form-group input:focus,
        .notif-form-group select:focus,
        .notif-form-group textarea:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }
        .notif-form-group textarea {
            min-height: 120px;
            resize: vertical;
        }
        .notif-form-group .help-text { font-size: 12px; color: #aaa; }
        .notif-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
            margin-bottom: 20px;
        }
        .notif-stat-card {
            background: #f8f9fe;
            border-radius: 12px;
            padding: 16px 20px;
            text-align: center;
        }
        .notif-stat-card .stat-value {
            font-size: 28px;
            font-weight: 700;
            color: #333;
        }
        .notif-stat-card .stat-label {
            font-size: 13px;
            color: #888;
            margin-top: 4px;
        }
        .notif-stat-card.highlight {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }
        .notif-stat-card.highlight .stat-value { color: white; }
        .notif-stat-card.highlight .stat-label { color: rgba(255,255,255,0.8); }
        .notif-stat-card.warning {
            background: #fff3e0;
            border: 1px solid #ffe0b2;
        }
        .notif-stat-card.warning .stat-value { color: #e65100; }
        .notif-stat-card.warning .stat-label { color: #bf8c4a; }
        .notif-stat-card.success {
            background: #e8f5e9;
            border: 1px solid #c8e6c9;
        }
        .notif-stat-card.success .stat-value { color: #2e7d32; }
        .notif-stat-card.success .stat-label { color: #558b2f; }
        .progress-bar-container {
            background: #e8ecf4;
            border-radius: 10px;
            height: 24px;
            overflow: hidden;
            position: relative;
            margin: 12px 0;
        }
        .progress-bar {
            height: 100%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 10px;
            transition: width 0.5s ease;
            min-width: 0;
        }
        .progress-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 12px;
            font-weight: 600;
            color: #333;
        }
        .progress-text.light { color: white; }
        .notif-status-box {
            background: #fff8e1;
            border: 1px solid #ffe082;
            border-radius: 12px;
            padding: 16px 20px;
            margin-top: 16px;
            display: none;
        }
        .notif-status-box.active { display: block; }
        .notif-status-box .status-title {
            font-weight: 600;
            color: #f57f17;
            margin-bottom: 8px;
        }
        .notif-status-box .status-detail { font-size: 13px; color: #666; }
        .quiz-form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        .quiz-form-grid .full-width { grid-column: 1 / -1; }
        .quiz-form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .quiz-form-group label {
            font-size: 13px;
            font-weight: 600;
            color: #555;
        }
        .quiz-form-group input,
        .quiz-form-group textarea {
            padding: 10px 14px;
            border: 2px solid #e8ecf4;
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            transition: all 0.2s ease;
            font-family: inherit;
        }
        .quiz-form-group input:focus,
        .quiz-form-group textarea:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }
        .quiz-form-group textarea {
            min-height: 80px;
            resize: vertical;
        }
        .quiz-form-group .help-text { font-size: 12px; color: #aaa; }
        .quiz-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        .quiz-status-badge.pending { background: #fff3e0; color: #e65100; }
        .quiz-status-badge.pending::before { content: '⏳'; }
        .quiz-status-badge.active { background: #e3f2fd; color: #1565c0; }
        .quiz-status-badge.active::before { content: '🟢'; }
        .quiz-status-badge.closed { background: #fce4ec; color: #c62828; }
        .quiz-status-badge.closed::before { content: '🔴'; }
        .quiz-status-badge.settled { background: #e8f5e9; color: #2e7d32; }
        .quiz-status-badge.settled::before { content: '✅'; }
        .quiz-content-cell {
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .quiz-title-cell {
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .quiz-options-cell {
            font-size: 13px;
            color: #555;
        }
        .quiz-options-cell .opt-a {
            color: #667eea;
            font-weight: 600;
        }
        .quiz-options-cell .opt-b {
            color: #f5576c;
            font-weight: 600;
        }
        .quiz-options-cell .winner {
            background: #e8f5e9;
            padding: 1px 6px;
            border-radius: 4px;
            font-size: 11px;
            color: #2e7d32;
            margin-left: 4px;
        }
        .vote-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 4px 0;
        }
        .vote-bar-label {
            font-size: 13px;
            font-weight: 600;
            color: #555;
            min-width: 60px;
        }
        .vote-bar-track {
            flex: 1;
            height: 20px;
            background: #e8ecf4;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }
        .vote-bar-fill {
            height: 100%;
            border-radius: 10px;
            transition: width 0.5s ease;
            min-width: 0;
        }
        .vote-bar-fill.a { background: linear-gradient(135deg, #667eea, #764ba2); }
        .vote-bar-fill.b { background: linear-gradient(135deg, #f093fb, #f5576c); }
        .vote-bar-count {
            font-size: 13px;
            font-weight: 600;
            color: #888;
            min-width: 40px;
            text-align: right;
        }
        .toolbar {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            align-items: center;
            flex-wrap: wrap;
        }
        .toolbar .btn {
            padding: 10px 22px;
            font-size: 14px;
            border-radius: 10px;
        }
        .filter-select {
            padding: 10px 14px;
            border: 2px solid #e8ecf4;
            border-radius: 10px;
            font-size: 14px;
            outline: none;
            background: #f8f9fe;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .filter-select:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        }
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #aaa;
        }
        .empty-state .icon {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .empty-state p { font-size: 16px; }
        .loading {
            text-align: center;
            padding: 40px;
            color: #888;
        }
        .loading::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #e8ecf4;
            border-top-color: #667eea;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-left: 8px;
            vertical-align: middle;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ===== 数据大屏弹窗 ===== */
        .dashboard-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            z-index: 3000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }
        .dashboard-overlay.active { display: flex; }
        .dashboard-modal {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            border-radius: 24px;
            padding: 36px;
            width: 92%;
            max-width: 900px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.4s ease;
            position: relative;
            border: 1px solid rgba(255,255,255,0.08);
        }
        .dashboard-modal::-webkit-scrollbar { width: 6px; }
        .dashboard-modal::-webkit-scrollbar-track { background: transparent; }
        .dashboard-modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
        .dashboard-close {
            position: absolute;
            top: 16px;
            right: 20px;
            background: rgba(255,255,255,0.1);
            border: none;
            color: rgba(255,255,255,0.6);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .dashboard-close:hover {
            background: rgba(255,255,255,0.2);
            color: white;
            transform: rotate(90deg);
        }
        .dashboard-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 24px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .dashboard-header .icon {
            font-size: 42px;
            margin-bottom: 8px;
        }
        .dashboard-header h2 {
            font-size: 24px;
            font-weight: 700;
            color: white;
            margin-bottom: 4px;
        }
        .dashboard-header .subtitle {
            font-size: 14px;
            color: rgba(255,255,255,0.5);
        }
        .dashboard-tabs {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-bottom: 28px;
            flex-wrap: wrap;
        }
        .dashboard-tab {
            padding: 10px 22px;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.05);
            color: rgba(255,255,255,0.6);
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            user-select: none;
        }
        .dashboard-tab:hover {
            background: rgba(255,255,255,0.1);
            color: white;
            border-color: rgba(255,255,255,0.2);
        }
        .dashboard-tab.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border-color: transparent;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }
        .dashboard-stats-row {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }
        .dashboard-stat-card {
            flex: 1;
            min-width: 140px;
            background: rgba(255,255,255,0.06);
            border-radius: 16px;
            padding: 18px 20px;
            text-align: center;
            border: 1px solid rgba(255,255,255,0.06);
            transition: all 0.3s ease;
        }
        .dashboard-stat-card:hover {
            background: rgba(255,255,255,0.1);
            transform: translateY(-2px);
        }
        .dashboard-stat-card .stat-icon { font-size: 24px; margin-bottom: 6px; }
        .dashboard-stat-card .stat-value {
            font-size: 28px;
            font-weight: 700;
            color: white;
            line-height: 1.2;
        }
        .dashboard-stat-card .stat-label {
            font-size: 12px;
            color: rgba(255,255,255,0.5);
            margin-top: 4px;
        }
        .dashboard-stat-card .stat-change {
            font-size: 12px;
            margin-top: 4px;
            color: #4ade80;
        }
        .dashboard-chart-container {
            background: rgba(255,255,255,0.04);
            border-radius: 16px;
            padding: 24px;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .dashboard-chart-container .chart-title {
            font-size: 15px;
            font-weight: 600;
            color: rgba(255,255,255,0.8);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dashboard-chart {
            position: relative;
            width: 100%;
            height: 240px;
            padding: 10px 0 0 0;
        }
        .dashboard-chart svg {
            width: 100%;
            height: 100%;
            overflow: visible;
        }
        .chart-line {
            fill: none;
            stroke: url(#lineGradient);
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .chart-line.checkin-line {
            stroke: url(#checkinLineGradient);
        }
        .chart-area {
            fill: url(#areaGradient);
            opacity: 0.3;
        }
        .chart-area.checkin-area {
            fill: url(#checkinAreaGradient);
        }
        .chart-dot {
            fill: #667eea;
            stroke: white;
            stroke-width: 2;
            cursor: pointer;
            transition: r 0.2s ease;
        }
        .chart-dot:hover {
            r: 6;
        }
        .chart-dot.active {
            r: 6;
            fill: #764ba2;
        }
        .chart-grid-line {
            stroke: rgba(255,255,255,0.06);
            stroke-width: 1;
            stroke-dasharray: 4,4;
        }
        .chart-y-label {
            fill: rgba(255,255,255,0.35);
            font-size: 11px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        .chart-x-label {
            fill: rgba(255,255,255,0.4);
            font-size: 10px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            text-anchor: middle;
        }
        .chart-tooltip {
            position: absolute;
            background: rgba(20, 20, 40, 0.95);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 10px;
            padding: 10px 14px;
            color: white;
            font-size: 13px;
            font-weight: 500;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s ease;
            box-shadow: 0 8px 30px rgba(0,0,0,0.4);
            backdrop-filter: blur(10px);
            z-index: 10;
            min-width: 120px;
            text-align: center;
        }
        .chart-tooltip.visible {
            opacity: 1;
        }
        .chart-tooltip .tooltip-date {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            margin-bottom: 4px;
        }
        .chart-tooltip .tooltip-count {
            font-size: 18px;
            font-weight: 700;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .chart-tooltip .tooltip-label {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            margin-top: 2px;
        }
        .chart-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 240px;
            color: rgba(255,255,255,0.3);
            font-size: 14px;
        }
        .chart-empty .icon { font-size: 40px; margin-bottom: 8px; }
        .dashboard-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 240px;
            color: rgba(255,255,255,0.4);
            font-size: 14px;
        }
        .dashboard-loading::after {
            content: '';
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255,255,255,0.15);
            border-top-color: #667eea;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-left: 8px;
        }
        .chart-legend {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 12px;
            font-size: 12px;
            color: rgba(255,255,255,0.5);
        }
        .chart-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .chart-legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #667eea;
        }
        .chart-legend-line {
            width: 20px;
            height: 2px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 1px;
        }
        .chart-summary {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 8px;
            font-size: 12px;
            color: rgba(255,255,255,0.4);
        }
        .chart-summary span strong {
            color: rgba(255,255,255,0.8);
            font-weight: 600;
        }
        .dashboard-chart-container .chart-title {
            font-size: 15px;
            font-weight: 600;
            color: rgba(255,255,255,0.8);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dashboard-chart-container {
            background: rgba(255,255,255,0.04);
            border-radius: 16px;
            padding: 24px;
            border: 1px solid rgba(255,255,255,0.06);
        }
        .dashboard-chart-container .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .dashboard-chart-container .chart-header .chart-title {
            margin-bottom: 0;
        }
        .dashboard-chart-container .chart-header .chart-period-badge {
            font-size: 11px;
            color: rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.06);
            padding: 4px 12px;
            border-radius: 20px;
        }
