:root { color-scheme: light; --bg: #f7f7f5; --card: #fff; --text: #1a1a1a; --muted: #6b7280; --line: #e5e7eb; --accent: #2563eb; --warn: #b45309; --urgent: #b91c1c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.brand { font-weight: 700; font-size: 18px; }
.brand-sub { font-size: 13px; color: var(--muted); font-weight: 400; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 15px; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.hero h1 { font-size: 26px; margin: 28px 0 8px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat b { font-size: 22px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-h h2 { margin: 0; font-size: 18px; }
.form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.form input, .form select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 15px; }
.chip-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { border-radius: 999px; padding: 4px 12px; color: #fff; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.chip button { background: none; border: none; color: #fff; cursor: pointer; font-size: 14px; }
.item-list > div { border-top: 1px solid var(--line); padding: 10px 0; }
.item-list > div:first-child { border-top: none; }
.bar { height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.bar > i { display: block; height: 100%; background: var(--accent); }
.alerts { display: grid; gap: 8px; margin-top: 12px; }
.alert { border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.alert.warn { background: #fef3c7; color: #92400e; }
.alert.urgent { background: #fee2e2; color: #991b1b; }
.today-list .today-item { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 10px 0; align-items: center; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.cal-head { font-size: 12px; color: var(--muted); text-align: center; }
.cal-day { min-height: 52px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; font-size: 12px; cursor: pointer; background: #fff; }
.cal-day.empty { border-color: transparent; background: transparent; cursor: default; }
.cal-day .blocks { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.cal-day .blk { border-radius: 4px; color: #fff; padding: 1px 4px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-detail { margin-top: 12px; }
.foot { padding: 24px 0 40px; }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 22px; } .cal-day { min-height: 44px; } }
