        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        :root {
            --primary: #4361ee;
            --primary-dark: #3a0ca3;
            --secondary: #4cc9f0;
            --success: #2ecc71;
            --warning: #f39c12;
            --error: #e74c3c;
            --light: #f8f9fa;
            --dark: #2b2d42;
            --gray: #8d99ae;
            --card-bg: #ffffff;
            --border: #e0e0e0;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .container {
            max-width: 800px;
            width: 100%;
        }
        
        .card {
            background: var(--card-bg);
            border-radius: 16px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }
        
        .header {
            background: linear-gradient(90deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 25px;
            text-align: center;
        }
        
        .header h1 {
            font-size: 1.6rem;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .header p {
            font-size: 1rem;
            opacity: 0.9;
        }
        
        .content {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .email-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            padding: 20px;
            border-radius: 12px;
            background: rgba(67, 97, 238, 0.05);
            border: 1px dashed var(--primary);
            position: relative;
        }
        
        .email-display {
            font-size: 1.3rem;
            font-weight: 500;
            color: var(--dark);
            background: var(--light);
            padding: 12px 20px;
            border-radius: 8px;
            width: 100%;
            text-align: center;
            overflow: hidden;
            text-overflow: ellipsis;
            border: 1px solid var(--border);
            position: relative;
        }
        
        .actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            width: 100%;
        }
        
        .btn {
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background: var(--primary-dark);
        }
        
        .btn-secondary {
            background: var(--secondary);
            color: white;
        }
        
        .btn-secondary:hover {
            background: #3ab4d9;
        }
        
        .inbox-section {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .inbox-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }
        
        .inbox-title {
            font-size: 1.2rem;
            color: var(--dark);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .email-count {
            background: var(--primary);
            color: white;
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .email-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 300px;
            overflow-y: auto;
            padding: 5px;
        }
        
        .email-item {
            background: var(--light);
            border-radius: 8px;
            padding: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-left: 3px solid var(--primary);
        }
        
        .email-item:hover {
            background: #f0f4f8;
        }
        
        .email-item.unread {
            background: rgba(76, 201, 240, 0.1);
            border-left: 3px solid var(--secondary);
        }
        
        .email-icon {
            font-size: 1.1rem;
            color: var(--primary);
        }
        
        .email-item.unread .email-icon {
            color: var(--secondary);
        }
        
        .email-content {
            flex: 1;
            min-width: 0;
        }
        
        .email-sender {
            font-weight: 500;
            margin-bottom: 2px;
            color: var(--dark);
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .email-subject {
            color: var(--dark);
            font-size: 0.85rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .email-time {
            color: var(--gray);
            font-size: 0.75rem;
            white-space: nowrap;
        }
        
        .status-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(67, 97, 238, 0.1);
            border-radius: 8px;
            margin-top: 10px;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }
        
        .status-info {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
        }
        
        .refresh-info {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--success);
        }
        
        .status-dot.loading {
            background: var(--warning);
            animation: pulse 1.5s infinite;
        }
        
        .status-dot.error {
            background: var(--error);
        }
        
        .status-text {
            flex: 1;
        }
        
        .email-detail {
            display: none;
            padding: 15px;
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-top: 10px;
            background: var(--light);
        }
        
        .email-detail-header {
            padding-bottom: 10px;
            margin-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }
        
        .email-detail-subject {
            font-size: 1.2rem;
            color: var(--dark);
            margin-bottom: 8px;
            font-weight: 600;
        }
        
        .email-detail-meta {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .sender-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .sender-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.8rem;
        }
        
        .sender-details {
            display: flex;
            flex-direction: column;
        }
        
        .sender-name {
            font-weight: 500;
            color: var(--dark);
            font-size: 0.9rem;
        }
        
        .sender-email {
            color: var(--gray);
            font-size: 0.8rem;
        }
        
        .email-received {
            color: var(--gray);
            font-size: 0.8rem;
        }
        
        .email-detail-body {
            line-height: 1.6;
            color: var(--dark);
            padding: 10px 0;
            white-space: pre-wrap;
            font-size: 0.9rem;
        }
        
        .close-detail {
            background: var(--primary);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            display: block;
            margin: 10px auto 0;
            font-size: 0.9rem;
        }
        
        .empty-inbox {
            text-align: center;
            padding: 20px;
            color: var(--gray);
            font-size: 0.9rem;
        }
        
        .empty-inbox i {
            font-size: 2.5rem;
            color: #ddd;
            margin-bottom: 10px;
        }
        
        .footer {
            text-align: center;
            padding: 15px;
            color: var(--gray);
            font-size: 0.8rem;
            border-top: 1px solid var(--border);
        }
        
        .loader {
            display: none;
            width: 24px;
            height: 24px;
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .loading .loader {
            display: block;
        }
        
        .error-message {
            background: rgba(231, 76, 60, 0.1);
            color: var(--error);
            padding: 10px;
            border-radius: 8px;
            margin-top: 10px;
            text-align: center;
            display: none;
        }
        
        .success-message {
            background: rgba(46, 204, 113, 0.1);
            color: var(--success);
            padding: 10px;
            border-radius: 8px;
            margin-top: 10px;
            text-align: center;
            display: none;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        
        @media (max-width: 600px) {
            .header {
                padding: 20px 15px;
            }
            
            .content {
                padding: 15px;
            }
            
            .email-display {
                font-size: 1.1rem;
                padding: 10px 15px;
            }
            
            .actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }
            
            .email-detail-meta {
                flex-direction: column;
                gap: 8px;
            }
            
            .email-received {
                width: 100%;
                text-align: right;
            }
            
            .status-bar {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .status-info {
                width: 100%;
            }
            
            .refresh-info {
                margin-left: 0;
                width: 100%;
                justify-content: flex-end;
            }
        }