/* style.css - 自定义样式 */

/* 全局 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
}

/* 活动卡片 */
.activity-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px !important;
    overflow: hidden;
}
.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/* 奖项展示项 */
.prize-item {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    transition: transform 0.15s;
}
.prize-item:hover {
    transform: scale(1.02);
}

/* 管理后台卡片 */
.stat-card {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

/* 输入框聚焦样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

/* 抽奖鼓动画 */
.lottery-drum {
    cursor: pointer;
}

/* 移动端优化 */
@media (max-width: 576px) {
    .display-5 { font-size: 1.8rem; }
    .btn-lg { padding: 0.6rem 1.5rem; font-size: 1rem; }
    .card-body { padding: 1rem; }
    .fs-2 { font-size: 1.5rem !important; }
}

/* 分享二维码 */
#qrcode img, #new-qrcode img, #my-qrcode img {
    border-radius: 8px;
    border: 3px solid #e9ecef;
    padding: 4px;
    background: white;
}

/* 进度条动画 */
.progress-bar {
    transition: width 0.8s ease;
}

/* 表格行悬停 */
.table-hover tbody tr:hover {
    background-color: rgba(13,110,253,0.04);
}

/* 徽章间距 */
.badge + .badge {
    margin-left: 2px;
}

/* 固定底部提示 */
.toast-fixed {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    min-width: 200px;
}

/* 抽奖结果动画 */
@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
.winner-pop {
    animation: popIn 0.4s ease-out;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* 操作按钮基础样式 */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

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

.action-btn i {
    font-size: 12px;
}

/* 操作按钮颜色变体 */
.action-btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    border-color: #0d6efd;
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    color: white;
    text-decoration: none;
}

.action-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #f59e0b;
}

.action-btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    text-decoration: none;
}

.action-btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5c636a);
    color: white;
    border-color: #6c757d;
}

.action-btn-secondary:hover {
    background: linear-gradient(135deg, #5c636a, #4c5258);
    color: white;
    text-decoration: none;
}

.action-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.action-btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    text-decoration: none;
}

.action-btn-info {
    background: linear-gradient(135deg, #0dcaf0, #0891b2);
    color: white;
    border-color: #0dcaf0;
}

.action-btn-info:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    text-decoration: none;
}

.action-btn-danger {
    background: linear-gradient(135deg, #dc3545, #b91c1c);
    color: white;
    border-color: #dc3545;
}

.action-btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    color: white;
}

.action-btn-purple {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    border-color: #7c3aed;
}

.action-btn-purple:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    color: white;
    text-decoration: none;
}

.action-btn-orange {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border-color: #f97316;
}

.action-btn-orange:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: white;
    text-decoration: none;
}
