/* 抽奖结果页面美化样式 */

/* 主容器样式 */
.zib-lottery-details-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.zib-lottery-details-container:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* 标题栏样式 */
.zib-widget-title {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.zib-widget-title h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 内容区域样式 */
.zib-lottery-details {
    padding: 20px;
}

/* 抽奖标题和描述 */
.lottery-header {
    position: relative;
}

.lottery-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eaeaea;
    position: relative;
}

.lottery-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    border-radius: 3px;
}

.lottery-description {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 0 5px 5px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 抽奖信息区域 */
.lottery-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
}

.lottery-info-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
}

.lottery-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.lottery-info-label {
    /* flex: 0 0 100px; */
    font-weight: 600;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.lottery-info-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #ff6b6b;
    border-radius: 50%;
}

.lottery-info-value {
    flex: 1;
    color: #333;
}

/* 状态标签样式 */
.lottery-status-pending {
    display: inline-block;
    background-color: #4caf50;
    color: white !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lottery-status-drawing {
    display: inline-block;
    background-color: #ff9800;
    color: white !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lottery-status-completed {
    display: inline-block;
    background-color: #2196f3;
    color: white !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.lottery-status-canceled {
    display: inline-block;
    background-color: #f44336;
    color: white !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 中奖名单区域 */
.lottery-winners {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.lottery-winners-title {
    background: linear-gradient(135deg, #2196f3, #4dabf7);
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.lottery-winners-title:before {
    content: '🎉';
    margin-right: 8px;
}

/* 新的紧凑型中奖名单网格布局 */
.lottery-winners-list {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.lottery-winner-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    text-align: center;
    padding: 8px;
}

.lottery-winner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #ff6b6b;
    background-color: #fff;
}

.lottery-winner-link {
    display: block;
    text-decoration: none !important;
}

.lottery-winner-avatar {
    margin: 0 auto 8px;
    position: relative;
    width: 50px;
    height: 50px;
}

.lottery-winner-avatar:after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lottery-winner-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lottery-winner-link:hover .lottery-winner-avatar img {
    transform: scale(1.1);
}

.lottery-winner-info {
    width: 100%;
}

.lottery-winner-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lottery-winner-link:hover .lottery-winner-name {
    color: #ff6b6b;
}

.lottery-winner-prize {
    display: block;
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 5px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #ffeeba;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
}

.lottery-no-winners {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* 提示信息样式 */
.lottery-tips {
    margin-top: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px 20px;
    position: relative;
}

.lottery-tips:before {
    content: '💡';
    position: absolute;
    left: -10px;
    top: -10px;
    background-color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffeeba;
    font-size: 16px;
}

.lottery-tips p {
    margin: 5px 0;
    color: #856404;
}

/* 已开奖按钮样式 */
.lottery-drawn-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2196f3, #4dabf7);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.lottery-drawn-btn:hover {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lottery-winners-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .lottery-info-item {
        flex-direction: column;
    }
    
    .lottery-drawn-btn {
        position: static;
        margin-top: 15px;
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lottery-winners-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .lottery-winner-avatar {
        width: 40px;
        height: 40px;
    }
    
    .lottery-winner-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .lottery-winner-name {
        font-size: 12px;
    }
    
    .lottery-winner-prize {
        font-size: 10px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.lottery-winner-avatar {
    animation: pulse 2s infinite;
}

/* 奖品图标 */
.prize-icon {
    margin-right: 5px;
    font-size: 16px;
}

.prize-balance .prize-icon:before {
    content: '💰';
}

.prize-points .prize-icon:before {
    content: '🎯';
}

.prize-custom .prize-icon:before {
    content: '🎁';
}
