/* 统一风格后的样式文件 - style.css */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f6fa;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 - 统一为现代化渐变风格 */
header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

/* 用户信息样式 */
.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info span {
    font-size: 14px;
    opacity: 0.9;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
}

/* 统一选项卡样式 */
.tabs {
    display: flex;
    background: white;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex-wrap: wrap;
}

.tab {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #666;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 2px solid transparent;
}

.tab:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.tab-icon {
    font-size: 1.5em;
}

/* 统一卡片样式 */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

.card-title {
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 300;
}

/* 统一按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #da190b, #c00a0a);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
}

.btn-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2980b9, #1c5980);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* 文件上传样式 - 统一风格 */
.file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 15px 0;
}

.file-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.file-input:focus {
    outline: none;
    border-color: #667eea;
}

.file-name {
    color: #7f8c8d;
    font-style: italic;
}

.upload-options {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 表单样式 - 统一风格 */
.form-row {
    display: flex;
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

.button-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* 筛选区域样式 - 统一风格 */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.filter-section h3 {
    color: #2c3e50;
    margin-bottom: 0;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 100%;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}

.filter-section .filter-group:last-child {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    flex: none;
    min-width: auto;
}

/* 销售方向索引表样式 */
.sales-direction-section {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

.sales-direction-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.sales-direction-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sales-direction-actions .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sales-direction-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* 方向表样式 */
.direction-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.direction-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.direction-table tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.direction-table tr:last-child td {
    border-bottom: none;
}

/* 导出容器样式美化 */
#exportContainer {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.export-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.export-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.export-subtitle {
    font-size: 1.1em;
    color: #555;
    margin: 5px 0;
}

.export-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.export-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}

.export-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}

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

.export-table tr:last-child td {
    border-bottom: none;
}

.export-footer {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #777;
    font-size: 14px;
}

.export-footer div {
    margin: 5px 0;
}

.filter-label {
    font-weight: 600;
    color: #2c3e50;
}

.filter-select {
    min-width: 150px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

/* 快速选择区域 */
.quick-select-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 15px 0;
}

.quick-select-header {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 数据表格样式 - 统一风格 */
.vendor-container {
    padding: 20px;
}

.vendor-section {
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.vendor-header {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vendor-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.vendor-date {
    color: #ecf0f1;
    opacity: 0.9;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background: #f8f9fa;
}

.highlight {
    background: #e8f4fd !important;
}

/* 复选框样式 */
.item-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

/* 模态框样式 - 统一风格 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: white;
    font-weight: 300;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 复选框标签样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox {
    transform: scale(1.1);
}

.checkbox-text {
    color: #2c3e50;
}

/* 特殊状态样式 */
.sales-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #bdc3c7;
}

.remove-item {
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vendor-section {
    animation: fadeIn 0.3s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 供应商管理样式 - 用于采购计划页面的一致性 */
.vendor-management {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.vendor-management-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.vendor-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.vendor-input-group select,
.vendor-input-group input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.vendor-input-group select:focus,
.vendor-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.current-vendor-display {
    margin-top: 15px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.current-vendor-label {
    font-weight: 600;
    color: #2c3e50;
}

.current-vendor-value {
    color: #667eea;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab {
        flex: none;
        padding: 12px;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row, .filter-section {
        flex-direction: column;
    }
    
    .form-group, .filter-group {
        min-width: 100%;
    }
    
    .file-upload {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upload-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .vendor-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vendor-input-group select,
    .vendor-input-group input {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .tab {
        min-width: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}

/* 销售数据卡片的响应式设计 */
@media (max-width: 768px) {
    .sales-data-card {
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .sales-data-card-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .card-header-left {
        min-width: 100%;
    }
    
    .card-batch-operator {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .batch-operator-select {
        min-width: 100%;
    }
    
    .btn-batch-set-operator {
        width: 100%;
        text-align: center;
    }
    
    .card-header-actions {
        justify-content: space-between;
    }
    
    .sales-data-card-body {
        padding: 15px;
    }
    
    .sales-data-table th,
    .sales-data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .sales-quantity-input,
    .price-input {
        max-width: 100px;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .row-operator-select {
        max-width: 120px;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .btn.btn-danger.btn-small {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    /* 表格滚动 */
    .sales-data-card-body {
        overflow-x: auto;
    }
    
    .sales-data-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .sales-data-card {
        margin: 10px 0;
        border-radius: 10px;
    }
    
    .sales-data-card-header {
        padding: 12px 15px;
    }
    
    .sales-data-card-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .sales-data-card-body {
        padding: 10px;
    }
    
    .sales-data-table th,
    .sales-data-table td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .sales-quantity-input,
    .price-input {
        max-width: 80px;
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .row-operator-select {
        max-width: 100px;
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .btn.btn-danger.btn-small {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .sales-data-table {
        min-width: 500px;
    }
}



/* 采购单页面特定样式 */
.btn-save {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.btn-add {
    background: linear-gradient(135deg, #2196F3, #0b7dda);
    color: white;
}

.btn-export {
    background: linear-gradient(135deg, #FF9800, #e68900);
    color: white;
}

/* 使用说明样式 */
.instructions {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.6;
}





/* 销售操作页面特定样式 */

/* 通用卡片样式 - 减少重复 */
.card-style {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-style h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 销售数据卡片样式 */
.sales-data-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sales-data-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.sales-data-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header-left {
    flex: 1;
    min-width: 200px;
}

.sales-data-card-title {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.card-title-main {
    display: block;
    font-size: 0.9em;
    opacity: 0.95;
}

.card-batch-operator {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.batch-operator-label {
    font-size: 14px;
    opacity: 0.9;
    white-space: nowrap;
}

.batch-operator-select {
    padding: 6px 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
    min-width: 120px;
}

.batch-operator-select option {
    color: #333;
}

.btn-batch-set-operator {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-batch-set-operator:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-checkbox {
    transform: scale(1.2);
    cursor: pointer;
}

.btn-save-card {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-card:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.sales-data-card-body {
    padding: 25px;
    background: white;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sales-data-card-body::-webkit-scrollbar {
    height: 10px;
}

.sales-data-card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.sales-data-card-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

.sales-data-card-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.sales-data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sales-data-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #2c3e50;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #667eea;
    font-size: 14px;
}

.sales-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
    vertical-align: middle;
}

.sales-data-table tr:hover {
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.sales-data-table tr:last-child td {
    border-bottom: none;
}

/* 输入框样式优化 */
.sales-quantity-input,
.price-input {
    width: 100%;
    max-width: 120px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    min-height: 40px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sales-quantity-input:focus,
.price-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 操作员选择框样式 */
.row-operator-select {
    width: 100%;
    max-width: 140px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    min-height: 40px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.row-operator-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 小计单元格样式 */
.subtotal-cell {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

/* 复选框样式 */
.select-all-rows,
.row-checkbox {
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #667eea;
    min-width: 24px;
    min-height: 24px;
    touch-action: manipulation;
}

/* 删除按钮样式优化 */
.btn.btn-danger.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn.btn-danger.btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* 卡片交互效果 */
.sales-data-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sales-data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* 表格行交互效果 */
.sales-data-table tr {
    transition: all 0.2s ease;
}

.sales-data-table tr:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

/* 输入框和选择框的高级交互效果 */
.sales-quantity-input,
.price-input,
.row-operator-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sales-quantity-input:focus,
.price-input:focus,
.row-operator-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* 按钮的高级交互效果 */
.btn-batch-set-operator,
.btn-save-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-batch-set-operator:hover,
.btn-save-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,255,255,0.3);
}

/* 复选框交互效果 */
.card-checkbox,
.select-all-rows,
.row-checkbox {
    transition: all 0.2s ease;
}

.card-checkbox:hover,
.select-all-rows:hover,
.row-checkbox:hover {
    transform: scale(1.3);
}

/* 卡片选中状态 */
.sales-data-card[data-selected="true"] {
    border: 2px solid #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.sales-data-card[data-selected="true"] .sales-data-card-header {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 表格单元格高亮效果 */
.sales-data-table td:hover {
    background: rgba(102, 126, 234, 0.05);
    transition: background 0.2s ease;
}

/* Excel文件管理区域 */
.excel-files-upload {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.excel-files-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.excel-files-upload h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-controls {
    margin-bottom: 20px;
}

.excel-status-info {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #4CAF50;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.excel-status-info:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* 数据筛选区域样式优化 */
.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 15px;
}

.filter-controls .filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    width: 100%;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.filter-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #FF9800;
    margin-top: 10px;
}

/* 销售数据容器样式 */
.sales-data-container {
    margin: 20px 0;
}

.sales-summary-container {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.summary-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.summary-card h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border-radius: 0 15px 0 100px;
}

.summary-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.summary-item .summary-label {
    margin-bottom: 5px;
}

.summary-label {
    font-weight: 600;
    color: #555;
}

.summary-value {
    font-weight: 600;
    color: #667eea;
}

/* 操作人员管理区域样式 */
.operator-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border-left: 4px solid #FF9800;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.operator-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.operator-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.operator-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 120px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.operator-list:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.no-operators {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.operator-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.operator-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.operator-input:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* 按钮样式 - 使用现有的btn类，减少重复 */
.btn-add {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #2196F3, #0b7dda);
    color: white;
}

.btn-generate-data {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

/* 回收站按钮 */
.btn-trash {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.btn-trash:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* 回收站表格高亮行 */
.trash-row {
    transition: background-color 0.2s;
}

.trash-row:hover {
    background-color: #fff3e0 !important;
}

/* 回收站分页按钮 */
.trash-page-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.trash-page-btn:hover {
    background: #ff9800;
    color: #fff;
    border-color: #ff9800;
}

.trash-page-btn.active {
    background: #ff9800;
    color: #fff;
    border-color: #ff9800;
    font-weight: bold;
}

.trash-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 回收站表头排序 */
.trash-table .sortable-th {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.trash-table .sortable-th:hover {
    background-color: #ffe0b2;
}

.trash-table .sortable-th .sort-icon {
    font-size: 11px;
    margin-left: 2px;
    color: #999;
}

.trash-table .sortable-th.sort-desc .sort-icon,
.trash-table .sortable-th.sort-asc .sort-icon {
    color: #ff9800;
    font-weight: bold;
}

.btn-upload-data {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-manage-excel {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #FF9800, #e68900);
    color: white;
}

/* Excel管理页面专用样式 */
.excel-file-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.excel-file-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.excel-file-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 15px;
}

.file-icon {
    font-size: 20px;
}

.file-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.file-input:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.file-status {
    font-size: 13px;
    color: #6c757d;
    padding: 4px 0;
}

.file-status.success {
    color: #28a745;
    font-weight: 500;
}

.file-status.error {
    color: #dc3545;
    font-weight: 500;
}

.file-status.pending {
    color: #ffc107;
    font-weight: 500;
}

.excel-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 数据预览区域 */
.excel-preview-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.excel-preview-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.preview-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
}

.preview-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.preview-tab:hover {
    color: #667eea;
}

.preview-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.preview-content {
    min-height: 200px;
}

.no-data-preview {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-data-preview p {
    margin: 5px 0;
}

/* 预览表格 */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.preview-header h4 {
    margin: 0;
    color: #2c3e50;
}

.preview-count {
    font-size: 13px;
    color: #6c757d;
    background: #f0f2ff;
    padding: 4px 10px;
    border-radius: 12px;
}

.preview-table-container {
    overflow-x: auto;
    max-height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.preview-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.preview-table th {
    background: #667eea;
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.preview-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.preview-table tbody tr:hover {
    background: #f8f9ff;
}

.preview-actions {
    margin-top: 12px;
    text-align: center;
}

.btn-preview-more {
    padding: 8px 20px;
    border: 2px solid #667eea;
    border-radius: 6px;
    background: white;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preview-more:hover {
    background: #667eea;
    color: white;
}

/* 使用说明区域 */
.excel-help-section {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #4CAF50;
}

.excel-help-section h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.excel-help-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.excel-help-section li {
    padding: 6px 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
}

.excel-help-section li::before {
    content: "• ";
    color: #4CAF50;
    font-weight: bold;
}

.excel-help-section li strong {
    color: #2c3e50;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .operator-form {
        flex-direction: column;
    }
    
    .operator-input {
        min-width: 100%;
    }
    
    .sales-summary-container {
        flex-direction: column;
    }
    
    .summary-card {
        min-width: 100%;
    }
}


/* Status Toast提示样式 */
.status-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1100;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    padding: 15px 20px;
}

.status-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.status-toast.success {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, #f8fff8, #ffffff);
}

.status-toast.error {
    border-left: 4px solid #f44336;
    background: linear-gradient(135deg, #fff8f8, #ffffff);
}

.status-toast.warning {
    border-left: 4px solid #FF9800;
    background: linear-gradient(135deg, #fffcf8, #ffffff);
}

.status-toast.info {
    border-left: 4px solid #2196F3;
    background: linear-gradient(135deg, #f8fcff, #ffffff);
}

/* 检测清单模态框特定样式 */
.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Toast提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1100;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-content {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-message {
    flex: 1;
    margin-right: 15px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #333;
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-warning {
    border-left: 4px solid #FF9800;
}

.toast-info {
    border-left: 4px solid #2196F3;
}

/* ============================================
   Win 平板设备专门优化 - 触控友好样式
   ============================================ */

/* 平板竖屏模式 (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .container {
        padding: 15px;
    }
    
    /* 输入框优化 - 更大的触控区域 */
    .sales-quantity-input,
    .price-input {
        max-width: 140px;
        padding: 12px 16px;
        font-size: 16px;
        min-height: 44px;
    }
    
    .row-operator-select {
        max-width: 160px;
        padding: 12px 16px;
        font-size: 16px;
        min-height: 44px;
    }
    
    /* 按钮优化 */
    .btn.btn-danger.btn-small {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .btn-batch-set-operator,
    .btn-save-card {
        padding: 10px 20px;
        font-size: 15px;
        min-height: 44px;
    }
    
    /* 复选框优化 */
    .card-checkbox,
    .select-all-rows,
    .row-checkbox {
        transform: scale(1.5);
        margin: 0 8px;
    }
    
    /* 表格优化 */
    .sales-data-table th,
    .sales-data-table td {
        padding: 14px 12px;
        font-size: 15px;
    }
    
    /* 卡片头部优化 */
    .sales-data-card-header {
        padding: 18px 20px;
    }
    
    .sales-data-card-body {
        padding: 20px;
    }
    
    /* 筛选区域优化 */
    .filter-input {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .filter-button,
    .reset-button {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
    }
    
    /* 操作员管理优化 */
    .operator-input {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .btn-add {
        padding: 12px 24px;
        font-size: 15px;
        min-height: 44px;
    }
    
    /* 触控反馈 */
    .btn,
    .btn-batch-set-operator,
    .btn-save-card,
    .btn-add,
    .btn-danger.btn-small {
        -webkit-tap-highlight-color: transparent;
    }
}

/* 平板横屏模式 (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .container {
        padding: 20px;
        max-width: 1300px;
    }
    
    /* 输入框优化 */
    .sales-quantity-input,
    .price-input {
        max-width: 130px;
        padding: 10px 14px;
        font-size: 15px;
        min-height: 40px;
    }
    
    .row-operator-select {
        max-width: 150px;
        padding: 10px 14px;
        font-size: 15px;
        min-height: 40px;
    }
    
    /* 按钮优化 */
    .btn.btn-danger.btn-small {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 40px;
    }
    
    /* 复选框优化 */
    .card-checkbox,
    .select-all-rows,
    .row-checkbox {
        transform: scale(1.4);
        margin: 0 6px;
    }
    
    /* 表格优化 */
    .sales-data-table th,
    .sales-data-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    /* 防止双击缩放 */
    * {
        touch-action: manipulation;
    }
}

/* 通用平板优化 - 不分横竖屏 */
@media (min-width: 768px) and (max-width: 1366px) {
    /* 触控区域增强 */
    .sales-quantity-input,
    .price-input,
    .row-operator-select,
    .filter-input,
    .operator-input {
        border-width: 3px;
        border-radius: 8px;
    }
    
    /* 焦点状态优化 */
    .sales-quantity-input:focus,
    .price-input:focus,
    .row-operator-select:focus,
    .filter-input:focus,
    .operator-input:focus {
        border-width: 3px;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    }
    
    /* 选项卡优化 */
    .tab {
        padding: 18px 15px;
        min-height: 60px;
    }
    
    .tab-icon {
        font-size: 1.8em;
    }
    
    /* 表格单元格触控优化 */
    .sales-data-table td {
        position: relative;
    }
    
    /* 批量操作按钮优化 */
    .btn-generate-data,
    .btn-manage-excel {
        padding: 14px 28px;
        font-size: 15px;
        min-height: 48px;
    }
    
    /* 摘要卡片优化 */
    .summary-item {
        min-width: 150px;
        padding: 8px;
    }
    
    .summary-value {
        font-size: 1.3em;
    }
    
    /* 增强视觉反馈 */
    .sales-data-table tr:hover {
        background: rgba(102, 126, 234, 0.08);
    }
}

/* 高 DPI 平板优化 */
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
    .sales-quantity-input,
    .price-input,
    .row-operator-select {
        border-width: 2px;
    }
}

/* ============================================
   网站页脚 - 法律合规信息
   ============================================ */
.site-footer {
    background: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 20px 15px;
    margin-top: 40px;
    font-size: 13px;
    line-height: 2;
}

.site-footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .footer-divider {
    margin: 0 10px;
    color: #576574;
}

.site-footer .beian-number {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.site-footer .beian-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.site-footer .disclaimer {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   自定义多选下拉组件
   ============================================ */
.multi-select-container {
    position: relative;
    width: 100%;
    user-select: none;
}

.multi-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    min-height: 44px;
    transition: border-color 0.3s ease;
    font-size: 14px;
}

.multi-select-trigger:hover {
    border-color: #667eea;
}

.multi-select-container.active .multi-select-trigger {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.multi-select-placeholder {
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.multi-select-placeholder.has-selection {
    color: #333;
}

.multi-select-arrow {
    font-size: 10px;
    color: #888;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.multi-select-container.active .multi-select-arrow {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    margin-top: 4px;
    max-height: 320px;
    overflow: hidden;
}

.multi-select-dropdown.active {
    display: block;
}

.multi-select-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.multi-select-action-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.multi-select-action-link:hover {
    background: rgba(102, 126, 234, 0.1);
    text-decoration: none;
}

.multi-select-action-divider {
    color: #ddd;
}

.multi-select-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 4px 0;
}

.multi-select-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
}

.multi-select-option:hover {
    background: #f0f2ff;
}

.multi-select-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    transform: scale(1.1);
}

.multi-select-option label {
    cursor: pointer;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
