/* ID销量查询模态窗口样式 */
.id-sales-query-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.id-sales-query-modal-content {
    background-color: #1e1e1e;
    margin: 2% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* 关闭按钮 */
.id-sales-query-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.id-sales-query-modal .close:hover,
.id-sales-query-modal .close:focus {
    color: #ff6b6b;
    text-decoration: none;
}

/* 标题样式 */
.id-sales-query-modal h2 {
    color: #5b00d7;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

/* 表单样式 */
.id-sales-query-form {
    margin-bottom: 30px;
}

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

.id-sales-query-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.id-sales-query-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.id-sales-query-form textarea:focus {
    outline: none;
    border-color: #5b00d7;
    box-shadow: 0 0 0 3px rgba(91, 0, 215, 0.1);
}

.id-sales-query-form .form-tip {
    margin-top: 5px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.id-sales-query-form button[type="submit"] {
    background: linear-gradient(135deg, #5b00d7, #7b2cbf);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.id-sales-query-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #4a00b0, #6a25a8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 0, 215, 0.3);
}

/* 进度条样式 */
.query-progress-area {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.query-progress-area h3 {
    color: #5b00d7;
    margin-bottom: 15px;
    font-size: 18px;
}

.progress-container {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5b00d7, #7b2cbf);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.batch-info, .status-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.batch-info span, .status-info span {
    color: #cccccc;
    font-size: 14px;
}

.progress-actions {
    margin-top: 15px;
}

.progress-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.progress-btn:hover {
    background-color: #ff5252;
}

/* 结果区域样式 */
.id-sales-query-results {
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    color: #5b00d7;
    margin: 0;
    font-size: 20px;
}

.results-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #218838, #1da88a);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.download-btn svg {
    flex-shrink: 0;
}

/* 数据表格样式 */
.sales-data-table {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sales-data-table table {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff;
}

.sales-data-table th {
    background-color: #5b00d7;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sales-data-table td {
    padding: 12px;
    border-bottom: 1px solid #333;
    font-size: 13px;
    vertical-align: top;
}

.sales-data-table tr:hover {
    background-color: #333;
}

.sales-data-table tr:nth-child(even) {
    background-color: #252525;
}

/* 商品图片样式 */
.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #444;
}

/* 商品标题样式 */
.product-title {
    max-width: 200px;
    word-wrap: break-word;
    line-height: 1.4;
    color: #e0e0e0;
}

/* 价格样式 */
.product-price {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 14px;
}

/* 店铺名称样式 */
.shop-name {
    color: #4fc3f7;
    font-weight: 500;
}

/* 销量样式 */
.sales-volume {
    color: #66bb6a;
    font-weight: 600;
}

/* 评分样式 */
.product-rating {
    color: #ffa726;
    font-weight: 500;
}

/* 天猫标识样式 */
.tmall-badge {
    background-color: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.taobao-badge {
    background-color: #ff9800;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

/* 发货地样式 */
.location {
    color: #9e9e9e;
    font-size: 12px;
}

/* 材质信息样式 */
.material-info {
    color: #b0bec5;
    font-size: 12px;
    max-width: 120px;
    word-wrap: break-word;
}

/* 详细材质信息样式 */
.detailed-material-info {
    color: #a8b5c0;
    font-size: 11px;
    max-width: 200px;
    word-wrap: break-word;
    line-height: 1.4;
    cursor: help;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
    border-radius: 4px;
    border-left: 2px solid #5b00d7;
    white-space: pre-wrap;
    transition: background-color 0.3s ease;
}

.detailed-material-info:hover {
    background-color: rgba(91, 0, 215, 0.1);
    color: #d0dcf0;
}

/* 加载状态样式 */
.loading-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #5b00d7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
}

.error-message {
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .id-sales-query-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 20px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        justify-content: center;
    }
    
    .sales-data-table {
        font-size: 12px;
    }
    
    .sales-data-table th,
    .sales-data-table td {
        padding: 8px 6px;
    }
    
    .product-image {
        width: 40px;
        height: 40px;
    }
    
    .product-title {
        max-width: 150px;
        font-size: 12px;
    }
    
    .batch-info,
    .status-info {
        flex-direction: column;
        gap: 5px;
    }
}

/* 滚动条样式 */
.id-sales-query-modal-content::-webkit-scrollbar,
.sales-data-table::-webkit-scrollbar {
    width: 8px;
}

.id-sales-query-modal-content::-webkit-scrollbar-track,
.sales-data-table::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.id-sales-query-modal-content::-webkit-scrollbar-thumb,
.sales-data-table::-webkit-scrollbar-thumb {
    background: #5b00d7;
    border-radius: 4px;
}

.id-sales-query-modal-content::-webkit-scrollbar-thumb:hover,
.sales-data-table::-webkit-scrollbar-thumb:hover {
    background: #7b2cbf;
} 