:root {
  --accent: #0071E3; --accent-text: #0066CC; --accent-soft: rgba(0, 113, 227, 0.1);
  --danger: #D70015; --ok: #248A3D; --warn: #9A6200;
  --label: #1C1C1E; --label-2: #5F5F66; --sep: rgba(60, 60, 67, 0.16); --fill: rgba(118, 118, 128, 0.12);
  --bg: #F2F2F7; --card: #FFFFFF; --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--label); font: 14px/1.5 -apple-system, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
h2 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; }
p { margin: 0; }
a { color: var(--accent-text); }
.muted { color: var(--label-2); font-size: 13px; }
.error { color: var(--danger); font-size: 13px; min-height: 20px; }

button { font: inherit; border: 0; border-radius: 8px; padding: 7px 14px; background: var(--fill); color: var(--label); cursor: pointer; }
button:hover { filter: brightness(0.96); }
button:active { filter: brightness(0.9); }
button:disabled { opacity: 0.45; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
button.primary { background: var(--accent); color: #fff; font-weight: 600; }
button.danger { color: var(--danger); background: rgba(215, 0, 21, 0.08); }
button.link { background: none; padding: 0; color: var(--accent-text); }
input, select, textarea { font: inherit; width: 100%; padding: 7px 10px; border: 1px solid var(--sep); border-radius: 8px; background: #fff; color: var(--label); }
input[type=checkbox] { width: auto; }
textarea { min-height: 72px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--label-2); }
label > input, label > select, label > textarea { margin-top: 4px; color: var(--label); font-size: 14px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--label); font-size: 14px; }

.login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 340px; background: var(--card); border-radius: 16px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); }

.shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100%; }
.side { background: rgba(249, 249, 249, 0.9); border-right: 1px solid var(--sep); padding: 20px 12px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; }
.brand { font-weight: 700; font-size: 15px; padding: 0 8px; }
nav { display: grid; gap: 2px; flex: 1; align-content: start; }
nav button { text-align: left; background: none; padding: 8px 10px; white-space: nowrap; }
nav button.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.me { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; font-size: 13px; color: var(--label-2); }
.main { padding: 28px 32px 64px; max-width: 1180px; width: 100%; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--card); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.grid .wide { grid-column: 1 / -1; }
.form-foot { display: flex; gap: 8px; margin-top: 18px; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sep); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--label-2); background: #FAFAFC; }
tr:last-child td { border-bottom: 0; }
td input { padding: 4px 8px; }
.num { font-variant-numeric: tabular-nums; }
.thumb { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--fill); display: block; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--fill); color: var(--label-2); }
.tag.on { background: rgba(36, 138, 61, 0.12); color: var(--ok); }
.tag.warn { background: rgba(154, 98, 0, 0.12); color: var(--warn); }
.tag.bad { background: rgba(215, 0, 21, 0.08); color: var(--danger); }
.empty { padding: 40px; text-align: center; color: var(--label-2); background: var(--card); border-radius: var(--radius); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--label); font-size: 13px; margin-bottom: 16px; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: rgba(28, 28, 30, 0.92); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 10; max-width: 80vw; }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; gap: 8px; }
  nav { grid-auto-flow: column; justify-content: start; overflow-x: auto; }
  .main { padding: 20px 16px 48px; }
  table { display: block; overflow-x: auto; }
}
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.shortcut-form { display: flex; flex-direction: column; gap: 10px; }
.shortcut-form h3 { margin: 0; font-size: 15px; }

/* 备案号：固定在页面底部，所有页面都看得到 */
.icp { position: fixed; left: 0; right: 0; bottom: 0; padding: 6px 0; text-align: center; font-size: 12px; pointer-events: none; }
.icp a { color: var(--muted, #8a8a8e); text-decoration: none; pointer-events: auto; }
.icp a:hover { text-decoration: underline; }
