/* 推广系统前端样式 */
.refpromo-discount-notice {
    background-color: #f0f9ff !important;
}

.refpromo-discount-notice th {
    color: #1e40af;
    font-weight: 600;
}

.refpromo-discount-notice td {
    color: #10b981;
    font-weight: bold;
}

.refpromo-order-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
}

.refpromo-product-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
}

.refpromo-product-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 16px;
}

.refpromo-link-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px dashed #cbd5e1;
}

.refpromo-link-box code {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
    color: #1e40af;
}

.refpromo-reward-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.refpromo-reward-info strong {
    color: #10b981;
}

.refpromo-user-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
}

.refpromo-user-stats h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1f2937;
    font-size: 18px;
}

.refpromo-user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.refpromo-user-stat-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.refpromo-user-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.refpromo-user-stat-item div:last-child {
    font-size: 14px;
    color: #666;
}

/* 复制按钮样式 */
.refpromo-copy-link.copied {
    background-color: #10b981 !important;
    color: white !important;
}

/* 推广价标识 */
.refpromo-price-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: normal;
    vertical-align: middle;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .refpromo-order-section {
        padding: 15px;
    }
    
    .refpromo-product-item {
        padding: 12px;
    }
    
    .refpromo-user-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .refpromo-link-box code {
        font-size: 12px;
        padding: 8px;
    }
}