/* ============================================================
   30 · 审美训练
   暗色、克制、编辑感的界面。图片是主角，其余都往后退。
   ============================================================ */

:root {
  --bg: #0c0d0f;
  --bg-elev: #14161a;
  --surface: #17191e;
  --surface-2: #1d2026;
  --line: #262a31;
  --line-soft: #1f2329;
  --text: #ece9e2;
  --text-dim: #a2a7ae;
  --muted: #767c85;
  --accent: #e3c88f;
  --accent-dim: #a68d5f;
  --accent-glow: rgba(227, 200, 143, 0.14);
  --danger: #d96a5f;
  --ok: #7fbf9a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Songti SC", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(227, 200, 143, 0.055), transparent 60%),
    radial-gradient(900px 600px at 8% 105%, rgba(120, 160, 255, 0.04), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px;
}

button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.micro { font-size: 11.5px; color: var(--muted); font-weight: 400; letter-spacing: 0.02em; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(12, 13, 15, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-num {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  border: 1px solid rgba(227, 200, 143, 0.28);
  border-radius: 8px;
  padding: 5px 9px 7px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 24px rgba(227, 200, 143, 0.07);
}

.brand-text h1 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.brand-text p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.tabs {
  display: flex;
  gap: 2px;
  margin-left: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 6px 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color 0.18s, background 0.18s;
}
.tab:hover { color: var(--text); }
.tab.active {
  background: var(--surface-2);
  color: var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--muted);
  min-width: 62px;
  justify-content: flex-end;
}
.counter strong { color: var(--accent); font-weight: 500; font-size: 24px; }
.counter.full strong { color: var(--danger); }
.counter .sep { opacity: 0.4; }

/* ---------------- 布局 ---------------- */
main {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px) clamp(16px, 4vw, 42px) 0;
}

.view { display: none; animation: fade 0.24s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: all 0.18s ease;
  white-space: nowrap;
  user-select: none;
}
.btn:hover { border-color: #3a4048; background: var(--surface-2); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.primary {
  background: linear-gradient(180deg, #ecd6a6, var(--accent));
  border-color: transparent;
  color: #1a1508;
  font-weight: 600;
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.danger { color: var(--danger); border-color: rgba(217, 106, 95, 0.32); background: transparent; }
.btn.danger:hover { background: rgba(217, 106, 95, 0.1); }
.btn.small { padding: 5px 12px; font-size: 12px; }
.btn.big { padding: 12px 26px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

.album-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.album-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.notice {
  border: 1px solid rgba(227, 200, 143, 0.24);
  background: linear-gradient(180deg, rgba(227, 200, 143, 0.08), transparent);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-bottom: 16px;
}

/* ---------------- 相册网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.22s, box-shadow 0.22s;
  animation: cardIn 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
@keyframes cardIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } }

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 200, 143, 0.3);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.9);
}
.card img { width: 100%; height: 100%; object-fit: cover; }

.card-veil {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 10px 9px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.card:hover .card-veil { opacity: 1; transform: none; }

.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.chip-mini {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f2efe8;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

.card-meta { font-size: 10.5px; color: rgba(255, 255, 255, 0.6); }

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.7);
  border: 1px solid rgba(227, 200, 143, 0.4);
  color: var(--accent);
  backdrop-filter: blur(6px);
}

.slot-empty {
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #3a4048;
  font-family: var(--serif);
  font-size: 22px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: rgba(255, 255, 255, 0.008);
}
.slot-empty:hover { border-color: var(--accent-dim); color: var(--accent-dim); background: var(--accent-glow); }

/* ---------------- 多选与批量删除 ---------------- */
.bulk-bar {
  position: sticky;
  top: 72px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  background: rgba(23, 25, 30, 0.93);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.9);
  animation: pop 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.bulk-count {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.bulk-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.card.selecting { cursor: pointer; }
.card.selecting .card-veil { opacity: 0; }
.card.selected {
  border-color: rgba(227, 200, 143, 0.75);
  box-shadow: 0 0 0 2px rgba(227, 200, 143, 0.45), 0 18px 34px -18px #000;
}
.card.selected img { filter: brightness(0.62) saturate(0.8); }

.sel-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(12, 13, 15, 0.5);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #1a1508;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}
.card.selected .sel-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.card.selected .sel-dot::after { content: "✓"; font-weight: 700; }

.bulk-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-height: 150px;
  overflow: auto;
  padding: 2px;
}
.bulk-strip img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
}
.bulk-strip .more {
  width: 54px;
  height: 72px;
  border-radius: 7px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.bulk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 4px; }
.mode-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
  color: var(--text);
}
.mode-card b { display: block; font-size: 13.5px; margin-bottom: 5px; font-weight: 600; }
.mode-card small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.mode-card:hover { border-color: var(--accent-dim); background: rgba(227, 200, 143, 0.06); transform: translateY(-1px); }
.mode-card.danger:hover { border-color: rgba(217, 106, 95, 0.5); background: rgba(217, 106, 95, 0.07); }
.mode-card.danger b { color: var(--danger); }

.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 80px 20px 120px;
  text-align: center;
  color: var(--text-dim);
}
.empty-state.show { display: flex; }
.empty-mark {
  font-family: var(--serif);
  font-size: 92px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 200, 143, 0.35);
  letter-spacing: 0.03em;
}
.empty-state p { margin: 0; font-size: 14px; }

/* ---------------- 时间线 ---------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.stat .k { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; }
.stat .v { font-family: var(--serif); font-size: 26px; line-height: 1.25; color: var(--accent); }
.stat .v small { font-size: 12px; color: var(--muted); margin-left: 3px; font-family: var(--font); }

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 6%, var(--line) 94%, transparent);
}

.event { position: relative; margin-bottom: 26px; }
.event::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent-dim);
}
.event.evict::before { border-color: var(--danger); background: rgba(217, 106, 95, 0.5); }

.event-date {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.event-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  flex-wrap: wrap;
}

.event-thumbs { display: flex; gap: 8px; align-items: center; }
.event-thumbs img {
  width: 62px;
  height: 82px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.event-thumbs .arrow { color: var(--muted); font-size: 13px; letter-spacing: -0.05em; }
.event-thumbs .gone img { opacity: 0.34; filter: grayscale(0.75); }

.event-text { flex: 1; min-width: 220px; }
.event-title { font-size: 13px; margin-bottom: 3px; }
.event-title b { color: var(--accent); font-weight: 600; }
.event-title .out { color: var(--danger); }
.event-q { font-size: 12.5px; color: var(--text-dim); margin: 4px 0 0; }
.event-q .ask { color: var(--muted); }
.event-q .ans { color: var(--text); }
.event-note {
  font-size: 12.5px;
  color: var(--accent);
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(227, 200, 143, 0.35);
  font-style: italic;
}

/* ---------------- 面板 / 报告 ---------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.panel h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.report-grid .panel { margin-bottom: 0; }
.panel.wide { grid-column: 1 / -1; }

.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-item { display: grid; grid-template-columns: 92px 1fr 46px; align-items: center; gap: 12px; }
.bar-label { font-size: 12.5px; color: var(--text); }
.bar-label small { display: block; color: var(--muted); font-size: 10.5px; letter-spacing: 0.04em; }
.bar-track { height: 6px; background: var(--bg-elev); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  width: 0;
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.bar-fill.fade { background: linear-gradient(90deg, #6a4b47, var(--danger)); }
.bar-val {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.curve-wrap { width: 100%; overflow: hidden; }
.curve-wrap svg { width: 100%; height: auto; display: block; }

.portrait { font-size: 15px; line-height: 1.95; color: #e6e2d9; }
.portrait p { margin: 0 0 16px; }
.portrait .lead {
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.7;
  color: var(--accent);
  margin-bottom: 18px;
}
.portrait ol { margin: 0 0 12px; padding-left: 20px; }
.portrait li { margin-bottom: 8px; }
.portrait-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 18px; }

.quotes { display: flex; flex-direction: column; gap: 12px; }
.quote {
  padding: 12px 16px;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(227, 200, 143, 0.3);
  font-size: 13.5px;
  line-height: 1.8;
}
.quote .who { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* ---------------- 表单 ---------------- */
.field { display: block; margin-bottom: 16px; }
.field label, .field > span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}
.field input[type="text"],
.field input[type="password"],
.field input:not([type]),
#coachInput {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-size: 13.5px;
}
.field input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(227, 200, 143, 0.1);
}
.field small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 6px; line-height: 1.6; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 18px; cursor: pointer; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }

.method { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 13.5px; line-height: 1.95; }
.method b { color: var(--text); font-weight: 600; }

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 7, 8, 0.78);
  backdrop-filter: blur(10px);
  animation: fade 0.18s ease;
}
.modal-card {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px 20px;
  box-shadow: var(--shadow);
  animation: pop 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.wide-card { width: min(1180px, 100%); }
@keyframes pop { from { opacity: 0; transform: scale(0.975) translateY(10px); } }

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.modal-head h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* 一进一出 */
.evict-stage { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.label-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.evict-new-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(227, 200, 143, 0.3);
  aspect-ratio: 3 / 4;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(227, 200, 143, 0.05);
}
.evict-new-img img { width: 100%; height: 100%; object-fit: cover; }
.evict-new-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }

.evict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  max-height: 460px;
  overflow: auto;
  padding: 2px;
}
.evict-cell {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, filter 0.16s;
}
.evict-cell img { width: 100%; height: 100%; object-fit: cover; }
.evict-cell:hover { transform: scale(1.05); border-color: var(--danger); filter: saturate(1.15); }
.evict-cell:hover::after {
  content: "删";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(150, 40, 34, 0.55);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.evict-dialogue { margin-top: 22px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
.dialogue-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.dialogue-head img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  filter: grayscale(0.5);
  opacity: 0.75;
}
.dialogue-head p { margin: 0; font-size: 13px; color: var(--text-dim); }

.dlg-questions { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.dlg-q {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
}
.dlg-q .qt { font-size: 13.5px; margin-bottom: 9px; line-height: 1.7; }
.dlg-q .qt em { color: var(--accent); font-style: normal; }
.dlg-q input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  outline: none;
  font-size: 13px;
}
.dlg-q input:focus { border-color: var(--accent-dim); }

.q-skeleton { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.dots { display: inline-flex; gap: 3px; }
.dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-dim);
  animation: blink 1.1s infinite;
}
.dots i:nth-child(2) { animation-delay: 0.16s; }
.dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* 标注 */
.tag-body { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: start; }
.tag-preview { position: sticky; top: 0; }
.tag-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.tag-preview .btn { width: 100%; margin-bottom: 6px; }

.tag-dims { display: flex; flex-direction: column; gap: 16px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.dim-group .dim-name {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.dim-group .dim-name b { color: var(--text-dim); font-weight: 500; letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-dim);
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
  user-select: none;
}
.chip:hover { border-color: #3d434b; color: var(--text); }
.chip.on {
  background: rgba(227, 200, 143, 0.14);
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* 看大图 */
.light-card {
  width: auto;
  max-width: min(1100px, 96vw);
  padding: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.light-card > img {
  max-height: 78vh;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto;
}
.light-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px 2px;
  flex-wrap: wrap;
}

/* ---------------- 教练 ---------------- */
.coach {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(380px, calc(100vw - 32px));
  background: rgba(20, 22, 26, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px -22px rgba(0, 0, 0, 0.9);
  z-index: 60;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.coach.collapsed { transform: translateY(calc(100% - 46px)); }
.coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.coach-title { display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: 0.06em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background 0.3s; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(127, 191, 154, 0.7); }
.dot.busy { background: var(--accent); animation: blink 1s infinite; }

.coach-log {
  max-height: 340px;
  min-height: 120px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.75;
  animation: pop 0.2s ease;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.bot { background: var(--surface); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.msg.me {
  align-self: flex-end;
  background: rgba(227, 200, 143, 0.13);
  border: 1px solid rgba(227, 200, 143, 0.22);
  color: #f0e9d9;
  border-bottom-right-radius: 4px;
}
.msg.sys { align-self: center; font-size: 11.5px; color: var(--muted); background: none; }

.coach-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line-soft); }
.coach-form input { flex: 1; }

/* ---------------- 其它 ---------------- */
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(227, 200, 143, 0.09);
  border: 2px dashed rgba(227, 200, 143, 0.45);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.drop-overlay span {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 36px);
  color: var(--accent);
  letter-spacing: 0.06em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 120;
  background: rgba(28, 31, 37, 0.96);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toastIn 0.26s cubic-bezier(0.2, 0.8, 0.3, 1);
  max-width: 90vw;
  text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2b3038; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4048; }

@media (max-width: 860px) {
  .topbar { gap: 12px; flex-wrap: wrap; }
  .brand-text p { display: none; }
  .tabs { order: 3; width: 100%; justify-content: space-between; margin-left: 0; }
  .tab { flex: 1; }
  .counter { margin-left: auto; }
  .report-grid { grid-template-columns: 1fr; }
  .evict-stage { grid-template-columns: 1fr; }
  .evict-grid { max-height: 260px; }
  .tag-body { grid-template-columns: 1fr; }
  .tag-preview { position: static; display: flex; gap: 10px; align-items: flex-start; }
  .tag-preview img { width: 110px; margin-bottom: 0; }
  .tag-dims { max-height: none; }
  .coach { right: 10px; left: 10px; width: auto; bottom: 10px; }
  body { padding-bottom: 200px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .bulk-bar { top: 112px; border-radius: 16px; padding: 10px 12px; }
  .bulk-actions { width: 100%; }
  .bulk-modes { grid-template-columns: 1fr; }
}
