* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f0f2f5; color: #333; font-size: 14px; line-height: 1.6;
}
a { color: #1890ff; text-decoration: none; }
a:hover { color: #40a9ff; }

/* 左侧侧边栏 */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 200px;
    background: #001529; color: #fff; z-index: 100;
    display: flex; flex-direction: column;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}
.sidebar-brand {
    padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand a { color: #fff; font-size: 16px; font-weight: 600; display: block; }
.sidebar-menu {
    flex: 1; overflow-y: auto; padding: 12px 0;
}
.sidebar-link {
    display: block; color: rgba(255,255,255,0.75); padding: 12px 20px;
    font-size: 14px; transition: all 0.2s; border-left: 3px solid transparent;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar-link.active {
    color: #fff; background: #1890ff; border-left-color: #fff;
}
.sidebar-footer {
    padding: 16px; border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user {
    color: rgba(255,255,255,0.65); font-size: 13px; margin-bottom: 8px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-logout {
    display: block; color: #ff7875; font-size: 13px; padding: 6px 0;
    text-align: center; border: 1px solid rgba(255,120,117,0.3); border-radius: 4px;
}
.sidebar-logout:hover { background: rgba(255,120,117,0.15); color: #ff7875; }

/* 主内容区 */
.main-content {
    margin-left: 200px; min-height: 100vh;
}
.container { width: 100%; margin: 0; padding: 20px 24px; max-width: none; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h2 { font-size: 22px; font-weight: 600; color: #1f1f1f; }
.page-header > div { display: flex; gap: 10px; }
.footer-text { text-align: center; color: #bfbfbf; font-size: 12px; padding: 20px; }

/* 按钮 */
.btn {
    display: inline-block; padding: 8px 18px; border: 1px solid transparent; border-radius: 4px;
    cursor: pointer; font-size: 14px; transition: all 0.2s; text-align: center; line-height: 1.5;
    background: #fff; color: #333; text-decoration: none;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: #1890ff; color: #fff; border-color: #1890ff; }
.btn-success { background: #52c41a; color: #fff; border-color: #52c41a; }
.btn-warning { background: #faad14; color: #fff; border-color: #faad14; }
.btn-danger { background: #ff4d4f; color: #fff; border-color: #ff4d4f; }
.btn-info { background: #13c2c2; color: #fff; border-color: #13c2c2; }
.btn-default { background: #fff; color: #333; border-color: #d9d9d9; }
.btn-default:hover { color: #1890ff; border-color: #1890ff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-xs { padding: 3px 8px; font-size: 12px; }
.btn-lg { padding: 10px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Flash */
.flash { padding: 12px 18px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.flash-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.flash-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
    background: #fff; border-radius: 8px; padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-left: 4px solid #1890ff;
}
.stat-pending { border-left-color: #faad14; }
.stat-doing { border-left-color: #13c2c2; }
.stat-done { border-left-color: #52c41a; }
.stat-income { border-left-color: #722ed1; }
.stat-label { font-size: 13px; color: #8c8c8c; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: #1f1f1f; }

/* 筛选栏 */
.filter-bar { background: #fff; padding: 16px 20px; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.filter-form { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; flex: 1; }
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item label { font-size: 12px; color: #8c8c8c; }
.filter-item select, .filter-item input {
    padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px; min-width: 140px;
}

/* 表格 */
.table-wrapper { background: #fff; border-radius: 8px; overflow-x: auto; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: #fafafa; padding: 14px 16px; text-align: left; font-weight: 600;
    font-size: 13px; color: #595959; border-bottom: 2px solid #f0f0f0; white-space: nowrap;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid #f0f0f0; font-size: 13px; vertical-align: middle; line-height: 1.6; }
.data-table tbody tr:hover { background: #fafafa; }
.data-table .empty-row { text-align: center; padding: 40px; color: #bfbfbf; }
/* 营业日开始订单标记 */
.business-start-row {
    background: linear-gradient(90deg, #e6f7ff 0%, #fff 8%);
    border-left: 3px solid #1890ff;
}
.business-start-row:hover {
    background: linear-gradient(90deg, #bae7ff 0%, #fafafa 8%) !important;
}
.business-start-tag {
    display: inline-block;
    margin-left: 6px;
    font-size: 14px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 翻页控件 */
.pagination-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding-left: 16px;
}
.pagination-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 16px;
    padding: 12px 0;
    flex-wrap: wrap;
}
.page-info {
    color: #8c8c8c;
    font-size: 13px;
    white-space: nowrap;
}
.page-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    color: #595959;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.page-btn:hover:not(.disabled) {
    border-color: #1890ff;
    color: #1890ff;
}
.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.page-current {
    color: #1890ff;
    font-weight: 600;
    font-size: 13px;
    padding: 0 4px;
}
.per-page-select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #595959;
    cursor: pointer;
    background: #fff;
}
.per-page-select:hover {
    border-color: #1890ff;
}

/* 统计看板 + 修改日志 两栏布局 */
.dashboard-with-log {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.dashboard-with-log .dashboard {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}
.order-log-panel {
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
}
.log-panel-header {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}
.log-panel-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}
.log-item {
    padding: 8px 14px;
    border-bottom: 1px solid #fafafa;
    cursor: pointer;
    transition: background 0.2s;
}
.log-item:hover {
    background: #f5faff;
}
.log-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.log-order-id {
    color: #1890ff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.log-action {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}
.log-action-修改订单 { background:#fff7e6;color:#fa8c16; }
.log-action-修改状态 { background:#e6f7ff;color:#1890ff; }
.log-action-通过修改申请 { background:#f6ffed;color:#52c41a; }
.log-action-拒绝修改申请 { background:#fff1f0;color:#ff4d4f; }
.log-action-申请修改 { background:#f9f0ff;color:#722ed1; }
.log-action-上传图片, .log-action-删除图片 { background:#f5f5f5;color:#595959; }
.log-item-detail {
    font-size: 12px;
    color: #595959;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}
.log-item-time {
    font-size: 11px;
    color: #bfbfbf;
}

/* 小屏幕时修改日志放到下方 */
@media (max-width: 1200px) {
    .dashboard-with-log {
        flex-direction: column;
    }
    .order-log-panel {
        width: 100%;
    }
}
.order-no { font-family: monospace; font-weight: 600; color: #1890ff; }
.time-cell { white-space: nowrap; color: #8c8c8c; font-size: 12px; }
.content-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-cell { white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.action-cell form { display: inline; }
.img-count { font-size: 12px; color: #8c8c8c; }
.img-count.has-img { color: #1890ff; font-weight: 600; }

/* 打手标签 */
.worker-tag {
    display: inline-block; background: #e6f7ff; color: #1890ff;
    padding: 2px 8px; border-radius: 10px; font-size: 12px; margin: 1px 2px 1px 0;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.status-待完成 { background: linear-gradient(135deg, #fff7e6, #ffe7ba); color: #d46b08; }
.status-待验收 { background: linear-gradient(135deg, #f9f0ff, #efdbff); color: #722ed1; }
.status-已完成 { background: linear-gradient(135deg, #f6ffed, #d9f7be); color: #389e0d; }
.status-已取消 { background: linear-gradient(135deg, #f5f5f5, #e8e8e8); color: #595959; }
.status-已结账 { background: linear-gradient(135deg, #e6f7ff, #bae7ff); color: #096dd9; }
.status-lg { padding: 5px 18px; font-size: 14px; }

/* 表单 */
.form-card { background: #fff; padding: 24px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.form-card h3 { margin-bottom: 18px; font-size: 16px; color: #1f1f1f; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #595959; font-size: 13px; }
.form-group .required { color: #ff4d4f; }
.form-group input[type="text"], .form-group input[type="number"],
.form-group input[type="password"], .form-group select, .form-group textarea {
    width: 100%; padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px;
    font-size: 14px; transition: border-color 0.2s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.15);
}
.form-group input:disabled { background: #f5f5f5; color: #8c8c8c; }
.form-row { display: flex; gap: 16px; }
.col-half { flex: 1; }
.col-third { flex: 1; }
.col-two-thirds { flex: 2; }
.form-actions {
    display: flex; gap: 12px; margin-top: 20px; padding-top: 16px;
    border-top: 1px solid #f0f0f0; justify-content: flex-start;
}
.form-actions .btn { width: auto; min-width: 120px; }
.inline-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }

/* 打手选择器 */
.worker-selector { border: 1px solid #d9d9d9; border-radius: 6px; overflow: hidden; background: #fff; }
.worker-search-bar {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    background: #fafafa; border-bottom: 1px solid #f0f0f0;
}
.worker-search-bar input {
    flex: 1; padding: 6px 10px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 13px;
}
.worker-search-bar input:focus {
    outline: none; border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.15);
}
.worker-selected-count { font-size: 12px; color: #8c8c8c; white-space: nowrap; }
.worker-selected-count b { color: #1890ff; font-size: 14px; }
.worker-checklist { max-height: 220px; overflow-y: auto; padding: 6px; }
.worker-check-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: 4px; cursor: pointer; transition: background 0.15s; margin-bottom: 2px;
    flex-wrap: wrap;
}
.worker-check-item:hover { background: #e6f7ff; }
.worker-check-item input[type="checkbox"] {
    width: 16px; height: 16px; cursor: pointer; accent-color: #1890ff; flex-shrink: 0;
}
.worker-check-label { display: flex; align-items: center; gap: 8px; flex: 1; cursor: pointer; }
.worker-check-name { font-weight: 600; color: #1f1f1f; min-width: 50px; }
.worker-check-user { color: #8c8c8c; font-size: 12px; }
.worker-income-input {
    display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.worker-income-input .income-label { font-size: 12px; color: #8c8c8c; }
.worker-income-input input {
    width: 80px; padding: 4px 8px; border: 1px solid #d9d9d9;
    border-radius: 4px; font-size: 13px;
}
.worker-income-input .income-unit { font-size: 12px; color: #8c8c8c; }
.no-workers { color: #bfbfbf; text-align: center; padding: 24px; font-size: 13px; }

/* 登录页 */
.login-wrapper { min-height: calc(100vh - 56px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-box {
    background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%; max-width: 400px;
}
.login-title { text-align: center; font-size: 24px; margin-bottom: 8px; color: #1f1f1f; }
.login-subtitle { text-align: center; color: #8c8c8c; margin-bottom: 28px; font-size: 14px; }
.login-form .form-group { margin-bottom: 18px; }
.login-hint {
    margin-top: 24px; padding-top: 18px; border-top: 1px solid #f0f0f0;
    text-align: center; font-size: 12px; color: #bfbfbf; line-height: 1.8;
}

/* 订单详情 */
.detail-card { background: #fff; padding: 24px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.detail-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #f0f0f0;
}
.order-no-large { font-size: 20px; font-weight: 700; font-family: monospace; color: #1f1f1f; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; margin-bottom: 20px; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-full { grid-column: 1 / -1; }
.detail-label { font-size: 12px; color: #8c8c8c; }
.detail-value { font-size: 14px; color: #1f1f1f; word-break: break-all; }
.price-value { color: #f5222d; font-weight: 700; font-size: 18px; }
.status-actions {
    display: flex; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0;
}
.status-change-group { display: flex; align-items: center; gap: 10px; }
.status-change-group select { padding: 6px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }

/* 拖拽上传 */
.upload-section { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.upload-section h3 { margin-bottom: 16px; font-size: 16px; color: #1f1f1f; }
.drop-zone {
    border: 2px dashed #d9d9d9; border-radius: 8px; padding: 36px 24px; text-align: center;
    cursor: pointer; transition: all 0.2s; background: #fafafa; margin-bottom: 16px;
}
.drop-zone:hover { border-color: #1890ff; background: #f0f8ff; }
.drop-zone.dragover { border-color: #1890ff; background: #e6f7ff; transform: scale(1.01); }
.drop-icon { font-size: 40px; margin-bottom: 12px; }
.drop-text p { margin: 4px 0; color: #595959; }
.drop-text strong { font-size: 16px; color: #1f1f1f; }
.drop-hint { font-size: 12px !important; color: #bfbfbf !important; }
.drop-zone .btn { margin-top: 14px; }
.upload-progress { margin-bottom: 16px; }
.progress-bar { width: 100%; height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.progress-fill { height: 100%; background: #1890ff; border-radius: 4px; transition: width 0.2s; width: 0%; }
#progressText { font-size: 12px; color: #8c8c8c; }

/* 图片画廊 */
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.image-item {
    position: relative; border: 1px solid #f0f0f0; border-radius: 6px; overflow: hidden;
    background: #fafafa; transition: box-shadow 0.2s;
}
.image-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.image-item img { width: 100%; height: 140px; object-fit: cover; display: block; cursor: pointer; }
.image-meta { padding: 8px 10px; font-size: 11px; }
.image-name { display: block; color: #595959; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 2px; }
.image-info { color: #bfbfbf; font-size: 10px; }
.image-delete {
    position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%;
    background: rgba(255,77,79,0.9); color: #fff; border: none; cursor: pointer;
    font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.image-item:hover .image-delete { opacity: 1; }
.no-images { grid-column: 1 / -1; text-align: center; padding: 40px; color: #bfbfbf; font-size: 14px; }

/* 图片预览弹窗 */
.image-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 1000; align-items: center; justify-content: center; cursor: pointer;
}
.image-modal img { max-width: 90%; max-height: 90%; border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.modal-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; }

/* 通用弹窗 */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 999; align-items: center; justify-content: center;
}
.modal-content {
    background: #fff; padding: 28px; border-radius: 8px; width: 100%; max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.modal-content h3 { margin-bottom: 12px; }

/* 操作日志时间线 */
.log-timeline { padding-left: 8px; }
.log-item {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}
.log-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 24px;
    bottom: -4px;
    width: 2px;
    background: #f0f0f0;
}
.log-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #1890ff;
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.log-content { flex: 1; }
.log-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.log-action { font-weight: 600; color: #1f1f1f; font-size: 13px; }
.log-user { font-size: 12px; color: #1890ff; }
.log-time { font-size: 12px; color: #bfbfbf; margin-left: auto; }
.log-detail { font-size: 13px; color: #8c8c8c; line-height: 1.5; }

/* 留言聊天 */
.chat-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 12px;
}
.chat-msg { margin-bottom: 14px; }
.chat-mine { text-align: right; }
.chat-other { text-align: left; }
.chat-meta {
    font-size: 11px;
    color: #bfbfbf;
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
}
.chat-mine .chat-meta { justify-content: flex-end; }
.chat-name { color: #8c8c8c; }
.chat-admin { color: #fa8c16 !important; font-weight: 600; }
.chat-bubble {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 75%;
    word-break: break-all;
    text-align: left;
}
.chat-mine .chat-bubble {
    background: #1890ff;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-other .chat-bubble {
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #f0f0f0;
    border-bottom-left-radius: 4px;
}
.chat-input-area {
    display: flex;
    gap: 10px;
}
.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
}
.chat-input-area input:focus {
    outline: none;
    border-color: #1890ff;
}

/* 演示模式横幅 */
.demo-banner {
    background: linear-gradient(90deg, #722ed1, #1890ff);
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 16px;
    border-radius: 6px;
}

/* 分页 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 10px;
}
.pagination-info { font-size: 13px; color: #8c8c8c; }
.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #1890ff;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
.page-ellipsis {
    color: #bfbfbf;
    padding: 0 4px;
}
.demo-login-btn {
    background: #fff;
    color: #1890ff;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
.demo-login-btn:hover { opacity: 0.9; }

/* 统计看板 */
.dashboard { margin-bottom: 20px; }
.dashboard-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.stat-today { border-left-color: #13c2c2; }
.stat-week { border-left-color: #722ed1; }
.stat-month { border-left-color: #eb2f96; }
.stat-sub { font-size: 13px; color: #8c8c8c; margin-top: 4px; }

/* 排行卡片 */
.rank-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    grid-column: span 1;
}
.rank-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.rank-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.rank-no {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #8c8c8c;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    flex-shrink: 0;
}
.rank-top1 { background: #ffd700; color: #fff; }
.rank-top2 { background: #c0c0c0; color: #fff; }
.rank-top3 { background: #cd7f32; color: #fff; }
.rank-name { flex: 1; color: #1f1f1f; }
.rank-income { color: #f5222d; font-weight: 600; font-size: 12px; }
.rank-empty { color: #bfbfbf; text-align: center; padding: 16px 0; font-size: 13px; }

/* 桌面/手机显示控制 */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* 手机端订单卡片 */
.mobile-cards { display: flex; flex-direction: column; gap: 12px; }
.order-card {
    background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    overflow: hidden;
}
.order-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; background: #fafafa; border-bottom: 1px solid #f0f0f0;
}
.order-card-id { font-weight: 700; font-size: 15px; color: #1f1f1f; font-family: monospace; }
.order-card-body { padding: 10px 14px; }
.order-card-row {
    display: flex; padding: 5px 0; font-size: 13px; line-height: 1.5;
    border-bottom: 1px dashed #f5f5f5;
}
.order-card-row:last-child { border-bottom: none; }
.card-label { color: #8c8c8c; min-width: 70px; flex-shrink: 0; }
.card-value { color: #1f1f1f; flex: 1; word-break: break-all; }
.order-card-footer {
    display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.order-card-footer .btn { flex: 1; text-align: center; }

/* 响应式 */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    .sidebar { width: 60px; }
    .sidebar-brand a { font-size: 0; }
    .sidebar-brand a::before { content: '🎮'; font-size: 20px; }
    .sidebar-link { font-size: 0; padding: 14px 0; text-align: center; }
    .sidebar-link::first-letter { font-size: 18px; }
    .sidebar-user { display: none; }
    .main-content { margin-left: 60px; }
    .container { padding: 10px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .page-header h2 { font-size: 18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-value { font-size: 22px; }
    .dashboard-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .rank-card { grid-column: span 2; padding: 12px; }
    .demo-banner { flex-direction: column; gap: 8px; text-align: center; padding: 10px 16px; }
    .filter-form { gap: 8px; }
    .filter-item { flex: 1; min-width: 45%; }
    .filter-item select, .filter-item input { min-width: 0; width: 100%; }
    .detail-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .form-card { padding: 16px; }
    .drop-zone { padding: 24px 16px; }
    .image-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .image-item img { height: 100px; }
    .worker-checklist { max-height: 180px; }
    .table-wrapper { overflow-x: auto; }
}

/* ===== 手机端录单优化（仅在≤768px生效，电脑端布局完全不变） ===== */
@media (max-width: 768px) {
    /* 输入控件加大、字号16px：防iOS点输入框自动缩放，也更好点 */
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group input[type="password"],
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        padding: 12px 12px !important;
        min-height: 46px;
    }
    .form-group label { font-size: 14px; }
    /* 粘贴自动填单区加大 */
    #pasteInput { min-height: 130px !important; font-size: 16px !important; padding: 12px !important; }
    /* 操作按钮：手机端全宽大按钮 */
    .form-actions { flex-direction: column; gap: 10px; }
    .form-actions .btn,
    .form-actions a.btn,
    .form-actions button {
        width: 100%; min-height: 48px; font-size: 16px !important; padding: 13px 20px !important;
    }
    /* 自动识别/清空、模板按钮加大 */
    .form-card .btn, .page-header .btn { min-height: 44px; font-size: 15px; padding: 11px 18px; }
    .form-card button[onclick^="applyTemplate"] { padding: 12px 16px !important; font-size: 15px !important; min-height: 44px; }
    /* 打手选择：复选框、收入框、搜索框加大 */
    .worker-check-item { padding: 12px 10px; }
    .worker-check-item input[type="checkbox"] { width: 22px; height: 22px; }
    .worker-income-input input[type="number"] { font-size: 16px; min-height: 44px; padding: 8px; }
    .worker-search-bar input { min-height: 44px; font-size: 15px; }
}
