* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    overflow: hidden;
    height: 100vh;
}

/* 整体布局 */
.container {
    display: flex;
    height: 100vh;
}

/* 左侧导航栏 */
.sidebar {
    width: 240px;
    background-color: #e9f2ff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 10;
    position: relative;
    height: 100vh;
}

.header {
    padding: 20px;
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    color: white;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.shops-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 0;
    height: calc(100vh - 140px); /* 减去header和add-sales-btn的高度 */
    max-height: calc(100vh - 140px);
}

.shops-container {
    padding: 15px 10px;
    min-height: auto;
}

/* 自定义滚动条样式 */
.shops-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.shops-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.shops-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.shops-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.shop-item {
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 6px;
    background-color: #1565c0;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    letter-spacing: 1px;
}

.shop-item:hover {
    background-color: #1976d2;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
}

.shop-item.active {
    background-color: #0d47a1;
    color: #fff;
}

.add-sales-btn {
    padding: 15px;
    text-align: center;
    background: #f5f7fa;
    border-top: 1px solid #d9e7ff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    margin-top: 0;
}

.add-sales-btn button {
    width: 100%;
    padding: 12px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-sales-btn button:hover {
    background: #0d47a1;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.control-panel {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e6ed;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 15px;
}


.date-filter button {
    padding: 10px 20px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-order-btn {
    padding: 10px 20px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.add-order-btn:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.settings-btn {
    padding: 10px 20px;
    background: #9c27b0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: #7b1fa2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.export-btn {
    padding: 10px 20px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 数据展示区 */
.data-display {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    min-height: 400px;
}

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

.data-card {
    background: #f8f9ff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.data-card h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.data-card .value {
    font-size: 20px;
    font-weight: bold;
    color: #1e88e5;
}

/* 订单业绩总结表 */
.summary-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 380px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(90deg, #1e88e5, #0d47a1);
    color: white;
    border-radius: 8px 8px 0 0;
}

.summary-header h3 {
    font-weight: 600;
    font-size: 18px;
}

.close-summary {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.summary-table {
    padding: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e6ed;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .value {
    font-weight: bold;
    color: #1e88e5;
}

.highlight {
    background-color: #fffde7;
    font-weight: bold;
    color: #ff6f00;
}

.summary-minimized {
    position: fixed;
    right: 30px;
    bottom: 30px;
    padding: 10px 15px;
    background: #0d47a1;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 100;
}

/* 弹窗基础样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 地址弹窗特定样式 */
#addressModal .modal-content {
    width: 600px;
    max-width: 90%;
}

#addressModal h3 {
    background: linear-gradient(90deg, #1e88e5, #0d47a1);
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 20px;
    text-align: center;
}

#addressContent {
    padding: 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
    min-height: 150px;
}

/* 修改订单弹窗特定样式 */
#modifyModal .modal-content {
    width: 550px;
}

#modifyModal h3 {
    background: linear-gradient(90deg, #ff9800, #f57c00);
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 20px;
    text-align: center;
}

#modifyForm {
    padding: 25px;
    background: #f9f9f9;
}

#modifyForm label {
    display: block;
    margin: 15px 0 8px;
    font-weight: 500;
    color: #555;
}

#modifyForm input,
#modifyForm select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

#modifyForm input:focus,
#modifyForm select:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
    outline: none;
}

/* 成功提示弹窗特定样式 */
#successModal .modal-content {
    width: 400px;
    text-align: center;
    padding: 30px;
}

#successModal h3 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 20px;
}

#successModal p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* 弹窗按钮样式 */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: #f5f5f5;
    border-top: 1px solid #eee;
}

.btn-confirm, .btn-close {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm {
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
    color: white;
}

.btn-confirm:hover {
    background: linear-gradient(90deg, #43A047, #1B5E20);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-close {
    background: linear-gradient(90deg, #f44336, #c62828);
    color: white;
}

.btn-close:hover {
    background: linear-gradient(90deg, #e53935, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-header {
    background: linear-gradient(90deg, #1e88e5, #0d47a1);
    color: white;
    padding: 20px;
    position: relative;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d8e0;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    border-color: #1e88e5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.form-footer button {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-confirm {
    background: #1e88e5;
    color: white;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.error {
    color: #ff5252;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* 表格标题 */
.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9f2ff;
}
/* 自定义弹窗样式（合并优化，去除重复） */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.custom-alert .alert-content {
    background: white;
    width: 400px;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    animation: alertOpen 0.3s ease;
}
@keyframes alertOpen {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.custom-alert .alert-message {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #333;
}
.custom-alert button {
    padding: 10px 25px;
    background: #1e88e5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}
.custom-alert button:hover {
    background: #0d47a1;
}
/* 不同类型的弹窗样式 */
.custom-alert.success .alert-message { color: #4caf50; }
.custom-alert.error .alert-message { color: #ff5252; }
.custom-alert.warning .alert-message { color: #ff9800; }

/* 修改成功提示位置 */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #4caf50;
    color: white;
    padding: 20px 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    display: none;
    animation: fadeInOut 3s ease-in-out;
    font-size: 18px;
    text-align: center;
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translate(-50%, -60%); }
    10%, 90% { opacity: 1; transform: translate(-50%, -50%); }
}

/* 高亮样式调整 */
.highlight {
    background-color: #fffde7;
    font-weight: bold;
    color: #ff6f00;
    padding: 5px 10px;
    border-radius: 4px;
}

/* 加载动画 */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(30, 136, 229, 0.2);
    border-bottom-color: #1e88e5;
    border-radius: 50%;
    display: none;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 30px auto;
}
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单错误提示增强 */
.error {
    color: #ff5252;
    font-size: 14px;
    margin-top: 5px;
    display: block; /* 确保错误信息始终显示 */
    padding: 5px 0;
    font-weight: 500;
}

/* 数据卡片图标样式 */
.data-card .fas {
    margin-right: 8px;
    font-size: 18px;
    color: #0d47a1;
}

/* 优化控制面板 */
.control-panel {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

/* 筛选区域样式 - 水平紧凑布局 */
.filter-section {
    flex: 1;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-picker input[type="date"] {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    width: 120px;
    height: 28px;
}

.date-picker span {
    color: #666;
    font-weight: 500;
    font-size: 12px;
}

.order-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 0;
}

.filter-group input[type="text"] {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    width: 140px;
    height: 28px;
}

.status-checkboxes {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.status-checkboxes label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.status-checkboxes input[type="checkbox"] {
    margin: 0;
    width: 12px;
    height: 12px;
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.filter-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
}

#queryBtn {
    background: #1e88e5;
    color: white;
}

#queryBtn:hover {
    background: #1565c0;
}

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

.btn-secondary:hover {
    background: #7f8c8d;
}
/* 订单列表样式 */
.search-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px 0 16px 0;
    margin-left: 40px;
}

.order-list {
    margin: 0 40px;
}

.order-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 24px;
    background: #fafafa;
    overflow: hidden;
}

.order-header {
    background: #f5f5f5;
    padding: 10px 20px;
    font-size: 16px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 40px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.order-table th, .order-table td {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 18px 8px;
    text-align: center;
    font-size: 16px;
    color: #444;
}

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

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

.order-table th {
    color: #888;
    font-weight: normal;
    background: #fafafa;
}

.product-img {
    width: 120px;
    height: 120px;
    background: transparent;
    border-radius: 0;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
    padding: 0;
}

.product-img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.view-address-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
}

.modify-btn {
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
}

.delete-btn {
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
}

.modify-btn:hover {
    background: #f57c00;
}

.delete-btn:hover {
    background: #d32f2f;
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
    font-size: 16px;
    color: #888;
}

.page-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    margin: 0 2px;
    cursor: pointer;
    color: #c00;
    font-size: 16px;
}

.page-btn.active, .page-btn:active {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

.page-btn[disabled] {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

.goto-input {
    width: 40px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 4px;
    text-align: center;
}

/* 修改订单表单样式 */
#modifyForm label {
    display: block;
    margin: 10px 0;
}

#modifyForm input, 
#modifyForm select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* JD订单详情管理系统样式 */
.order-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 50%;
    max-height: 85vh;
}

.order-detail-header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-detail-title {
    font-size: 24px;
    font-weight: 600;
}

.order-detail-id {
    font-size: 16px;
    opacity: 0.9;
}

.progress-container {
    padding: 30px 40px;
    background: linear-gradient(135deg, #001f3f, #003366);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 0 10px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 2px;
    z-index: 1;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.3);
}

.progress-bar {
    position: absolute;
    top: 25px;
    left: 25px;
    height: 4px;
    background: linear-gradient(90deg, #ff4757, #ff3838);
    z-index: 2;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.6);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    transition: transform 0.3s ease;
    flex: 1;
}

.step:hover {
    transform: translateY(-5px);
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
    z-index: 4;
}

.step-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.step.active .step-circle::before,
.step.completed .step-circle::before {
    transform: rotate(45deg) translateX(100%);
}

.step.active .step-circle {
    background: linear-gradient(135deg, #ff3838, #ff0000);
    color: white;
    border-color: rgba(255, 56, 56, 0.7);
    box-shadow: 0 0 25px rgba(255, 56, 56, 0.8);
    animation: pulse 2s infinite;
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #ff3838, #ff0000);
    color: white;
    border-color: rgba(255, 56, 56, 0.5);
    box-shadow: 0 0 20px rgba(255, 56, 56, 0.7);
}

@keyframes pulse {
    0% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
    50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.8); }
    100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.6); }
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #bdc3c7;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.step.active .step-label,
.step.completed .step-label {
    color: #ff4757;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.step.active .step-label {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 71, 87, 0.5); }
    to { text-shadow: 0 0 20px rgba(255, 71, 87, 0.8); }
}

.order-detail-content-wrapper {
    max-height: 500px;
    overflow-y: auto;
    padding: 0 30px;
}

.order-detail-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.order-detail-content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.order-detail-content-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.order-detail-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.order-detail-content {
    display: flex;
    padding: 25px 0;
    gap: 30px;
}

.order-detail-left {
    flex: 1;
    padding-right: 20px;
}

.order-detail-right {
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid #eaeef2;
}


.voucher-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.voucher-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.add-voucher-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.add-voucher-btn:hover {
    background: #2980b9;
}

.voucher-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.voucher-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.voucher-image-container {
    position: relative;
    height: 150px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f9f9f9;
}

.voucher-image-container:hover {
    border-color: #3498db;
}

.voucher-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.voucher-add {
    font-size: 24px;
    color: #95a5a6;
}

.voucher-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.voucher-image-container:hover .voucher-actions {
    opacity: 1;
}

.voucher-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.view-btn {
    background: #3498db;
}

.delete-btn {
    background: #e74c3c;
}

.voucher-action-btn:hover {
    transform: scale(1.1);
}

.voucher-notes {
    padding: 12px;
}

.voucher-notes textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
}

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

.order-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.order-detail-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-detail-modal-content {
    max-width: 90%;
    max-height: 90%;
}

.order-detail-modal-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-order-detail-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .order-detail-content {
        flex-direction: column;
    }
    
    .order-detail-left, .order-detail-right {
        padding: 0;
        border: none;
    }
    
    .order-detail-right {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 1px solid #eaeef2;
    }
    
    .voucher-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cost-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .progress-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .step {
        width: 33%;
        margin-bottom: 20px;
    }
    
    .voucher-container {
        grid-template-columns: 1fr;
    }
    
    .order-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 订单状态样式 */
.order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    min-width: 60px;
    color: #ff0000; /* 红色字体 */
    margin-bottom: 8px; /* 增加与查看详情按钮的间距 */
}

.order-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.order-status.confirmed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.order-status.completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-status.settled {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.order-status.commission-pending {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.order-status.commission-paid {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.order-status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 查看详情按钮样式 */
.view-details-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.view-details-btn:active {
    transform: translateY(0);
    box-shadow: none;
}


/* 订单状态进度条样式 */
.status-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    position: relative;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.status-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #666668;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(61, 28, 243, 0.1);
}

.status-step.active .status-step-circle {
    background: #1976d2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.status-step.completed .status-step-circle {
    background: #4caf50;
    color: #fff;
}

.status-step-label {
    font-size: 11px;
    color: #636364;
    margin-top: 4px;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
}

.status-step.active .status-step-label,
.status-step.completed .status-step-label {
    color: #1976d2;
    font-weight: 500;
}

.status-progress-bar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.status-progress-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

/* 表格设置模态框样式 */
#tableSettingsModal .modal-content {
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeef2;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #3498db;
    border-radius: 2px;
}

.date-filter-settings {
    padding: 10px 0;
}

.date-filter-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.date-filter-settings input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.field-settings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.field-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e6ed;
    transition: all 0.3s ease;
}

.field-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.1);
}

.field-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.field-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

.settings-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

.btn-secondary {
    padding: 8px 16px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary.active {
    background: #3498db;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

/* 销售列表转圈加载样式 */
.sales-list-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: transparent;
    border-radius: 8px;
    margin: 20px 0;
    min-height: 200px;
}

.loading-spinner-container {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    font-size: 16px;
    color: #495057;
    font-weight: 500;
    margin-top: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .order-status {
        font-size: 10px;
        padding: 2px 6px;
        min-width: 50px;
    }
    
    .view-details-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .status-step-circle {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .status-step-label {
        font-size: 9px;
        max-width: 60px;
    }
    
    #tableSettingsModal .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .field-settings {
        grid-template-columns: 1fr;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .sales-list-progress {
        padding: 40px 15px;
        min-height: 150px;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .loading-text {
        font-size: 14px;
    }
}

/* 下拉式多选框样式 */
.dropdown-multiselect {
    position: relative;
    display: inline-block;
    width: 200px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: all 0.3s ease;
    height: 28px;
}

.dropdown-toggle:hover {
    border-color: #1e88e5;
}

.dropdown-toggle.active {
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.selected-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-toggle .fas {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .fas {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.status-checkboxes {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    padding: 4px 0;
    transition: background-color 0.2s ease;
}

.status-checkboxes label:hover {
    background-color: #f5f7fa;
    border-radius: 3px;
}

.status-checkboxes input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.dropdown-actions {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-top: 1px solid #eee;
    gap: 8px;
}

.dropdown-actions button {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f8f9fa;
    color: #333;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-actions button:hover {
    background: #1e88e5;
    color: white;
    border-color: #1e88e5;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dropdown-multiselect {
        width: 180px;
    }
    
    .dropdown-menu {
        max-height: 180px;
    }
    
    .status-checkboxes label {
        font-size: 11px;
    }
    
    .dropdown-actions button {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* 高级信息栏样式 - 订单详情弹窗 */
.info-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
    padding: 0 10px;
}

.info-section-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeef2;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.info-section-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.info-section-header {
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.info-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    z-index: 1;
}

.info-section-header.basic {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.info-section-header.ship {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.info-section-header.cost {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.info-section-title {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section-icon {
    font-size: 18px;
}

.info-section-content {
    padding: 20px;
    background: #fafbfc;
}

/* 基础信息栏样式 */
.basic-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.basic-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.basic-info-item:hover {
    background: #f8f9fa;
    transform: translateX(2px);
}

.basic-info-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.basic-info-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 15px;
    text-align: right;
}

.basic-info-value.price,
.basic-info-value.total {
    color: #e74c3c;
}

.basic-info-image {
    max-width: 60px;
    max-height: 60px;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.basic-info-image:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

/* 发货信息栏样式 - 进一步缩小版 */
.ship-info-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ship-info-group {
    background: white;
    border-radius: 4px;
    padding: 8px;
    border-left: 2px solid #e74c3c;
    box-shadow: 0 1px 3px rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
}

.ship-info-group:hover {
    background: #fef5f5;
    transform: translateX(1px);
}

.ship-info-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f0f0f0;
}

.ship-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.ship-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ship-info-label {
    font-size: 9px;
    font-weight: 600;
    color: #6c757d;
}

.ship-info-value {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
}

.ship-info-value.price {
    color: #e74c3c;
}

.ship-info-image {
    max-width: 50px;
    max-height: 50px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.ship-info-image:hover {
    transform: scale(1.05);
    border-color: #e74c3c;
}

.no-ship-info {
    text-align: center;
    padding: 30px 20px;
    color: #95a5a6;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* 成本信息栏样式 */
.cost-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
    transition: all 0.3s ease;
}

.cost-item:hover {
    background: #f0f9f4;
    transform: translateX(2px);
}

.cost-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-value {
    font-weight: 700;
    color: #e74c3c;
    font-size: 15px;
    text-align: right;
}

.cost-value.profit {
    color: #27ae60;
    font-size: 16px;
}

.profit-percentage {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

/* 特殊高亮样式 */
.highlight-item {
    background: linear-gradient(135deg, #fffde7, #fff9c4);
    border-left-color: #ffd54f;
    box-shadow: 0 2px 8px rgba(255, 213, 79, 0.2);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .info-sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-sections-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-section-content {
        padding: 15px;
    }
    
    .basic-info-item,
    .cost-item {
        padding: 10px 12px;
    }
    
    .ship-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ship-info-group {
        padding: 12px;
    }
    
    .basic-info-value,
    .cost-value {
        font-size: 14px;
    }
    
    .basic-info-value.total,
    .cost-value.profit {
        font-size: 15px;
    }
    
    .ship-info-value {
        font-size: 13px;
    }
}
