/* ============================================================================
 *  style.css  ——  全站样式
 *  结构：变量 → 基础 → 侧边栏 → 顶栏 → 内容/卡片 → 组件 → 各页面 → 响应式
 *  想换配色：改下面 :root 里的颜色，或在「设置」页里改强调色。
 * ==========================================================================*/

/* ----------------------------------------------------------------- 变量 */
:root {
  --accent: #a78bfa;
  --accent-2: #7c5cf0;
  --accent-soft: rgba(167, 139, 250, 0.16);
  --accent-line: rgba(167, 139, 250, 0.38);

  --sidebar-w: 248px;
  --sidebar-w-collapsed: 70px;
  --topbar-h: 74px;
  --radius: 14px;
  --radius-sm: 10px;
  --gap: 16px;
  --ease: cubic-bezier(0.4, 0.16, 0.2, 1);
}

html[data-theme='dark'] {
  --bg: #0c0912;
  --bg-soft: #100c18;
  --panel: #14101d;
  --card: #191324;
  --card-2: #1f1830;
  --line: #2a2338;
  --line-soft: #221b2f;
  --text: #ece8f5;
  --text-2: #b9b1cb;
  --muted: #837b96;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  --glow: 0 0 0 1px var(--accent-line), 0 10px 26px rgba(124, 92, 240, 0.18);
}

html[data-theme='light'] {
  --bg: #f6f4fb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --card: #ffffff;
  --card-2: #f4f1fb;
  --line: #e4def2;
  --line-soft: #eee9f8;
  --text: #241c33;
  --text-2: #4a4160;
  --muted: #8b839c;
  --shadow: 0 10px 24px rgba(60, 40, 110, 0.1);
  --glow: 0 0 0 1px var(--accent-line), 0 10px 24px rgba(124, 92, 240, 0.14);
}

/* ----------------------------------------------------------------- 基础 */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

/* 背景微光，模仿参考图里的氛围感 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 12% -8%, var(--accent-soft), transparent 65%),
    radial-gradient(620px 380px at 105% 8%, rgba(124, 92, 240, 0.12), transparent 62%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: 0.01em; }
p { margin: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid transparent; background-clip: padding-box; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: padding-box; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.ico { flex: none; }

/* ----------------------------------------------------------------- 布局 */
.layout {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  padding: 4px 30px 40px;
  max-width: 1180px;
  width: 100%;
}

/* --------------------------------------------------------------- 侧边栏 */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 14px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--line-soft);
  transition: width 0.26s var(--ease);
  z-index: 30;
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 4px 14px;
  min-height: 62px;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand__logo {
  font-size: 22px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #140d20;
  box-shadow: 0 6px 18px rgba(124, 92, 240, 0.28);
  flex: none;
}
.brand__img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: 15px; font-weight: 650; white-space: nowrap; }
.brand__sub {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar__nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
  white-space: nowrap;
}
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item__ico { display: grid; place-items: center; width: 20px; flex: none; }
.nav-item__text { flex: 1; font-size: 14px; }
.nav-item__en {
  font-size: 9px; letter-spacing: 0.16em; color: var(--muted);
  opacity: 0; transition: opacity 0.16s var(--ease);
}
.nav-item:hover .nav-item__en { opacity: 1; }

.nav-item.is-active {
  background: linear-gradient(90deg, var(--accent-soft), transparent 92%);
  color: var(--text);
  font-weight: 600;
}
.nav-item.is-active::before {
  content: '';
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-line);
}
.nav-item.is-active .nav-item__en { opacity: 1; color: var(--accent); }

/* 侧边栏底部插槽 */
.sidebar__slots { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }

.mini-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.mini-card__cover {
  width: 42px; height: 42px; flex: none; border-radius: 9px;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(140deg, rgba(245, 158, 11, 0.9), rgba(124, 92, 240, 0.9));
  color: #1b1226;
}
.mini-card__meta { min-width: 0; }
.mini-card__title { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card__sub { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar__tools { display: flex; align-items: center; gap: 4px; }

/* 收起态 */
body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.sidebar-collapsed .brand__text,
body.sidebar-collapsed .nav-item__text,
body.sidebar-collapsed .nav-item__en,
body.sidebar-collapsed .mini-card__meta { display: none; }
body.sidebar-collapsed .sidebar__head { justify-content: center; }
body.sidebar-collapsed .sidebar__collapse { display: none; }
body.sidebar-collapsed .nav-item { justify-content: center; padding: 11px 0; }
body.sidebar-collapsed .mini-card { justify-content: center; padding: 6px; }
body.sidebar-collapsed .sidebar__tools { flex-direction: column; }

/* 手机端抽屉 */
.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 25;
  background: rgba(6, 4, 12, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 0.22s var(--ease);
}

/* ----------------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  min-height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 14px 30px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__title { flex: 1; min-width: 0; }
.page-title { font-size: 21px; font-weight: 650; letter-spacing: 0.01em; }
.page-desc { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.topbar__right { display: flex; align-items: center; gap: 8px; }
.topbar__burger { display: none; }

.search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; min-width: 230px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.search:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 13px;
}
.search input::placeholder { color: var(--muted); }

/* ----------------------------------------------------------------- 按钮 */
.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--accent-line); background: var(--card-2); transform: translateY(-1px); }
.icon-btn--sm { width: 32px; height: 32px; border-radius: 9px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 550;
  cursor: pointer;
  transition: all 0.16s var(--ease);
  white-space: nowrap;
}
.btn:hover { color: var(--text); border-color: var(--accent-line); background: var(--card-2); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #150e22; font-weight: 650;
  box-shadow: 0 8px 20px rgba(124, 92, 240, 0.26);
}
.btn--primary:hover { filter: brightness(1.07); color: #150e22; }
.btn--ghost { background: transparent; }
.btn--danger:hover { color: #ff8a8a; border-color: rgba(255, 120, 120, 0.4); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ----------------------------------------------------------------- 卡片 */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, transparent), var(--card));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card { margin-top: var(--gap); }

.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.card__title { font-size: 14.5px; font-weight: 620; letter-spacing: 0.02em; }
.card__hint { font-size: 12px; color: var(--muted); }
.card__body { padding: 18px 20px; }
.card__body--flush { padding: 0; }

.section-title {
  display: flex; align-items: center; gap: 10px;
  margin: 26px 0 12px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

/* 设置行：左标题+说明，右控件（参考图同款） */
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: 0; }
.row__main { min-width: 0; }
.row__label { font-size: 14px; font-weight: 560; color: var(--text); }
.row__desc { font-size: 12.2px; color: var(--muted); margin-top: 3px; }
.row__ctrl { flex: none; display: flex; align-items: center; gap: 8px; }

/* --------------------------------------------------------------- 开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 25px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch__track {
  position: absolute; inset: 0;
  background: var(--line); border-radius: 999px;
  transition: background 0.2s var(--ease);
}
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.switch input:checked + .switch__track { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.switch input:checked + .switch__track::after { transform: translateX(21px); }

/* 分段控件 */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--card-2); border: 1px solid var(--line); border-radius: 11px; }
.seg button {
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 14px; border-radius: 8px;
  font-size: 12.5px; color: var(--muted); font-weight: 560;
  transition: all 0.16s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--accent); color: #150e22; }

/* 表单控件 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.input, .textarea, .select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13.5px;
  outline: 0;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }

input[type='range'] { -webkit-appearance: none; appearance: none; width: 170px; height: 4px; border-radius: 4px; background: var(--line); outline: 0; }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); cursor: pointer;
}

input[type='color'] { width: 40px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft); cursor: pointer; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; color: var(--text-2);
  background: var(--card-2); border: 1px solid var(--line);
}
.tag--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* 空状态 / 占位块 */
.placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  color: var(--muted);
  background: color-mix(in srgb, var(--card) 55%, transparent);
}
.placeholder__title { color: var(--text-2); font-weight: 600; margin-bottom: 4px; }

/* 网格工具类 */
.grid { display: grid; gap: var(--gap); }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* 首页 hero */
.hero {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 88% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 70%, var(--bg)));
  box-shadow: var(--shadow);
}
.hero__title { font-size: 26px; font-weight: 680; letter-spacing: 0.01em; }
.hero__text { color: var(--text-2); margin-top: 8px; max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.stat { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.stat__label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.stat__value { font-size: 26px; font-weight: 680; margin-top: 6px; }
.stat__unit { font-size: 13px; color: var(--muted); margin-left: 4px; font-weight: 500; }

/* 快捷入口 */
.quick { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: all 0.16s var(--ease); }
.quick:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--glow); }
.quick__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.quick__label { font-weight: 580; }
.quick__sub { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------- 图墙页 */
.wall-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--gap); }
.wall-toolbar .spacer { flex: 1; }

.wall {
  /* 列数由 JS 控制：既读「设置」里的偏好，也跟随屏幕宽度 */
  column-count: var(--wall-cols, 4);
  column-gap: var(--gap);
}
.wall__item, .wall__add {
  break-inside: avoid;
  margin-bottom: var(--gap);
  display: block;
  width: 100%;
}
.wall__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: zoom-in;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.wall__item:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--accent-line); }
.wall__thumb { width: 100%; display: block; background: var(--card-2); }
.wall__thumb--empty {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: var(--muted); font-size: 26px;
}
.wall__meta { padding: 9px 11px; font-size: 12px; }
.wall__name { font-weight: 560; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall__sub { color: var(--muted); font-size: 11px; margin-top: 2px; }

.wall__add {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  min-height: 170px;
  display: grid; place-items: center; gap: 6px;
  color: var(--muted);
  text-align: center;
  transition: all 0.16s var(--ease);
}
.wall__add:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 40px;
  background: rgba(5, 3, 10, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.lightbox__bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #ded8ee; }
.lightbox__close { position: absolute; top: 22px; right: 24px; }

/* --------------------------------------------------------------- 上传页 */
.dropzone {
  border: 1.6px dashed var(--line);
  border-radius: var(--radius);
  padding: 46px 24px;
  text-align: center;
  background: color-mix(in srgb, var(--card) 60%, transparent);
  transition: all 0.18s var(--ease);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dropzone__title { font-size: 15px; font-weight: 600; }
.dropzone__hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.filelist { display: flex; flex-direction: column; }
.fileitem { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); }
.fileitem:last-child { border-bottom: 0; }
.fileitem__thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--card-2); flex: none; }
.fileitem__main { flex: 1; min-width: 0; }
.fileitem__name { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fileitem__sub { font-size: 11.5px; color: var(--muted); }

.progress { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 7px; }
.progress__bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.2s var(--ease); }

/* 上传页两栏 */
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }

/* --------------------------------------------------------------- 页脚 */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 30px 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12.5px;
}
.footer__left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__right { display: flex; align-items: center; gap: 6px; }

/* --------------------------------------------------------------- 提示条 */
.toast-host { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 9px; }
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px);
  transition: all 0.24s var(--ease);
  max-width: 330px;
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast--success { border-color: rgba(110, 231, 183, 0.4); }
.toast--error { border-color: rgba(255, 130, 130, 0.45); }

/* 右下角浮动按钮（参考图右下角那个圆钮） */
.fab {
  position: fixed; right: 24px; bottom: 88px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #150e22;
  box-shadow: 0 12px 26px rgba(124, 92, 240, 0.4);
  transition: transform 0.18s var(--ease);
}
.fab:hover { transform: scale(1.07) rotate(6deg); }

/* 通用小工具 */
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
code { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 12.5px; background: var(--card-2); padding: 2px 6px; border-radius: 6px; }

/* --------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .upload-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed; left: 0; top: 0;
    transform: translateX(-102%);
    transition: transform 0.26s var(--ease);
    box-shadow: var(--shadow);
    width: var(--sidebar-w) !important;
  }
  body.drawer-open .sidebar { transform: translateX(0); }
  body.drawer-open .sidebar-backdrop { opacity: 1; visibility: visible; }
  body.sidebar-collapsed .brand__text,
  body.sidebar-collapsed .nav-item__text,
  body.sidebar-collapsed .mini-card__meta { display: block; }
  .topbar__burger { display: grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 4px 16px 32px; }
  .footer { padding: 14px 16px 20px; }
  .search { min-width: 0; width: 42px; padding: 0 12px; }
  .search input { display: none; }
  .search:focus-within { width: 190px; }
  .search:focus-within input { display: block; }
  .wall { column-count: 2; }
  .row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .wall { column-count: 1; }
  .hero { padding: 22px; }
  .hero__title { font-size: 21px; }
}

/* 打印：藏掉侧边栏，方便导出 */
@media print {
  .sidebar, .topbar, .footer, .fab, .toast-host { display: none !important; }
  .content { padding: 0; }
}
