/* 
 * 子比主题评论抽奖插件前端样式
 */

.zib-lottery-form-container,
.zib-lottery-details-container,
.zib-lottery-info-container {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 标题样式 */
.zib-widget-title {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.zib-widget-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 表单样式 */
.zib-lottery-form {
    padding: 15px;
}

.zib-form .form-group {
    margin-bottom: 15px;
}

.zib-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.zib-form .required {
    color: #ff5473;
}

.zib-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.zib-form .form-control:focus {
    border-color: #3ca5f6;
    background-color: #fff;
    outline: none;
}

/* 奖品设置样式 */
.prize-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prize-type-select,
.lottery-type-select,
.draw-condition-select,
.keyword-match-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prize-type-select label,
.lottery-type-select label,
.draw-condition-select label,
.keyword-match-select label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 0;
    cursor: pointer;
}

.prize-value-input {
    position: relative;
}

.prize-unit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* 中奖方式参数输入 */
.lottery-param-container {
    margin-top: 10px;
}

.lottery-param-input {
    margin-top: 5px;
}

/* 开奖条件样式 */
.draw-time-container,
.min-comments-container {
    margin-top: 10px;
}

/* 按钮样式 */
.but {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.jb-blue {
    background: linear-gradient(135deg, #3ca5f6 0%, #1f87f0 100%);
    color: #fff;
}

.jb-blue:hover {
    background: linear-gradient(135deg, #1f87f0 0%, #0f6ad0 100%);
    color: #fff;
}

/* 抽奖详情样式 */
.zib-lottery-details {
    padding: 15px;
}


.lottery-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.lottery-description {
    color: #666;
    font-size: 14px;
}

.lottery-info {
    background-color: #f9f9f9;
    border-radius: 6px;
    /* padding: 15px; */
    /* margin-bottom: 15px; */
}

.lottery-info-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.lottery-info-label {
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.lottery-info-value {
    color: #666;
}

.lottery-status-pending {
    color: #f39c12;
}

.lottery-status-drawing {
    color: #3498db;
}

.lottery-status-completed {
    color: #2ecc71;
}

.lottery-status-canceled {
    color: #e74c3c;
}



.lottery-winners-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lottery-winner-item {
    /* display: flex; */
    align-items: center;
    background-color: #fff;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.winner-avatar {
    margin-right: 10px;
}

.winner-info {
    flex: 1;
}

.winner-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.winner-name a {
    color: #333;
    text-decoration: none;
}

.winner-name a:hover {
    color: #3ca5f6;
}

.winner-prize {
    font-size: 13px;
    color: #666;
}

.winner-type {
    font-size: 12px;
    color: #999;
}

.lottery-no-winners {
    color: #999;
    font-style: italic;
}

.lottery-tips {
    background-color: #fff8e1;
    border-left: 3px solid #ffb300;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #795548;
}

/* 评论区抽奖信息样式 */
.zib-lottery-info {
    display: flex;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 6px;
    margin-top: 15px;
}

.lottery-info-icon {
    margin-right: 15px;
    font-size: 24px;
    color: #3ca5f6;
}

.lottery-info-content {
    flex: 1;
}

.lottery-info-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.lottery-info-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.lottery-winners-brief {
    margin-top: 10px;
    border-top: 1px dashed #cce5ff;
    padding-top: 10px;
}

.lottery-winners-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.winner-avatar {
    border-radius: 50%;
    overflow: hidden;
}

.lottery-keyword-tip {
    color: #e74c3c;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lottery-info-details {
        flex-direction: column;
        gap: 5px;
    }
    
    .lottery-winner-item {
        flex-wrap: wrap;
    }
    
    .winner-type {
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }
}
