        :root {
            /* 亮色模式变量 */
            --bg-gradient-start: #f8fafc;
            --bg-gradient-middle: #e2e8f0;
            --bg-gradient-end: #e2e8f0;
            --bg-primary: #ffffff;
            --bg-secondary: rgba(99, 102, 241, 0.08);
            --bg-card: rgba(255, 255, 255, 0.95);
            --bg-card-hover: rgba(255, 255, 255, 0.98);
            --bg-input: rgba(255, 255, 255, 0.85);
            --bg-input-focus: rgba(255, 255, 255, 0.95);
            
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-muted: #94a3b8;
            --text-inverse: #ffffff;
            
            --border-primary: rgba(99, 102, 241, 0.15);
            --border-secondary: rgba(99, 102, 241, 0.08);
            --border-input: rgba(99, 102, 241, 0.15);
            --border-input-focus: rgba(99, 102, 241, 0.3);
            
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            --gradient-text: linear-gradient(to right, #667eea, #764ba2);
            
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
            --shadow-md: 0 3px 6px -1px rgba(0, 0, 0, 0.06), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
            --shadow-lg: 0 8px 15px -3px rgba(0, 0, 0, 0.08), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
            --shadow-xl: 0 16px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -5px rgba(0, 0, 0, 0.04);
            
            --grid-opacity: 0.03;
            --backdrop-blur: 16px;
        }

        [data-theme="dark"] {
            /* 暗色模式变量 - 现代科技感深色主题 */
            --bg-gradient-start: #0a0a0f;
            --bg-gradient-middle: #1a1a2e;
            --bg-gradient-end: #16213e;
            --bg-primary: #0f0f1a;
            --bg-secondary: rgba(139, 92, 246, 0.12);
            --bg-card: rgba(255, 255, 255, 0.06);
            --bg-card-hover: rgba(255, 255, 255, 0.08);
            --bg-input: rgba(255, 255, 255, 0.05);
            --bg-input-focus: rgba(255, 255, 255, 0.1);
            
            --text-primary: #f8fafc;
            --text-secondary: #e2e8f0;
            --text-muted: #a1a1aa;
            --text-inverse: #0a0a0f;
            
            --border-primary: rgba(139, 92, 246, 0.3);
            --border-secondary: rgba(255, 255, 255, 0.1);
            --border-input: rgba(255, 255, 255, 0.1);
            --border-input-focus: rgba(139, 92, 246, 0.4);
            
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-secondary: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
            --gradient-success: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
            --gradient-text: linear-gradient(to right, #a78bfa, #60a5fa);
            
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
            --shadow-md: 0 3px 6px -1px rgba(0, 0, 0, 0.4), 0 1px 3px -1px rgba(0, 0, 0, 0.25);
            --shadow-lg: 0 8px 15px -3px rgba(0, 0, 0, 0.5), 0 3px 6px -2px rgba(0, 0, 0, 0.3);
            --shadow-xl: 0 16px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -5px rgba(0, 0, 0, 0.4);
            
            --grid-opacity: 0.01;
            --backdrop-blur: 20px;
        }

        /* 暗色模式邮件详情特殊优化 */
        [data-theme="dark"] .message-detail {
            background: rgba(0, 0, 0, 0.8);
        }

        [data-theme="dark"] .message-detail-card {
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
        }

        [data-theme="dark"] .message-detail-meta > div {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        [data-theme="dark"] .message-detail-meta > div:hover {
            background: rgba(139, 92, 246, 0.15);
            border-color: rgba(139, 92, 246, 0.3);
        }

        [data-theme="dark"] .message-content-text {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.15);
            color: var(--text-primary) !important;
            backdrop-filter: blur(10px);
        }

        [data-theme="dark"] .message-content-text code {
            background: rgba(255, 255, 255, 0.12);
        }

            border: 1px solid rgba(255, 255, 255, 0.2);
            color: var(--text-primary) !important;
        }

        [data-theme="dark"] .message-content-text a {
            color: #a78bfa !important;
        }

        [data-theme="dark"] .message-content-text a:hover {
            color: #c4b5fd !important;
            background: rgba(167, 139, 250, 0.1);
        }

        [data-theme="dark"] .message-content-text strong {
            color: var(--text-primary) !important;
        }

        [data-theme="dark"] .message-content-text em {
            color: var(--text-secondary) !important;
        }

        [data-theme="dark"] .message-content-text p {
            color: var(--text-primary) !important;
        }

        [data-theme="dark"] .message-content-text * {
            color: var(--text-primary) !important;
        }

        /* 确保所有文本节点都使用正确的颜色 */
        [data-theme="dark"] .message-content-text,
        [data-theme="dark"] .message-content-text *:not(a):not(code) {
            color: var(--text-primary) !important;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        html {
            overflow-y: auto; /* 改为 auto，允许页面滚动 */
            font-display: swap; /* 优化字体加载 */
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-middle) 50%, var(--bg-gradient-end) 100%);
            color: var(--text-primary);
            position: relative;
            overflow-x: hidden;
            overflow-y: auto; /* 改为 auto，允许垂直滚动 */
        }

        /* Hide scrollbars while allowing scrolling */
        html::-webkit-scrollbar,
        body::-webkit-scrollbar,
        *::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }

        html,
        body,
        * {
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }

        /* 动态背景效果 */
        body::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(99,102,241,0.1)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
            opacity: var(--grid-opacity);
            pointer-events: none;
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            33% { transform: translateY(-10px) rotate(1deg); }
            66% { transform: translateY(10px) rotate(-1deg); }
        }

        /* 装饰性圆形背景 - 增强科技感 */
        .bg-decoration {
            position: fixed;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.6;
            pointer-events: none;
            animation: pulse 12s ease-in-out infinite;
            will-change: transform, opacity;
            transform: translateZ(0);
        }

        .bg-decoration-1 {
            width: 500px;
            height: 500px;
            background: var(--gradient-primary);
            top: -250px;
            right: -250px;
        }

        .bg-decoration-2 {
            width: 400px;
            height: 400px;
            background: var(--gradient-secondary);
            bottom: -200px;
            left: -200px;
            animation-delay: 6s;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1) translateZ(0); opacity: 0.4; }
            50% { transform: scale(1.15) translateZ(0); opacity: 0.7; }
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1rem;
            position: relative;
            z-index: 1;
            height: auto; /* 改为 auto */
            min-height: 100vh; /* 添加最小高度 */
            display: flex;
            flex-direction: column;
            overflow: visible; /* 改为 visible，确保动画不被截断 */
        }

        /* 头部 */
        header {
            text-align: center;
            padding: 2rem 0 3rem;
            position: relative;
            flex-shrink: 0; /* 添加：防止收缩 */
        }

        h1 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 0.75rem;
            background: var(--gradient-text);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: fadeInUp 0.6s ease-out;
        }

        .subtitle {
            color: var(--text-secondary);
            font-size: 1.125rem;
            animation: fadeInUp 0.6s ease-out 0.1s both;
        }

        /* 主题切换按钮 */
        .theme-toggle {
            background: var(--bg-card);
            backdrop-filter: blur(var(--backdrop-blur));
            border: 1px solid var(--border-primary);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-lg);
        }

        .theme-toggle:hover {
            transform: scale(1.1) rotate(180deg);
            box-shadow: var(--shadow-xl);
        }

        .theme-toggle svg {
            width: 24px;
            height: 24px;
            stroke: var(--text-primary);
            transition: all 0.3s ease;
        }

        /* 主题控制 */
        .theme-controls {
            position: fixed;
            top: 2rem;
            right: 2rem;
            z-index: 1000;
        }

        .theme-menu {
            position: absolute;
            top: -8px;
            right: calc(100% + 1rem);
            background: var(--bg-card);
            backdrop-filter: blur(var(--backdrop-blur));
            min-height: 160px; /* 确保有足够高度显示所有选项 */
            border: 1px solid var(--border-primary);
            border-radius: 1rem;
            padding: 0.75rem;
            box-shadow: var(--shadow-xl);
            opacity: 0;
            transform: translateY(-10px);
            pointer-events: none;
            transition: all 0.3s ease;
            min-width: 150px;
            z-index: 1100;
            display: flex;
            flex-direction: column;
            gap: 0.5rem; /* 添加按钮之间的间距 */
        }

        .theme-menu.show {
            opacity: 1;
            transform: translateY(0); /* Final position, no offset */
            pointer-events: auto;
        }

        .theme-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            width: 100%;
            padding: 0.75rem 1rem;
            background: none;
            border: none;
            border-radius: 0.75rem;
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            position: relative;
            font-weight: 500;
        }


        .theme-option svg {
            width: 20px;
            height: 20px;
        }

        /* ========== 主题选项样式重写 ========== */
        
        /* 基础样式 - 亮色模式（默认） */
        .theme-option {
            color: #1e293b; /* 深色文字确保对比度 */
        }
        
        .theme-option:hover:not(.active) {
            background: rgba(99, 102, 241, 0.1);
            color: #1e293b;
        }
        
        .theme-option.active {
            background: var(--gradient-primary);
            color: white;
            pointer-events: none; /* 禁用已选中项的交互 */
        }
        
        /* 暗色模式下的样式 */
        [data-theme="dark"] .theme-option {
            color: #f8fafc; /* 亮色文字 */
        }
        
        [data-theme="dark"] .theme-option:hover:not(.active) {
            background: rgba(139, 92, 246, 0.15);
            color: #f8fafc;
        }
        
        [data-theme="dark"] .theme-option.active {
            background: var(--gradient-primary);
            color: white;
            pointer-events: none; /* 禁用已选中项的交互 */
        }

        /* 网格布局 */
        .grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            flex: 0 0 auto; /* 改为自动高度 */
            min-height: 0;
            overflow: visible; /* 改为 visible，确保动画不被截断 */
        }

        @media (min-width: 1024px) {
            .grid {
                grid-template-columns: 2fr 3fr;
                height: auto; /* 改为 auto，让高度自适应内容 */
            }

            .left-column {
                display: flex;
                flex-direction: column;
                gap: 1rem;
                height: auto; /* 改为 auto */
                overflow-y: visible; /* 改为 visible */
                min-height: 0;
            }

            #emailPanel {
                flex: 0 0 auto; /* 邮箱面板自动高度 */
            }

            .feature-card {
                flex: 0 0 auto; /* 改为自动高度，不再占据剩余空间 */
                display: flex;
                flex-direction: column;
                overflow-y: visible; /* 改为 visible */
                max-height: 400px; /* 添加最大高度限制 */
            }

            .feature-card .feature-list {
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: flex-start; /* 改为 flex-start，从顶部开始排列 */
                gap: 0.5rem; /* 添加间距 */
            }

            /* 调整收件箱高度 */
            .message-list {
                min-height: 400px; /* 设置最小高度 */
                height: auto; /* 改为 auto */
                max-height: 700px; /* 添加最大高度限制 */
                overflow-y: auto;
                display: flex;
                flex-direction: column;
            }
        }

        /* 卡片样式 - 现代科技感 */
        .card {
            background: var(--bg-card);
            backdrop-filter: blur(var(--backdrop-blur));
            border-radius: 1.5rem;
            padding: 2rem;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-secondary);
            animation: fadeInUp 0.6s ease-out;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
            transform: translateZ(0);
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .card:hover {
            box-shadow: var(--shadow-lg);
            background: var(--bg-card-hover);
            border-color: var(--border-primary);
        }

        .card:hover::before {
            opacity: 1;
        }

        /* 邮箱面板样式 */
        #emailPanel {
            min-height: 320px; /* 设置最小高度，确保两种状态高度一致 */
        }

        /* 统一邮箱信息显示样式 */
        /* 移除 email-info-box 样式 */
        
        .email-address {
            font-family: 'SF Mono', Monaco, 'Inconsolata', 'Fira Code', monospace;
            font-size: 1.125rem;
            font-weight: 500;
            word-break: break-all;
            margin-bottom: 1.25rem;
            color: var(--text-primary);
            line-height: 1.5;
        }

        .email-status {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .countdown-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .countdown-time {
            font-family: 'SF Mono', Monaco, 'Inconsolata', 'Fira Code', monospace;
            font-weight: 500;
            color: var(--text-primary);
            font-size: 1rem;
        }

        /* 过期状态样式 */
        .countdown-time.expired {
            color: #ef4444;
        }

        /* 调整按钮组的间距 */
        #currentEmailDisplay .btn-group {
            margin-top: auto; /* 将按钮推到底部 */
        }

        /* 表单控件 - 现代输入框 */
        input, select {
            width: 100%;
            background: var(--bg-input);
            border: 1px solid var(--border-input);
            border-radius: 0.75rem;
            padding: 0.875rem 1.25rem;
            color: var(--text-primary);
            font-size: 0.95rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(12px);
            position: relative;
        }

        input::placeholder {
            color: var(--text-muted);
            transition: color 0.3s ease;
        }

        input:focus:not(:disabled), select:focus:not(:disabled) {
            outline: none;
            border-color: var(--border-input-focus);
            background: var(--bg-input-focus);
        }
        
        /* 禁用状态下不应有任何动画或变换效果 */
        input:disabled {
            transform: none !important;
            box-shadow: none !important;
            transition: none !important;
            cursor: not-allowed;
            pointer-events: auto; /* 允许显示cursor变化，但阻止动画 */
        }
        
        /* 确保禁用状态下的focus样式也被覆盖 */
        input:disabled:focus {
            transform: none !important;
            box-shadow: none !important;
            border-color: var(--border-input) !important;
            background: var(--bg-input) !important;
        }

        input:focus::placeholder {
            color: var(--text-secondary);
        }

        select {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 1.25rem center;
            padding-right: 3rem;
            cursor: pointer;
        }

        select option {
            background: var(--bg-primary);
            color: var(--text-primary);
        }

        label {
            display: block;
            color: var(--text-secondary);
            font-size: 0.95rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        /* 按钮样式 - 现代科技感 */
        .btn {
            padding: 0.875rem 1.75rem;
            border-radius: 0.75rem;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            font-size: 0.95rem;
            position: relative;
            overflow: hidden;
            line-height: 1.4;
            backdrop-filter: blur(10px);
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
        }

        .btn:active::before {
            width: 300px;
            height: 300px;
        }

        .btn:hover {
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: var(--text-inverse);
            width: 100%;
            font-size: 1.05rem;
            padding: 1rem 1.75rem; /* 统一padding */
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
            min-height: 52px; /* 添加最小高度 */
        }

        .btn-primary:hover:not(:disabled) {
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
        }

        .btn-primary:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
            pointer-events: none;
        }

        /* 续期按钮加载状态特殊样式 */
        .btn-primary:disabled .loading-spinner {
            border-color: rgba(255, 255, 255, 0.3);
            border-top-color: rgba(255, 255, 255, 0.8);
        }

        .btn-secondary {
            background: var(--bg-secondary);
            color: var(--text-primary);
            backdrop-filter: blur(8px);
        }

        .btn-secondary:hover {
            background: var(--bg-card);
            box-shadow: var(--shadow-md);
        }

        .btn-danger {
            background: linear-gradient(135deg, #f43f5e, #e11d48);
            color: #fff;
            min-height: 52px;
            font-size: 1.05rem;
            padding: 1rem 1.75rem;
        }

        .btn-danger:hover {
            box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
        }

        .btn-icon {
            padding: 0.625rem;
            min-width: 2.75rem;
        }

        /* 邮箱显示 */
        .email-display {
            background: var(--bg-secondary);
            border-radius: 1rem;
            padding: 1.25rem;
            margin-bottom: 1.25rem;
            backdrop-filter: blur(8px);
            border: 1px solid var(--border-secondary);
        }

        .email-address {
            font-family: 'SF Mono', Monaco, 'Inconsolata', 'Fira Code', monospace;
            font-size: 1rem;
            font-weight: 500;
            word-break: break-all;
            margin-bottom: 0.875rem;
            color: var(--text-primary);
        }

        .email-timer {
            display: flex;
            align-items: center;
            justify-content: space-between; /* 两端对齐 */
            color: var(--text-secondary);
            font-size: 0.875rem;
        }

        .email-timer-info {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* 设置面板 */
        .settings-panel {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .settings-panel.show {
            max-height: 400px;
            opacity: 1;
            margin-bottom: 1.25rem;
        }

        /* 功能列表 */
        .feature-list {
            list-style: none;
        }

        .feature-list li {
            display: flex;
            align-items: flex-start;
            gap: 0.25rem; /* 从0.5rem减小到0.25rem */
            margin-bottom: 0.25rem; /* 从0.5rem减小到0.25rem */
            color: var(--text-secondary);
            padding: 0.25rem; /* 从0.5rem减小到0.25rem */
            border-radius: 0.75rem;
            transition: all 0.3s ease;
        }

        .feature-list li:hover {
            background: var(--bg-secondary);
        }

        .feature-list .icon {
            color: #10b981;
            margin-top: 0.125rem;
            flex-shrink: 0;
        }

        /* 邮件列表 - 现代收件箱风格 */
        .message-list {
            min-height: 0;
            height: 100%;
            max-height: none;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .message-list::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
            opacity: 0.5;
        }

        .message-empty {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-muted);
        }

        .message-empty svg {
            width: 5rem;
            height: 5rem;
            margin: 0 auto 1.5rem;
            opacity: 0.3;
            stroke: var(--text-muted);
        }

        .message-item {
            background: var(--bg-secondary);
            border-radius: 1rem;
            padding: 1.25rem;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid transparent;
            backdrop-filter: blur(12px);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .message-item::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-primary);
            border-radius: 1rem;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .message-item::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--gradient-primary);
            border-radius: 0 2px 2px 0;
            transform: scaleY(0);
            transition: transform 0.3s ease;
            z-index: 1;
        }

        .message-item:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-primary);
            box-shadow: var(--shadow-md);
        }

        .message-item:hover::before {
            opacity: 0.03;
        }

        .message-item:hover::after {
            transform: scaleY(1);
        }



        .message-item:hover .message-actions {
            opacity: 1;
        }

        .message-content {
            display: flex;
            justify-content: space-between;
            align-items: stretch;
            gap: 1rem;
            width: 100%;
            min-height: 3rem;
        }

        .message-left {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
            justify-content: space-between;
            align-items: flex-start;
            min-height: 3rem;
        }

        .message-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            flex-shrink: 0;
            justify-content: space-between;
            min-height: 3rem;
        }

        .message-subject {
            font-weight: 600;
            font-size: 1.05rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin: 0;
            color: var(--text-primary);
        }

        .message-time {
            font-size: 0.8rem;
            color: var(--text-muted);
            white-space: nowrap;
        }

        .message-from {
            font-size: 0.9rem;
            color: var(--text-secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin: 0;
        }



        .message-delete-btn {
            opacity: 1;
            transition: all 0.3s ease;
            padding: 0.125rem;
            font-size: 0.8rem;
            border-radius: 0.25rem;
            min-height: auto;
            background: transparent;
            color: #dc2626;
            border: none;
            flex-shrink: 0;
            width: auto;
            min-width: fit-content;
            text-decoration: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .message-delete-btn:hover {
            color: #991b1b;
            background: rgba(220, 38, 38, 0.1);
        }

        .message-delete-btn svg {
            width: 0.875rem;
            height: 0.875rem;
        }

        /* 邮件详情 */
        .message-detail {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(16px);
            z-index: 100;
            display: none;
            overflow-y: auto;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .message-detail.show {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .message-detail-content {
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
        }

        .message-detail-card {
            background: var(--bg-card);
            backdrop-filter: blur(var(--backdrop-blur));
            border-radius: 1.5rem;
            border: 1px solid var(--border-primary);
            overflow: hidden;
            box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
            display: flex;
            flex-direction: column;
            max-height: 100%;
            position: relative;
        }

        .message-detail-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-primary);
            opacity: 0.02;
            pointer-events: none;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }


        .message-detail-header {
            padding: 2rem 2rem 1.5rem;
            flex-shrink: 0;
            background: var(--bg-card);
            position: relative;
            border-bottom: 1px solid var(--border-secondary);
        }

        .message-detail-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
            line-height: 1.4;
            word-wrap: break-word;
            overflow-wrap: break-word;
            padding-right: 3rem; /* 为关闭按钮留出空间 */
        }

        .message-detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }

        .message-detail-meta > div {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            padding: 0.75rem 1rem;
            background: var(--bg-secondary);
            border-radius: 0.75rem;
            border: 1px solid var(--border-secondary);
            transition: all 0.3s ease;
            flex: 1;
            min-width: 0;
        }

        .message-detail-meta > div:hover {
            background: var(--bg-card-hover);
            border-color: var(--border-primary);
            transform: translateY(-1px);
            box-shadow: var(--shadow-sm);
        }

        .message-detail-meta span:first-child {
            color: var(--text-muted);
            font-weight: 500;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            opacity: 0.8;
        }

        .message-detail-meta span:last-child {
            color: var(--text-primary);
            font-weight: 500;
            font-size: 0.875rem;
            word-break: break-word;
            line-height: 1.4;
        }

        .message-detail-body {
            padding: 2rem;
            flex: 1;
            overflow-y: auto;
            background: var(--bg-primary);
        }

        .message-content-frame {
            background: var(--bg-card);
            border-radius: 1rem;
            min-height: 300px;
            width: 100%;
            border: 1px solid var(--border-secondary);
            backdrop-filter: blur(8px);
            box-shadow: var(--shadow-sm);
        }

        .message-content-text {
            background: var(--bg-card);
            border-radius: 1rem;
            padding: 2rem;
            white-space: pre-wrap;
            color: var(--text-primary);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.7;
            font-size: 0.95rem;
            border: 1px solid var(--border-secondary);
            box-shadow: var(--shadow-sm);
            position: relative;
            overflow-wrap: break-word;
            word-wrap: break-word;
            min-height: 300px;
        }

        /* 如果邮件内容为空的样式 */
        .message-content-text:empty::before {
            content: '📭 此邮件没有文本内容';
            color: var(--text-muted);
            font-style: italic;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 200px;
            font-size: 1rem;
        }

        /* 改进邮件内容的段落样式 */
        .message-content-text p {
            margin: 0 0 1.2rem 0;
        }

        .message-content-text p:last-child {
            margin-bottom: 0;
        }

        /* 链接样式 */
        .message-content-text a {
            color: #667eea;
            text-decoration: underline;
            text-decoration-color: rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .message-content-text a:hover {
            color: #4f46e5;
            text-decoration-color: #4f46e5;
            background: rgba(102, 126, 234, 0.1);
            padding: 0.125rem 0.25rem;
            border-radius: 0.25rem;
        }

        /* 强调文本样式 */
        .message-content-text strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        .message-content-text em {
            color: var(--text-secondary);
            font-style: italic;
        }

        /* 代码样式 */
        .message-content-text code {
            background: var(--bg-secondary);
            padding: 0.125rem 0.375rem;
            border-radius: 0.25rem;
            font-family: 'SF Mono', Monaco, 'Inconsolata', 'Roboto Mono', monospace;
            font-size: 0.9em;
            color: var(--text-primary);
            border: 1px solid var(--border-secondary);
        }

        /* 邮件详情移动端优化 */
        @media (max-width: 768px) {
            .message-detail {
                padding: 1rem;
            }
            
            .message-detail-content {
                max-width: 100%;
                max-height: 95vh;
            }
            
            .message-detail-card {
                border-radius: 1.25rem;
            }
            
            .message-detail-header {
                padding: 1.5rem 1.5rem 1.25rem;
            }
            
            .message-detail-title {
                font-size: 1.25rem;
                margin-bottom: 1.25rem;
                padding-right: 2.5rem; /* 为关闭按钮留出空间 */
            }
            
            .message-detail-meta {
                flex-direction: column;
                gap: 0.75rem;
                margin-top: 1rem;
            }
            
            .message-detail-meta > div {
                flex: none;
                padding: 0.75rem 1rem;
            }
            
            .message-detail-meta span:first-child {
                font-size: 0.7rem;
            }
            
            .message-detail-meta span:last-child {
                font-size: 0.85rem;
            }
            
            .message-detail-body {
                padding: 1.5rem;
            }
            
            .message-content-text {
                padding: 1.5rem;
                font-size: 0.9rem;
                line-height: 1.6;
                min-height: 200px;
            }
        }

        /* 图标 */
        .icon {
            width: 1.25rem;
            height: 1.25rem;
            stroke-width: 2;
            flex-shrink: 0; /* 添加这行，防止图标被压缩 */
        }

        .icon-sm {
            width: 1rem;
            height: 1rem;
        }

        .icon-lg {
            width: 1.5rem;
            height: 1.5rem;
        }

        /* 动画 - 现代化增强 */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px) translateZ(0);
            }
            to {
                opacity: 1;
                transform: translateY(0) translateZ(0);
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes glow {
            0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
            50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(-20px);
            }
        }

        .animate-spin {
            animation: spin 1s linear infinite;
        }

        .animate-glow {
            animation: glow 2s ease-in-out infinite;
        }

        /* 通知 */
        .toast-container {
            position: fixed;
            top: 7rem;
            right: 2rem;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            pointer-events: none;
        }

        .toast {
            position: relative; /* 改为relative */
            top: auto;
            right: auto;
            background: var(--bg-card);
            backdrop-filter: blur(var(--backdrop-blur));
            border: 1px solid var(--border-primary);
            border-radius: 1rem;
            padding: 1rem 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transform: translateX(500px); /* 从 400px 改为 500px，确保完全在屏幕外 */
            opacity: 0; /* 添加初始透明度 */
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* 添加弹性动画 */
            /* z-index is handled by container */
            box-shadow: var(--shadow-xl);
            max-width: 320px; /* 添加 max-width */
            min-height: 56px; /* 添加最小高度 */
            pointer-events: auto; /* 改为auto，因为现在在container内部 */
            will-change: transform, opacity; /* 添加will-change优化性能 */
        }

        .toast.show {
            transform: translateX(0);
            opacity: 1; /* 显示时完全不透明 */
            pointer-events: auto; /* 显示时可以接收鼠标事件 */
        }
        
        /* 成功提示样式 */
        .toast-success {
            background: linear-gradient(135deg, 
                rgba(16, 185, 129, 0.1), 
                rgba(16, 185, 129, 0.05)
            );
            border: 1px solid rgba(16, 185, 129, 0.3);
            position: relative;
            overflow: hidden;
        }

        .toast-success::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #10b981, #34d399);
            animation: progress 3s linear;
        }

        @keyframes progress {
            from { transform: translateX(-100%); }
            to { transform: translateX(0); }
        }

        .toast-success .icon {
            color: #10b981;
            background: rgba(16, 185, 129, 0.1);
            padding: 0.375rem;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            flex-shrink: 0;
        }

        /* 信息提示样式 */
        .toast-info {
            background: linear-gradient(135deg, 
                rgba(59, 130, 246, 0.1), 
                rgba(59, 130, 246, 0.05)
            );
            border: 1px solid rgba(59, 130, 246, 0.3);
            position: relative;  /* 添加 */
            overflow: hidden;    /* 添加 */
        }

        /* 添加信息提示的进度条 */
        .toast-info::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #3b82f6, #60a5fa);
            animation: progress 3s linear;
        }

        .toast-info .icon {
            color: #3b82f6;
            background: rgba(59, 130, 246, 0.1);
            padding: 0.375rem;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            flex-shrink: 0;
        }
        
        /* 警告提示样式保持原有，但确保图标背景和padding与其他类型一致 */
        .toast.toast-warning {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
            border-color: rgba(245, 158, 11, 0.3);
            position: relative;  /* 添加 */
            overflow: hidden;    /* 添加 */
        }

        /* 确保暂停通知（warning）完全没有进度条 */
        .toast.toast-warning::before,
        #freezeNotification.toast-warning::before {
            display: none !important; /* 强制隐藏任何可能的进度条 */
        }

        /* 删除或注释掉这部分 - 暂停通知不需要进度条 */
        /* .toast.toast-warning::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
            animation: progress 3s linear;
        } */

        .toast.toast-warning .icon {
            color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
            padding: 0.375rem;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            flex-shrink: 0;
        }

        /* Toast 文字样式 */
        #toastMessage {
            font-weight: 500;
            color: var(--text-primary);
            font-size: 0.95rem;
        }

        /* 移除旧的 .toast.toast-success 和 .toast.toast-warning .icon (如果它们在之前的位置单独定义了图标颜色) */
        /* 确保新的 .toast-success .icon and .toast-warning .icon 覆盖旧的 */
        /* .toast.toast-success .icon { color: #10b981; } */ /* 旧的，将被覆盖 */

        /* 修改 Freeze Notification 的样式 */
        #freezeNotification {
            position: fixed !important; /* 添加固定定位，使用 !important 覆盖 .toast 的 relative */
            width: 320px;
            min-height: 4rem;
            max-width: none;
            top: 7rem;
            right: 2rem;
            z-index: 10000;
            display: none; /* 初始隐藏 */
            transform: translateX(500px); /* 初始位置在屏幕外 */
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        /* 显示状态 */
        #freezeNotification.show {
            transform: translateX(0);
            opacity: 1;
        }

        #freezeNotification .notification-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.375rem;
        }

        #freezeNotification .notification-title {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-primary);
        }

        #freezeNotification .notification-subtitle {
            font-size: 0.85rem;
            opacity: 0.8;
            line-height: 1.3;
            color: var(--text-secondary);
        }

        /* 响应式 - 移动端优化 */
        @media (max-width: 640px) {
            h1 {
                font-size: 2.5rem;
            }
            
            .container {
                padding: 1rem;
                height: auto;
                min-height: 100vh;
            }
            
            .card {
                padding: 1.5rem;
                border-radius: 1.25rem;
            }

            .theme-controls {
                top: 1rem;
                right: 1rem;
            }
            
            .theme-toggle {
                width: 45px;
                height: 45px;
            }
            
            .toast-container {
                right: 1rem;
                top: 5.5rem;
            }

            #freezeNotification {
                width: 280px;
                right: 1rem;
                top: 5.5rem;
            }

            .theme-menu {
                right: 0;
                left: auto;
                top: calc(100% + 1.5rem);
            }
            
            .grid {
                overflow: visible;
                gap: 1.5rem;
            }
          
            .message-list {
                height: auto;
                min-height: 400px;
                max-height: 600px;
            }

            /* 移动端按钮优化 */
            .btn {
                padding: 0.875rem 1.5rem;
                font-size: 0.95rem;
            }

            .btn-primary {
                padding: 1rem 1.5rem;
                font-size: 1rem;
            }

            /* 移动端输入框优化 */
            input, select {
                padding: 0.875rem 1rem;
                font-size: 16px; /* 防止iOS缩放 */
            }

            /* 邮件项移动端优化 */
            .message-item {
                padding: 1rem;
                border-radius: 0.875rem;
            }

            .message-item:hover {
            }
        }

        /* 平板设备 */
        @media (max-width: 768px) and (min-width: 641px) {
            .container {
                padding: 1.5rem;
            }
            
            .card {
                padding: 1.75rem;
            }
            
            .toast-container {
                top: 6rem;
                right: 1.5rem;
            }
            
            .grid {
                gap: 1.75rem;
            }
            
            .message-list {
                min-height: 450px;
                max-height: 650px;
            }
        }

        /* 超小屏幕设备 */
        @media (max-width: 400px) {
            h1 {
                font-size: 2rem;
            }
            
            .container {
                padding: 0.75rem;
            }
            
            .card {
                padding: 1.25rem;
                border-radius: 1rem;
            }
            
            .toast-container {
                right: 0.5rem;
                left: 0.5rem;
                width: auto;
                align-items: center;
            }
            
            .toast {
                width: 100%;
                max-width: calc(100vw - 1rem);
            }
            
            #freezeNotification {
                width: calc(100vw - 1rem);
                right: 0.5rem;
                left: 0.5rem;
            }
            
            .theme-controls {
                top: 0.75rem;
                right: 0.75rem;
            }
            
            .theme-toggle {
                width: 40px;
                height: 40px;
            }
            
            .btn {
                padding: 0.75rem 1.25rem;
                font-size: 0.9rem;
                min-height: 44px; /* 增加触摸目标大小 */
            }
            
            .btn-primary {
                padding: 0.875rem 1.25rem;
                font-size: 0.95rem;
                min-height: 48px;
            }
        }

        /* 响应式改进 - 在1024px断点确保Toast不会与左侧展开的主题菜单冲突 */
        @media (min-width: 1024px) {
            .toast-container { /* Default desktop, already set */
                top: 7rem;
                right: 2rem;
            }
        }

        /* 平滑过渡 */
        .theme-transition {
            transition: background-color 0.3s ease, color 0.3s ease !important;
        }

        /* 加载动画 */
        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid var(--text-muted);
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 0.8s linear infinite;
            flex-shrink: 0; /* 防止在flex容器中被压缩 */
        }
        
        /* 在续期按钮中的spinner样式 */
        #renewBtnGenerate .loading-spinner {
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: rgba(255, 255, 255, 0.8);
        }
        
        /* 续期按钮悬停时的spinner样式 - 使用深色确保可见性 */
        #renewBtnGenerate:hover:not(:disabled) .loading-spinner,
        #renewBtnGenerate:focus:not(:disabled) .loading-spinner {
            border: 2px solid rgba(0, 0, 0, 0.3);
            border-top-color: rgba(0, 0, 0, 0.8);
        }
        
        /* 续期按钮禁用状态 */
        #renewBtnGenerate:disabled {
            cursor: not-allowed !important;
            pointer-events: none !important;
            opacity: 0.7 !important;
        }
        
        /* 禁用状态下的spinner保持白色（因为按钮背景保持原色） */
        #renewBtnGenerate:disabled .loading-spinner {
            border: 2px solid rgba(255, 255, 255, 0.5) !important;
            border-top-color: rgba(255, 255, 255, 0.9) !important;
        }

        /* 模态框样式 */
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(8px);
            z-index: 200;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .modal.show {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            background: var(--bg-card);
            backdrop-filter: blur(var(--backdrop-blur));
            border: 1px solid var(--border-primary);
            border-radius: 1.5rem;
            padding: 2.5rem;
            max-width: 400px;
            width: 100%;
            text-align: center;
            box-shadow: var(--shadow-xl);
            animation: slideUp 0.3s ease;
            position: relative; /* For absolute positioning of close button */
        }

        .modal-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 1.5rem;
            background: var(--gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-icon svg {
            width: 40px;
            height: 40px;
            stroke: white;
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            color: var(--text-primary);
        }

        .modal-description {
            color: var(--text-secondary);
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            flex-direction: column;
        }

        /* 小按钮样式 */
        .btn-sm {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        /* 响应式改进 - 在1024px断点以下隐藏功能特点 */
        @media (max-width: 1023px) {
            /* 当布局变为上下结构时隐藏功能特点卡片 */
            .feature-card {
                display: none !important;
            }
            
            /* 当功能特点卡片被隐藏时，调整其他元素的动画延迟 */
            .message-list {
                animation-delay: 0.1s !important;
            }
            
            /* 确保邮箱面板在上下布局时有正确的动画延迟 */
            #emailPanel {
                animation-delay: 0s !important;
            }
        }

        @media (max-width: 640px) {
            .modal-content {
                padding: 2rem;
            }
            
            .theme-controls {
                top: 1rem;
                right: 1rem;
            }
            
            .theme-menu {
                right: 0; /* 移动端恢复到右边，因为左边可能没有空间 */
                left: auto;
                top: calc(100% + 1.5rem); /* 原来是 1rem，现在改为 1.5rem，往下移动一点 */
            }
        }

        /* 模态框关闭按钮 */
        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 0.5rem;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        .modal-close svg {
            width: 24px;
            height: 24px;
        }

        /* 添加彩虹色@符号样式 */
        .rainbow-at {
            font-size: 4rem;
            font-weight: 800;
            background: linear-gradient(120deg, 
                #e74c3c, #f39c12, #f1c40f, #2ecc71, 
                #3498db, #9b59b6, #e74c3c
            );
            background-size: 200% 200%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
            margin-right: 0.5rem;
            animation: rainbow-shift 5s ease infinite;
            transition: transform 0.3s ease;
        }

        .rainbow-at:hover {
            transform: scale(1.1) rotate(5deg);
        }

        @keyframes rainbow-shift {
            0%, 100% {
                background-position: 0% 50%;
                filter: brightness(1) contrast(1);
            }
            50% {
                background-position: 100% 50%;
                filter: brightness(1.1) contrast(1.1);
            }
        }

        /* 可选：添加微妙的光晕效果 */
        .rainbow-at::after {
            content: '';
            position: absolute;
            inset: -10px;
            background: radial-gradient(circle, 
                rgba(255, 255, 255, 0.2) 0%, 
                transparent 70%
            );
            border-radius: 50%;
            pointer-events: none;
            animation: rainbow-glow 3s ease-in-out infinite;
        }

        @keyframes rainbow-glow {
            0%, 100% { 
                opacity: 0.3;
                transform: scale(0.95);
            }
            50% { 
                opacity: 0.6;
                transform: scale(1.05);
            }
        }

        /* 在现有的CSS中添加 */
        #ttlCountdown {
            background: var(--bg-secondary);
            border-radius: 0.75rem;
            padding: 0.75rem 1rem;
            backdrop-filter: blur(8px);
            border: 1px solid var(--border-secondary);
            min-height: 48px;
            display: flex;
            align-items: center;
        }

        #ttlCountdown .email-status {
            margin: 0;
            width: 100%;
        }

        /* 确保选择框高度一致 */
        #ttl {
            height: 48px;
        }

        /* 统一主要按钮的高度 */
        .btn-primary {
            background: var(--gradient-primary);
            color: var(--text-inverse);
            width: 100%;
            font-size: 1.05rem;
            padding: 1rem 1.75rem; /* 统一padding */
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
            min-height: 52px; /* 添加最小高度 */
        }

        /* 确保删除按钮在全宽时有相同的样式 */
        #deleteBtn.btn-danger {
            min-height: 52px;
            font-size: 1.05rem;
            padding: 1rem 1.75rem;
        }

        /* ... existing code ... */
        @media (min-width: 1024px) {
            .grid {
                grid-template-columns: 2fr 3fr;
                height: 100%; /* 确保占满高度 */
            }

            .left-column {
                display: flex;
                flex-direction: column;
                gap: 1rem; /* 减小间隙从2rem到1rem */
                height: 100%;
                overflow-y: visible; /* 改为 visible，防止动画时被截断 */
                min-height: 0; /* 允许收缩 */
            }

            #emailPanel {
                flex: 0 0 auto; /* 邮箱面板自动高度 */
            }

            .feature-card {
                flex: 1; /* 功能特点占据剩余空间 */
                display: flex; /* Ensure it's a flex container if not already */
                flex-direction: column;
                overflow-y: visible; /* 改为 visible，防止动画时被截断 */
            }

            .feature-card .feature-list {
                flex: 1;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
            }

            /* 确保收件箱和左侧高度一致 */
            .message-list {
                min-height: 0; /* 改为 0，允许自适应 */
                height: 100%; /* 添加：占满父容器高度 */
                max-height: none; /* 移除最大高度限制 */
                overflow-y: auto; /* 保持内部滚动 */
                display: flex; /* 添加 */
                flex-direction: column; /* 添加 */
            }
        }

        /* 表单组样式 */
        .form-group {
            margin-bottom: 1.25rem;
        }

        /* 过期时间容器 - 统一高度 */
        .ttl-container {
            position: relative;
            min-height: 48px; /* 确保容器高度一致 */
        }

        /* 确保选择框和倒计时容器高度完全一致 */
        .ttl-container #ttl,
        .ttl-container #ttlCountdown {
            height: 48px;
            margin: 0; /* 确保没有额外的边距 */
        }

        /* 确保ttlCountdown内部的email-status垂直居中 */
        #ttlCountdown .email-status {
            height: 100%;
            display: flex;
            align-items: center;
        }
        /* 响应式改进 */
        
        /* 邮箱面板状态控制 */
        #emailPanel[data-state="has-email"] .ttl-select {
            display: none;
        }

        #emailPanel[data-state="no-email"] .ttl-countdown {
            display: none;
        }

        #emailPanel[data-state="has-email"] .btn-generate {
            display: none;
        }

        #emailPanel[data-state="no-email"] .btn-delete {
            display: none;
        }
        #emailPanel[data-state="no-email"] #renewBtnGenerate {
            display: none;
        }

        /* 确保按钮在显示时占满宽度 */
        .button-group {
            display: flex;
            gap: 0.625rem;
        }

        .btn-generate,
        .btn-delete {
            flex: 1;
        }

        /* TTL 容器保持固定高度 */
        .ttl-container {
            position: relative;
            height: 48px; /* 与 #ttl 和 #ttlCountdown 保持一致 */
        }

        .ttl-select,
        .ttl-countdown {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 48px; /* 确保高度一致 */
        }
        
        /* 有邮箱时的 flex 布局 */
        #emailPanel[data-state="has-email"] .ttl-container {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        #emailPanel[data-state="has-email"] .ttl-countdown {
            position: static;
            flex: 1;
            width: auto;
            height: 48px; /* 确保高度一致 */
        }
        #emailPanel[data-state="has-email"] #renewBtnGenerate {
            flex-shrink: 0;
            height: 48px; /* 与倒计时容器保持相同高度 */
            padding: 0 1rem; /* 调整内边距以适应固定高度 */
            min-width: 100px; /* 最小宽度，给加载状态留够空间 */
            box-sizing: border-box;
            display: flex; /* 使用flex布局 */
            align-items: center; /* 垂直居中 */
            justify-content: center; /* 水平居中 */
            gap: 0.5rem; /* spinner和文字之间的间距 */
        }

        .ttl-countdown {
            display: flex; /* Ensure it's flex for alignment */
            align-items: center; /* Align items vertically */
        }

        /* 删除模态框的特殊样式 */
        #deleteModal .modal-icon {
            animation: pulse 2s ease-in-out infinite;
        }

        #deleteModal .btn-danger:hover {
            background: linear-gradient(135deg, #dc2626, #991b1b);
            box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
        }

        /* 在现有样式中添加 */
        .feature-card {
            /* 自定义滚动条样式 - 仅在需要时显示 */
            scrollbar-width: thin; /* Firefox */
            scrollbar-gutter: stable; /* 防止布局跳动 */
            overflow-y: auto; /* Ensure overflow-y is auto or scroll if content exceeds height */
        }

        .feature-card::-webkit-scrollbar {
            width: 6px;
        }

        .feature-card::-webkit-scrollbar-track {
            background: transparent;
        }

        .feature-card::-webkit-scrollbar-thumb {
            background: var(--border-primary);
            border-radius: 3px;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .feature-card:hover::-webkit-scrollbar-thumb {
            opacity: 1;
        }

        /* 修改警告提示样式 - 移除进度条动画 */
        .toast.toast-warning {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
            border-color: rgba(245, 158, 11, 0.3);
            position: relative;
            overflow: hidden;
        }

        /* 确保暂停通知（warning）完全没有进度条 */
        .toast.toast-warning::before,
        #freezeNotification.toast-warning::before {
            display: none !important; /* 强制隐藏任何可能的进度条 */
        }

        .toast.toast-warning .icon {
            color: #f59e0b;
            background: rgba(245, 158, 11, 0.1);
            padding: 0.375rem;
            border-radius: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            flex-shrink: 0;
        }

        /* 为 freezeNotification 在成功状态时单独添加进度条 */
        #freezeNotification.toast-success::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #10b981, #34d399);
            /* animation: progress 2.5s linear; */ /* 旧动画，将被替换 */
            animation: progress-success 2.5s linear; /* 使用新的动画名称 */
            transform-origin: left; /* 确保从左侧开始动画 */
        }

        /* 添加一个新的动画，用于成功状态的进度条 */
        @keyframes progress-success {
            from { 
                transform: scaleX(0);
            }
            to { 
                transform: scaleX(1);
            }
        }
