.wp-list-table th, .shop_table th { background:#f1f1f1; padding:8px; }
.wp-list-table td, .shop_table td { padding:8px; }
.button-primary { background:#007cba; color:#fff; border-color:#007cba; }
.wclc-page-link { margin:0 3px; padding:3px 6px; background:#f5f5f5; text-decoration:none; border:1px solid #ddd; }
.wclc-page-link.active { background:#007cba; color:#fff; }
# wclc-myaccount { margin-top:10px; }


/* ========== 用户返现与抽奖表格 ========== */
#wclc-user-data {
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 20px 0;
}

#wclc-user-data h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 5px;
}

#wclc-user-data table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

#wclc-user-data table thead {
    background: #0071a1; /* WooCommerce 蓝色风格 */
    color: #fff;
}

#wclc-user-data table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

#wclc-user-data table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
    color: #555;
}

#wclc-user-data table tbody tr:last-child td {
    border-bottom: none;
}

#wclc-user-data table tbody tr:hover {
    background-color: #f9f9f9;
}

#wclc-user-data p {
    font-size: 0.95em;
    color: #666;
}

/* 状态样式 */
#wclc-user-data td.status-pending {
    color: #999;
}
#wclc-user-data td.status-completed,
#wclc-user-data td.status-won {
    color: #27ae60;
    font-weight: bold;
}
#wclc-user-data td.status-failed {
    color: #e74c3c;
    font-weight: bold;
}

/* 响应式表格 */
@media (max-width: 768px) {
    #wclc-user-data table, 
    #wclc-user-data thead, 
    #wclc-user-data tbody, 
    #wclc-user-data th, 
    #wclc-user-data td, 
    #wclc-user-data tr { 
        display: block; 
    }
    #wclc-user-data thead tr {
        display: none;
    }
    #wclc-user-data tbody tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }
    #wclc-user-data td {
        padding-left: 50%;
        position: relative;
        text-align: left;
    }
    #wclc-user-data td::before {
        position: absolute;
        top: 10px;
        left: 15px;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        color: #333;
    }
    /* 给每列加标签 */
    #wclc-user-data td:nth-of-type(1)::before { content: "订单号"; }
    #wclc-user-data td:nth-of-type(2)::before { content: "金额/抽奖码"; }
    #wclc-user-data td:nth-of-type(3)::before { content: "返现/是否中奖"; }
    #wclc-user-data td:nth-of-type(4)::before { content: "奖品/状态"; }
}


/****/
.wclc-lottery-progress-wrap {
    border: 1px solid #eee;
    padding: 16px;
    max-width: 520px;
    background: #fff;
}

.wclc-stage-progress {
    margin-bottom: 18px;
}

.wclc-progress-bar {
    height: 10px;
    background: #f1f1f1;
    border-radius: 6px;
    overflow: hidden;
    margin: 6px 0;
}

.wclc-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #46b450, #00a32a);
    width: 0;
    transition: width 0.5s ease;
}

.wclc-progress-text {
    font-size: 13px;
    color: #555;
}

.wclc-stage-progress.status-waiting .wclc-progress-bar span {
    background: linear-gradient(90deg, #ffb900, #ff8c00);
}

.wclc-stage-progress.status-waiting .wclc-progress-text {
    color: #d63638;
    font-weight: 600;
}

.wclc-lottery-finished {
    padding: 12px;
    background: #f6f7f7;
    border-left: 4px solid #46b450;
    color: #2c3338;
}
