:root { --primary: #1677ff; --primary-dark: #0958d9; --primary-light: #eaf2ff; --text: #1d2129; --text-2: #4e5969; --text-3: #8a94a6; --border: #eef0f3; --border-2: #e7eaef; --bg: #f7f8fa; --surface: #ffffff; --success: #16a34a; --warning: #f59e0b; --danger: #ef4444; --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04); } * { box-sizing: border-box; } body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; } a { text-decoration: none; color: inherit; } /* 布局 */ .layout { display: flex; min-height: 100vh; } .sidebar { width: 224px; background: var(--surface); border-right: 1px solid var(--border); position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; padding: 20px 16px; } .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; } .brand__logo { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; } .brand__text b { font-size: 15px; color: var(--text); } .brand__text small { display: block; color: var(--text-3); font-size: 12px; margin-top: 1px; } .menu { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; } .menu__item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; cursor: pointer; transition: background 0.15s, color 0.15s; } .menu__item:hover { background: var(--bg); color: var(--text); } .menu__item.is-active { background: var(--primary-light); color: var(--primary); font-weight: 600; } .menu__ico { display: inline-flex; width: 18px; height: 18px; color: currentColor; } .menu__ico svg { width: 18px; height: 18px; } .sidebar__foot { margin-top: auto; font-size: 12px; color: var(--text-3); padding: 8px; } .main { flex: 1; margin-left: 224px; min-width: 0; } .topbar { height: 58px; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(180%) blur(6px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 10; } .topbar__title { font-size: 17px; font-weight: 600; margin: 0; } .admin-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); } .admin-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; } .content { padding: 24px 26px; } /* 统计卡片:干净留白 + 小色点,不用重色边条 */ .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .stat-card { --accent: var(--primary); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; } .stat-card.is-warning { --accent: var(--warning); } .stat-card.is-running { --accent: var(--primary); } .stat-card.is-success { --accent: var(--success); } .stat-card.is-muted { --accent: #c9cdd4; } .stat-card__label { color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 7px; } .stat-card__label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); } .stat-card__value { font-size: 26px; font-weight: 700; margin-top: 12px; letter-spacing: -0.5px; } .stat-card__value small { font-size: 14px; font-weight: 500; color: var(--text-3); } /* 卡片容器 */ .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 18px; } .panel__head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .panel__title { font-size: 15px; font-weight: 600; } /* 过滤条 */ .filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .tabs { display: flex; gap: 4px; } .tab { padding: 6px 13px; border-radius: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; } .tab:hover { background: var(--bg); } .tab.is-active { background: var(--primary-light); color: var(--primary); font-weight: 600; } .input { height: 34px; border: 1px solid var(--border-2); border-radius: 8px; padding: 0 12px; font-size: 13px; outline: none; min-width: 210px; transition: border-color 0.15s; } .input:focus { border-color: var(--primary); } .btn { height: 34px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px; cursor: pointer; transition: background 0.15s, border-color 0.15s; } .btn:hover { background: var(--primary-dark); } .btn--plain { background: #fff; color: var(--text-2); border-color: var(--border-2); } .btn--plain:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); } .btn--sm { height: 28px; padding: 0 11px; font-size: 12px; } .btn--danger { background: #fff; color: var(--danger); border-color: #f6c6c6; } .btn--danger:hover { background: #fef2f2; border-color: var(--danger); } /* 表格 */ .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 13px; } th, td { text-align: left; padding: 13px 16px; white-space: nowrap; } thead th { color: var(--text-3); font-weight: 500; background: #fbfcfd; border-bottom: 1px solid var(--border); } tbody tr { border-bottom: 1px solid var(--border); } tbody tr:last-child { border-bottom: none; } tbody tr:hover { background: #fafcff; } .route-cell { color: var(--text-2); max-width: 240px; white-space: normal; } .route-cell b { color: var(--text); font-weight: 500; } .money { color: var(--text); font-weight: 600; } /* 状态徽标 */ .badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; } .badge--waiting { background: #fff7ed; color: var(--warning); } .badge--running { background: var(--primary-light); color: var(--primary); } .badge--done { background: #f0fdf4; color: var(--success); } .badge--canceled { background: #f4f5f7; color: var(--text-3); } .actions { display: flex; gap: 6px; } /* 分页 */ .pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 18px; } .pager__info { color: var(--text-3); font-size: 13px; } /* 弹窗 */ .modal[hidden] { display: none; } .modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; } .modal__mask { position: absolute; inset: 0; background: rgba(16, 24, 40, 0.35); } .modal__panel { position: relative; width: 660px; max-width: 92vw; max-height: 84vh; overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 20px 48px rgba(16, 24, 40, 0.18); } .modal__head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; } .modal__close { cursor: pointer; font-size: 22px; color: var(--text-3); line-height: 1; } .modal__body { padding: 20px; } .desc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin-bottom: 18px; } .desc-item { font-size: 13px; } .desc-item span { color: var(--text-3); } /* 空态/加载 */ .empty, .loading { padding: 48px; text-align: center; color: var(--text-3); font-size: 14px; } /* toast */ .toast[hidden] { display: none; } .toast { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); background: rgba(29, 33, 41, 0.92); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 200; } /* 表单组件 */ .form-group { margin-bottom: 14px; } .form-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; } .text-danger { color: var(--danger); } .form-hint { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; } code { background: #f5f7fa; padding: 2px 6px; border-radius: 4px; font-size: 12px; color: var(--primary); } @keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } } .btn:hover { animation: fadeIn 0.2s ease; } @media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } } /* ---------- 登录页 ---------- */ .login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef4ff, #dbe7ff); } .login-card { width: 360px; max-width: calc(100vw - 40px); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(20, 46, 92, 0.12); padding: 32px 28px; display: flex; flex-direction: column; align-items: stretch; } .login-card__logo { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #1677ff, #0958d9); color: #fff; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; } .login-card__title { margin: 0; text-align: center; font-size: 19px; font-weight: 800; color: #1d2129; } .login-card__sub { margin: 6px 0 20px; text-align: center; font-size: 13px; color: #86909c; } .login-card__input { margin-bottom: 14px; } .login-card__btn { width: 100%; justify-content: center; padding: 11px 0; font-size: 15px; margin-top: 4px; } .login-card__err { min-height: 18px; margin-top: 12px; text-align: center; font-size: 13px; color: #f53f3f; }