/* SQLite 离线管理平台 样式 */
:root {
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;
}
:root[data-theme="dark"] {
  --bg: #12151c;
  --bg2: #171b24;
  --panel: #1b2029;
  --panel2: #20262f;
  --border: #2b323d;
  --border2: #363e4b;
  --text: #dde3ea;
  --muted: #8b95a3;
  --accent: #4f7cff;
  --accent-h: #6b91ff;
  --accent-soft: rgba(79, 124, 255, .14);
  --danger: #e5534b;
  --danger-soft: rgba(229, 83, 75, .12);
  --ok: #3fb27f;
  --warn: #d29922;
  --thead: #20262f;
  --rowhover: rgba(79, 124, 255, .07);
  --selbg: rgba(79, 124, 255, .16);
  --shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
:root[data-theme="light"] {
  --bg: #f3f5f8;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f6f8fa;
  --border: #dde2ea;
  --border2: #ccd3dd;
  --text: #1f2733;
  --muted: #67707d;
  --accent: #2f6bff;
  --accent-h: #1f57e6;
  --accent-soft: rgba(47, 107, 255, .10);
  --danger: #d43f38;
  --danger-soft: rgba(212, 63, 56, .09);
  --ok: #1f9d63;
  --warn: #b07d10;
  --thead: #eef1f5;
  --rowhover: rgba(47, 107, 255, .05);
  --selbg: rgba(47, 107, 255, .12);
  --shadow: 0 12px 40px rgba(30, 40, 60, .22);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

#app { display: flex; flex-direction: column; height: 100vh; }

/* ============ 顶栏 ============ */
#topbar {
  display: flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex: none;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--accent); margin-right: 10px; user-select: none; }
.brand b { color: var(--text); font-weight: 600; }
.spacer { flex: 1; }

/* ============ 主区 ============ */
#main { display: flex; flex: 1; min-height: 0; }

#sidebar {
  width: 250px; flex: none;
  display: flex; flex-direction: column;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  min-height: 0;
}
.sb-top { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); }
.sb-search { flex: 1; min-width: 0; }
.sb-list { flex: 1; overflow-y: auto; padding: 6px 4px 12px; }
.sb-sec {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 4px; color: var(--muted);
  font-size: 11.5px; text-transform: none; letter-spacing: .4px;
}
.sb-sec-n { opacity: .7; }
.sb-item {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 8px; border-radius: 6px; cursor: pointer;
  user-select: none; position: relative;
}
.sb-item:hover { background: var(--rowhover); }
.sb-item.active { background: var(--selbg); color: var(--accent); }
.sb-ic { display: inline-flex; opacity: .85; flex: none; }
.sb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-count { font-size: 11px; color: var(--muted); flex: none; }
.sb-more { display: none; flex: none; }
.sb-item:hover .sb-more { display: inline-flex; }
.sb-more { opacity: .7; }
.sb-empty { color: var(--muted); padding: 6px 10px; font-size: 12.5px; }

#content { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }

#tabs {
  display: flex; gap: 2px; padding: 6px 10px 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex: none;
}
.tab {
  appearance: none; border: none; background: transparent;
  color: var(--muted); font: inherit; cursor: pointer;
  padding: 7px 14px 8px; border-radius: 7px 7px 0 0;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--text); background: var(--rowhover); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--accent-soft); }

#panes { flex: 1; min-height: 0; position: relative; }
.pane { height: 100%; overflow: auto; padding: 12px; display: flex; flex-direction: column; }
#pane-data { padding: 0; overflow: hidden; }

/* ============ 状态栏 ============ */
#statusbar {
  display: flex; align-items: center; gap: 14px;
  height: 26px; padding: 0 12px;
  background: var(--bg2); border-top: 1px solid var(--border);
  font-size: 11.8px; color: var(--muted); flex: none;
}
.sb-item { display: inline-flex; align-items: center; gap: 5px; }
.sb-dirty { color: var(--ok); }
.sb-dirty.on { color: var(--warn); font-weight: 600; }
.sb-offline { color: var(--ok); }

/* ============ 按钮 ============ */
.btn {
  appearance: none; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius);
  border: 1px solid var(--border2);
  background: var(--panel2); color: var(--text);
  white-space: nowrap; user-select: none;
  transition: background .12s, border-color .12s;
}
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-h); border-color: var(--accent-h); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.1); color: #fff; }
.btn-danger-ghost { color: var(--danger); border-color: transparent; background: transparent; }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--rowhover); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; border-radius: 6px; }
.btn-xs { padding: 2px 7px; font-size: 11.5px; border-radius: 5px; }
.btn-lg { padding: 10px 18px; font-size: 14.5px; }
.icon-btn {
  appearance: none; border: none; background: transparent; color: var(--muted);
  cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex;
}
.icon-btn:hover { color: var(--text); background: var(--rowhover); }

/* ============ 表单 ============ */
.f-input, select.f-input, textarea.f-input {
  font: inherit; color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--border2);
  border-radius: 6px; padding: 5px 9px;
  outline: none; min-width: 0;
}
.f-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.f-inline { width: auto; display: inline-block; vertical-align: middle; }
.f-area { width: 100%; min-height: 180px; resize: vertical; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
.f-label { font-weight: 600; font-size: 12.5px; margin: 12px 0 5px; }
.modal-body .f-label:first-child { margin-top: 0; }
.f-check { display: flex; align-items: center; gap: 7px; margin: 5px 0; cursor: pointer; user-select: none; }
.f-check input[type="checkbox"], .f-check input[type="radio"] { accent-color: var(--accent); width: 14px; height: 14px; }
.f-hint { color: var(--muted); font-size: 12px; margin: 6px 0; }

/* ============ 数据网格 ============ */
.grid-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--bg2);
  border-bottom: 1px solid var(--border); flex: none;
}
.gt-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 280px; }
.gt-right { display: flex; align-items: center; gap: 6px; }
.gt-table { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--accent); white-space: nowrap; }
.where-input { flex: 1; min-width: 160px; font-family: var(--mono); font-size: 12px; }

.grid-wrap { flex: 1; overflow: auto; background: var(--bg); min-height: 0; }
.gtable { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 12.6px; }
.gtable th {
  position: sticky; top: 0; z-index: 2;
  background: var(--thead);
  border-bottom: 1px solid var(--border2);
  padding: 6px 10px; text-align: left;
  white-space: nowrap; user-select: none;
}
.gtable th.sortable { cursor: pointer; }
.gtable th.sortable:hover { color: var(--accent); }
.gtable th.sorted { color: var(--accent); }
.th-name { font-weight: 600; }
.th-sub { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.gtable td {
  border-bottom: 1px solid var(--border);
  padding: 5px 10px; max-width: 340px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gtable tbody tr:hover td { background: var(--rowhover); }
.gtable tr.sel td { background: var(--selbg) !important; }
td.cell { cursor: default; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.null { color: var(--muted); font-style: italic; opacity: .75; }
td.blob { color: var(--warn); font-family: var(--mono); font-size: 11.5px; }
td.td-rid, th.th-rid { color: var(--muted); text-align: right; font-size: 11px; background-clip: padding-box; }
td.td-sel, th.th-sel, td.td-rid, th.th-rid { width: 34px; text-align: center; padding: 4px 6px; }
.gtable input[type="checkbox"] { accent-color: var(--accent); cursor: pointer; }
.cell-edit {
  font: inherit; color: var(--text);
  background: var(--bg2); border: 1px solid var(--accent);
  border-radius: 4px; padding: 2px 6px; outline: none;
  width: 100%; min-width: 120px;
}
.empty-row td { border-bottom: none; }
.empty-hint {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px; color: var(--muted); text-align: center;
}
.empty-hint.pad { padding-top: 100px; }
.empty-ic { opacity: .5; }

.tab-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin: 10px 12px 0;
  background: var(--accent-soft); border: 1px solid var(--border2);
  border-radius: var(--radius); font-size: 12.5px; color: var(--text);
}
.tab-banner.err { background: var(--danger-soft); border-color: var(--danger); }
.tab-banner.warn { background: rgba(210, 153, 34, .12); border-color: var(--warn); }

.batchbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 12px; background: var(--panel);
  border-bottom: 1px solid var(--border); flex: none;
}
.bb-count { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12.5px; }

.pager {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 7px 12px; background: var(--bg2);
  border-top: 1px solid var(--border); flex: none;
  font-size: 12.5px;
}
.pg-info b { color: var(--accent); }
.pg-nav { display: flex; align-items: center; gap: 3px; }
.pg-btn {
  appearance: none; border: 1px solid transparent; background: transparent; color: var(--muted);
  cursor: pointer; padding: 4px 6px; border-radius: 6px; display: inline-flex;
}
.pg-btn:hover:not(:disabled) { color: var(--accent); background: var(--rowhover); }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.pg-nums { display: flex; gap: 2px; }
.pg-num {
  appearance: none; border: none; background: transparent; color: var(--text);
  font: inherit; font-size: 12.3px; cursor: pointer;
  min-width: 26px; padding: 4px 6px; border-radius: 6px; text-align: center;
}
.pg-num:hover { background: var(--rowhover); }
.pg-num.cur { background: var(--accent); color: #fff; font-weight: 600; }
.pg-num.dots { cursor: default; color: var(--muted); }
.pg-num.dots:hover { background: transparent; }
.pg-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pg-size { width: auto; font-size: 12px; padding: 3px 6px; }
.pg-jump { width: 70px; font-size: 12px; padding: 3px 6px; }

/* ============ 卡片 / 通用表 ============ */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13.5px; margin-bottom: 10px; color: var(--text);
}
.card-title svg { color: var(--accent); }
.card-extra { margin-left: auto; display: flex; gap: 6px; }
.stable { border-collapse: collapse; width: 100%; font-size: 12.8px; }
.stable th, .stable td { border-bottom: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.stable th { color: var(--muted); font-weight: 500; font-size: 11.8px; white-space: nowrap; }
.stable tbody tr:hover { background: var(--rowhover); }
.row-ops { white-space: nowrap; }
.row-ops .btn { margin-right: 4px; }
.badge {
  display: inline-block; font-size: 10.3px; padding: 1px 6px;
  border-radius: 9px; background: var(--panel2); border: 1px solid var(--border2);
  color: var(--muted); vertical-align: middle;
}
.badge-pk { color: var(--warn); border-color: var(--warn); background: rgba(210, 153, 34, .1); }
.muted { color: var(--muted); }
.code { font-family: var(--mono); font-size: 12px; }
.pad-sm { padding: 6px 2px; }
.ddl { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; overflow: auto; max-height: 300px; white-space: pre; margin: 0; }

.st-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.st-actions .spacer { flex: 1; }

.fk-item { padding: 5px 0; font-size: 12.5px; border-bottom: 1px dashed var(--border); }
.fk-item:last-child { border-bottom: none; }

/* 新建表 */
.ct-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.ct-name { width: 160px; flex: none; }
.ct-type { width: 110px; flex: none; }
.ct-def { flex: 1; min-width: 100px; }
.ct-cb { margin: 0 !important; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ct-preview { max-height: 160px; }
.idx-cols { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow: auto; }

/* 行编辑表单 */
.row-form { max-height: 380px; overflow: auto; margin-top: 8px; }
.rf-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rf-name { width: 150px; flex: none; font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-type { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted); }
.rf-row .f-input { flex: 1; }
.rf-null { flex: none; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; cursor: pointer; }
.rf-null input { accent-color: var(--accent); }
.cell-edit-modal textarea { margin: 8px 0; }

/* ============ SQL 控制台 ============ */
.qe-wrap { flex: none; display: flex; flex-direction: column; }
.qe-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qe-db { font-size: 12px; }
.qe-editor {
  font-family: var(--mono); font-size: 13px; line-height: 1.55;
  color: var(--text); background: var(--panel);
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 12px; min-height: 150px; resize: vertical; outline: none;
  width: 100%;
}
.qe-editor:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.qr-wrap { flex: 1; min-height: 120px; margin-top: 12px; }
.qr-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ok); font-size: 12.8px;
}
.qr-set .card-title { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.qr-table { max-height: 420px; }
.qr-wrap .gtable th { position: static; }
.qr-error {
  background: var(--danger-soft); border: 1px solid var(--danger);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px;
}
.qr-err-title { display: flex; align-items: center; gap: 8px; color: var(--danger); font-weight: 600; margin-bottom: 6px; }

/* ============ 导入导出 ============ */
.io-card { max-width: 720px; }
.io-desc { color: var(--muted); font-size: 12.8px; margin-bottom: 12px; line-height: 1.6; }
.io-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.io-progress { margin-top: 10px; color: var(--accent); font-size: 12.8px; min-height: 18px; }
.exp-list { max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin-bottom: 4px; }
.exp-item { margin: 3px 0 !important; }
.exp-name { flex: 1; display: inline-flex; align-items: center; gap: 6px; }
.exp-group { color: var(--muted); font-size: 11.5px; margin: 8px 0 2px; }
.fmt-row { display: flex; gap: 18px; flex-wrap: wrap; }
.fmt-opts { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 44px 20px; cursor: pointer;
  border: 2px dashed var(--border2); border-radius: var(--radius);
  background: var(--panel); transition: border-color .15s, background .15s;
  text-align: center;
}
.drop-zone:hover, .drop-zone.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-ic { color: var(--accent); opacity: .8; }
.drop-txt { font-size: 14px; font-weight: 600; }
.imp-preview { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; margin: 8px 0; }
.imp-preview .gtable th { position: static; background: var(--thead); }
.map-box { max-height: 200px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; }
.map-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.map-row .code { width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.tgt-box { border-left: 2px solid var(--border2); padding-left: 12px; margin: 6px 0 6px 6px; }

/* ============ 菜单 ============ */
.menu {
  position: fixed; z-index: 3000;
  min-width: 210px; max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 5px;
  animation: menuIn .1s ease-out;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px;
  white-space: nowrap;
}
.menu-item:hover { background: var(--rowhover); color: var(--accent); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-soft); }
.menu-item.disabled { opacity: .45; cursor: not-allowed; }
.menu-item.disabled:hover { background: transparent; color: inherit; }
.mi-icon { display: inline-flex; width: 16px; justify-content: center; opacity: .85; }
.mi-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.mi-check { color: var(--accent); display: inline-flex; }
.menu-sep { height: 1px; background: var(--border); margin: 5px 8px; }

/* ============ 弹窗 ============ */
.modal-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000;
  background: rgba(8, 10, 14, .55);
  backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px;
  overflow: auto;
  animation: ovIn .15s ease-out;
}
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  width: 100%; max-width: 560px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  max-height: 86vh;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  flex: none;
}
.modal-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.modal-title svg { color: var(--accent); }
.modal-body { padding: 14px 16px; overflow: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--border);
  flex: none;
}
.confirm-body { line-height: 1.7; font-size: 13.5px; padding: 4px 0; }
.confirm-body b { color: var(--accent); }
.confirm-body code { background: var(--panel2); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 12px; }

/* ============ Toast ============ */
#toast-box {
  position: fixed; top: 56px; right: 16px; z-index: 4000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border2); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 10px 14px;
  box-shadow: var(--shadow);
  max-width: 380px; font-size: 13px;
  animation: toastIn .2s ease-out;
  pointer-events: auto;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transform: translateX(24px); transition: all .3s; }
.toast .t-ic { display: inline-flex; color: var(--accent); flex: none; }
.toast.success { border-left-color: var(--ok); }
.toast.success .t-ic { color: var(--ok); }
.toast.error { border-left-color: var(--danger); }
.toast.error .t-ic { color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
.toast.warn .t-ic { color: var(--warn); }
.t-msg { word-break: break-all; }

/* ============ Hero ============ */
#hero {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  overflow: auto;
}
.hero-card { text-align: center; max-width: 560px; padding: 30px; }
.hero-ic { color: var(--accent); opacity: .9; margin-bottom: 14px; }
.hero-card h1 { font-size: 24px; margin: 0 0 10px; }
.hero-sub { color: var(--muted); line-height: 1.7; margin: 0 0 24px; }
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.hero-drop { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ============ 拖拽遮罩 ============ */
#drop-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 5000;
  background: rgba(20, 30, 60, .72);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
#drop-overlay.show { display: flex; }
.drop-inner { text-align: center; color: #fff; }
.drop-big { font-size: 54px; margin-bottom: 8px; }
.drop-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.drop-sub { opacity: .85; font-size: 13px; }

/* ============ 关于 ============ */
.about-wrap { max-width: 860px; }
.about-body { line-height: 1.8; font-size: 13.2px; }
.about-body h3 { font-size: 13.5px; margin: 18px 0 6px; color: var(--accent); }
.about-body ul { margin: 6px 0; padding-left: 20px; }
.about-body li { margin: 3px 0; }
.about-body code { background: var(--panel2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 11.5px; }

@media (max-width: 860px) {
  #sidebar { width: 200px; }
  .where-input { min-width: 100px; }
}
