/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f0f9ff;
    color: #2c3e50;
    line-height: 1.5;
}

[v-cloak] {
    display: none;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 登录页样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #1976D2;
    font-weight: 500;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

/* 主界面样式 */
.el-header {
    background-color: #fff;
    color: #2c3e50;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h2 {
    color: #1976D2;
    font-weight: 500;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.user-info span {
    margin-right: 0;
    white-space: nowrap;
}

.user-tag {
    margin: 0;
}

.el-dropdown-link {
    cursor: pointer;
    color: #409EFF;
    margin-left: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.el-aside {
    background-color: #f0f9ff;
    color: #2c3e50;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.el-menu-vertical {
    height: calc(100vh - 60px);
    border-right: none;
}

.el-main {
    background-color: #fff;
    color: #2c3e50;
    padding: 20px;
}

/* 工具栏样式 */
.action-toolbar {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

/* 表格样式 */
.el-table {
    margin-bottom: 20px;
}

.el-table th {
    background-color: #f0f9ff;
    color: #1976D2;
}

/* 验证码状态样式 */
.verification-status {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.verification-not-fetched {
    background-color: #f5f7fa;
    color: #909399;
    border: 1px solid #ebeef5;
}

.verification-loading {
    background-color: #e6f1fc;
    color: #409EFF;
    border: 1px solid #d1e9ff;
}

.verification-code {
    background-color: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
    font-weight: bold;
}

/* 邮件内容样式 */
.email-content {
    background-color: #f5f7fa;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .login-box {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
    
    .el-aside {
        width: 60px !important;
    }
    
    .el-menu-vertical .el-menu-item span {
        display: none;
    }
    
    .el-menu-item i {
        margin-right: 0;
    }
    
    .action-toolbar {
        flex-wrap: wrap;
    }
    
    .el-table--scrollable-x .el-table__body-wrapper {
        overflow-x: auto;
    }
    
    .header-container {
        padding: 10px;
    }
    
    .user-info {
        justify-content: flex-end;
        margin-top: 10px;
    }
    
    .welcome-text {
        font-size: 14px;
    }
}

/* 中等屏幕优化 */
@media (max-width: 992px) and (min-width: 769px) {
    .user-info {
        justify-content: flex-end;
    }
    
    .welcome-text {
        font-size: 14px;
    }
}

/* 卡片布局通用样式 */
.mobile-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 15px;
    margin-top: 20px;
}

.email-card {
    margin-bottom: 15px;
    transition: all 0.3s;
}

.email-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.email-card-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email-card-content {
    margin-bottom: 15px;
}

.email-item {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.email-label {
    font-weight: bold;
    color: #606266;
    margin-bottom: 5px;
}

.email-value {
    word-break: break-all;
}

.email-date {
    font-size: 12px;
}

.email-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}

.code-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.empty-card {
    grid-column: 1 / -1;
}

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
}

.empty-icon {
    font-size: 48px;
    color: #909399;
    margin-bottom: 15px;
}

.empty-text {
    font-size: 18px;
    color: #606266;
    margin-bottom: 5px;
}

.empty-desc {
    font-size: 14px;
    color: #909399;
}

.microsoft-email-dialog .el-dialog__body {
    padding: 10px 20px;
}

/* 微软邮箱样式调整 */
.microsoft-mail-detail {
    max-height: 600px;
    overflow-y: auto;
}

.mail-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
}

@media (max-width: 768px) {
    .mobile-table {
        grid-template-columns: 1fr;
    }
    
    .microsoft-email-dialog .el-dialog__body {
        padding: 10px;
    }
}

/* 修复移动端下拉菜单问题 */
.el-dropdown {
    display: inline-block;
}

.el-dropdown-menu {
    z-index: 9999 !important;
}

/* 增加点击区域 */
.user-dropdown .el-dropdown-link {
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.user-dropdown .el-dropdown-link:hover,
.user-dropdown .el-dropdown-link:active {
    background-color: rgba(64, 158, 255, 0.1);
}

/* 移动端额外优化 */
@media (max-width: 768px) {
    .user-dropdown .el-dropdown-link {
        padding: 10px;
        margin: 5px 0;
    }
    
    .el-dropdown-menu__item {
        line-height: 36px !important;
        padding: 0 20px !important;
    }
    
    /* 修复移动端下拉菜单无法点击的问题 */
    .el-dropdown-menu {
        transform: translateY(0) !important; 
        position: fixed !important;
    }
    
    .user-info {
        position: relative;
    }
} 