 * { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #f0f2f5; padding-top: 60px; }

/* 顶部横版导航栏 */
.top-nav {
    background: #0a2b4e;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    max-width: 100%;
    gap: 15px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span { color: #f39c12; }

/* 菜单容器 - 无滚动条，自动换行 */
.menu-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    overflow-x: visible;
    margin: 0;
}

.menu-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

/* 菜单项样式 - 更美观 */
.menu-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: rgba(255,255,255,0.85);
    border-radius: 12px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.menu-item i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    transition: transform 0.2s ease;
}

.menu-item:hover {
    background: rgba(255,255,255,0.12);
    color: white;
    transform: translateY(-1px);
}

.menu-item:hover i {
    transform: scale(1.1);
}

.menu-item.active {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border-bottom: 2px solid #f39c12;
}

.menu-item.active i {
    color: #f39c12 !important;
}

/* 用户区域 */
.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 34px;
    height: 34px;
    background: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.change-pwd-btn, .logout-btn {
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
    white-space: nowrap;
}

.change-pwd-btn:hover, .logout-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* 角色标识 */
#roleBadge {
    font-size: 10px;
    background: #f39c12;
    color: #0a2b4e;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
}

/* 主要内容区域 */
.main-content {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    min-width: 140px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 1001;
    display: none;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #f39c12;
}

.dropdown-item i {
    width: 18px;
}

/* ========== 响应式适配 ========== */

/* 中等屏幕：隐藏菜单文字，只显示图标 */
@media (max-width: 1200px) {
    .menu-item span {
        display: none;
    }
    .menu-item i {
        font-size: 20px;
        margin: 0;
    }
    .menu-item {
        padding: 8px 14px;
    }
    .menu-item:hover {
        transform: translateY(-2px);
    }
}

/* 手机屏幕：导航栏换行布局 */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .menu-wrapper {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .menu-horizontal {
        justify-content: center;
    }
    
    .user-area {
        gap: 8px;
    }
    
    /* 手机端隐藏文字只显示图标 */
    .change-pwd-btn span, 
    .logout-btn span {
        display: none;
    }
    
    .change-pwd-btn, 
    .logout-btn {
        padding: 6px 12px;
    }
}

/* 超小屏幕：进一步缩小间距 */
@media (max-width: 480px) {
    .menu-item {
        padding: 6px 10px;
    }
    
    .menu-item i {
        font-size: 16px;
    }
    
    .avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .change-pwd-btn, 
    .logout-btn {
        padding: 4px 8px;
    }
}
/* 隐藏旧的侧边栏 */
.sidebar {
    display: none;
}

/* 以下保留原有的表格、卡片、按钮等全局样式 */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 20px; }
.stat-card { background: white; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; transition: 0.3s; }
.stat-card:hover { transform: translateY(-3px); }
.stat-number { font-size: 28px; font-weight: bold; color: #f39c12; }
.stat-label { font-size: 13px; color: #666; margin-top: 5px; }
.card { background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 10px; }
.card-title { font-size: 18px; font-weight: bold; color: #0a2b4e; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; font-weight: 600; }
tr:hover { background: #fafafa; }
.btn { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; transition: 0.3s; }
.btn-primary { background: #f39c12; color: white; }
.btn-primary:hover { background: #e67e22; }
.btn-outline { background: transparent; border: 1px solid #f39c12; color: #f39c12; }
.btn-outline:hover { background: #f39c12; color: white; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-success { background: #27ae60; color: white; }
.btn-success:hover { background: #219a52; }
.status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.status-pending { background: #fff3e0; color: #f39c12; }
.status-arrived { background: #e3f2fd; color: #2196f3; }
.status-stored { background: #e8f5e9; color: #4caf50; }
.status-shipped { background: #e3f2fd; color: #2196f3; }
.status-pending_pack { background: #fff3e0; color: #f39c12; }
.status-pending_pay { background: #e3f2fd; color: #2196f3; }
.status-pending_ship { background: #fff3e0; color: #f39c12; }
.status-shipping { background: #e8f5e9; color: #4caf50; }
.search-bar { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.search-bar input, .search-bar select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; }
.search-bar input { flex: 1; min-width: 200px; }
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.modal-content { background: white; border-radius: 12px; width: 90%; max-width: 700px; max-height: 85vh; overflow-y: auto; }
.modal-header { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 20px; }
.modal-footer { padding: 15px 20px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 10px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; }
.form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; }
.batch-input { width: 100%; height: 150px; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: monospace; margin-bottom: 15px; }
.timeline { position: relative; padding-left: 30px; }
.timeline-item { position: relative; padding-bottom: 20px; border-left: 2px solid #f39c12; margin-left: 10px; padding-left: 20px; }
.timeline-dot { position: absolute; left: -6px; top: 0; width: 10px; height: 10px; background: #f39c12; border-radius: 50%; }
.tabs { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.tab-btn { padding: 8px 20px; background: none; border: none; cursor: pointer; font-size: 14px; color: #666; transition: 0.3s; border-radius: 20px; }
.tab-btn:hover { background: #f39c12; color: white; }
.tab-btn.active { background: #f39c12; color: white; }
.required-field { background-color: #ffe0e0 !important; border-color: #ff9999 !important; }
.new-order-alert { position: fixed; top: 20px; right: 20px; background: #f39c12; color: white; padding: 15px 25px; border-radius: 8px; z-index: 1001; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { flex-direction: column; }
    .menu-item span:first-child { display: none; }
    .menu-item i { font-size: 18px; }
}
.hidden { display: none; }
.text-center { text-align: center; }
.small-text { font-size: 11px; color: #999; }
.order-print { font-family: monospace; padding: 20px; }
.print-btn { background: #f39c12; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; }

/* 包裹管理表格固定布局 */
.packages-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.packages-table th,
.packages-table td {
    padding: 10px 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.packages-table th:nth-child(1) { width: 10%; }
.packages-table th:nth-child(2) { width: 5%; }
.packages-table th:nth-child(3) { width: 11%; }
.packages-table th:nth-child(4) { width: 11%; }
.packages-table th:nth-child(5) { width: 5%; }
.packages-table th:nth-child(6) { width: 5%; }
.packages-table th:nth-child(7) { width: 5%; }
.packages-table th:nth-child(8) { width: 5%; }
.packages-table th:nth-child(9) { width: 5%; }
.packages-table th:nth-child(10) { width: 5%; }
.packages-table th:nth-child(11) { width: 9%; }
.packages-table th:nth-child(12) { width: 9%; }
.packages-table th:nth-child(13) { width: 15%; }    
/* 统计页面利润颜色 */
    .profit-positive {
        color: #27ae60;
    }
    .profit-negative {
        color: #e74c3c;
    }
    .period-btn.active {
        background: #f39c12;
        color: white;
        border-color: #f39c12;
    }
    .period-btn {
        transition: all 0.3s ease;
    }
    .period-btn:hover {
        background: #f39c12;
        color: white;
    }/* ========== 管理员修改密码按钮样式 ========== */
.change-pwd-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}
#changePwdModal .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
#changePwdModal .form-group input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}
#pwdErrorMsg {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 0;
}
/* ========== 物流轨迹表格文字颜色修复 ========== */

/* 表格整体文字颜色 */
#trackingListTable,
#trackingListTable td,
#trackingListTable th {
    color: #333 !important;
}

/* 表格内所有元素 */
#trackingListTable td *,
#trackingListTable th * {
    color: #333 !important;
}

/* 国际单号加粗保持深色 */
#trackingListTable td strong {
    color: #0a2b4e !important;
}

/* 状态标签文字 */
.status-stored,
.status-shipping,
.status-pending {
    color: #2c3e50 !important;
}

/* 按钮文字保持原样（不需要强制） */
.btn {
    color: inherit;
}

.btn-primary {
    color: white !important;
}

.btn-danger {
    color: white !important;
}

.btn-outline {
    color: #f39c12 !important;
}
/* ========== 全局表格文字强制可见 ========== */

/* 所有表格单元格文字 */
table td,
table th,
table td *,
table th *,
tbody td,
tbody th,
thead td,
thead th {
    color: #333333 !important;
}

/* 表格内的链接 */
table a,
table a * {
    color: #0a2b4e !important;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline !important;
}

/* 表格内的按钮文字保持原样 */
table .btn,
table .btn * {
    color: inherit !important;
}

table .btn-primary {
    color: white !important;
}

table .btn-danger {
    color: white !important;
}

table .btn-outline {
    color: #f39c12 !important;
}

/* 表格内的状态标签 */
table .status,
table .status * {
    color: #333333 !important;
}

table .status-stored {
    color: #2c3e50 !important;
    background: #e8f5e9 !important;
}

table .status-shipping {
    color: #2c3e50 !important;
    background: #fff3e0 !important;
}

table .status-pending {
    color: #2c3e50 !important;
    background: #fff3e0 !important;
}

/* 物流轨迹表格特殊处理 */
#trackingListTable,
#trackingListTable td,
#trackingListTable th,
#trackingListTable span,
#trackingListTable strong,
#trackingListTable div {
    color: #333333 !important;
}

/* 运单管理表格 */
#ordersTableBody,
#ordersTableBody td,
#ordersTableBody td *,
#ordersTableBody a {
    color: #333333 !important;
}

#ordersTableBody a strong {
    color: #0a2b4e !important;
}

/* 客户管理表格 */
#usersTableBody,
#usersTableBody td,
#usersTableBody td *,
#usersTableBody a {
    color: #333333 !important;
}

/* 包裹管理表格 */
#packagesTableBody,
#packagesTableBody td,
#packagesTableBody td * {
    color: #333333 !important;
}

/* 强制所有输入框文字可见 */
input,
select,
textarea,
input *,
select *,
textarea * {
    color: #333333 !important;
}

/* 输入框 placeholder 保持浅色 */
input::placeholder,
textarea::placeholder {
    color: #999999 !important;
}

/* 卡片内的文字 */
.card,
.card *,
.card-header,
.card-header *,
.card-title {
    color: #333333 !important;
}

/* 统计卡片特殊处理 */
.stat-card,
.stat-card * {
    color: #333333 !important;
}

.stat-card .stat-number {
    color: #f39c12 !important;
}

/* 模态框文字 */
.modal,
.modal *,
.modal-content,
.modal-content * {
    color: #333333 !important;
}

.modal-header h3 {
    color: white !important;
}
 /* ========== 回收站模块样式 ========== */

/* 回收站表格特殊样式 */
#recycleBinTableBody td {
    vertical-align: middle;
}

/* 过期状态样式 */
.expired-warning {
    color: #e74c3c !important;
    font-weight: bold;
}

.expiring-soon {
    color: #e67e22 !important;
}

/* 回收站统计卡片样式 */
.recycle-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.recycle-stat-card {
    background: white;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 150px;
}

.recycle-stat-card i {
    font-size: 32px;
    color: #f39c12;
}

.recycle-stat-info h4 {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.recycle-stat-info .number {
    font-size: 24px;
    font-weight: bold;
    color: #0a2b4e;
}

.recycle-stat-info .warning {
    color: #e67e22;
}

/* 恢复按钮特殊样式 */
.restore-btn {
    background: #27ae60;
    color: white;
    transition: 0.3s;
}

.restore-btn:hover {
    background: #219a52;
    transform: scale(1.02);
}

/* 回收站提示信息 */
.recycle-info {
    background: #f8f9fa;
    border-left: 4px solid #f39c12;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recycle-info i {
    color: #f39c12;
    font-size: 18px;
}

/* 时间显示样式 */
.expires-soon {
    background: #fff3e0;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #e67e22;
    display: inline-block;
}

.expires-overdue {
    background: #ffebee;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #e74c3c;
    display: inline-block;
}

/* 类型徽章 */
.type-badge-order {
    background: #e3f2fd;
    color: #2196f3;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.type-badge-package {
    background: #e8f5e9;
    color: #4caf50;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

/* 回收站空状态 */
.recycle-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.recycle-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.recycle-empty p {
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .recycle-stats {
        flex-direction: column;
    }
    
    .recycle-stat-card {
        width: 100%;
    }
    
    #recycleBinTableBody td {
        font-size: 12px;
        padding: 8px 6px;
    }
} 