/**
 * WooCommerce账户页面集成样式
 * 
 * 为新增的账户功能模块提供样式支持
 * 包括：我的佣金、提现管理、我的买家秀、我的DIY订单、我的DIY作品
 */

/* 通用样式 */
.luck-sys-account-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.luck-sys-account-section h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 24px;
}

.luck-sys-account-section h4 {
    color: #555;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 数据加载状态 */
.data-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* 佣金统计卡片 */
.commission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.stat-card .amount {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

/* 表单样式 */
.luck-sys-form {
    max-width: 500px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 提现表单特殊样式 */
.withdrawal-form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* 买家秀上传区域 */
.buyer-show-upload {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.buyer-show-upload input[type="file"] {
    padding: 8px;
    background: white;
}

/* 筛选器样式 */
.order-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select,
.filter-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 数据列表样式 */
.commission-details,
.withdrawal-history,
.buyer-show-list {
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* 状态标签 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* DIY作品画廊 */
.diy-works-gallery {
    margin-bottom: 30px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.work-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-2px);
}

.work-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.work-item-content {
    padding: 15px;
}

.work-item h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.work-item-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
}

/* 作品统计 */
.works-stats {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item .label {
    color: #666;
    font-size: 14px;
}

.stat-item .value {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

/* 买家秀项目 */
.buyer-show-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.buyer-show-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.buyer-show-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.buyer-show-images {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.buyer-show-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.buyer-show-description {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.buyer-show-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .commission-stats {
        grid-template-columns: 1fr;
    }
    
    .order-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select,
    .filter-date {
        width: 100%;
    }
    
    .works-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .luck-sys-account-section {
        padding: 15px;
    }
    
    .luck-sys-account-section h3 {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .amount {
        font-size: 20px;
    }
}

/* 加载动画 */
@keyframes loading {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading {
    animation: loading 1.5s ease-in-out infinite;
}

/* 成功/错误消息 */
.message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}