/* 全局样式 */
:root {
    --primary-color: #4a6ee0;
    --primary-hover: #3a5ecc;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f5f7fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #e1e5eb;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --sidebar-bg: #f0f2f5;
    --sidebar-width: 280px;
    --header-height: 60px;
    --email-list-bg: #ffffff;
    --email-detail-bg: #ffffff;
    --unread-bg: #edf2ff;
    --read-bg: #ffffff;
    --hover-bg: #f8f9fa;
    --modal-bg: #ffffff;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

button:focus {
    outline: none;
}

input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 主卡片样式 */
.main-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color);
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 10px;
}

.header .subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 10px;
}

/* 单独的subtitle样式，适用于不在header内的subtitle元素 */
.subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 邮箱容器样式 */
.mailbox-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* 邮箱头部样式 */
.mailbox-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.mailbox-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.mailbox-header h2 {
    font-size: 22px;
    color: var(--text-color);
    margin: 0;
}

/* 邮箱信息样式 */
.mailbox-info {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.email-address-container {
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    gap: 8px;
}

.email-address {
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    flex: 1;
    padding: 4px 8px;
    word-break: break-all;
    text-align: center;
}

.copy-email-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-email-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.copy-email-btn:active {
    transform: scale(0.95);
}

.expiry-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.expiry-info i {
    margin-right: 8px;
}

.expiry-info.warning {
    color: var(--warning-color);
}

.expiry-info.expired {
    color: var(--danger-color);
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
}

.action-btn i {
    margin-right: 8px;
}

.share-btn {
    background-color: var(--primary-color);
    color: white;
}

.share-btn:hover {
    background-color: var(--primary-hover);
}

/* 使用提示样式 */
.usage-tip {
    display: flex;
    background-color: #fff8e1;
    border-radius: 8px;
    padding: 12px;
    margin-top: auto;
    margin-bottom: 10px;
}

.usage-tip i {
    color: var(--warning-color);
    margin-right: 10px;
    font-size: 18px;
    margin-top: 2px;
}

.usage-tip p {
    font-size: 14px;
    color: #856404;
    margin: 0;
}

/* 技术支持提示样式 */
.support-tip {
    display: flex;
    background-color: #e8f4fd;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.support-tip:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.support-tip i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 20px;
    margin-top: 2px;
}

.support-content {
    flex: 1;
}

.support-content p {
    font-size: 13px;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.support-email {
    display: flex;
    align-items: center;
    margin: 5px 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 4px 8px;
}

.support-email span {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    flex: 1;
}

.copy-support-btn {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 2px 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-support-btn:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

.support-label {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    text-align: right;
    font-style: italic;
    margin-top: 2px !important;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 内容头部样式 */
.content-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: var(--card-bg);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
}

/* 刷新按钮样式 */
.compose-btn {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compose-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.compose-btn:active {
    transform: translateY(0);
}

.compose-btn i {
    margin-right: 8px;
}

/* 邮件列表样式 */
.email-list {
    flex: 1;
    overflow-y: auto;
    background-color: var(--email-list-bg);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.email-list h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
}

.loading-emails, .no-emails {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: var(--text-muted);
    text-align: center;
}

.loading-emails i, .no-emails i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.no-emails small {
    margin-top: 10px;
    font-size: 12px;
}

.email-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.email-item.unread {
    background-color: var(--unread-bg);
    font-weight: 500;
}

.email-item.read {
    background-color: var(--read-bg);
}

.email-item:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.email-sender {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.email-subject {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.email-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.email-preview {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 邮件详情样式 */
.email-detail {
    flex: 1;
    overflow-y: auto;
    background-color: var(--email-detail-bg);
    padding: 20px;
}

.email-detail h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
}

.no-email-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 40px);
    color: var(--text-muted);
    text-align: center;
}

.no-email-selected i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.email-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.email-header h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.email-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.sender-info, .time-info {
    color: var(--text-muted);
}

.email-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 复制验证码按钮 - 更突出的样式 */
.copy-verification-btn {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-verification-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.copy-verification-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.copy-verification-btn i {
    font-size: 16px;
}

/* 删除邮件按钮 */
.delete-email-btn {
    background-color: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.delete-email-btn:hover {
    background-color: var(--danger-color);
    color: white;
}

.delete-email-btn:active {
    transform: translateY(1px);
}

.email-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-wrap: break-word;
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--modal-bg);
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    padding: 5px;
    font-size: 16px;
    color: var(--text-muted);
}

.close-btn:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 20px;
}

.share-link-container {
    display: flex;
    margin-top: 15px;
}

.share-link-container input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.copy-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background-color: var(--primary-color);
    color: white;
}

.copy-btn:hover {
    background-color: var(--primary-hover);
}

/* 代码块样式 */
pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', Courier, monospace;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 3px 8px;
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    border-radius: 3px;
}

/* 错误页面样式 */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 0 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-message {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.error-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mailbox-container {
        flex-direction: column;
        height: 100vh;
        overflow: hidden;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        order: 2; /* 将侧边栏移到底部 */
        background-color: var(--sidebar-bg);
        border-top: 1px solid var(--border-color);
        padding: 15px;
        max-height: 40vh;
        overflow-y: auto;
    }
    
    /* 移动端邮箱地址容器优化 */
    .email-address-container {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .email-address {
        font-size: 14px;
        text-align: center;
        padding: 8px;
    }
    
    .copy-email-btn {
        align-self: center;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    /* 移动端隐藏技术支持模块，或移到更不显眼的位置 */
    .support-tip {
        display: none;
    }
    
    /* 简化侧边栏内容 */
    .usage-tip {
        font-size: 12px;
        padding: 8px;
        margin: 10px 0;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin: 10px 0;
    }
    
    .action-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .main-content {
        margin-left: 0;
        order: 1; /* 主内容区域在上方 */
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .content-header {
        padding: 10px 15px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .content-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
    }
    
    /* 邮件列表在移动端占据全部空间 */
    .email-list {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        background-color: var(--email-list-bg);
    }
    
    /* 邮件详情在移动端以全屏模态方式显示 */
    .email-detail {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--email-detail-bg);
        z-index: 999;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .email-detail.show {
        transform: translateX(0);
    }
    
    /* 邮件详情头部 */
    .email-detail-header {
        position: sticky;
        top: 0;
        background-color: var(--email-detail-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
    }
    
    .email-detail-title {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-color);
        margin: 0;
    }
    
    .email-detail-close {
        background: none;
        border: none;
        font-size: 20px;
        color: var(--text-muted);
        padding: 5px;
        cursor: pointer;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .email-detail-close:hover {
        background-color: var(--hover-bg);
        color: var(--text-color);
    }
    
    /* 邮件详情内容 */
    .email-detail-content {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
    }
    
    /* 隐藏默认的邮件详情标题 */
    .email-detail h3 {
        display: none;
    }
    
    /* 移动端邮件操作按钮优化 */
    .email-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .copy-verification-btn {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 10px;
        justify-content: center;
    }
    
    .delete-email-btn {
        padding: 4px 8px;
        font-size: 12px;
        border-radius: 4px;
    }
    
    /* 邮件项点击效果优化 */
    .email-item {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .email-item:active {
        transform: scale(0.98);
        background-color: var(--primary-color);
        color: white;
    }
    
    .email-item:active .email-sender,
    .email-item:active .email-subject,
    .email-item:active .email-time,
    .email-item:active .email-preview {
        color: white;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    /* Toast 在移动端的位置调整 */
    .toast {
        bottom: 80px; /* 避免被底部侧边栏遮挡 */
        left: 20px;
        right: 20px;
        width: auto;
    }
    
    /* 邮件头部信息在移动端的优化 */
    .email-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    /* 邮件正文在移动端的优化 */
    .email-body {
        font-size: 16px;
        line-height: 1.6;
        word-break: break-word;
    }
    
    /* 确保长链接不会破坏布局 */
     .email-body a {
         word-break: break-all;
     }
     
     /* 移动端技术支持按钮 */
     .support-btn-mobile {
         display: block;
         background: none;
         border: none;
         color: var(--text-muted);
         font-size: 18px;
         padding: 8px;
         border-radius: 50%;
         width: 36px;
         height: 36px;
         display: flex;
         align-items: center;
         justify-content: center;
         cursor: pointer;
         transition: all 0.2s ease;
     }
     
     .support-btn-mobile:hover {
         background-color: var(--hover-bg);
         color: var(--primary-color);
     }
     
     /* 移动端技术支持模态框 */
     .mobile-support-modal {
         position: fixed;
         bottom: 0;
         left: 0;
         right: 0;
         background-color: var(--modal-bg);
         border-top-left-radius: 16px;
         border-top-right-radius: 16px;
         box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
         transform: translateY(100%);
         transition: transform 0.3s ease-in-out;
         z-index: 1001;
         max-height: 50vh;
         overflow-y: auto;
     }
     
     .mobile-support-modal.show {
         transform: translateY(0);
     }
     
     .mobile-support-header {
         display: flex;
         align-items: center;
         justify-content: space-between;
         padding: 16px 20px;
         border-bottom: 1px solid var(--border-color);
     }
     
     .mobile-support-title {
         font-size: 16px;
         font-weight: 600;
         color: var(--text-color);
         margin: 0;
     }
     
     .mobile-support-close {
         background: none;
         border: none;
         font-size: 20px;
         color: var(--text-muted);
         padding: 4px;
         cursor: pointer;
         border-radius: 50%;
         width: 32px;
         height: 32px;
         display: flex;
         align-items: center;
         justify-content: center;
     }
     
     .mobile-support-close:hover {
         background-color: var(--hover-bg);
         color: var(--text-color);
     }
     
     .mobile-support-content {
         padding: 20px;
     }
     
     .mobile-support-email {
         display: flex;
         align-items: center;
         justify-content: space-between;
         background-color: var(--light-color);
         border: 1px solid var(--border-color);
         border-radius: 8px;
         padding: 12px 16px;
         margin: 10px 0;
     }
     
     .mobile-support-email span {
         font-family: monospace;
         font-size: 14px;
         color: var(--text-color);
     }
     
     .mobile-copy-btn {
         background-color: var(--primary-color);
         color: white;
         border: none;
         border-radius: 6px;
         padding: 6px 12px;
         font-size: 12px;
         cursor: pointer;
         transition: all 0.2s ease;
     }
     
     .mobile-copy-btn:hover {
         background-color: var(--primary-hover);
     }
 }
 
 /* 桌面端隐藏移动端技术支持按钮 */
 @media (min-width: 769px) {
     .support-btn-mobile {
         display: none;
     }
 }

/* 新的布局样式 - 左右分栏 */
@media (min-width: 769px) {
    .mailbox-container {
        display: grid;
        grid-template-columns: var(--sidebar-width) 1fr;
        height: 100vh;
    }
    
    .main-content {
        display: grid;
        grid-template-rows: var(--header-height) 1fr;
        overflow: hidden;
    }
    
    .content-body {
        display: grid;
        grid-template-columns: 1fr 2fr;
        overflow: hidden;
    }
    
    .email-list {
        border-right: 1px solid var(--border-color);
        border-bottom: none;
        overflow-y: auto;
        height: calc(100vh - var(--header-height));
    }
    
    .email-detail {
        overflow-y: auto;
        height: calc(100vh - var(--header-height));
    }
}

/* Toast通知样式 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .toast {
        left: 20px;
        right: 20px;
        bottom: 30px;
        text-align: center;
        padding: 14px 20px;
        border-radius: 8px;
        font-size: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--danger-color);
}

.toast.warning {
    background-color: var(--warning-color);
    color: #856404;
}

.toast.info {
    background-color: var(--info-color);
}

/* 首页和创建页特定样式 */
.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

/* 首页和创建页的移动端适配 */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 15px;
        max-width: 100%;
    }
    
    .main-card {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* 移动端输入框优化 */
    .email-input {
        padding: 14px 15px;
        font-size: 16px;
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    /* 移动端按钮优化 */
    .primary-btn, .secondary-btn {
        padding: 14px;
        border-radius: 8px;
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .primary-btn:active, .secondary-btn:active {
        transform: scale(0.98);
    }
    
    /* 移动端分隔线优化 */
    .divider {
        margin: 15px 0;
    }
    
    /* 移动端加载动画优化 */
    .loading {
        background-color: rgba(255, 255, 255, 0.9);
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 5px;
}

.back-btn:hover {
    color: var(--primary-color);
}

.email-input {
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
}

.email-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 110, 224, 0.2);
}

.input-validation {
    font-size: 14px;
    color: var(--danger-color);
    margin-bottom: 15px;
    min-height: 20px;
}

.primary-btn, .secondary-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 15px;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.secondary-btn {
    background-color: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.primary-btn i, .secondary-btn i {
    margin-right: 8px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 创建页特定样式 */
.email-display {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    word-break: break-all;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .email-display {
        font-size: 16px;
        padding: 12px;
    }
}

.email-display .domain {
    color: var(--text-muted);
}

.email-strength {
    margin-bottom: 20px;
}

.strength-bar {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .email-strength {
        margin-bottom: 25px;
    }
    
    .strength-bar {
        height: 8px;
        border-radius: 4px;
        margin-bottom: 8px;
    }
    
    .strength-fill {
        border-radius: 4px;
    }
    
    .strength-text {
        font-size: 14px;
    }
}

/* Loading样式 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}



/* 支持空的loading元素 */
.loading:empty::after {
    content: "";
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* 支持包含spinner元素的loading元素 */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}