/* ============================================================ 代打台 · 管理端 主题::root 为亮色;暗色由系统偏好或 [data-theme] 覆盖 设计语汇:纸感底色 + 墨色文字 + 松墨绿主色;色签(ticket)是唯一强装饰 ============================================================ */ :root { --paper: #f7f6f2; --surface: #ffffff; --surface-2: #fcfcfa; --ink: #1a1c21; --ink-2: #43474f; --muted: #7a7e86; --line: #e3e0d6; --line-2: #efede6; --accent: #2f5d50; --accent-ink: #22453b; --accent-soft: #e7efea; --danger: #b4231f; --danger-soft: #fbeceb; --warn: #a85e12; --warn-soft: #fbf1e3; --info: #41556b; --info-soft: #eaeef2; --hover: #f2f7f4; --shadow: 0 12px 32px -26px rgba(26, 28, 33, 0.8); --radius: 3px; --mono: "Bahnschrift", "Consolas", "SF Mono", ui-monospace, monospace; --sans: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif; } /* 暗色令牌:系统偏好 + 手动选择共用 */ @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #111317; --surface: #181b20; --surface-2: #1e2228; --ink: #e8eaee; --ink-2: #c2c7cf; --muted: #8b929c; --line: #2b3038; --line-2: #23272e; --accent: #6bb8a3; --accent-ink: #8fd0bd; --accent-soft: rgba(107, 184, 163, 0.16); --danger: #e8776f; --danger-soft: rgba(232, 119, 111, 0.16); --warn: #e0a862; --warn-soft: rgba(224, 168, 98, 0.16); --info: #93a7bd; --info-soft: rgba(147, 167, 189, 0.16); --hover: #1f242b; --shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.9); } } :root[data-theme="dark"] { --paper: #111317; --surface: #181b20; --surface-2: #1e2228; --ink: #e8eaee; --ink-2: #c2c7cf; --muted: #8b929c; --line: #2b3038; --line-2: #23272e; --accent: #6bb8a3; --accent-ink: #8fd0bd; --accent-soft: rgba(107, 184, 163, 0.16); --danger: #e8776f; --danger-soft: rgba(232, 119, 111, 0.16); --warn: #e0a862; --warn-soft: rgba(224, 168, 98, 0.16); --info: #93a7bd; --info-soft: rgba(147, 167, 189, 0.16); --hover: #1f242b; --shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.9); } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { margin: 0; padding: 0; } body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 2px; } h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; } h1 { font-size: 22px; } h2 { font-size: 15px; } h3 { font-size: 13px; } h4 { font-size: 13px; } .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; } .small { font-size: 12px; } .muted { color: var(--muted); } .right { text-align: right; } .text-urgent { color: var(--danger); } /* ---------- 顶栏 ---------- */ .topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 0 20px; height: 56px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); } .brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; } .brand:hover { text-decoration: none; } .brand-mark { display: grid; place-items: center; width: 26px; height: 26px; background: var(--accent); color: var(--paper); font-size: 14px; font-weight: 700; border-radius: 2px; box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 22%, transparent); } .brand-name { font-weight: 700; letter-spacing: 0.06em; } .search { position: relative; flex: 1 1 260px; max-width: 380px; } .search input { width: 100%; height: 34px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--ink); } .search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .search kbd { position: absolute; right: 8px; top: 7px; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; background: var(--paper); } .nav { display: flex; gap: 2px; } .nav a { padding: 6px 10px; border-radius: var(--radius); color: var(--ink-2); font-size: 13px; } .nav a:hover { background: var(--surface); text-decoration: none; } .nav a.on { background: var(--accent); color: var(--paper); } .nav a.nav-screen { color: var(--accent); } .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; } .pill { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--ink-2); white-space: nowrap; } .pill b { font-family: var(--mono); font-size: 13px; } .pill:hover { text-decoration: none; border-color: var(--accent); } .pill-due b { color: var(--danger); } .pill-warn b { color: var(--warn); } .theme-toggle { display: inline-grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); cursor: pointer; font-size: 14px; line-height: 1; } .theme-toggle:hover { border-color: var(--accent); color: var(--accent); } .theme-toggle .ic-sun { display: none; } :root[data-theme="dark"] .theme-toggle .ic-sun { display: inline; } :root[data-theme="dark"] .theme-toggle .ic-moon { display: none; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: inline; } :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; } } .auth-theme { position: fixed; top: 14px; right: 14px; z-index: 50; background: var(--surface); } .me { display: flex; align-items: center; gap: 8px; font-size: 13px; } .me a { color: var(--ink-2); } .link-btn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font: inherit; font-size: 12px; } .link-btn:hover { color: var(--danger); } /* ---------- 提示条 ---------- */ .flash { position: fixed; z-index: 90; left: 50%; top: 68px; transform: translateX(-50%); max-width: min(680px, calc(100vw - 32px)); padding: 9px 16px; background: var(--accent); color: var(--paper); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); font-size: 13px; animation: flash-in 0.22s ease-out; } .flash-error { background: var(--danger); } .flash.hide { opacity: 0; transition: opacity 0.4s ease; } @keyframes flash-in { from { opacity: 0; transform: translate(-50%, -6px); } } /* ---------- 布局 ---------- */ main { padding: 0 20px 40px; } main.with-top { padding-top: 22px; } .page { max-width: 1280px; margin: 0 auto; } .page.narrow { max-width: 860px; } .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; } .page-head p { margin: 4px 0 0; font-size: 12px; } .page-actions { display: flex; gap: 8px; flex-wrap: wrap; } .foot { max-width: 1280px; margin: 0 auto; padding: 18px 20px 28px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); } .notice { margin: 0 0 14px; padding: 10px 14px; background: var(--warn-soft); border-left: 3px solid var(--warn); font-size: 13px; border-radius: 0 var(--radius) var(--radius) 0; } .notice.note { background: var(--accent-soft); border-left-color: var(--accent); white-space: pre-wrap; } /* ---------- 按钮与表单 ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; text-decoration: none; } .btn:hover { border-color: var(--ink-2); text-decoration: none; } .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--paper); } .btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); } .btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); } .btn-ghost:hover { background: var(--surface); border-color: var(--line); } .btn-urgent { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); } .btn-sm { height: 28px; padding: 0 10px; font-size: 12px; } .btn-square { width: 34px; padding: 0; font-size: 18px; line-height: 1; } .btn-block { width: 100%; } .btn.disabled { opacity: 0.4; pointer-events: none; } form { margin: 0; } fieldset { border: 0; margin: 0; padding: 0; min-width: 0; } .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; } .field > span { font-size: 12px; color: var(--ink-2); font-weight: 600; } .field > span i { color: var(--danger); font-style: normal; } .field input[type="text"], .field input[type="password"], .field input[type="number"], .field input[type="date"], .field input[type="search"], .field select, .field textarea { width: 100%; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--ink); } .field textarea { resize: vertical; line-height: 1.6; } .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .field input[type="color"] { width: 100%; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; } .check-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; } .check-line input { margin-top: 3px; accent-color: var(--accent); } .check-line span { font-size: 13px; font-weight: 600; color: var(--ink-2); } .check-line small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; } .radios { display: grid; gap: 8px; } .radios label { display: grid; grid-template-columns: 18px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; } .radios label:hover { border-color: var(--accent); } .radios input { grid-row: span 2; margin: 0; accent-color: var(--accent); } .radios b { font-size: 13px; } .radios small { grid-column: 2; color: var(--muted); font-size: 12px; } .input-suffix { position: relative; } .input-suffix input { padding-right: 40px; } .input-suffix b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); font-weight: 400; } .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; } .actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .actions.wrap { flex-wrap: wrap; } .inline-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 12px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); } .inline-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); } .inline-field input, .inline-field select { height: 32px; padding: 0 8px; min-width: 130px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 13px; color: var(--ink); } .inline-form select[name="package_id"] { min-width: 220px; } .form.card, .section.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; } .filterbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; } .filterbar input[type="search"], .filterbar select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--ink); } .filterbar input[type="search"] { flex: 1 1 260px; max-width: 420px; } /* ---------- 认证页 ---------- */ .auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; } .auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 28px; box-shadow: var(--shadow); } .auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 18px; } .auth-card h1 { font-size: 20px; margin-bottom: 4px; } .auth-card > p { font-size: 12px; margin: 0 0 18px; } .auth-foot { margin-top: 16px !important; text-align: center; } .form .btn-block { margin-top: 4px; } /* ---------- 套餐标签(日历/大屏共用) ---------- */ .pkg-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); } .pkg-tabs a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13px; text-decoration: none; } .pkg-tabs a i { width: 8px; height: 8px; border-radius: 50%; background: var(--tab, var(--accent)); display: inline-block; } .pkg-tabs a em { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 0 5px; } .pkg-tabs a:hover { border-color: var(--accent); text-decoration: none; } .pkg-tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--paper); } .pkg-tabs a.on em { background: color-mix(in srgb, var(--paper) 25%, transparent); color: var(--paper); } /* ---------- 日历 ---------- */ .cal-page { max-width: 1400px; margin: 0 auto; } .cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; } .cal-title { display: flex; align-items: center; gap: 10px; } .cal-title h1 { font-size: 20px; font-family: var(--mono); letter-spacing: 0.02em; } .cal-stats { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; } .cal-stats em { font-family: var(--mono); font-style: normal; font-size: 16px; color: var(--ink); margin-right: 4px; } .cal-stats .text-urgent em { color: var(--danger); } .cal-body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; align-items: start; } .cal-grid { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; } .cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); } .cal-dow span { padding: 7px 0; text-align: center; font-size: 12px; color: var(--muted); } .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); } .cal-cell { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 112px; padding: 6px 7px 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; transition: background 0.12s ease; } .cal-cell:nth-child(7n) { border-right: 0; } .cal-cell:hover { background: var(--hover); text-decoration: none; } .cal-cell.out { opacity: 0.4; } .cal-cell.weekend .dnum { color: var(--muted); } .cal-cell.sel { box-shadow: inset 0 0 0 2px var(--accent); z-index: 2; } .cal-cell.today .dnum { background: var(--accent); color: var(--paper); border-radius: 50%; width: 22px; height: 22px; display: inline-grid; place-items: center; } .cal-cell.has-due::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 3px; border-bottom: 1px dashed color-mix(in srgb, var(--danger) 45%, transparent); } .cal-cell.heat-1 { background: color-mix(in srgb, var(--accent) 5%, transparent); } .cal-cell.heat-2 { background: color-mix(in srgb, var(--accent) 9%, transparent); } .cal-cell.heat-3 { background: color-mix(in srgb, var(--accent) 14%, transparent); } .cal-cell.heat-4 { background: color-mix(in srgb, var(--accent) 20%, transparent); } .cal-cell.heat-0:hover, .cal-cell.heat-1:hover { background: var(--hover); } .cell-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; } .cell-badges { display: inline-flex; align-items: center; gap: 4px; } .dnum { font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1.4; } .urgent-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); display: inline-block; box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 22%, transparent); } .due-badge { display: inline-flex; align-items: baseline; gap: 2px; font-size: 10px; padding: 0 5px; line-height: 16px; background: var(--danger); color: #fff; border-radius: 2px; white-space: nowrap; } .due-badge em { font-style: normal; opacity: 0.85; } .cell-load { font-family: var(--mono); font-size: 10px; color: var(--accent); } .cell-tickets { display: flex; flex-direction: column; gap: 2px; margin-top: auto; overflow: hidden; } .ticket { display: inline-flex; align-items: baseline; gap: 3px; max-width: 100%; min-width: 0; padding: 1px 5px; font-size: 10.5px; line-height: 16px; border-left: 3px solid var(--tag, var(--accent)); background: color-mix(in srgb, var(--tag, var(--accent)) 13%, var(--surface)); border-radius: 1px 2px 2px 1px; white-space: nowrap; color: var(--ink-2); } .ticket b { font-family: var(--mono); font-size: 11px; color: var(--ink); flex: 0 0 auto; } .ticket .tk-name { overflow: hidden; text-overflow: ellipsis; } .ticket i { font-style: normal; font-size: 9.5px; color: var(--muted); flex: 0 0 auto; } .ticket.done { opacity: 0.55; } .ticket.done::after { content: "✓"; color: var(--accent); font-size: 10px; } .ticket.skipped { opacity: 0.4; text-decoration: line-through; } .ticket.more { border-left-color: var(--line); background: var(--paper); color: var(--muted); } .ticket.urgent { border-left-color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent); } /* ---------- 当日抽屉 ---------- */ .drawer { position: sticky; top: 72px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: calc(100vh - 100px); overflow-y: auto; } .drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--paper); border-bottom: 1px solid var(--line); } .drawer-head h2 { font-size: 14px; font-family: var(--mono); } .drawer-tags { display: flex; gap: 4px; } .drawer-block { padding: 12px 14px; border-bottom: 1px solid var(--line-2); } .drawer-block:last-child { border-bottom: 0; } .drawer-block h3 { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; letter-spacing: 0.02em; } .drawer-block h3 em { font-family: var(--mono); font-style: normal; font-size: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; color: var(--muted); } .drawer-block p { margin: 0; font-size: 12px; } /* 快速完成 */ .quick-form { display: flex; gap: 6px; margin-bottom: 4px; } .quick-form input[type="text"] { flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: inherit; font-size: 13px; font-family: var(--mono); color: var(--ink); } .quick-form input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } .quick-hint { margin: 0 0 10px !important; font-size: 11px; line-height: 1.4; } /* 选择面板 */ .picker { margin: 8px 0 12px; padding: 10px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface-2); } .picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .picker-head h4 { font-size: 13px; } .pick-list { list-style: none; margin: 0 0 8px; padding: 0; } .pick-list li { border-bottom: 1px dashed var(--line-2); } .pick-list li:last-child { border-bottom: 0; } .pick-list label { display: flex; align-items: center; gap: 7px; padding: 6px 0; cursor: pointer; font-size: 12px; } .pick-list input[type="checkbox"] { accent-color: var(--accent); } .pick-pkg { color: var(--ink-2); } .pick-remain { margin-left: auto; font-family: var(--mono); color: var(--muted); font-size: 11px; } .due-list, .task-list, .mini-due, .checkin-list { list-style: none; margin: 0; padding: 0; } .due-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); } .due-list li:last-child { border-bottom: 0; } .due-main { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink); } .due-main .pkg, .task-meta .pkg { font-size: 11px; color: var(--muted); } .due-main .rem { font-family: var(--mono); font-size: 11px; color: var(--danger); } .task { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); } .task:last-child { border-bottom: 0; } .task.urgent { border-left: 3px solid var(--danger); padding-left: 8px; margin-left: -8px; border-radius: 2px; background: color-mix(in srgb, var(--danger) 5%, transparent); } .task-main { min-width: 0; flex: 1 1 auto; } .task-title { display: flex; align-items: center; gap: 6px; color: var(--ink); flex-wrap: wrap; } .task-meta { display: flex; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 2px; } .task-note { font-size: 11px; color: var(--ink-2); margin-top: 2px; } .task-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; max-width: 190px; } .task.done .task-title, .task.skipped .task-title { opacity: 0.5; } .task.skipped .task-title .ticket { text-decoration: line-through; } .tag-urgent { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; font-size: 10px; line-height: 1; color: #fff; background: var(--danger); border-radius: 2px; letter-spacing: 0.02em; white-space: nowrap; } .mini-due li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 12px; } .sm-date { font-family: var(--mono); font-size: 11px; color: var(--muted); } /* ---------- 状态标签 ---------- */ .chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; font-size: 11px; line-height: 1; border-radius: 2px; border: 1px solid transparent; white-space: nowrap; } .chip-active { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 25%, transparent); } .chip-pending { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); } .chip-paused { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); } .chip-expired { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); } .chip-usedup { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); } .chip-closed { background: var(--paper); color: var(--muted); border-color: var(--line); } .chip-plain { background: var(--paper); color: var(--ink-2); border-color: var(--line); } .tagchip { display: inline-block; margin-right: 4px; padding: 0 6px; height: 19px; line-height: 19px; font-size: 11px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; } .due { font-size: 11px; } .due-today { color: var(--danger); font-weight: 700; } .due-warn { color: var(--warn); } .due-expired { color: var(--muted); } .due-ok, .due-none { color: var(--muted); } .plus { color: var(--accent); font-family: var(--mono); } .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; } .dot.big { width: 12px; height: 12px; margin: 0; } /* ---------- 表格 ---------- */ .table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-x: auto; } .table { width: 100%; border-collapse: collapse; font-size: 13px; } .table th { text-align: left; padding: 9px 12px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; } .table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; } .table tbody tr:last-child td { border-bottom: 0; } .table tbody tr:hover { background: var(--hover); } .table.tight td, .table.tight th { padding: 7px 10px; } .table .col-dot { width: 28px; } .table tr.archived { opacity: 0.6; } .actions-cell { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .tail { display: inline-block; font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--accent-ink); letter-spacing: 0.04em; } .name { font-weight: 600; color: var(--ink); } .summary { font-size: 12px; color: var(--ink-2); } .pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; } .pager-info { font-size: 12px; color: var(--muted); font-family: var(--mono); } .empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); } .empty p { margin: 0; color: var(--muted); font-size: 13px; } .empty-mark { width: 46px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); color: var(--muted); font-size: 12px; transform: rotate(-4deg); } /* ---------- 客户详情 ---------- */ .cust-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; margin-bottom: 16px; } .cust-id { display: flex; align-items: center; gap: 14px; } .cust-tail { font-family: var(--mono); font-size: 30px; font-weight: 700; line-height: 1; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); letter-spacing: 0.06em; } .cust-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .cust-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; } .cust-meta dt { font-size: 11px; color: var(--muted); } .cust-meta dd { margin: 0; font-size: 12px; color: var(--ink-2); } .section { margin-top: 22px; } .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; } .section-head h2 { font-size: 14px; } .section-head .muted { font-size: 11px; } .section.card h2 { margin-bottom: 12px; } .subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; } .subcard { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tag, var(--accent)); border-radius: var(--radius); display: flex; flex-direction: column; } .subcard-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px 6px; } .subcard-head h3 { font-size: 13px; flex: 1 1 auto; } .subcard-head .unit { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 0 4px; } .subcard-body { padding: 0 12px 10px; } .subcard-big { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: 0.01em; } .subcard-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; } .bar { height: 5px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin-top: 8px; } .bar i { display: block; height: 100%; background: var(--tag, var(--accent)); } .subcard-foot { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px dashed var(--line); background: var(--surface-2); } .timeline { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 16px 10px; } .tl-axis { position: relative; height: 18px; margin-left: 92px; margin-right: 150px; border-bottom: 1px solid var(--line-2); } .tl-tick { position: absolute; top: 0; font-family: var(--mono); font-size: 10px; color: var(--muted); transform: translateX(-50%); } .tl-row { display: grid; grid-template-columns: 84px 1fr 142px; gap: 8px; align-items: center; padding: 5px 0; } .tl-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tl-track { position: relative; height: 20px; background: var(--line-2); border-radius: 2px; } .tl-bar { position: absolute; top: 4px; height: 12px; background: var(--tag); border-radius: 2px; } .tl-bar.st-paused { opacity: 0.45; } .tl-bar.st-closed { background: var(--muted); opacity: 0.6; } .tl-pause { position: absolute; top: 4px; height: 12px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 45%, transparent) 0 4px, color-mix(in srgb, var(--muted) 18%, transparent) 4px 8px); border-radius: 1px; } .tl-due { position: absolute; top: 1px; bottom: 1px; width: 2px; background: var(--danger); } .tl-legend { font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: right; } .checkin-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); font-size: 12px; } .checkin-list li:last-child { border-bottom: 0; } /* ---------- 追加面板 ---------- */ .extend { margin-top: 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 80px; } .drawer .extend { margin: 12px 14px; } .extend-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); } .extend-head h3 { font-size: 14px; } .extend-head p { margin: 2px 0 0; font-size: 11px; } .extend-close { font-size: 20px; line-height: 1; color: var(--ink-2); padding: 0 4px; } .extend-form { padding: 14px; } .extend-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; padding: 10px; margin-bottom: 10px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); } .extend-preview div { display: flex; flex-direction: column; gap: 1px; } .extend-preview span { font-size: 10px; color: var(--muted); } .extend-preview b { font-family: var(--mono); font-size: 13px; font-weight: 600; } .extend-preview b i { font-style: normal; font-size: 18px; color: var(--accent); } .extend-preview .add b { color: var(--accent); } .extend-hint { margin: 0 0 10px; font-size: 11px; color: var(--muted); } .minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 12px; margin-bottom: 12px; } .minimonth { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; } .minimonth-title { font-size: 11px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; text-align: center; } .minimonth-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; } .minimonth-grid .dow { text-align: center; font-size: 10px; color: var(--muted); } .miniday { height: 28px; border: 1px solid transparent; border-radius: 2px; background: transparent; font: inherit; font-size: 11px; font-family: var(--mono); color: var(--ink-2); cursor: pointer; padding: 0; } .miniday:hover:not(:disabled) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); } .miniday.out { color: color-mix(in srgb, var(--muted) 55%, transparent); } .miniday.old { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); font-weight: 700; } .miniday.today { outline: 1px solid var(--accent); } .miniday.picked { background: var(--accent); color: var(--paper); border-color: var(--accent); font-weight: 700; } .miniday:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); cursor: not-allowed; } /* ---------- 设置页杂项 ---------- */ .kv { display: grid; gap: 6px; margin: 0 0 14px; } .kv > div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: baseline; } .kv dt { font-size: 11px; color: var(--muted); } .kv dd { margin: 0; font-size: 12px; word-break: break-all; } .backups { margin-top: 12px; font-size: 12px; } .backups summary { cursor: pointer; color: var(--ink-2); } .backups ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); } .tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; } .tabs a { padding: 7px 12px; font-size: 13px; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; } .tabs a:hover { text-decoration: none; color: var(--ink); } .tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; } /* ---------- 响应式 ---------- */ @media (max-width: 1180px) { .cal-body { grid-template-columns: 1fr; } .drawer { position: static; max-height: none; } .cust-head { grid-template-columns: 1fr; } } @media (max-width: 860px) { .topbar { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px; } .search { order: 3; flex-basis: 100%; max-width: none; } .nav { order: 4; flex-basis: 100%; overflow-x: auto; } .topbar-right { order: 2; margin-left: auto; } main { padding: 0 12px 32px; } .cal-grid { overflow-x: auto; } .cal-week, .cal-dow { min-width: 640px; } .cal-cell { min-height: 96px; } .grid-2, .grid-3 { grid-template-columns: 1fr; } .cust-tail { font-size: 24px; } .tl-row { grid-template-columns: 70px 1fr; } .tl-legend { display: none; } .tl-axis { margin-right: 0; } .extend-preview { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .pill { display: none; } .cal-week, .cal-dow { min-width: 0; } .cal-cell { min-height: 64px; padding: 3px; } .dnum { font-size: 12px; } .due-badge { font-size: 9px; padding: 0 4px; line-height: 14px; } .due-badge em { display: none; } .cell-load { display: none; } .cell-tickets { display: none; } .task { flex-direction: column; } .task-actions { max-width: none; justify-content: flex-start; } } @media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } } /* ---------- 打手颜色 ---------- */ /* 日历格左侧竖条:同一天有几种打手就分几段 */ .asg-strip { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; width: 5px; overflow: hidden; border-radius: 2px 0 0 2px; z-index: 1; } .asg-strip i { display: block; flex: 1 1 0; min-height: 3px; background: var(--muted); } .asg-strip.sm { width: 3px; } .cal-cell { padding-left: 12px; } /* 打手标签:小圆点 + 名字 */ .asg { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); white-space: nowrap; } .asg i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex: 0 0 auto; } .asg.none { color: var(--muted); } .asg.none i { background: var(--muted); opacity: 0.55; } /* 待办行左侧打手色(加急时红底仍在,色条让位给背景) */ .task { border-left: 3px solid var(--asg, transparent); padding-left: 8px; margin-left: -3px; } .task.urgent { border-left-color: var(--danger); } /* 设置页颜色表单 */ .color-form { display: flex; align-items: center; gap: 6px; } .color-form input[type="color"] { width: 34px; height: 26px; padding: 1px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; } /* 客户详情里的快速指派 */ .assign-form { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; } .assign-form select { height: 26px; padding: 0 6px; font-size: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); } .cust-meta dd { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; } @media (max-width: 560px) { .asg { font-size: 10px; } .assign-form { margin-left: 0; } } /* ---------- 日历格子:大字待完成/总数 ---------- */ .cal-cell { justify-content: flex-start; } .cell-count { flex: 1 1 auto; display: flex; align-items: baseline; justify-content: center; gap: 4px; padding-top: 4px; font-family: var(--mono); color: var(--muted); } .cell-count b { font-size: 26px; line-height: 1; font-weight: 700; color: var(--ink); } .cell-count span { font-size: 12px; color: var(--muted); } .cell-count b:first-child { color: var(--accent); } .cal-cell.today .cell-count b { color: var(--accent-ink); } .cal-cell.out .cell-count b { color: var(--muted); } /* ---------- 抽屉时钟 ---------- */ .drawer-clock { position: sticky; top: 0; z-index: 3; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 14px 6px; background: var(--surface); border-bottom: 1px solid var(--line-2); } .drawer-clock b { font-family: var(--mono); font-size: 22px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; } .drawer-clock span { font-size: 11px; color: var(--muted); font-family: var(--mono); } .drawer-head { top: 44px; } /* ---------- 数字小键盘 ---------- */ .keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 12px; } .keypad button { height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: 17px; font-weight: 600; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; } .keypad button:hover { border-color: var(--accent); } .keypad button:active { background: var(--accent-soft); } .keypad .key-back { color: var(--ink-2); font-size: 15px; } .keypad .key-ok { background: var(--accent); border-color: var(--accent); color: var(--paper); } .keypad .key-ok:hover { background: var(--accent-ink); border-color: var(--accent-ink); } /* ---------- 任务行“更多”菜单 ---------- */ .more-actions { position: relative; } .more-actions > summary { list-style: none; cursor: pointer; width: 28px; padding: 0; justify-content: center; font-size: 16px; line-height: 1; } .more-actions > summary::-webkit-details-marker { display: none; } .more-actions[open] > summary { background: var(--accent-soft); border-color: var(--accent); } .more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; gap: 2px; min-width: 124px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); } .more-menu .btn { justify-content: flex-start; width: 100%; height: 30px; border-color: transparent; background: transparent; } .more-menu .btn:hover { background: var(--accent-soft); border-color: transparent; } /* ---------- v1.6 精修 ---------- */ /* 小键盘:3 列 4 行,底行 ⌫ 0 ✓ */ .keypad { grid-template-columns: repeat(3, 1fr); gap: 8px; } .keypad .key { height: 52px; font-size: 20px; font-weight: 600; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent); transition: background .12s ease, transform .06s ease; } .keypad .key:hover { border-color: var(--accent); color: var(--accent); } .keypad .key:active { transform: translateY(1px); background: var(--accent-soft); } .keypad .key-fn { font-size: 17px; color: var(--ink-2); background: var(--surface-2); } .keypad .key-ok { font-size: 22px; background: var(--accent); border-color: var(--accent); color: var(--paper); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent); } .keypad .key-ok:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); } /* 格子计数:靠左、垂直居中、主题绿 */ .cell-count { justify-content: flex-start; align-items: center; gap: 5px; padding: 0 0 0 1px; } .cell-count b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.02em; } .cell-count span { font-size: 15px; color: var(--muted); } /* 抽屉时钟:放大、水平垂直居中 */ .drawer-clock { flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 14px 14px 10px; } .drawer-clock b { font-size: 30px; font-weight: 700; letter-spacing: 0.08em; } .drawer-clock span { font-size: 11px; letter-spacing: 0.14em; } .drawer-head { top: 76px; } /* 已完成:每条折叠成一行 */ .task.task-done { padding: 6px 0; } .done-fold > summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; padding: 1px 0; min-width: 0; } .done-fold > summary::-webkit-details-marker { display: none; } .done-fold > summary .pkg { font-size: 11px; color: var(--muted); } .done-fold > summary .fold-caret { margin-left: auto; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--muted); transition: transform 0.15s ease; } .done-fold > summary:hover .fold-caret { border-top-color: var(--accent); } .done-fold > summary:hover .pkg { color: var(--ink-2); } .done-fold[open] > summary .fold-caret { transform: rotate(180deg); } .done-detail { margin: 6px 0 2px; padding-left: 9px; border-left: 1px dashed var(--line); } /* ---------- v1.7:客户详情月历 ---------- */ .minical-nav { display: flex; align-items: center; gap: 8px; } .minical-nav b { font-family: var(--mono); font-size: 13px; } .minical { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; max-width: 560px; } .minical-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); } .minical-dow span { padding: 5px 0; text-align: center; font-size: 11px; color: var(--muted); } .minical-row { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 54px; } .minical-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 12px; } .minical-cell:nth-child(7n) { border-right: 0; } .minical-cell:hover { background: var(--hover); text-decoration: none; } .minical-cell.out { opacity: 0.35; } .minical-cell.today { box-shadow: inset 0 0 0 2px var(--accent); } .minical-cell.no-task { color: var(--muted); } .minical-cell .mc-day { font-family: var(--mono); font-size: 12px; font-weight: 600; } .minical-cell .mc-count { font-family: var(--mono); font-size: 10px; color: var(--accent); line-height: 1; } .minical-cell.all-done .mc-count { color: var(--muted); } .minical-cell.all-done .mc-day { color: var(--muted); } .minical-cell.today .mc-day { color: var(--accent); } /* 触控模式按钮 */ .keypad-toggle { min-width: 40px; padding: 0 8px; font-size: 12px; } .keypad-toggle.on { background: var(--accent); border-color: var(--accent); color: var(--paper); } /* ---------- v1.8:包赛季色带 ---------- */ .cal-cell { padding-bottom: 10px; } .season-band { position: absolute; left: 0; right: 0; bottom: 2px; height: 5px; background: var(--sc, var(--accent)); opacity: 0.55; pointer-events: none; } .season-band.start { border-top-left-radius: 3px; border-bottom-left-radius: 3px; left: 2px; } .season-band.end { border-top-right-radius: 3px; border-bottom-right-radius: 3px; right: 2px; } .cal-cell.has-due .season-band { bottom: 4px; } /* ---------- v1.8.1:已结束订阅置灰 ---------- */ .subcard.is-closed { opacity: 0.55; filter: saturate(0.5); background: var(--surface-2); } .subcard.is-closed:hover { opacity: 0.8; }