/* 轻卡日记 · 管理后台样式 */
:root {
  --bg: #f4f7f3;
  --card: #ffffff;
  --card-2: #f8faf7;
  --text: #17201a;
  --muted: #6b7a70;
  --line: #e2e9e2;
  --primary: #2f9e63;
  --primary-dark: #247d4d;
  --primary-soft: #e8f5ee;
  --accent: #ff8a4c;
  --accent-soft: #fff1e8;
  --danger: #e05757;
  --danger-soft: #fdeeee;
  --warn: #d9962b;
  --blue: #5b7bd5;
  --shadow: 0 10px 30px rgba(23, 32, 26, 0.07);
  --shadow-sm: 0 4px 14px rgba(23, 32, 26, 0.05);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f1512;
  --card: #19221c;
  --card-2: #1e2821;
  --text: #e9f0ea;
  --muted: #91a398;
  --line: #2b3830;
  --primary: #48b97d;
  --primary-dark: #2f9e63;
  --primary-soft: #1c3327;
  --accent: #ff9d68;
  --accent-soft: #33251c;
  --danger: #ee7676;
  --danger-soft: #35201f;
  --warn: #e3ad54;
  --blue: #7b96e3;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 12.5px; }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* 品牌 */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px rgba(47, 158, 99, 0.25); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 16px; font-weight: 800; }
.brand-text small { font-size: 8px; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; margin-top: 3px; }
.brand-light .brand-mark { background: rgba(255, 255, 255, 0.95); color: #2f9e63; }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, 0.7); }

/* 按钮与表单 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent;
  background: var(--card-2); color: var(--text); font-weight: 600; font-size: 13.5px;
  white-space: nowrap; transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 8px 18px rgba(47, 158, 99, .24); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { color: var(--text); border-color: var(--primary); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { height: 34px; padding: 0 13px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; margin-top: 4px; }
.link-btn { border: 0; background: none; color: var(--primary); font-size: 12.5px; font-weight: 600; padding: 4px; border-radius: 8px; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--muted);
  transition: color .18s ease, border-color .18s ease;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .mini-select {
  width: 100%; border-radius: 11px; border: 1px solid var(--line); background: var(--card-2);
  color: var(--text); font-size: 13.5px;
}
.field input, .field select { height: 42px; padding: 0 12px; }
.field textarea { padding: 10px 12px; resize: vertical; line-height: 1.6; }
.field textarea.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }
.field input:focus, .field select:focus, .field textarea:focus, .mini-select:focus, .search-field input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 158, 99, .15);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.masked { height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 11px; background: var(--card-2); border: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; }
.search-field { position: relative; display: flex; align-items: center; min-width: 220px; flex: 1; }
.search-field .ico { position: absolute; left: 12px; color: var(--muted); }
.search-field input { height: 38px; width: 100%; padding: 0 12px 0 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); font-size: 13px; }
.mini-select { width: auto; height: 38px; padding: 0 30px 0 11px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; font-size: 12.5px; }
.switch { width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); position: relative; flex: none; transition: background .2s ease, border-color .2s ease; }
.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--primary); border-color: var(--primary); }
.switch[aria-checked="true"] span { transform: translateX(20px); }

/* 登录 */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-visual {
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  padding: 44px clamp(28px, 5vw, 68px); color: #fff;
  background: linear-gradient(155deg, #3aa86c 0%, #247d4d 55%, #145a37 100%);
  position: relative; overflow: hidden;
}
.login-visual::before, .login-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.login-visual::before { width: 380px; height: 380px; top: -130px; right: -110px; }
.login-visual::after { width: 240px; height: 240px; bottom: -80px; left: -60px; background: rgba(255,255,255,.05); }
.login-visual > * { position: relative; z-index: 1; }
.login-copy h1 { margin: 14px 0 16px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -.02em; }
.login-copy p { margin: 0; max-width: 380px; color: rgba(255,255,255,.8); font-size: 14px; }
.login-copy .eyebrow { color: rgba(255,255,255,.75); }
.login-points { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.8); }
.login-points span { display: inline-flex; align-items: center; gap: 6px; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 36px 22px; background: var(--bg); }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.login-brand-mobile { display: none; }
.login-card h2 { margin: 0; font-size: 23px; letter-spacing: -.01em; }
.login-sub { margin: 7px 0 20px; color: var(--muted); font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 13px; }
.login-hint { margin: 18px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.login-hint b { color: var(--text); }
.login-back { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.login-back:hover { color: var(--primary); }

/* 布局 */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 246px; flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 24px; padding: 26px 18px 20px;
  background: var(--card); border-right: 1px solid var(--line); z-index: 30;
}
.side-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; height: 43px; padding: 0 13px;
  border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 600; text-align: left; transition: background .18s ease, color .18s ease;
}
.nav-item:hover { background: var(--card-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 13px; background: var(--card-2); border: 1px solid var(--line); }
.user-chip div:last-child { min-width: 0; display: flex; flex-direction: column; }
.user-chip strong { font-size: 12.5px; }
.user-chip small { font-size: 11px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 700; font-size: 14px; flex: none; text-transform: uppercase; }

.admin-main { flex: 1; min-width: 0; padding: 20px clamp(16px, 3vw, 36px) 48px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1280px; margin: 0 auto 20px; padding: 10px 0; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
.topbar h1 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.02em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.view { max-width: 1280px; margin: 0 auto; display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 15.5px; letter-spacing: -.01em; }
.card-head p { margin: 3px 0 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 数据看板 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 15px 16px; box-shadow: var(--shadow-sm); }
.stat-card .stat-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); }
.stat-card .stat-label .ico { width: 15px; height: 15px; color: var(--primary); }
.stat-card strong { display: block; font-size: 25px; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat-card small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.lg.users { background: var(--blue); }
.lg.diets { background: var(--primary); }
.lg.weights { background: var(--accent); }
.chart { min-height: 230px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-empty { display: grid; place-items: center; min-height: 220px; color: var(--muted); font-size: 13px; }

.top-food { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.top-food:first-child { border-top: 0; }
.top-food .rank { width: 20px; height: 20px; border-radius: 6px; background: var(--card-2); color: var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.top-food:nth-child(1) .rank, .top-food:nth-child(2) .rank, .top-food:nth-child(3) .rank { background: var(--primary-soft); color: var(--primary); }
.top-food strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.top-food span { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.mini-log { display: flex; gap: 9px; padding: 8px 2px; border-top: 1px dashed var(--line); font-size: 12px; }
.mini-log:first-child { border-top: 0; }
.mini-log time { color: var(--muted); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mini-log b { font-weight: 600; }
.mini-log p { margin: 1px 0 0; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.ai-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.ai-row:first-child { border-top: 0; }
.ai-row span { color: var(--muted); }
.ai-row b { font-weight: 600; }

.badge { display: inline-flex; align-items: center; height: 23px; padding: 0 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.good { background: var(--primary-soft); color: var(--primary); }
.badge.warn { background: var(--accent-soft); color: var(--accent); }
.badge.risk { background: var(--danger-soft); color: var(--danger); }
.badge.blue { background: rgba(91, 123, 213, .12); color: var(--blue); }

/* 工具栏与表格 */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { text-align: left; padding: 11px 13px; white-space: nowrap; }
th { background: var(--card-2); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--card-2); }
td .strong { font-weight: 700; }
td .sub { color: var(--muted); font-size: 11px; }
.right { text-align: right; }
.actions { display: inline-flex; gap: 4px; justify-content: flex-end; }
.mini-btn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.mini-btn:hover { background: var(--card-2); color: var(--primary); }
.mini-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.mini-btn .ico { width: 14px; height: 14px; }

/* 单位编辑器 */
.units-section { margin-top: 16px; }
.units-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text); }
.units-hint { font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.units-list { display: flex; flex-direction: column; gap: 8px; }
.unit-row { display: flex; align-items: center; gap: 8px; }
.unit-row .unit-name { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-size: 13px; }
.unit-row .unit-grams { width: 100px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-size: 13px; }
.unit-gram-label { color: var(--muted); font-size: 12px; }
.unit-list { font-size: 12px; color: var(--muted); }
#add-unit-btn { width: auto; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 12px; }
#add-unit-btn:hover { background: var(--primary); color: #fff; }
.empty-row td { padding: 26px 12px; text-align: center; color: var(--muted); }

/* 食物库导入预览 */
.import-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.import-stat { display: flex; flex-direction: column; gap: 3px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.import-stat span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.import-stat b { font-size: 19px; line-height: 1.2; }
.import-stat.bad b { color: var(--danger); }
.import-stat.good b { color: var(--primary); }
.import-errors { padding: 10px 13px; border: 1px solid var(--danger); border-radius: 12px; background: var(--danger-soft); max-height: 170px; overflow: auto; }
.import-errors p { margin: 0 0 5px; font-size: 12.5px; font-weight: 700; color: var(--danger); }
.import-errors ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.65; }
.import-errors li { margin: 1px 0; }
.import-table { max-height: 380px; overflow: auto; }
.import-table td { white-space: normal; vertical-align: top; }
.change-list { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); }
.change-list em { font-style: normal; font-weight: 700; color: var(--text); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.page-btn { height: 30px; min-width: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12px; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: .45; cursor: not-allowed; }
.page-total { margin-right: auto; }

/* 公告 */
.announce-list { display: flex; flex-direction: column; gap: 10px; }
.announce-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--card-2); }
.announce-item .announce-main { flex: 1; min-width: 0; }
.announce-item strong { font-size: 13.5px; }
.announce-item p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.announce-item .announce-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 11px; color: var(--muted); }
.announce-item .actions { opacity: .7; }

/* 模态与 Toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 20, 16, .5); backdrop-filter: blur(4px); animation: fade .18s ease; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.28); animation: pop .2s ease; }
.modal.wide { width: min(960px, 100%); }
.modal.small { width: min(400px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.confirm-text { margin: 0; padding: 6px 2px 12px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 9px; max-width: min(340px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; animation: slide .22s ease; }
.toast .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; background: var(--primary); flex: none; }
.toast.error .dot { background: var(--danger); }
.toast.info .dot { background: var(--warn); }
.toast p { margin: 0; line-height: 1.5; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 安卓版本发布 */
.release-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.release-fact { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); min-width: 0; }
.release-fact span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.release-fact strong { font-size: 13px; font-weight: 700; word-break: break-word; }
.mono-line { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11.5px !important; letter-spacing: .01em; word-break: break-all; }
.release-tool-note { margin: 12px 0 0; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; border: 2px dashed var(--line); border-radius: 16px; background: var(--card-2); text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone.disabled { opacity: .55; pointer-events: none; }
.dropzone .ico { width: 34px; height: 34px; color: var(--primary); }
.dropzone strong { font-size: 14px; }
.dropzone span { max-width: 560px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.dropzone .btn { margin-top: 4px; }
.upload-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.upload-progress .bar { flex: 1; height: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-2); overflow: hidden; }
.upload-progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); transition: width .15s ease; }
.parse-result { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.parse-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.parse-head strong { font-size: 14px; }
.parse-result .notice { margin: 0; }
.notice { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); font-size: 12.5px; line-height: 1.65; }
.notice strong { font-size: 13px; }
.notice p { margin: 0; }
.notice.warn { border-color: rgba(217, 150, 43, .42); background: var(--accent-soft); color: var(--warn); }
.notice.good { border-color: rgba(47, 158, 99, .35); background: var(--primary-soft); color: var(--primary); }
.notice.risk { border-color: rgba(224, 87, 87, .35); background: var(--danger-soft); color: var(--danger); }
.notice + .notice { margin-top: 10px; }
.notice-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.release-form { margin-top: 16px; }
.release-actions { display: flex; gap: 9px; flex-wrap: wrap; }
#release-package-error { margin-bottom: 12px; }
@media (max-width: 760px) {
  .release-grid { grid-template-columns: 1fr 1fr; }
  .dropzone { padding: 20px 12px; }
  .form-foot.release-foot { flex-direction: column; align-items: flex-start; }
}

/* 响应式 */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .admin-side { width: 210px; padding: 22px 14px 18px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { padding: 28px 24px 30px; gap: 20px; }
  .login-copy h1 { font-size: 32px; margin: 10px 0 10px; }
  .login-copy p { font-size: 13px; }
  .login-points { display: none; }
  .login-panel { padding: 20px 16px 34px; }
  .login-card { border-radius: 20px; padding: 24px; }
  .login-card h2, .login-sub { display: none; }
  .login-brand-mobile { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 800; font-size: 15px; }
  .login-brand-mobile .brand-mark { width: 36px; height: 36px; }
}
@media (max-width: 760px) {
  .admin-shell { flex-direction: column; }
  .admin-side {
    display: flex; position: sticky; top: 0; z-index: 40; width: 100%; height: auto;
    flex-direction: row; align-items: center; gap: 10px; padding: 9px 12px;
    border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto;
  }
  .admin-side .brand, .admin-side .side-foot { display: none; }
  .side-nav { flex-direction: row; gap: 4px; }
  .nav-item { height: 38px; padding: 0 11px; white-space: nowrap; font-size: 12.5px; }
  .nav-item .ico { width: 16px; height: 16px; }
  .admin-main { padding: 14px 14px 34px; }
  .topbar { position: static; margin-bottom: 14px; }
  .topbar h1 { font-size: 19px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .toolbar { gap: 8px; }
  .search-field { min-width: 100%; }
  .modal-body .form-grid { grid-template-columns: 1fr 1fr; }
  .modal-body .form-grid .span-2 { grid-column: span 2; }
  .toast-wrap { right: 12px; left: 12px; bottom: 12px; max-width: none; }
}
@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card strong { font-size: 21px; }
  .card { padding: 14px; }
  .modal-body .form-grid { grid-template-columns: 1fr; }
  .modal-body .form-grid .span-2 { grid-column: span 1; }
  .pagination { justify-content: center; flex-wrap: wrap; }
  .page-total { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
