/* 分销商仪表盘样式 */
.wwd-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wwd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.wwd-category-select {
    background-color:#222634;  /* 您想要的颜色，例如浅灰色 */
    /* 可以添加其他样式，如边框、文字颜色等 */
}

.wwd-category-select option {
    background-color: #f0f0f0; /* 您喜欢的颜色，如浅灰色 */
}

.wwd-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wwd-logout {
    color: #f00;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #f00;
    border-radius: 4px;
}

.wwd-logout:hover {
    background: #f00;
    color: #fff;
}

/* 统计卡片 */
.wwd-stats {
    margin-bottom: 30px;
}

.wwd-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.wwd-stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.wwd-stat-card .label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.wwd-stat-card .value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

/* 标签页 */
.wwd-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.wwd-tabs a {
    padding: 8px 16px;
    text-decoration: none;
    color: #fff;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.wwd-tabs a:hover {
    background: #e9ecef;
}

.wwd-tabs a.active {
    background: #007bff;
    color: #fff;
}

/* 表格样式 */
.wwd-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.wwd-table tbody tr:hover {
    background-color: #f0f8ff; /* 你想要的悬停颜色，比如浅蓝色 */
    transition: background-color 0.3s ease; /* 平滑过渡 */
}
.wwd-table th,
.wwd-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;

}

.wwd-table th {
    background: #e644bf;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0em;
    font-family: var(--global-body-font-family);
    color: #010a11;
}

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

/* 状态标签 */
.wwd-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

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

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

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

.wwd-status.offline {
    background: #e2e3e5;
    color: #383d41;
}

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

.wwd-status.inactive {
    background: #e2e3e5;
    color: #383d41;
}

.wwd-status.processing {
    background: #cce5ff;
    color: #004085;
}

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

/* 表单样式 */
.wwd-login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #0e1556;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wwd-login-container h2 {
    margin-bottom: 20px;
    text-align: center;
}

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

.wwd-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wwd-login-form input,
.wwd-login-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wwd-login-form small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

.wwd-button {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}

.wwd-button:hover {
    background: #0056b3;
    color: #fff;
}

.wwd-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* 上传产品表单 */
.wwd-add-product-form {
    max-width: 800px;
    margin: 0 auto;
}

.wwd-add-product-form .form-group {
    margin-bottom: 25px;
}

.wwd-add-product-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wwd-add-product-form input[type="text"],
.wwd-add-product-form input[type="url"],
.wwd-add-product-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.required {
    color: #f00;
}

/* 图片上传区域 */
.wwd-image-uploader {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
}

.wwd-upload-btn {
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.wwd-upload-btn:hover {
    background: #218838;
}

.wwd-image-preview,
.wwd-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.wwd-image-preview img,
.wwd-gallery-preview img {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 收益页面 */
.wwd-earnings-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.summary-item .label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.summary-item .value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

/* 提现表单 */
.wwd-withdraw-form {
    background: #4c005c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.wwd-withdraw-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* 错误信息 */
.wwd-error {
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wwd-preview-item {
    position: relative;
    display: inline-block;
    margin: 5px;
}
.wwd-remove-image {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    color: white;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    border-radius: 50%;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wwd-stat-grid {
        grid-template-columns: 1fr;
    }
    
    .wwd-tabs {
        flex-direction: column;
    }
    
    .wwd-tabs a {
        text-align: center;
    }
    
    .wwd-table {
        display: block;
        overflow-x: auto;
    }
}