/* base.css - 基础样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* 链接样式 */
a {
    color: inherit;
    text-decoration: none;
}

/* 按钮重置 */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* 表单元素重置 */
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* 列表样式重置 */
ul,
ol {
    list-style: none;
}

/* 图片最大宽度 */
img {
    max-width: 100%;
    height: auto;
}

/* 表格重置 */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
/* layout.css - 布局相关样式 */

/* 主容器 */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    display: none;
    overflow-y: auto;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    transition: transform 0.3s ease;
}

/* 侧边栏Logo */
.logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
    text-align: center;
}

.logo h2 {
    font-size: 1.2rem;
}

/* 导航菜单 */
.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #34495e;
}

.nav-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 20px;
    display: none;
    width: calc(100% - 250px);
    margin-left: 250px;
}

/* 页面头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.user-info span {
    margin-right: 10px;
}

.user-badge {
    background-color: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 页面内容 */
.page-content {
    padding: 0;
}

.page-title {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* 移动端底部操作栏 */
.mobile-actions {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
    justify-content: space-around;
    align-items: center;
}

.mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: #7f8c8d;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s;
}

.mobile-action-btn.active {
    color: #3498db;
}

.mobile-action-btn i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* 登录页面布局 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 20px;
}

.login-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

/* 用户管理页面布局 */
.users-management {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

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

/* 权限管理页面布局 */
.permissions-management {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

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

/* 流程跟踪页面布局 */
.process-track {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.process-track-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* components.css - 组件样式 */

/* 表单组件 */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2575fc;
    outline: none;
}

/* 按钮组件 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

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

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

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

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

.btn-success {
    background-color: #2ecc71;
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
}

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

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

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

.btn-warning:hover {
    background-color: #d35400;
}

.btn-info {
    background-color: #9b59b6;
    color: white;
}

.btn-info:hover {
    background-color: #8e44ad;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #2575fc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 48px;
}

.login-btn:hover,
.login-btn:active {
    background-color: #1a68e8;
}

/* 登出按钮 */
.logout-btn {
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    height: 38px;
}

/* 添加用户按钮 */
.add-user-btn {
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
}

/* 操作按钮 */
.action-btn {
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    white-space: nowrap; /* 防止文字换行 */
    min-width: 60px; /* 确保最小宽度 */
}

.action-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 用户操作按钮 */
.user-action-btn {
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-action-btn.edit {
    background-color: #f39c12;
}

.user-action-btn.delete {
    background-color: #e74c3c;
}

.user-action-btn.permissions {
    background-color: #9b59b6;
}

/* 筛选按钮 */
.filter-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    height: 40px;
    min-width: 80px;
}

.filter-btn:hover,
.filter-btn:active {
    background-color: #2980b9;
}

.reset-btn {
    padding: 10px 20px;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    height: 40px;
    min-width: 80px;
}

.reset-btn:hover,
.reset-btn:active {
    background-color: #7f8c8d;
}

/* 返回订单列表按钮 */
.back-to-orders-btn {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 徽章组件 */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-1 { background-color: #f39c12; color: white; }
.status-2 { background-color: #3498db; color: white; }
.status-3 { background-color: #9b59b6; color: white; }
.status-4 { background-color: #1abc9c; color: white; }
.status-5 { background-color: #2ecc71; color: white; }
.status-6 { background-color: #e67e22; color: white; }
.status-7 { background-color: #27ae60; color: white; }
.status-0 { background-color: #7f8c8d; color: white; }

/* 角色徽章 */
.role-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-admin { background-color: #e74c3c; color: white; }
.role-manager { background-color: #3498db; color: white; }
.role-operator { background-color: #9b59b6; color: white; }
.role-preparer { background-color: #1abc9c; color: white; }
.role-viewer { background-color: #7f8c8d; color: white; }

/* 渠道徽章 */
.channel-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 5px;
    margin-bottom: 5px;
    white-space: nowrap;
}

.channel-douyin { background-color: #ff0050; color: white; }
.channel-video { background-color: #07c160; color: white; }
.channel-baidu { background-color: #2932e1; color: white; }
.channel-taobao { background-color: #ff4400; color: white; }
.channel-pdd { background-color: #e02e24; color: white; }
.channel-wechat { background-color: #09bb07; color: white; }
.channel-other { background-color: #7f8c8d; color: white; }

/* 表格组件 */
.users-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
    font-size: 0.9rem;
}

.users-table th {
    background-color: #3498db;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.users-table tr:hover {
    background-color: #f9f9f9;
}

/* 订单表格 */
.orders-table {
    min-width: 800px;
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

.orders-table th {
    background-color: #3498db;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

/* 针对操作列的特殊样式 */
.orders-table th:last-child,
.orders-table td:last-child {
    min-width: 120px; /* 确保操作列有足够宽度 */
}

.orders-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle; /* 垂直居中对齐 */
}

.orders-table tr:hover {
    background-color: #f9f9f9;
}

/* 表格容器 */
.orders-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 用户操作容器 */
.user-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* 筛选器组件 */
.filters {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

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

.filter-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

/* 错误消息 */
.error-message {
    color: #e74c3c;
    margin-top: 10px;
    text-align: center;
    display: none;
}

/* 权限提示 */
.permission-hint {
    background-color: #fff8e1;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #f39c12;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #7d6608;
}

/* 加载动画 */
.loading-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

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

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

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 平台订单号样式 */
.platform-order-id {
    font-family: monospace;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #eee;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 图片上传组件样式 */
.image-upload-container {
    margin-bottom: 20px;
}

.image-upload-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2c3e50;
}

.image-upload-box {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.image-upload-box:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.image-upload-box.dragover {
    border-color: #2ecc71;
    background-color: #f0fff4;
}

.image-upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #95a5a6;
}

.image-upload-text {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #7f8c8d;
}

.image-upload-hint {
    font-size: 0.85rem;
    color: #95a5a6;
}

.image-upload-input {
    display: none;
}

/* 图片预览样式 */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.image-preview-remove:hover {
    background-color: #e74c3c;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 20px;
}

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

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

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

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

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

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

/* 图片预览模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    will-change: transform;
}

.image-modal-content img:active {
    cursor: grabbing;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.image-modal-close:hover {
    background-color: white;
}

/* 记住我复选框样式 */
.remember-me-group {
    margin: 15px 0;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    user-select: none;
}

.remember-me-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    /* 移除 accent-color 使用自定义样式 */
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: white;
    transition: all 0.2s ease;
}

.remember-me-label input[type="checkbox"]:checked {
    background-color: #2575fc;
    border-color: #2575fc;
}

.remember-me-label input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.remember-me-label input[type="checkbox"]:focus {
    outline: 2px solid rgba(37, 117, 252, 0.2);
    outline-offset: 2px;
}

.remember-me-label:hover {
    color: #2575fc;
}

.remember-me-label:hover input[type="checkbox"] {
    border-color: #2575fc;
}

/* 订单详情头部操作容器 */
.order-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 编辑订单按钮 */
.edit-order-btn {
    padding: 8px 16px;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.edit-order-btn:hover {
    background-color: #d35400;
}

.edit-order-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 订单图片缩略图 */
.order-image-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.3s;
}

.order-image-thumb:hover {
    transform: scale(1.05);
}

/* 回撤订单按钮 */
.rollback-order-btn {
    padding: 8px 16px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.rollback-order-btn:hover {
    background-color: #c0392b;
}

.rollback-order-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 警告按钮样式 */
.modal-btn.warning {
    background-color: #e74c3c;
    color: white;
}

.modal-btn.warning:hover {
    background-color: #c0392b;
}

/* 状态信息显示 */
.status-info {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    font-weight: 500;
    color: #2c3e50;
    min-height: 40px;
    display: flex;
    align-items: center;
}

/* 订单图片编辑容器 */
.order-images-edit-container {
    margin-bottom: 15px;
    min-height: 100px;
}

.order-images-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.order-image-edit-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.order-image-edit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-image-edit-item .image-preview {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.order-image-edit-item .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.order-image-edit-item:hover .image-preview img {
    transform: scale(1.05);
}

.order-image-edit-item .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.order-image-edit-item:hover .image-overlay {
    opacity: 1;
}

.order-image-edit-item .image-delete-btn {
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
}

.order-image-edit-item .image-delete-btn:hover {
    background-color: #e74c3c;
    transform: scale(1.1);
}

.order-image-edit-item .image-info {
    padding: 10px;
    background-color: white;
}

.order-image-edit-item .image-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.order-image-edit-item .image-date {
    font-size: 0.75rem;
    color: #7f8c8d;
}

/* 图片上传控件 */
.image-upload-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.image-upload-controls .upload-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    flex: 1;
}

/* 无图片提示 */
.no-images {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* 图片上传按钮 */
#editOrderUploadImageBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

#editOrderUploadImageBtn:hover {
    background-color: #2980b9;
}

#editOrderUploadImageBtn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 报表页面样式 */
.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

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

.stats-container {
    margin-bottom: 30px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.chart-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.chart-wrapper {
    display: flex;
    justify-content: center;
}

.channel-suggestion {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-top: 20px;
}

.channel-suggestion p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.channel-suggestion p:last-child {
    margin-bottom: 0;
}

/* pages.css - 页面特定样式 */

/* ============================
   登录页面样式
   ============================ */

/* 演示账号提示 */
.login-demo-accounts {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #7f8c8d;
    text-align: center;
    line-height: 1.5;
}

/* 页面标题间距 */
.page-subtitle {
    margin: 30px 0 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 右对齐容器 */
.right-aligned-container {
    text-align: right;
    margin-top: 20px;
}

/* ============================
   数据看板页面样式
   ============================ */

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.stat-card-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-card-change {
    font-size: 0.85rem;
    color: #95a5a6;
}

.stat-card-change.positive {
    color: #27ae60;
}

.stat-card-change.negative {
    color: #e74c3c;
}

/* 生产状态分布 */
.status-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-indicator.status-1 { background-color: #f39c12; }
.status-indicator.status-2 { background-color: #3498db; }
.status-indicator.status-3 { background-color: #9b59b6; }
.status-indicator.status-4 { background-color: #1abc9c; }
.status-indicator.status-5 { background-color: #2ecc71; }
.status-indicator.status-6 { background-color: #e67e22; }
.status-indicator.status-7 { background-color: #27ae60; }
.status-indicator.status-0 { background-color: #7f8c8d; }

/* ============================
   新增订单页面样式
   ============================ */

/* 订单表单布局 */
.order-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* 订单图片缩略图 */
.order-image-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.order-image-thumb:hover {
    transform: scale(1.05);
}

/* ============================
   流程跟踪页面样式
   ============================ */

/* 流程步骤优化 */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 40px 0;
    padding: 0 10px;
}

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

/* 进度连线 */
.process-step::after {
    content: "";
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
    transition: background-color 0.3s;
}

.process-step.last-step::after {
    display: none;
}

/* 已完成步骤的连线变色 */
.process-step.step-completed::after {
    background-color: #2ecc71;
}

.step-icon-wrapper {
    position: relative;
    z-index: 3;
    margin-bottom: 12px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #bdc3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px white;
}

/* 状态样式 */
.process-step.step-completed .step-icon {
    background-color: #2ecc71;
}

.process-step.step-current .step-icon {
    background-color: #3498db;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px white, 0 0 15px rgba(52, 152, 219, 0.5);
    animation: pulse-blue 2s infinite;
}

.process-step.step-pending .step-icon {
    background-color: #ecf0f1;
    color: #bdc3c7;
}

.process-step.step-cancelled .step-icon {
    background-color: #95a5a6;
}

.step-content {
    text-align: center;
}

.step-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.process-step.step-pending .step-name {
    color: #95a5a6;
}

.step-time {
    font-size: 0.75rem;
    color: #7f8c8d;
    min-height: 1.2em;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
        gap: 30px;
    }
    
    .process-step {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }
    
    .process-step::after {
        top: 40px;
        left: 20px;
        width: 2px;
        height: calc(100% + 10px);
    }
    
    .step-icon-wrapper {
        margin-bottom: 0;
    }
    
    .step-content {
        text-align: left;
    }
}

/* 订单详情网格 */
.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

/* 订单图片网格 */
.order-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.order-image-item {
    width: 100%;
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
    cursor: pointer;
}

.order-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.order-image-item:hover img {
    transform: scale(1.05);
}

.no-images {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    background-color: #f9f9f9;
    border-radius: 5px;
    grid-column: 1 / -1;
}

/* ============================   备忘录页面样式   ============================ */

.memos-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.memo-date-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.memo-date-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    margin-bottom: 8px;
}

.memo-room-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 20px;
}

.memo-room-header {
    font-size: 1rem;
    font-weight: 600;
    color: #34495e;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.memo-room-memos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 备忘录列表项样式 */
.memo-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 20px;
}

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

.memo-list-content {
    flex: 1;
    min-width: 0;
}

.memo-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.memo-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
}

.memo-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.memo-list-platform {
    font-size: 0.85rem;
    color: #7f8c8d;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.memo-list-time {
    font-size: 0.8rem;
    color: #95a5a6;
}

.memo-list-info {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.memo-list-live-date {
    font-size: 0.9rem;
    color: #34495e;
    font-weight: 500;
}

.memo-list-sales {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: 600;
}

.memo-list-content-preview {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    white-space: pre-wrap;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.memo-list-images {
    margin-bottom: 12px;
}

.memo-list-images-count {
    font-size: 0.85rem;
    color: #3498db;
    background-color: #e8f4fc;
    padding: 4px 8px;
    border-radius: 4px;
}

.memo-list-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.memo-list-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.1s;
    min-width: 80px;
}

.memo-list-btn:hover {
    transform: translateY(-1px);
}

.memo-list-btn.view-btn {
    background-color: #3498db;
    color: white;
}

.memo-list-btn.view-btn:hover {
    background-color: #2980b9;
}

.memo-list-btn.edit-btn {
    background-color: #f39c12;
    color: white;
}

.memo-list-btn.edit-btn:hover {
    background-color: #e67e22;
}

.memo-list-btn.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.memo-list-btn.delete-btn:hover {
    background-color: #c0392b;
}

.memo-live-info {
    margin: 15px 0;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
}

.memo-live-item {
    display: flex;
    margin-bottom: 6px;
    align-items: center;
}

.memo-live-item:last-child {
    margin-bottom: 0;
}

.memo-live-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 8px;
    min-width: 80px;
}

.memo-live-value {
    color: #555;
}

/* ============================
   备忘录统计区域样式
   ============================ */

.memos-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stats-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stats-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.stats-content {
    flex: 1;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.stats-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.memo-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #7f8c8d;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.memo-actions-menu {
    position: absolute;
    top: 15px;
    right: 15px;
}

.memo-action-dot {
    background: none;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    padding: 5px;
    font-size: 1.1rem;
}

.memo-action-dot:hover {
    color: #34495e;
}

/* ============================
   渠道分析页面样式
   ============================ */

/* 渠道建议 */
.channel-suggestion {
    background-color: #e8f4fc;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    margin-top: 20px;
}

.channel-suggestion p {
    margin-bottom: 10px;
}

.channel-suggestion strong {
    color: #2c3e50;
}

/* ============================
   权限管理页面样式
   ============================ */

.role-permissions {
    margin-top: 30px;
}

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

.permission-info-text {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.role-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.role-tab {
    padding: 10px 20px;
    background-color: #f1f2f6;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.role-tab.active {
    background-color: #3498db;
    color: white;
}

/* 角色选择器项样式 */
.role-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid #3498db;
    width: calc(50% - 5px);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .role-item {
        width: 100%;
    }
}

.role-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.role-item.selected {
    background-color: #f0f8ff;
    border-left-color: #2ecc71;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}

.role-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.role-info {
    flex: 1;
}

.role-name {
    font-weight: 600;
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 4px;
}

.role-description {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
}

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

.process-permission-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.process-permission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.process-permission-name {
    font-weight: 600;
    color: #2c3e50;
}

.process-permission-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* 权限分类样式 */
.permission-category {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.permission-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.permission-item {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s;
}

.permission-item:hover {
    background-color: #f0f7ff;
    transform: translateY(-2px);
}

.permission-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.permission-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.permission-label {
    flex: 1;
    cursor: pointer;
}

.permission-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.permission-desc {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
}

/* 权限配置容器 */
.permissions-container {
    margin-top: 20px;
}

.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.permission-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.permission-info {
    flex: 1;
}

.permission-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.permission-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.permission-toggle {
    position: relative;
}

.permission-toggle input {
    display: none;
}

.permission-toggle label {
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.permission-toggle label:after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.permission-toggle input:checked + label {
    background-color: #2ecc71;
}

.permission-toggle input:checked + label:after {
    transform: translateX(24px);
}

.permission-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-checkbox input {
    width: 18px;
    height: 18px;
}

.permission-checkbox label {
    font-size: 0.9rem;
    color: #333;
}

/* 备忘录详情模态框样式 */
.memo-detail-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.memo-detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.memo-detail-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.memo-detail-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 12px;
}

.memo-detail-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memo-detail-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.memo-detail-label {
    font-weight: 600;
    color: #7f8c8d;
    min-width: 100px;
    flex-shrink: 0;
    padding-top: 2px;
}

.memo-detail-value {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.memo-detail-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    white-space: pre-wrap;
}

.memo-detail-images {
    margin-top: 15px;
}

.memo-detail-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.memo-detail-image {
    width: 100%;
    height: 120px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.memo-detail-image:hover {
    transform: scale(1.05);
}

/* 权限配置 */
.permissions-container {
    margin-top: 20px;
}

.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.permission-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.permission-info {
    flex: 1;
}

.permission-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.permission-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.permission-toggle {
    position: relative;
}

.permission-toggle input {
    display: none;
}

.permission-toggle label {
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.permission-toggle label:after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.permission-toggle input:checked + label {
    background-color: #2ecc71;
}

.permission-toggle input:checked + label:after {
    transform: translateX(24px);
}

.permission-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.permission-checkbox input {
    width: 18px;
    height: 18px;
}

.permission-checkbox label {
    font-size: 0.9rem;
    color: #333;
}

/* 流程权限配置 */
.process-permissions {
    margin-top: 20px;
}

.process-steps-permissions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.process-step-permission {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.process-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.step-name-permission {
    font-weight: 600;
    color: #2c3e50;
}

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

.step-action {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================
   分页组件样式
   ============================ */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.page-size-selector label {
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.page-size-selector select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 0.9rem;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 6px 12px;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background-color: #f5f5f5;
}

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

.page-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.prev-btn,
.next-btn {
    padding: 6px 12px;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover:not(:disabled),
.next-btn:hover:not(:disabled) {
    background-color: #f5f5f5;
}

.prev-btn:disabled,
.next-btn:disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.pagination-ellipsis {
    padding: 6px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    min-width: 36px;
    text-align: center;
}

/* ============================
   订单详情页面样式
   ============================ */

.order-details-container {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-details-header h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
}

.order-status-indicator {
    font-size: 0.9rem;
}

.order-info-section {
    margin-bottom: 25px;
}

.order-info-section h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

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

.info-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 2px;
}

.info-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* 关键信息高亮 */
.highlight-item {
    background-color: #f8faff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eef2f7;
}

.highlight-item .info-label {
    color: #3498db;
    font-weight: 600;
}

.large-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.full-width {
    grid-column: 1 / -1;
}

.order-remark {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    white-space: pre-wrap;
}

.process-steps-section {
    margin: 30px 0;
}

.process-steps-section h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.process-step.step-pending .step-icon {
    background-color: #ddd;
}

.order-images-section {
    margin: 25px 0;
}

.order-images-section h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.order-logs-section {
    margin: 25px 0;
}

.order-logs-section h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.log-content {
    font-size: 0.9rem;
    color: #555;
}

.log-user {
    font-weight: 600;
    color: #2c3e50;
}

.log-time {
    font-size: 0.8rem;
    color: #7f8c8d;
    white-space: nowrap;
}

.no-logs {
    text-align: center;
    padding: 25px;
    color: #7f8c8d;
    background-color: #f9f9f9;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* 渠道徽章样式 */
.channel-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 500;
}

.channel-douyin {
    background-color: #ff0050;
    color: white;
}

.channel-video {
    background-color: #1e90ff;
    color: white;
}

.channel-baidu {
    background-color: #2932e1;
    color: white;
}

.channel-taobao {
    background-color: #ff4400;
    color: white;
}

.channel-pdd {
    background-color: #d43c33;
    color: white;
}

.channel-wechat {
    background-color: #07c160;
    color: white;
}

.channel-other {
    background-color: #95a5a6;
    color: white;
}

/* 状态徽章样式 */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 500;
    color: white;
}

.status-1 {
    background-color: #f39c12;
}

.status-2 {
    background-color: #3498db;
}

.status-3 {
    background-color: #9b59b6;
}

.status-4 {
    background-color: #1abc9c;
}

.status-5 {
    background-color: #2ecc71;
}

.status-6 {
    background-color: #e67e22;
}

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

.status-0 {
    background-color: #7f8c8d;
}

/* 平台订单号样式 */
.platform-order-id {
    font-family: monospace;
    font-size: 0.85rem;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #eee;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ============================
   产品文档详情样式
   ============================ */

.doc-detail-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
}

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

.doc-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.doc-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.doc-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.doc-detail-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #34495e;
    white-space: pre-wrap;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.doc-detail-images-section {
    margin-top: 20px;
}

.doc-detail-images-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-detail-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.doc-detail-image-item {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.doc-detail-image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.doc-detail-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================
   配置管理页面样式
   ============================ */

.config-management {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.config-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.config-category-btn {
    padding: 10px 20px;
    background-color: #f1f2f6;
    border: none;
    border-radius: 5px;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.config-category-btn:hover {
    background-color: #e1e2e6;
    transform: translateY(-2px);
}

.config-category-btn.active {
    background-color: #3498db;
    color: white;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.config-content {
    margin-top: 20px;
}

/* 颜色点样式 */
.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ============================
   订单编辑模态框图片管理样式
   ============================ */

.order-images-edit-container {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 10px;
    min-height: 100px;
    background-color: #f9f9f9;
}

.order-images-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.order-image-edit-item {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.order-image-edit-item .image-preview {
    height: 100px;
    position: relative;
    overflow: hidden;
}

.order-image-edit-item .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-image-edit-item .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.order-image-edit-item:hover .image-overlay {
    opacity: 1;
}

.image-delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.image-delete-btn::before {
    content: "×";
    font-weight: bold;
}

.image-delete-btn:hover {
    background-color: #c0392b;
}

.order-image-edit-item .image-info {
    padding: 8px;
    font-size: 0.8rem;
}

.order-image-edit-item .image-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    margin-bottom: 3px;
}

.order-image-edit-item .image-date {
    color: #999;
    font-size: 0.75rem;
}

.image-upload-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* responsive.css - 响应式样式 */

/* H5移动端优化 - 基础字体大小 */
@media (max-width: 768px) {
    html,
    body {
        font-size: 14px;
    }
}

/* 移动端侧边栏 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        width: 100% !important;
        margin-left: 0;
        padding: 15px;
        padding-top: 70px;
    }

    .main-content {
        padding-bottom: 80px;
    }
}

/* 移动端头部响应式 */
@media (max-width: 576px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* 移动端用户管理头部 */
@media (max-width: 576px) {
    .users-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 移动端表格优化 */
@media (max-width: 768px) {
    .orders-table {
        min-width: 900px;
        font-size: 0.85rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
    }
}

/* 移动端流程步骤响应式 */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        width: 100% !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
    }

    .step-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* 移动端筛选器响应式 */
@media (max-width: 576px) {
    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }
}

/* 移动端流程跟踪标题响应式 */
@media (max-width: 576px) {
    .process-track-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 移动端权限管理网格响应式 */
@media (max-width: 768px) {
    .process-permissions-grid {
        grid-template-columns: 1fr;
    }
}

/* 移动端统计卡片响应式 */
@media (max-width: 576px) {
    .stats-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* 移动端分页响应式 */
@media (max-width: 576px) {
    .pagination-container {
        flex-direction: column;
        align-items: center;
    }
}

/* 移动端底部操作栏 */
@media (max-width: 768px) {
    .mobile-actions {
        display: flex;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .action-btn,
    .user-action-btn,
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }

    .mobile-action-btn {
        min-height: 44px;
    }

    .nav-menu a {
        padding: 15px 20px;
    }

    /* 增大触摸目标 */
    input[type="checkbox"],
    input[type="radio"] {
        width: 24px;
        height: 24px;
    }

    /* 防止双击缩放 */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        width: calc(100% - 220px);
        margin-left: 220px;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-permissions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }

    .main-content {
        max-width: 1150px;
    }

    .stats-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .process-permissions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 打印样式 */
@media print {
    .mobile-menu-btn,
    .sidebar,
    .mobile-actions,
    .logout-btn,
    .action-btn,
    .user-action-btn,
    .add-user-btn,
    .add-memo-btn,
    .filter-btn,
    .reset-btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    .page-content {
        display: block !important;
    }

    body {
        background-color: white !important;
        color: black !important;
    }

    .stat-card,
    .process-track,
    .users-management,
    .permissions-management {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .orders-table,
    .users-table {
        border: 1px solid #ddd !important;
    }

    .orders-table th,
    .users-table th {
        background-color: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ddd !important;
    }

    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .status-badge,
    .role-badge,
    .channel-badge {
        border: 2px solid currentColor;
    }

    .btn-primary,
    .btn-success,
    .btn-danger,
    .btn-warning,
    .btn-info {
        border: 2px solid white;
    }

    input,
    select,
    textarea {
        border: 2px solid #333;
    }

    .orders-table th,
    .users-table th {
        border: 2px solid white;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .login-box,
    .modal {
        animation: none !important;
    }
}
