/* ============================================
   美工排单出图系统 V5.0 - 样式表
   移动端优先设计 手机上也能用
   响应式布局 自适应各种屏幕
   ============================================ */

/* 全局样式 所有元素的基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #43e97b;
    --warning-color: #ffc107;
    --danger-color: #ff6b6b;
    --info-color: #4facfe;
    --text-dark: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #E8EEF5;
    min-height: 100vh;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

.required {
    color: var(--danger-color);
}

/* ============================================
   登录界面样式 登录页的样式
   ============================================ */
#loginContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #E8EEF5;
}

.login-box {
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

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

.login-header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
}

.login-header .version {
    color: #999;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.login-header .subtitle {
    color: #999;
    font-size: 12px;
    margin-bottom: 25px;
}

.form-group {
    position: relative;
    margin-bottom: 18px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group i {
    color: #999;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    flex: 1;
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4FACFE;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 13px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 172, 254, 0.4);
}

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

/* ============================================
   主界面布局 登录后的整体框架
   ============================================ */
#mainContainer {
    display: grid;
    grid-template-areas: 
        "header header"
        "sidebar main";
    grid-template-rows: 60px 1fr;
    grid-template-columns: 250px 1fr;
    height: 100vh;
    background: var(--bg-light);
}

/* 头部样式 最上面的导航条 */
.header {
    grid-area: header;
    background: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.header-left h1 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    color: var(--text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-role {
    color: var(--text-muted);
}

.user-location {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.logout-btn {
    padding: 8px 15px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.logout-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* 侧边栏样式 左侧导航菜单 */
.sidebar {
    grid-area: sidebar;
    background: var(--bg-white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    transition: transform 0.3s;
}

.nav-menu {
    list-style: none;
    padding: 15px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    color: var(--text-dark);
}

.nav-item:hover {
    background: #f8f9ff;
    border-left-color: var(--primary-color);
}

.nav-item.active {
    background: #f8f9ff;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.nav-item i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
    font-size: 15px;
}

/* 菜单红点徽章 显示待办数量的小红点 */
.menu-badge {
    display: none;  /* 默认隐藏 JS动态显示 */
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
    animation: pulse 2s ease-in-out infinite;
    line-height: 1.4;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(255, 107, 107, 0.6);
    }
}

/* 主内容区样式 右侧主要内容展示区 */
.main-content {
    grid-area: main;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-light);
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 600;
}

.page-header p {
    color: var(--text-light);
    margin-top: 5px;
    font-size: 13px;
}

/* ============================================
   按钮样式 各种按钮的基础样式
   ============================================ */
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-white);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================
   统计卡片样式 工作台显示统计数据的卡片
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
}

.stat-icon i {
    color: white;
    font-size: 24px;
}

.stat-content h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-content p {
    color: var(--text-light);
    font-size: 13px;
}

/* ============================================
   快速操作样式 工作台的快捷操作按钮区
   ============================================ */
.quick-actions {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.quick-actions h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.action-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ============================================
   活动列表样式 显示最近操作记录的列表
   ============================================ */
.recent-activity {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.recent-activity h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
}

.activity-list {
    max-height: 350px;
    overflow-y: auto;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    color: var(--primary-color);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 13px;
}

.activity-content span {
    color: var(--text-muted);
    font-size: 12px;
}

/* ============================================
   提醒预览样式 工作台的提醒事项展示
   ============================================ */
.reminders-preview {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.reminders-preview h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

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

.reminder-item {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.reminder-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.reminder-item.urgent {
    background: #f8d7da;
    border-left-color: var(--danger-color);
}

.reminder-item.auto {
    background: #d1ecf1;
    border-left-color: var(--info-color);
}

.reminder-title {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 13px;
}

.reminder-desc {
    color: var(--text-light);
    font-size: 12px;
}

/* ============================================
   搜索栏样式 搜索订单用的输入框
   ============================================ */
.search-bar {
    display: flex;
    margin-bottom: 20px;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-bar input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    padding: 14px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background: var(--secondary-color);
}

/* ============================================
   表格样式 订单列表表格的样式
   ============================================ */
.table-container {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #f8f9ff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    font-size: 13px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 13px;
}

.data-table tr:hover {
    background: #f8f9ff;
}

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

/* 状态标签样式 显示订单状态的彩色标签 */
.status-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.status-Step1 { background: #e3f2fd; color: #1976d2; }
.status-Step2 { background: #f3e5f5; color: #7b1fa2; }
.status-Step3 { background: #fff3e0; color: #f57c00; }
.status-Step4 { background: #e8f5e9; color: #388e3c; }
.status-Step5 { background: #fce4ec; color: #c2185b; }
.status-已完成 { background: #e0f2f1; color: #00897b; }
.status-已停做 { background: #efebe9; color: #5d4037; }
.status-待领取 { background: #fff9c4; color: #f57f17; }
.status-制作中 { background: #b3e5fc; color: #0277bd; }
.status-待审核 { background: #ffccbc; color: #d84315; }

/* 优先级标签样式 显示订单优先级的标签 */
.priority-badge {
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.priority-常规 { background: #e0e0e0; color: #616161; }
.priority-高 { background: #fff3cd; color: #856404; }
.priority-紧急 { background: #f8d7da; color: #721c24; }

/* ============================================
   表单样式 各种输入表单的样式
   ============================================ */
.form-container {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* 附件预览 上传文件后的预览区域 */
.attachment-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.attachment-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    padding: 10px;
    text-align: center;
}

.attachment-item i {
    font-size: 30px;
    color: var(--primary-color);
}

.attachment-name {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 5px;
    word-break: break-all;
}

/* 图片预览 上传图片后的预览区域 */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1;
}

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

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   过滤按钮样式 筛选订单状态的按钮组
   ============================================ */
.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.filter-btn:hover {
    background: #f8f9ff;
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   返图类型选择器 选择返图类型的按钮
   ============================================ */
.return-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.return-type-btn {
    padding: 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.return-type-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.return-type-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.return-type-btn i {
    font-size: 24px;
}

/* ============================================
   订单列表样式 订单卡片式展示
   ============================================ */
.orders-list {
    display: grid;
    gap: 15px;
}

.order-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    cursor: pointer;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-code {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.order-body {
    display: grid;
    gap: 8px;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.order-info-label {
    color: var(--text-light);
}

.order-info-value {
    color: var(--text-dark);
    font-weight: 500;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   历史记录样式 订单流转的时间线展示
   ============================================ */
.history-list {
    display: grid;
    gap: 15px;
}

.history-card {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

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

.history-timeline {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    padding: 10px 0 10px 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 15px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-step {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.timeline-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   高级搜索样式 多条件搜索的表单区域
   ============================================ */
.advanced-search {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.search-results {
    display: grid;
    gap: 15px;
}

/* ============================================
   提醒标签样式 提醒中心的分类标签
   ============================================ */
.reminder-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.reminder-tab {
    padding: 10px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reminder-tab:hover {
    background: #f8f9ff;
    border-color: var(--primary-color);
}

.reminder-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reminders-content {
    display: grid;
    gap: 15px;
}

/* ============================================
   账号标签样式 账号管理的部门分类标签
   ============================================ */
.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.account-tab {
    padding: 10px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.account-tab:hover {
    background: #f8f9ff;
    border-color: var(--primary-color);
}

.account-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   监控统计样式 流程监控页的统计卡片
   ============================================ */
.monitor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.monitor-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.monitor-card h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 14px;
}

.progress-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring span {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.timeline-view {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.timeline-view h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
}

.timeline-content {
    max-height: 500px;
    overflow-y: auto;
}

/* ============================================
   模态框样式 各种弹窗的基础样式
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-large {
    max-width: 900px;
    max-height: 95vh;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-dark);
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close:hover {
    color: var(--text-dark);
}

.modal form {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* 订单详情内容 弹窗里显示订单详情的区域 */
.order-detail-content {
    padding: 25px;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-section h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.detail-label {
    color: var(--text-light);
}

.detail-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* ============================================
   操作按钮样式 表格中的各种操作按钮
   ============================================ */
.action-button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 70px;
    justify-content: center;
    white-space: nowrap;
}

/* 统一按钮大小 避免按钮大小不一 */
.action-buttons-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.action-buttons-cell .action-button {
    flex-shrink: 0;
}

.btn-edit {
    background: #007bff;
    color: white;
}

.btn-delete {
    background: var(--danger-color);
    color: white;
}

.btn-view {
    background: var(--success-color);
    color: white;
}

.btn-assign {
    background: var(--warning-color);
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

/* 警告按钮 黄色的 撤回啥的用这个 */
.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

/* 撤回按钮 紫色渐变的 看起来挺炫 */
.btn-revoke {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
}

.btn-revoke:hover {
    background: linear-gradient(135deg, #8E24AA 0%, #6A1B9A 100%);
}

/* 返图按钮 助理部用的 橙色渐变 */
.btn-return-assistant {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
}

.btn-return-assistant:hover {
    background: linear-gradient(135deg, #fb8c00 0%, #f4511e 100%);
}

/* 返图按钮 销售部用的 蓝色渐变 */
.btn-return-sales {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.btn-return-sales:hover {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
}

.action-button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   提示消息 右上角弹出的提示框
   ============================================ */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
}

.toast.error {
    background: var(--danger-color);
}

.toast.warning {
    background: var(--warning-color);
    color: var(--text-dark);
}

.toast.info {
    background: var(--info-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   空状态样式 没有数据时显示的占位符
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 16px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ============================================
   滚动条样式 自定义滚动条 好看点
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============================================
   响应式设计 移动端适配
   手机上也能用 自动调整布局
   ============================================ */
@media (max-width: 768px) {
    #mainContainer {
        grid-template-areas: 
            "header"
            "main";
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 60px;
        bottom: 0;
        width: 250px;
        z-index: 99;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header-left h1 {
        font-size: 14px;
    }
    
    .user-info {
        font-size: 12px;
    }
    
    .user-role {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .monitor-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .login-box {
        padding: 25px 20px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
}

/* ============================================
   打印样式 打印的时候隐藏不必要的元素
   ============================================ */
@media print {
    .header,
    .sidebar,
    .action-button,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .page {
        display: block !important;
    }
}

/* ============================================
   加载动画 转圈圈的那个加载效果
   ============================================ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   辅助类 一些通用的工具样式类
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

/* ============================================
   员工搜索样式 搜索美工的下拉列表
   ============================================ */
.search-results-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 10px;
    background: var(--bg-white);
}

.designer-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.designer-item:hover {
    background: var(--bg-light);
}

.designer-item.selected {
    background: #e8f0fe;
    border-left: 3px solid var(--primary-color);
}

.designer-info {
    flex: 1;
}

.designer-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.designer-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.designer-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: var(--info-color);
    color: white;
}

.selected-designer {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    min-height: 50px;
    display: flex;
    align-items: center;
}

.selected-designer .placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.selected-designer .designer-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.selected-designer .designer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.selected-designer .designer-details {
    flex: 1;
}

.selected-designer .designer-name {
    font-weight: 600;
    color: var(--text-dark);
}

.selected-designer .designer-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* 订单状态徽章 显示订单当前状态的小标签 */
.order-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.order-status-badge.waiting {
    background: #fff3cd;
    color: #856404;
}

.order-status-badge.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.order-status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.order-status-badge.urgent {
    background: #f8d7da;
    color: #721c24;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 图片预览区域增强 美工上传图片的预览区 */
.image-preview {
    display: block;
    margin-top: 10px;
    min-height: 50px;
}

.image-preview-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.image-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.image-preview-item .remove-btn:hover {
    background: var(--danger-color);
    transform: scale(1.1);
}

/* 文件删除按钮 预览图右上角的小叉叉 */
.file-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff6b6b;
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    z-index: 10;
}

.file-remove-btn:hover {
    background: #ff5252;
    transform: scale(1.1);
}

.file-remove-btn i {
    pointer-events: none;
}

/* 附件项悬浮效果 鼠标悬停时的动画 */
.attachment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   通知系统样式 头部的通知铃铛和下拉面板
   ============================================ */

/* 通知按钮 头部右上角的铃铛图标 */
.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #ff6b6b;
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: notifPulse 2s infinite;
}

.notification-badge.show {
    display: flex;
}

@keyframes notifPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* 通知下拉面板 点击铃铛弹出的通知列表 */
.notification-panel {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.notification-panel.hidden {
    display: none;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.notification-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 12px;
    background: white;
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-icon.order {
    background: #e3f2fd;
    color: #2196f3;
}

.notification-icon.assign {
    background: #f3e5f5;
    color: #9c27b0;
}

.notification-icon.system {
    background: #fff3e0;
    color: #ff9800;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.notification-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

.notification-footer {
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* 菜单徽章 侧边栏菜单上的数字提示 */
.menu-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    background: #ff6b6b;
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.menu-badge.show {
    display: flex;
}

/* 只有1个通知时，显示为纯红点（不显示数字） */
.menu-badge.dot-only {
    width: 8px;
    height: 8px;
    min-width: 8px;
    font-size: 0;  /* 隐藏数字 */
    padding: 0;
    border-radius: 50%;  /* 完美圆形 */
}

.nav-item {
    position: relative;
}

/* 通知中心页面 专门看通知的页面 */
.notification-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.notification-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-filter-btn:hover {
    background: var(--bg-light);
}

.notification-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.notification-filter-btn .badge {
    background: var(--danger-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
}

.notification-filter-btn.active .badge {
    background: rgba(255, 255, 255, 0.3);
}

.notifications-content {
    background: white;
    border-radius: 8px;
}

.notification-item-full {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-item-full:hover {
    background: var(--bg-light);
}

.notification-item-full.unread {
    background: #f0f7ff;
    border-left: 4px solid var(--primary-color);
}

/* ============================================
   多选美工样式 Step3主管分配时选择多个美工
   ============================================ */
.selected-designers-container {
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 15px;
    background: var(--bg-light);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
}

.selected-designers-container .placeholder-text {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 30px 0;
    font-size: 14px;
}

.selected-designer-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.selected-designer-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.selected-designer-tag .designer-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-designer-tag .designer-location {
    font-size: 12px;
    opacity: 0.9;
}

.selected-designer-tag .remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

.selected-designer-tag .remove-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.search-results-list .designer-item.selected {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
}

.search-results-list .designer-item.selected .designer-badge {
    background: #4CAF50;
    color: white;
}

.search-results-list .designer-item.selected::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    font-size: 20px;
    font-weight: bold;
}

/* ============================================
   撤回按钮样式 订单撤回操作的按钮
   ============================================ */
.btn-warning {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    background: linear-gradient(135deg, #f57c00 0%, #e64a19 100%);
}

/* 附件管理样式 上传和删除附件的样式 */
.attachment-upload-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.attachment-upload-btn:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.2s;
}

.attachment-item:hover {
    background: #f0f1f3;
    border-color: #d0d0d0;
}

.attachment-delete-icon {
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.attachment-delete-icon:hover {
    color: #c82333;
    transform: scale(1.1);
}

/* ============================================
   模态框层级管理 控制弹窗的显示顺序
   ============================================ */
/* 订单详情模态框在最上层 避免被其他弹窗遮挡 */
#orderDetailModal {
    z-index: 1100 !important;
}

/* 分配详情相关模态框 层级稍低一点 */
#assignmentDetailsModal {
    z-index: 1000;
}

#employeeOrdersModal {
    z-index: 1050;
}

/* ============================================
   页面头部按钮组样式 页面右上角的操作按钮
   ============================================ */
.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.header-buttons button {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.header-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.header-buttons .btn-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.header-buttons .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 233, 123, 0.3);
}

/* 响应式 手机上按钮垂直排列 */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-buttons {
        width: 100%;
        margin-left: 0;
    }
    
    .header-buttons button {
        flex: 1;
        justify-content: center;
    }
}

/* ==================== 时间线排序按钮样式 流程监控页的排序按钮 ==================== */
.timeline-sort-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.timeline-sort-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-sort-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.timeline-sort-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.timeline-sort-btn i {
    font-size: 13px;
}

/* 自定义滚动条样式 */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
    transition: background 0.3s;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* 响应式 小屏幕垂直排列 手机上好点 */
@media (max-width: 768px) {
    .timeline-sort-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .timeline-sort-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   批量创建订单样式
   ============================================ */

.modal-large {
    max-width: 1200px !important;
    width: 90% !important;
}

.batch-step {
    padding: 10px 0;
}

.batch-step h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-sm i {
    margin-right: 5px;
}

#batchOrdersPreview table {
    font-size: 13px;
}

#batchOrdersPreview th {
    background: var(--bg-light);
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

#batchOrdersPreview td {
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

#batchOrdersPreview input[type="text"] {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
}

#batchOrdersPreview input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

#batchCreateLog {
    line-height: 1.8;
}

#batchCreateLog > div {
    padding: 4px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

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

@media (max-width: 768px) {
    .modal-large {
        width: 95% !important;
    }
    
    #batchOrdersPreview {
        font-size: 12px;
    }
    
    #batchOrdersPreview th,
    #batchOrdersPreview td {
        padding: 6px 4px;
    }
    
    .header-buttons {
        width: 100%;
    }
    
    .header-buttons button {
        flex: 1;
    }
}

/* ============================================
   批量操作相关样式
   ============================================ */

.batch-actions {
    animation: slideDown 0.3s ease-out;
}

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

/* 订单复选框样式 */
.order-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.order-checkbox:hover {
    transform: scale(1.1);
}

/* 表头复选框 */
#step2SelectAll,
#step3SelectAll {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* 批量操作按钮样式增强 */
.batch-actions .btn-primary,
.batch-actions .btn-secondary {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.batch-actions .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.batch-actions .btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 选中计数器动画 */
#step2SelectedCount,
#step3SelectedCount,
#batchAssistantSelectedCount,
#batchDesignerSelectedCount {
    display: inline-block;
    animation: pulse 0.5s ease;
    color: var(--primary-color);
    font-size: 16px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* 批量分配模态框内的订单列表样式 */
#batchAssistantOrderList,
#batchDesignerOrderList {
    background: white;
}

#batchAssistantOrderList > div,
#batchDesignerOrderList > div {
    transition: background 0.2s ease;
}

#batchAssistantOrderList > div:hover,
#batchDesignerOrderList > div:hover {
    background: #f8f9fa;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .batch-actions {
        padding: 12px !important;
    }
    
    .batch-actions > div {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .batch-actions button {
        width: 100%;
    }
    
    .order-checkbox {
        width: 16px;
        height: 16px;
    }
}

/* ==================== 表格排序样式 ==================== */

/* 可排序的表头样式 */
th.sortable {
    position: relative;
    padding-right: 28px !important;
    transition: background-color 0.2s ease;
}

th.sortable:hover {
    background-color: rgba(102, 126, 234, 0.1) !important;
}

th.sortable.sorted {
    background-color: rgba(102, 126, 234, 0.15) !important;
    font-weight: 600;
}

/* 排序图标容器 */
.sort-icons {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 20px;
}

/* 排序图标样式 */
.sort-icons i {
    font-size: 12px;
    color: #999;
    transition: color 0.2s ease, transform 0.2s ease;
}

.sort-icons .sort-icon-default {
    color: #ccc;
}

th.sortable:hover .sort-icons .sort-icon-default {
    color: var(--primary-color);
}

.sort-icons .sort-icon-asc,
.sort-icons .sort-icon-desc {
    color: var(--primary-color);
    font-weight: bold;
}

/* 排序动画效果 */
@keyframes sortPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
}

th.sortable.sorted .sort-icons i {
    animation: sortPulse 0.3s ease;
}

/* 响应式：移动端排序图标调整 */
@media (max-width: 768px) {
    th.sortable {
        padding-right: 24px !important;
    }
    
    .sort-icons {
        right: 4px;
        width: 14px;
        height: 18px;
    }
    
    .sort-icons i {
        font-size: 10px;
    }
}
