/* FBP备货计算表样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 容器样式 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 分区样式 */
.section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* SKU管理区域 */
.sku-management {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.input-item {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.input-item label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
}

.input-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.input-item input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* 批量操作区域 */
.batch-operations {
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.batch-operations h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.batch-controls {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

#batchSkuInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: monospace;
    font-size: 13px;
}

.batch-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.batch-buttons .button {
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 14px;
}

.batch-buttons .button.secondary {
    background-color: #95a5a6;
    color: white;
    border: 1px solid #7f8c8d;
}

.batch-buttons .button.secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

/* 数据导入区域 */
.import-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.import-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}



@media (max-width: 768px) {
    .import-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .import-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
        min-height: auto;
    }
    
    .import-item::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
    }
    
    .import-item:hover::before {
        height: 6px;
    }
    
    .import-item label {
        min-width: auto;
        text-align: center;
        font-size: 15px;
        padding-left: 0;
    }
    
    .import-item .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .import-item .button {
        min-width: auto;
        width: 100%;
        margin: 0;
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .template-btn {
        font-size: 13px !important;
    }
}

.import-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    min-height: 180px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.import-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    transition: height 0.3s ease;
}

.import-item:hover::before {
    height: 6px;
}

.import-item:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.18);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

.import-item label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    font-size: 16px;
    letter-spacing: 0.4px;
    margin-bottom: 15px;
    display: block;
    width: 100%;
}

.import-item .button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.import-item .button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    width: 100%;
    max-width: 220px;
    font-size: 14px;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.2);
    position: relative;
    overflow: hidden;
}

.import-item .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.import-item .button:hover::before {
    left: 100%;
}

.import-item .button:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.35);
}

.import-item .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.25);
}

/* 模板按钮特定样式 */
.template-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    color: white !important;
    border: none !important;
    width: 100% !important;
    max-width: 220px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(149, 165, 166, 0.2) !important;
    letter-spacing: 0.2px !important;
    padding: 12px 20px !important;
}

.template-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7b) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(149, 165, 166, 0.35) !important;
}

/* 筛选控制 */
.filter-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.filter-item select,
.filter-item input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* SKU搜索特定样式 */
#skuSearchInput {
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

#skuSearchInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: #f8f9ff;
}

#skuSearchInput::placeholder {
    color: #999;
    font-style: italic;
}

#skuSearchMode {
    min-width: 100px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#skuSearchMode:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 清空列数据功能样式 */
.clear-data-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff8f0;
    border: 1px solid #ffd700;
    border-radius: 8px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #d2691e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-subtitle::before {
    content: "🗑️";
    margin-right: 8px;
    font-size: 18px;
}

.clear-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.clear-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.clear-item label {
    font-weight: 500;
    color: #333;
    min-width: 120px;
}

#clearColumnSelect {
    min-width: 200px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: all 0.3s ease;
}

#clearColumnSelect:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

#clearColumnBtn {
    padding: 8px 16px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#clearColumnBtn:hover:not(:disabled) {
    background-color: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

#clearColumnBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clear-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
}

.notice-icon {
    font-size: 16px;
}

/* SKU搜索标签样式 */
.filter-item label[for="skuSearchInput"] {
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th:last-child,
.data-table td:last-child {
    border-right: none;
}

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

.data-table tbody tr.selected {
    background-color: #e3f2fd;
}

/* 可编辑单元格 */
.editable {
    background-color: #fff3cd;
    cursor: pointer;
}

.editable:hover {
    background-color: #ffeaa7;
}

.editable input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    padding: 4px;
}

/* 备货清单中的可编辑待备数量单元格 */
.editable-stock-needed {
    background-color: #e8f5e8;
    cursor: text;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.editable-stock-needed:hover {
    background-color: #d4edda;
    border-color: #28a745;
}

.editable-stock-needed:focus {
    background-color: #d4edda;
    border-color: #28a745;
    outline: none;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.editable-stock-needed::after {
    content: '✏️';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.6;
    pointer-events: none;
}

.editable-stock-needed:hover::after {
    opacity: 1;
}

/* 按钮样式 */
.button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    min-width: 80px;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button.primary {
    background-color: #3498db;
    color: white;
}

.button.primary:hover {
    background-color: #2980b9;
}

.button.secondary {
    background-color: #95a5a6;
    color: white;
}

.button.secondary:hover {
    background-color: #7f8c8d;
}

.button.success {
    background-color: #27ae60;
    color: white;
}

.button.success:hover {
    background-color: #229954;
}

.button.danger {
    background-color: #e74c3c;
    color: white;
}

.button.danger:hover {
    background-color: #c0392b;
}

.button.warning {
    background-color: #f39c12;
    color: white;
}

.button.warning:hover {
    background-color: #e67e22;
}

.button:disabled {
    background-color: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 批量操作区域 */
.batch-stock-operations {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 15px;
}

#selectedMainCount {
    color: #666;
    font-size: 14px;
}

/* 分页控制 */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.pagination-info select {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-numbers .button {
    min-width: 35px;
    padding: 6px 8px;
    background-color: #f8f9fa;
    color: #2c3e50;
    border: 1px solid #dee2e6;
}

.page-numbers .button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* 备货清单操作 */
.stock-list-operations {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* 数量汇总显示 */
.stock-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.summary-label {
    font-size: 14px;
    opacity: 0.9;
}

.summary-value {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.summary-unit {
    font-size: 12px;
    opacity: 0.8;
}

/* 备货清单操作按钮组 */
.stock-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 备货记录区域 */
.records-container {
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 15px;
}

.records-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.records-filter input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.records-filter input[type="date"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.records-list {
    max-height: 500px;
    overflow-y: auto;
}

.record-item {
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.record-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.record-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.record-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.record-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.record-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

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

.no-records {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 25px;
}

.detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.detail-header h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
}

.detail-header p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.summary-highlight {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.detail-table {
    margin-top: 20px;
}

.detail-table .data-table {
    width: 100%;
    font-size: 14px;
}

.detail-table .data-table th {
    background-color: #f8f9fa;
    padding: 12px 8px;
    font-weight: 600;
    color: #2c3e50;
}

.detail-table .data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin-top: 10px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 15px;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-item {
        min-width: auto;
    }
    
    .batch-controls {
        flex-direction: column;
    }
    
    .import-controls {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-item {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .pagination-controls {
        flex-direction: column;
        text-align: center;
    }
    
    .stock-list-operations {
        flex-direction: column;
    }
    
    .records-filter {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 动画效果 */
.fade-out {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.slide-out {
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* 表格行动画 */
.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.data-table tbody tr.deleting {
    background-color: #ffebee;
    opacity: 0.5;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

/* 按钮动画 */
.button.small {
    transition: all 0.2s ease;
    margin: 0 2px;
}

.button.small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.button.danger:hover {
    background-color: #c62828;
    box-shadow: 0 2px 8px rgba(198,40,40,0.3);
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.success {
    background-color: #27ae60;
}

.status-indicator.warning {
    background-color: #f39c12;
}

.status-indicator.error {
    background-color: #e74c3c;
}

/* 高亮文本 */
.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 计算结果高亮 */
.calculated-value {
    font-weight: 600;
    color: #3498db;
}

.calculated-value.positive {
    color: #27ae60;
}

.calculated-value.negative {
    color: #e74c3c;
}

.calculated-value.zero {
    color: #95a5a6;
}

/* 导入说明样式 */
.import-notice {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #1976d2;
    font-weight: 600;
}

.notice-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.notice-content {
    color: #424242;
    font-size: 14px;
    line-height: 1.5;
}

.notice-content p {
    margin-bottom: 8px;
}

.notice-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.notice-content li {
    margin-bottom: 4px;
}

.notice-content strong {
    color: #1976d2;
}

/* 格式信息样式 */
.format-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}