* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* 头部导航样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 90px;
    height: 39px;
    border-radius: 50%;
}

.logo-text {
    font-weight: bold;
    font-size: 20px;
    margin-left: 5px;
    color: #222;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 5px 10px;
}

nav ul li a.active {
    color: #d62617;
    border-bottom: 2px solid #d62617;
}

.user-actions {
    display: flex;
    align-items: center;
}

.icon-link {
    color: #666;
    margin-right: 20px;
    font-size: 18px;
}

.user-avatar {
    background-color: #e6e6e6;
    border-radius: 50%;
    padding: 10px;
    font-size: 14px;
    color: #666;
}

/* 标签页样式 */
.tabs {
    display: flex;
    background-color: white;
    padding: 10px 20px;
    border-bottom: 1px solid #e6e6e6;
}

.tab {
    margin-right: 5px;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 3px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
}

.tab.active {
    background-color: #e1f0ff;
    color: #0078d7;
}

.tab i.bi-x {
    margin-left: 5px;
    font-size: 12px;
}

.tab a {
    text-decoration: none;
    color: inherit;
}

.home-tab i {
    margin-right: 5px;
}

/* 搜索区域样式 */
.order-page .search-container,
.index-page .search-container {
    background-color: white;
    padding: 15px;
    margin: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-page .search-form,
.index-page .search-form {
    display: flex;
    margin-bottom: 30px;
    flex-direction: column;
}

.order-page .form-row,
.index-page .form-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: auto;
    gap: 20px;
}

.order-page .form-group,
.index-page .form-group {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-top: 60px;
}

.index-page .form-group-left {
    display: flex;
    margin-right: 15px;
    margin-top: 40px;
}

.order-page .form-group label,
.index-page .form-group label {
    min-width: 80px;
    text-align: right;
    margin-right: 10px;
    font-size: 14px;
}

.order-page .form-control,
.index-page .form-control {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    min-width: 180px;
    font-size: 14px;
    resize: none;
}

.order-page textarea.form-control,
.index-page textarea.form-control {
    padding: 8px 10px;
    line-height: 1.5;
    transition: height 0.2s;
}

.order-page .search-btn,
.index-page .search-btn {
    background-color: #2e86de;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 3px;
    cursor: pointer;
    height: 36px;
}

.order-page .search-btn:hover,
.index-page .search-btn:hover {
    background-color: #2574c4;
}

.order-page .search-btn:active,
.index-page .search-btn:active {
    transform: scale(0.98);
}

/* 复制按钮样式 */
.copy-button {
    display: block;
    margin: 10px 0;
    padding: 8px 16px;
    background-color: #2e86de;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: #2574c4;
}

.copy-button:active {
    transform: scale(0.98);
}

/* Word文档样式的可复制区域 */
#copyable-content-area {
    margin: 20px auto;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: white;
    cursor: text;
    width: 210mm;  /* A4纸宽度 */
    min-height: 297mm;  /* A4纸高度 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    outline: none;
    overflow-y: visible;
    position: relative;
    font-family: "Times New Roman", SimSun, serif;
    line-height: 1.5;
}

/* 提醒文本样式 */
.reminder-text {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

.reminder-text p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

/* 标签项容器样式 */
.label-item {
    margin-bottom: 30px;
    page-break-inside: avoid;
    page-break-after: always;
}

/* 图片容器样式 */
.image-container {
    margin: 20px 0;
    text-align: center;
}

/* 图片样式 */
.shipping-label {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* 订单信息样式 */
.order-info {
    margin: 20px 0;
    font-family: "Courier New", SimSun, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 复制提示样式 */
.copy-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(46, 134, 222, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.copy-hint p {
    margin: 0;
    color: white;
}

/* 禁用文本选择的默认样式 */
#copyable-content-area::selection {
    background: rgba(46, 134, 222, 0.2);
}

#copyable-content-area::-moz-selection {
    background: rgba(46, 134, 222, 0.2);
}

/* 打印样式 */
@media print {
    #copyable-content-area {
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .copy-hint {
        display: none;
    }

    .label-item {
        page-break-after: always;
    }
}

/* 操作栏样式 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    margin: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.left-actions {
    display: flex;
    align-items: center;
}

.btn-dropdown, .action-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: white;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
}

.total-amount {
    font-size: 14px;
}

.amount {
    font-weight: bold;
    color: #d62617;
}

/* 订单表格样式 */
.order-table-container {
    background-color: white;
    margin: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th, .order-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.order-table th {
    background-color: #f9f9f9;
    font-weight: normal;
}

.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-delivered {
    background-color: #e8f5e9;
    color: #4caf50;
}

.status-in-transit {
    background-color: #e3f2fd;
    color: #2196f3;
}

.status-shipped {
    background-color: #e8eaf6;
    color: #3f51b5;
}

.status-cancelled {
    background-color: #ffebee;
    color: #f44336;
}

.status-problem {
    background-color: #fff8e1;
    color: #ff9800;
}

.action-link {
    color: #2e86de;
    text-decoration: none;
    margin-right: 10px;
    font-size: 13px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: white;
    margin: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-size select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.page-navigation {
    display: flex;
    align-items: center;
}

.page-info {
    margin-right: 10px;
    font-size: 14px;
}

.page-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: white;
    margin: 0 5px;
    border-radius: 3px;
    cursor: pointer;
}

.page-btn.active {
    background-color: #2e86de;
    color: white;
    border-color: #2e86de;
}

.page-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.shipping-label-container {
    margin: 20px 0;
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#shipping-label-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

#shipping-label-img.visible {
    display: block !important;
    opacity: 1;
}

#reminder-text {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: -15px -15px 15px -15px;
    padding: 15px;
    background-color: #fff3cd;
    border-bottom: 1px solid #ffeeba;
    border-radius: 5px 5px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
}

/* 订单信息样式优化 */
.order-info {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-family: "Courier New", Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    color: #333;
    width: 100%;
    overflow-x: auto;
    max-height: none;
}

.order-info::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.order-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.order-info::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.order-info::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 标签项容器样式优化 */
.label-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.label-item:last-child {
    margin-bottom: 10px;
}

.label-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 调整图片容器样式 */
.shipping-label-container {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

/* 调整图片样式 */
.shipping-label {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 10px 0;
}

.word-preview-container {
    margin: 20px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #45a049;
}

.download-btn i {
    margin-right: 8px;
}

/* 调整预览容器的响应式布局 */
@media (max-width: 768px) {
    .word-preview-container {
        padding: 10px;
    }
    
    .word-preview-container iframe {
        height: 400px;
    }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    font-size: 14px;
}

.preview-hint {
    text-align: center;
    padding: 15px;
    background-color: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
}

.word-preview-container {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.download-btn i {
    margin-right: 8px;
}

/* 预览区域样式 */
.preview-section {
    margin-top: 20px;
    position: relative;
}

/* 加载提示样式 */
.loading-indicator {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 错误提示样式 */
.error-message {
    text-align: center;
    padding: 20px;
    background: #fff3f3;
    border: 1px solid #ffebee;
    border-radius: 8px;
    color: #d32f2f;
    margin: 20px 0;
}

.error-message i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.error-message p {
    margin: 0;
    font-size: 14px;
}

/* 文档预览区域样式 */
.document-preview {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

/* 下载按钮容器样式 */
.download-container {
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    display: inline-block;
    min-width: 300px;
}

/* 预览提示样式 */
.preview-hint {
    color: #666;
    font-size: 14px;
    margin: 0;
    padding-top: 10px;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .document-preview {
        padding: 15px;
    }
    
    .download-container {
        width: 100%;
        min-width: auto;
    }
    
    .download-btn {
        width: 100%;
        text-align: center;
    }
}

/* ========== 页面通用样式 ========== */
.document-section {
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.document-section h3 {
    margin-bottom: 15px;
    color: #333;
}
.document-preview {
    min-height: 200px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.generate-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.generate-btn:hover {
    background-color: #218838;
}
.generate-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.order-table thead th {
    font-weight: bold;
    background-color: #f8f9fa;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
}
.service-provider {
    color: #007bff;
    font-weight: bold;
}
.service-user {
    font-weight: bold;
}
.order-status-reported {
    color: #28a745;
    font-weight: 500;
}
.order-status-reporting {
    color: #007bff;
    font-weight: 500;
}
.order-status-cancelled {
    color: #ffc107;
    font-weight: 500;
}
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.preview-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.preview-container img {
    max-width: 400px;
    width: auto;
    height: auto;
    display: block;
    margin: 10px auto;
}
.preview-container p {
    margin: 5px 0;
    line-height: 1.2;
    font-size: 12px;
}
.preview-container.simplified {
    font-family: Arial, sans-serif;
}
.preview-container.original {
    font-family: "SimSun", "宋体", serif;
}
.preview-container.original p {
    white-space: pre-wrap;
}
.download-btn {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.download-btn:hover {
    background-color: #0056b3;
}
.error-message {
    color: #dc3545;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}
.preview-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.preview-mode-btn {
    padding: 6px 12px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.preview-mode-btn.active {
    background-color: #007bff;
}
.content-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.table-section {
    flex: 1;
    max-width: 50%;
}
.document-preview {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}
.preview-container {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}
#pageSizeSelect {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}
#pageSizeSelect:focus {
    outline: none;
    border-color: #007bff;
}
.main-content-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}
.order-table-container {
    width: 100%;
    overflow-x: auto;
}
.order-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}
.document-preview {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}
.preview-container {
    height: 100%;
    overflow-y: auto;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}
.page-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-numbers {
    display: flex;
    gap: 4px;
}
.page-number, .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}
.page-number:hover, .page-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}
.page-number.current {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
    cursor: default;
}
.page-info {
    color: #666;
    margin-right: 8px;
}
.page-jump {
    display: flex;
    align-items: center;
    margin-left: 8px;
    color: #666;
}
.jump-input {
    width: 50px;
    height: 28px;
    margin: 0 8px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    text-align: center;
}
.jump-input:focus {
    border-color: #1890ff;
    outline: none;
}
.table-actions {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.left-actions {
    display: flex;
    gap: 10px;
}
.action-btn {
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
}
.action-btn:hover {
    background-color: #f8f9fa;
}
.order-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.order-table {
    width: 100%;
    border-collapse: collapse;
}
.order-table th, .order-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.order-table th {
    background-color: #f8f9fa;
    font-weight: 500;
}
.order-table tr:hover {
    background-color: #f8f9fa;
}
.document-preview {
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
}
.preview-container {
    max-height: 600px;
    overflow-y: auto;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}
.page-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.page-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.page-btn.disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    color: #6c757d;
}
.total-amount {
    font-weight: 500;
    color: #333;
}
.amount {
    color: #007bff;
}
.document-options {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}
.search-form .form-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.form-group {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.document-options {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
}
.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}
.generate-btn {
    padding: 8px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 38px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.generate-btn:hover {
    background-color: #218838;
}
.generate-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.tooltip-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.info-icon {
    margin-left: 5px;
    cursor: help;
    color: #6c757d;
}
.tooltip-text {
    width: max-content;
    max-width: 260px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    position: absolute;
    z-index: 1001;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.tooltip-container:hover .tooltip-text,
.tooltip-container:focus-within .tooltip-text {
    opacity: 1;
    pointer-events: auto;
}
.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}
.order-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}
#select-all {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}
/* 登录页样式（仅作用于.login-page） */
.login-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-page .login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.login-page .login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-page .login-header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}
.login-page .login-header p {
    color: #666;
    font-size: 14px;
}
.login-page .login-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.login-page .login-btn:hover {
    background-color: #0056b3;
}
.login-page .login-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.login-page .login-container .form-group {
    margin-bottom: 20px;
    flex-direction: column;
    align-items: stretch;
    display: flex;
}
.login-page .login-container .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}
.login-page .login-container .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.login-page .login-container .form-group input:focus {
    outline: none;
    border-color: #007bff;
}
.login-page .login-container .error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

/* 自定义下拉框样式（order/index页面） */
.order-page .custom-select-container,
.index-page .custom-select-container {
    position: relative;
    display: inline-block;
}
.order-page .custom-select-container select,
.index-page .custom-select-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    cursor: pointer;
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 8px 10px;
}
.order-page .custom-select-container select:focus,
.index-page .custom-select-container select:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}
.order-page .custom-select-clear,
.index-page .custom-select-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    padding: 0;
    color: #999;
    font-size: 14px;
    line-height: 1;
}
.order-page .custom-select-container:hover .custom-select-clear,
.index-page .custom-select-container:hover .custom-select-clear {
    display: block;
}
.order-page .custom-select-container:hover select,
.index-page .custom-select-container:hover select {
    background-image: none;
}
.order-page .custom-select-clear:hover,
.index-page .custom-select-clear:hover {
    color: #666;
}
.order-page .custom-select-container select[value=""] + .custom-select-clear,
.index-page .custom-select-container select[value=""] + .custom-select-clear {
    display: none !important;
}

/* 操作列下拉菜单样式 */
.dropdown-action {
    position: relative;
    display: inline-block;
}
.dropdown-toggle {
    background: none;
    border: none;
    color: #2e86de;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dropdown-toggle:hover {
    background: #f0f6ff;
}
.dropdown-toggle .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #2e86de;
    margin-left: 2px;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-radius: 6px;
    z-index: 10;
    margin-top: 6px;
    padding: 6px 0;
    animation: fadeIn 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-action:hover .dropdown-menu,
.dropdown-action:focus-within .dropdown-menu {
    display: block;
}
.dropdown-item {
    padding: 8px 20px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.dropdown-item:hover {
    background: #f0f6ff;
    color: #2e86de;
}
.dropdown-item + .dropdown-item {
    border-top: 1px solid #f0f0f0;
}
.order-table td {
    vertical-align: middle;
    position: relative;
    overflow: visible;
}
.dropdown-menu {
    z-index: 9999;
    left: auto;
    right: 0;
    min-width: 120px;
}

/* 表格sticky列样式 */
.sticky-col {
    position: sticky;
    background: #fff;
    z-index: 2;
}
.sticky-waybill {
    left: 0;
    min-width: 140px;
    box-shadow: 2px 0 6px -2px rgba(0,0,0,0.06);
}
.sticky-action {
    right: 0;
    min-width: 160px;
    box-shadow: -2px 0 6px -2px rgba(0,0,0,0.06);
    text-align: left;
}
.order-table-container {
    overflow-x: auto;
}
/* 操作按钮样式优化 */
.action-btn.view-btn {
    background: #2e86de;
    color: #fff;
    margin-right: 8px;
}
.action-btn.cancel-btn {
    background: #fff3f3;
    color: #d32f2f;
    border: 1px solid #f5c6cb;
}
.action-btn.view-btn:hover {
    background: #1565c0;
}
.action-btn.cancel-btn:hover {
    background: #ffd6d6;
    color: #b71c1c;
}
.document-options-group {
    width: 600px;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 10px;
    background: none;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}
.document-options-tips {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}
.tip-text {
    margin-bottom: 2px;
    display: block;
}
.document-options {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: visible;
}
.select-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
}
.select-group-vertical label {
    margin-bottom: 2px;
    margin-top: 0 !important;
}
.select-group-vertical .custom-select-container {
    margin-bottom: 8px;
}

.charge-page .upload-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.charge-page .upload-header {
    text-align: center;
    margin-bottom: 30px;
}
.charge-page .upload-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.charge-page .upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.charge-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.charge-page .form-group label {
    font-size: 14px;
    color: #666;
}
.charge-page .form-group input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.charge-page .file-input-container {
    position: relative;
    text-align: center;
}
.charge-page .file-input-label {
    display: inline-block;
    padding: 12px 24px;
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.charge-page .file-input-label:hover {
    border-color: #2e86de;
    background-color: #f1f7ff;
}
.charge-page .file-input-label i {
    font-size: 24px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}
.charge-page .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.charge-page .selected-file {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}
.charge-page .submit-btn {
    padding: 12px 24px;
    background-color: #2e86de;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.charge-page .submit-btn:hover {
    background-color: #2574c4;
}
.charge-page .submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.charge-page .template-btn {
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    text-align: center;
}
.charge-page .template-btn:hover {
    background-color: #5a6268;
}
.charge-page .progress-container {
    margin-top: 20px;
    display: none;
}
.charge-page .progress-bar {
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}
.charge-page .progress {
    height: 100%;
    background-color: #2e86de;
    width: 0;
    transition: width 0.3s ease;
}
.charge-page .status-message {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}
.charge-page .error-message {
    color: #dc3545;
}
.charge-page .success-message {
    color: #28a745;
}
.download-cost-container {
    max-width: 600px;
    margin: 40px auto 0 auto;
    padding: 24px 24px 16px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.download-cost-header {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 18px;
    letter-spacing: 2px;
}
.download-cost-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.download-cost-form label {
    font-size: 15px;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}
.date-range-group {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.date-range-group input[type="date"] {
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
    color: #333;
    min-width: 130px;
    transition: border-color 0.2s;
}
.date-range-group input[type="date"]:focus {
    border-color: #2e86de;
    outline: none;
}
.date-range-sep {
    color: #888;
    font-size: 18px;
    font-weight: bold;
}
.date-range-group .submit-btn {
    margin-left: 12px;
    padding: 7px 20px;
    font-size: 15px;
    border-radius: 4px;
    background: #2e86de;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.date-range-group .submit-btn:hover {
    background: #2574c4;
}
.charge-page .center-group {
    display: flex;
    justify-content: center;
    align-items: center;
}
.date-range-input {
    padding: 7px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: #fff;
    color: #333;
    min-width: 260px;
    width: 260px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    text-align: center;
}
.date-range-input:focus, .date-range-input:hover {
    border-color: #2e86de;
    box-shadow: 0 0 0 2px rgba(46,134,222,0.12);
    outline: none;
}

.order-status-cancelled {
    color: #f56c6c;
    font-weight: bold;
}




