/* 时光邮局前台样式 */

/* 通用样式 */
.time-mail-container {
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

/* 信件卡片样式 */
.mail-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.mail-card:hover {
    transform: translateY(-5px);
}

.mail-card .card-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-bottom: none;
}

.mail-card .card-body {
    padding: 20px;
}

.mail-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 邮件内容弹窗样式 */
.mail-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.mail-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 创建邮件表单样式 */
.create-form {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.2);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(37, 117, 252, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #cb1111 0%, #fc2525 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(252, 37, 37, 0.2);
    transition: all 0.3s;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(252, 37, 37, 0.3);
}

/* 倒计时样式 */
.countdown {
    font-weight: bold;
    color: #6a11cb;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* 自定义动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .mail-content {
        padding: 15px;
        font-size: 1rem;
    }
}