* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background: #f5f7fa;
            min-height: 100vh;
        }

        .container {
            display: flex;
            min-height: 100vh;
        }

        /* 左侧边栏 */
        .sidebar {
            width: 320px;
            background: white;
            padding: 24px;
            box-shadow: 2px 0 8px rgba(0,0,0,0.05);
            overflow-y: auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 32px;
            padding-bottom: 24px;
            border-bottom: 1px solid #f0f0f0;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            text-decoration: none;
            cursor: pointer;
        }

        .logo-text h1 {
            font-size: 20px;
            color: #333;
        }

        .logo-text p {
            font-size: 12px;
            color: #999;
            margin-top: 2px;
        }

        .section {
            margin-bottom: 28px;
        }

        .section-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .form-group {
            margin-bottom: 16px;
        }

        .form-group label {
            display: block;
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 13px;
            transition: all 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #667eea;
        }

        .upload-area {
            border: 2px dashed #e0e0e0;
            border-radius: 10px;
            padding: 32px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background: #fafafa;
        }

        .upload-area:hover {
            border-color: #667eea;
            background: #f5f7ff;
        }

        .upload-icon {
            font-size: 32px;
            margin-bottom: 8px;
        }

        .upload-text {
            color: #666;
            font-size: 13px;
        }

        .upload-hint {
            color: #999;
            font-size: 11px;
            margin-top: 6px;
        }

        .btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .btn-primary:hover {
            opacity: 0.9;
        }

        .btn-secondary {
            background: #f0f0f0;
            color: #333;
        }

        .btn-secondary:hover {
            background: #e0e0e0;
        }

        .btn-danger {
            background: #fff2f0;
            color: #ff4d4f;
            border: 1px solid #ffccc7;
        }

        .btn-danger:hover {
            background: #ff4d4f;
            color: white;
        }

        /* 主内容区 */
        .main-content {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
        }

        .toolbar {
            background: white;
            padding: 16px 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        .search-box {
            display: flex;
            gap: 10px;
            flex: 1;
            max-width: 400px;
        }

        .search-box input {
            flex: 1;
            padding: 10px 14px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 13px;
        }

        .action-btns {
            display: flex;
            gap: 10px;
        }

        .action-btns .btn {
            width: auto;
            padding: 10px 16px;
        }

        /* 表格 */
        .table-card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            overflow: hidden;
        }

        .table-container {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        thead {
            background: #fafafa;
        }

        th {
            padding: 14px 16px;
            text-align: left;
            font-weight: 600;
            color: #333;
            border-bottom: 1px solid #f0f0f0;
            white-space: nowrap;
        }

        td {
            padding: 14px 16px;
            border-bottom: 1px solid #f0f0f0;
            color: #666;
        }

        tbody tr:hover {
            background: #f8f9ff;
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        .checkbox-cell {
            width: 40px;
            text-align: center;
        }

        .checkbox-cell input {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .email-cell {
            color: #667eea;
            font-weight: 500;
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .token-cell {
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-family: monospace;
            font-size: 11px;
        }

        .action-cell {
            display: flex;
            gap: 8px;
        }

        .action-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .action-btn-view {
            background: #e6f7ff;
            color: #1890ff;
        }

        .action-btn-view:hover {
            background: #1890ff;
            color: white;
        }

        .action-btn-delete {
            background: #fff2f0;
            color: #ff4d4f;
        }

        .action-btn-delete:hover {
            background: #ff4d4f;
            color: white;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 12px;
        }

        /* 邮件查看模态框 */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 1000px;
            max-height: 85vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #999;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            transition: all 0.3s;
        }

        .modal-close:hover {
            background: #f5f5f5;
            color: #333;
        }

        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 0;
        }

        /* 标签页 */
        .tabs {
            display: flex;
            border-bottom: 1px solid #f0f0f0;
            background: #fafafa;
            padding: 0 24px;
        }

        .tab {
            padding: 14px 24px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 14px;
            color: #666;
            border-bottom: 2px solid transparent;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tab:hover {
            color: #667eea;
        }

        .tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
            background: white;
        }

        .tab-badge {
            background: #667eea;
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
        }

        .tab-content {
            display: none;
            padding: 20px 24px;
        }

        .tab-content.active {
            display: block;
        }

        /* 邮件列表 */
        .email-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .email-item {
            border: 1px solid #f0f0f0;
            border-radius: 10px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .email-item:hover {
            border-color: #667eea;
            background: #f8f9ff;
        }

        .email-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .email-subject {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .email-date {
            color: #999;
            font-size: 12px;
        }

        .email-from {
            color: #667eea;
            font-size: 12px;
            margin-bottom: 8px;
        }

        .email-preview {
            color: #666;
            font-size: 13px;
            line-height: 1.5;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        /* 加载状态 */
        .loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .loading-overlay.active {
            display: flex;
        }

        .loading-box {
            background: white;
            padding: 32px 48px;
            border-radius: 12px;
            text-align: center;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #f0f0f0;
            border-top-color: #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 16px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* 日志区域 */
        .log-area {
            background: #1e1e1e;
            color: #d4d4d4;
            padding: 12px;
            border-radius: 8px;
            font-family: 'Consolas', monospace;
            font-size: 11px;
            max-height: 150px;
            overflow-y: auto;
            margin-top: 16px;
        }

        .log-line {
            padding: 2px 0;
        }

        .log-time {
            color: #858585;
        }

        /* 粘贴模态框 */
        .paste-textarea {
            width: 100%;
            min-height: 200px;
            padding: 12px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 13px;
            resize: vertical;
            font-family: monospace;
        }

        .stats-bar {
            display: flex;
            gap: 20px;
            margin-bottom: 24px;
        }

        .stat-item {
            flex: 1;
            padding: 24px;
            border-radius: 16px;
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .stat-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(0,0,0,0.12);
        }

        .stat-item::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            opacity: 0.1;
        }

        .stat-item:nth-child(1) {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .stat-item:nth-child(1)::before {
            background: white;
            right: -30px;
            top: -30px;
        }

        .stat-item:nth-child(2) {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        }

        .stat-item:nth-child(2)::before {
            background: white;
            right: -30px;
            top: -30px;
        }

        .stat-item:nth-child(3) {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .stat-item:nth-child(3)::before {
            background: white;
            right: -30px;
            top: -30px;
        }

        .stat-icon {
            font-size: 32px;
            margin-bottom: 8px;
            opacity: 0.9;
        }

        .stat-label {
            font-size: 13px;
            color: rgba(255,255,255,0.85);
            margin-bottom: 4px;
            font-weight: 500;
        }

        .stat-value {
            font-size: 32px;
            font-weight: 700;
            color: white;
            letter-spacing: -1px;
        }

        /* 移动端适配 */
        @media screen and (max-width: 768px) {
            .container {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                padding: 16px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            }

            .logo {
                margin-bottom: 20px;
                padding-bottom: 16px;
            }

            .logo-text h1 {
                font-size: 18px;
            }

            .section {
                margin-bottom: 20px;
            }

            .main-content {
                padding: 16px;
            }

            .stats-bar {
                flex-direction: column;
                gap: 12px;
            }

            .stat-item {
                padding: 20px;
            }

            .stat-icon {
                font-size: 28px;
            }

            .stat-value {
                font-size: 28px;
            }

            .toolbar {
                flex-direction: column;
                gap: 12px;
            }

            .search-box {
                max-width: 100%;
            }

            .action-btns {
                width: 100%;
            }

            .action-btns .btn {
                flex: 1;
            }

            .stats-bar {
                flex-direction: column;
                gap: 12px;
            }

            .stat-item {
                min-width: auto;
            }

            table {
                font-size: 12px;
            }

            th, td {
                padding: 10px 8px;
            }

            .email-cell,
            .token-cell {
                max-width: 100px;
            }

            .action-cell {
                flex-direction: column;
                gap: 4px;
            }

            .action-btn {
                font-size: 11px;
                padding: 4px 8px;
            }

            .modal {
                width: 95%;
                max-height: 90vh;
            }

            .modal-header {
                padding: 16px;
            }

            .modal-title {
                font-size: 16px;
            }

            .tabs {
                padding: 0 16px;
            }

            .tab {
                padding: 12px 16px;
                font-size: 13px;
            }

            .tab-content {
                padding: 16px;
            }

            .email-item {
                padding: 12px;
            }

            .email-subject {
                font-size: 13px;
            }

            .upload-area {
                padding: 24px 16px;
            }

            .upload-icon {
                font-size: 24px;
            }

            .btn {
                padding: 10px;
                font-size: 12px;
            }

            .paste-textarea {
                min-height: 150px;
            }

            .log-area {
                max-height: 100px;
                font-size: 10px;
            }
        }

        /* 小屏幕手机 */
        @media screen and (max-width: 480px) {
            .sidebar {
                padding: 12px;
            }

            .logo-icon {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .logo-text h1 {
                font-size: 16px;
            }

            .logo-text p {
                font-size: 11px;
            }

            .section-title {
                font-size: 13px;
            }

            .form-group label {
                font-size: 12px;
            }

            .form-group input,
            .form-group select {
                padding: 8px 10px;
                font-size: 12px;
            }

            .main-content {
                padding: 12px;
            }

            .stat-value {
                font-size: 20px;
            }

            table {
                font-size: 11px;
            }

            th, td {
                padding: 8px 6px;
            }

            .checkbox-cell {
                width: 30px;
            }

            .checkbox-cell input {
                width: 14px;
                height: 14px;
            }

            .modal {
                width: 98%;
                max-height: 95vh;
            }

            .tabs {
                padding: 0 12px;
            }

            .tab {
                padding: 10px 12px;
                font-size: 12px;
                gap: 4px;
            }

            .tab-badge {
                font-size: 10px;
                padding: 1px 6px;
            }

            .email-item-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
            }

            .email-date {
                font-size: 11px;
            }

            .email-from {
                font-size: 11px;
            }

            .email-preview {
                font-size: 12px;
            }
        }

        /* 分页样式 */
        .page-btn {
            padding: 6px 12px;
            border: 1px solid #e0e0e0;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s;
        }

        .page-btn:hover:not(:disabled) {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .page-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .page-btn.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        /* 状态标签样式 */
        .token-status {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .status-valid {
            background: #d4edda;
            color: #155724;
        }

        .status-expired {
            background: #f8d7da;
            color: #721c24;
        }

        .status-unknown {
            background: #fff3cd;
            color: #856404;
        }

        #jumpPage::-webkit-inner-spin-button,
        #jumpPage::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        @media screen and (max-width: 768px) {
            .pagination {
                flex-wrap: wrap;
                justify-content: center !important;
                gap: 8px !important;
            }

            .pagination span {
                font-size: 12px;
            }

            .page-btn {
                padding: 4px 8px;
                font-size: 12px;
            }
        }