/* ============================================================
   收藏库 · 简约风格样式
   中性灰白配色，无强装饰，信息层级清晰
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --border: #e8e8ed;
  --border-2: #d9d9de;
  --text: #1d1d1f;
  --text-2: #86868b;
  --text-3: #aeaeb2;
  --accent: #1d1d1f;
  --danger: #e5484d;
  --gold: #c98a06;
  --green: #3f9e5c;
  --blue: #4a90d9;
  --gray-g: #94949a;
  --red-g: #d05c58;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 8px rgba(0,0,0,.04);
  --shadow-hover: 0 6px 22px rgba(0,0,0,.12);
  --shadow-modal: 0 12px 48px rgba(0,0,0,.18);
  --topbar-h: 56px;
  --sidebar-w: 228px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-width: 1120px; /* PRD：最小页面宽度 1120px */
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3d3d8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b9b9c0; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500; border: 1px solid transparent;
  transition: all .15s ease; white-space: nowrap;
}
.btn-dark { background: var(--accent); color: #fff; }
.btn-dark:hover { background: #3a3a3e; }
.btn-dark:disabled { background: #c7c7cc; cursor: not-allowed; }
.btn-ghost { background: #fff; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #cf3040; }
.btn-block { width: 100%; }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; border-radius: 7px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all .15s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: #ededf0; color: var(--text); }
.icon-btn.active { background: var(--accent); color: #fff; }

/* ============ 密码锁屏 ============ */
.lock-screen {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #f6f6f8 0%, #ececed 100%);
}
.lock-card {
  width: 340px; padding: 40px 36px 32px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-modal);
  text-align: center; animation: popIn .3s ease;
}
.lock-logo {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border-radius: 16px; background: var(--accent); color: #fff;
  font-size: 26px; font-weight: 600; line-height: 56px;
}
.lock-title { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.lock-sub { margin-top: 6px; font-size: 12px; color: var(--text-2); }
.lock-form { margin-top: 28px; text-align: left; }
.lock-input {
  width: 100%; height: 40px; padding: 0 14px; margin-bottom: 12px;
  border: 1px solid var(--border-2); border-radius: 9px;
  font-size: 14px; outline: none; transition: border .15s;
}
.lock-input:focus { border-color: var(--text); }
.lock-error { margin: 10px 0 0; font-size: 12px; color: var(--danger); }
.lock-tip { margin: 14px 0 0; font-size: 11px; color: var(--text-3); text-align: center; }

@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============ 应用布局 ============ */
.app { height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 0 12px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: relative; z-index: 20;
}
.tabs { display: flex; gap: 4px; height: 100%; }
.tab {
  position: relative; display: flex; align-items: center; gap: 7px;
  padding: 0 18px; font-size: 15px; color: var(--text-2);
  transition: color .15s;
}
.tab .tab-icon { font-size: 15px; opacity: .85; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); font-weight: 600; }
.tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%); width: 22px; height: 3px;
  background: var(--accent); border-radius: 2px 2px 0 0;
}
.topbar-actions { display: flex; gap: 4px; }

.layout { flex: 1; display: flex; min-height: 0; }

/* ============ 左侧导航树 ============ */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--surface); border-right: 1px solid var(--border);
  overflow-y: auto; padding: 14px 10px 24px;
}
.sidebar-nav { user-select: none; }
.side-mid { margin-bottom: 2px; }
.side-mid-head {
  display: flex; align-items: center; gap: 6px;
  width: 100%; padding: 7px 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: background .12s;
}
.side-mid-head:hover { background: #f2f2f5; }
.side-arrow {
  width: 0; height: 0; margin-right: 2px;
  border-left: 4.5px solid var(--text-3); border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  transition: transform .18s ease;
}
.side-mid.expanded .side-arrow { transform: rotate(90deg); }
.side-subs { overflow: hidden; }
.side-sub {
  position: relative; display: flex; align-items: center;
  padding: 6px 10px 6px 30px; border-radius: 8px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
  transition: all .12s;
}
.side-sub:hover { background: #f2f2f5; color: var(--text); }
.side-sub.active { background: #ededf0; color: var(--text); font-weight: 600; }
.side-sub.active::before {
  content: ""; position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); width: 3px; height: 14px;
  background: var(--accent); border-radius: 2px;
}

/* ============ 右侧内容区 ============ */
.content { flex: 1; overflow-y: auto; min-width: 0; position: relative; }
.content-body { padding: 20px 32px 60px; }

/* 筛选栏 */
.filter-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 22px;
  padding: 10px 32px;
  background: rgba(245,245,247,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  animation: slideDown .2s ease;
}
.filter-bar[hidden] { display: none; } /* 确保 hidden 属性生效（默认隐藏） */
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-label { font-size: 12px; color: var(--text-3); }
.pills { display: inline-flex; background: #e9e9ee; border-radius: 9px; padding: 3px; gap: 2px; }
.pill {
  padding: 4px 12px; border-radius: 7px; font-size: 12.5px;
  color: var(--text-2); transition: all .15s;
}
.pill:hover { color: var(--text); }
.pill.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.filter-select {
  height: 30px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--border-2); background: #fff; font-size: 12.5px;
  color: var(--text); outline: none; cursor: pointer;
}
.tag-select { position: relative; }
.tag-select-btn {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border-2); background: #fff;
  font-size: 12.5px; color: var(--text);
}
.tag-select-btn:hover { border-color: var(--text-3); }
.tag-select-btn .caret { font-size: 10px; color: var(--text-3); }
.tag-pop {
  position: absolute; top: 36px; left: 0; z-index: 30;
  min-width: 130px; padding: 6px;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-modal);
  border: 1px solid var(--border);
}
.tag-pop label {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 7px; font-size: 12.5px;
  cursor: pointer; white-space: nowrap;
}
.tag-pop label:hover { background: #f2f2f5; }
.filter-hint { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

/* 中类 / 小类结构 */
.mid-group { margin-bottom: 36px; }
.mid-title { font-size: 19px; font-weight: 700; margin: 8px 0 4px; letter-spacing: .5px; }
.sub-group { margin-top: 14px; }
.sub-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sub-name { font-size: 14.5px; font-weight: 600; }
.sub-count { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.sub-line { flex: 1; height: 1px; background: var(--border); margin: 0 6px; }
.btn-add {
  display: inline-flex; align-items: center; gap: 4px;
  height: 27px; padding: 0 13px; border-radius: 999px;
  border: 1px dashed var(--border-2); color: var(--text-2);
  font-size: 12.5px; transition: all .15s;
}
.btn-add:hover { border-color: var(--accent); color: var(--text); border-style: solid; }
.sub-empty {
  padding: 18px 0 6px; font-size: 12.5px; color: var(--text-3);
}

/* ============ 卡片 ============ */
.card-grid { display: flex; flex-wrap: wrap; gap: 16px; }

/* 空小类占位 & 拖拽目标提示 */
.card-grid.grid-empty {
  min-height: 64px;
  border: 1.5px dashed var(--border-2);
  border-radius: 10px;
  align-items: center;
  padding: 0 16px;
  transition: border-color .15s;
}
.card-grid.drop-empty-target { border-color: var(--accent); }
.grid-empty-tip { font-size: 12px; color: var(--text-3); }

.card {
  width: 152px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  cursor: pointer; user-select: none;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); z-index: 2; }
.card.dragging { opacity: .35; transform: scale(.96); }
.card.drop-before::before, .card.drop-after::after {
  content: ""; position: absolute; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent); border-radius: 2px; z-index: 5;
}
.card.drop-before::before { left: -9.5px; }
.card.drop-after::after { right: -9.5px; }

.card-poster {
  position: relative; width: 152px; aspect-ratio: 3 / 4;
  background: #e3e3e8; overflow: hidden;
}
.card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-poster img, .poster-ph { transition: transform .25s ease; }
.card:hover .card-poster img, .card:hover .poster-ph { transform: scale(1.045); }

/* 占位海报 */
.poster-ph {
  width: 100%; height: 100%; background: #F4F4F4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px; text-align: center;
}
.poster-ph .ph-name {
  font-size: 14px; font-weight: 600; color: rgba(0,0,0,.72);
  line-height: 1.4; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.poster-ph .ph-year { font-size: 11px; color: rgba(0,0,0,.42); letter-spacing: 1px; }

/* 状态角标 */
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  backdrop-filter: blur(4px);
}
.badge-watching { background: rgba(74,144,217,.92); color: #fff; }
.badge-dropped { background: rgba(60,60,65,.85); color: #fff; }

/* 未看：灰色半透明 */
.card.status-unwatched .card-poster img,
.card.status-unwatched .poster-ph { filter: grayscale(.55) opacity(.62); }
.card.status-unwatched { background: #f2f2f4; }

/* 弃坑：深色遮罩 */
.card.status-dropped .card-poster::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: rgba(20,20,24,.42);
}

/* 未看卡片的「看完啦」按钮 */
.btn-done {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  z-index: 4; height: 26px; padding: 0 13px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--text);
  font-size: 11.5px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.25);
  opacity: 0; transition: all .16s ease; white-space: nowrap;
}
.card.status-unwatched:hover .btn-done { opacity: 1; }
.btn-done:hover { background: var(--accent); color: #fff; }

.card-info { padding: 9px 11px 11px; }
.card-name {
  font-size: 13px; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta { display: flex; align-items: center; margin-top: 5px; min-height: 18px; }

/* 评分徽章 */
.grade {
  display: inline-block; padding: 1.5px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
}
.grade-5 { background: #f7ecd2; color: var(--gold); }
.grade-4 { background: #dff0e3; color: var(--green); }
.grade-3 { background: #ddebf8; color: var(--blue); }
.grade-2 { background: #ececef; color: var(--gray-g); }
.grade-1 { background: #f8e1e0; color: var(--red-g); }

/* ============ 右键菜单 ============ */
.context-menu {
  position: fixed; z-index: 900; min-width: 132px;
  background: #fff; border-radius: 10px; padding: 5px;
  box-shadow: var(--shadow-modal); border: 1px solid var(--border);
  animation: popIn .12s ease;
}
.ctx-item {
  display: flex; align-items: center; gap: 9px;
  width: 100%; padding: 8px 12px; border-radius: 7px;
  font-size: 13px; color: var(--text); text-align: left;
}
.ctx-item:hover { background: #f2f2f5; }
.ctx-item.danger { color: var(--danger); }
.ctx-item.danger:hover { background: #fdf0f0; }
.ctx-item svg { width: 14px; height: 14px; }

/* ============ Toast ============ */
.toast-root {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 950; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 9px 18px; border-radius: 999px;
  background: rgba(29,29,31,.92); color: #fff;
  font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.2);
  animation: toastIn .22s ease;
}
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(20,20,24,.44);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border-radius: 16px;
  box-shadow: var(--shadow-modal);
  animation: modalIn .2s ease; max-height: 88vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 0;
}
.modal-head h3 { font-size: 16px; font-weight: 700; }

/* ---- 新增/编辑表单弹窗 ---- */
.form-modal { width: 600px; }
.form-body { display: flex; gap: 24px; padding: 20px 24px 4px; }
.form-poster { width: 168px; flex-shrink: 0; }
.poster-preview {
  width: 168px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden;
  background: #e9e9ee; position: relative;
}
.poster-preview .poster-ph { padding: 10px; }
.poster-preview .ph-name { font-size: 15px; }
.poster-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-poster {
  width: 100%; margin-top: 10px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border-2); background: #fff;
  font-size: 12.5px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-poster:hover { border-color: var(--text-3); color: var(--text); }
.btn-poster svg { width: 13px; height: 13px; }
.poster-tip {
  margin-top: 8px; font-size: 11px; color: var(--text-3);
  text-align: center; line-height: 1.5; white-space: pre-line;
}

.form-fields { flex: 1; min-width: 0; }
.f-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin: 0 0 7px; }
.f-row { margin-bottom: 16px; }

.f-input {
  width: 100%; height: 38px; padding: 0 13px;
  border: 1px solid var(--border-2); border-radius: 9px;
  font-size: 13.5px; outline: none; transition: border .15s;
  background: var(--surface);
}
.f-input:focus { border-color: var(--text); }
.f-input::placeholder { color: var(--text-3); }
.f-error { font-size: 11.5px; color: var(--danger); margin-top: 5px; }

/* 名称模糊搜索浮层 */
.name-wrap { position: relative; }
.search-pop {
  position: absolute; top: 44px; left: 0; right: 0; z-index: 40;
  background: #fff; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: var(--shadow-modal); padding: 6px; max-height: 288px; overflow-y: auto;
}
.search-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left;
}
.search-item:hover, .search-item.hover { background: #f2f2f5; }
.search-thumb {
  position: relative;
  width: 36px; aspect-ratio: 3 / 4; border-radius: 5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: rgba(0,0,0,.6); overflow: hidden;
}
.search-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.search-info { min-width: 0; }
.search-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-year { font-size: 11.5px; color: var(--text-3); }
.search-empty { padding: 14px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.search-loading { padding: 14px; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* 搜索浮层底部：数据来源 / 配置入口 */
.search-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding: 8px 10px 5px;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-3);
}
.search-config-btn {
  font-size: 11px; color: var(--blue);
  padding: 0; background: none;
}
.search-config-btn:hover { text-decoration: underline; }

/* 分类树选择器 */
.cat-select { position: relative; }
.cat-btn {
  width: 100%; height: 38px; padding: 0 13px;
  border: 1px solid var(--border-2); border-radius: 9px;
  background: var(--surface); font-size: 13.5px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cat-btn:hover { border-color: var(--text-3); }
.cat-btn .caret { font-size: 10px; color: var(--text-3); }
.cat-pop {
  position: absolute; top: 44px; left: 0; right: 0; z-index: 40;
  background: #fff; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: var(--shadow-modal); padding: 8px; max-height: 260px; overflow-y: auto;
}
.cat-mid-name { font-size: 11.5px; font-weight: 700; color: var(--text-3); padding: 8px 10px 4px; letter-spacing: .5px; }
.cat-sub-item {
  width: 100%; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text); text-align: left;
  display: flex; justify-content: space-between; align-items: center;
}
.cat-sub-item:hover { background: #f2f2f5; }
.cat-sub-item.active { background: #ededf0; font-weight: 600; }
.cat-sub-item .check { font-size: 12px; color: var(--accent); }

/* 标签 chips */
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--border-2); font-size: 12.5px; color: var(--text-2);
  transition: all .15s;
}
.tag-chip:hover { border-color: var(--text-3); color: var(--text); }
.tag-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 评分选择行 */
.grade-row { margin-top: 4px; }

.form-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 24px 20px; justify-content: flex-end;
}
.autosave-tip {
  margin-right: auto; display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--green); opacity: 0; transition: opacity .2s;
}
.autosave-tip.show { opacity: 1; }

/* ---- 详情弹窗 ---- */
.detail-modal { width: 660px; }
.detail-body { display: flex; gap: 26px; padding: 20px 24px 6px; }
.detail-poster { width: 216px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #e9e9ee; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-poster .ph-name { font-size: 17px; }
.detail-info { flex: 1; min-width: 0; padding-top: 4px; }
.detail-path { font-size: 12.5px; color: var(--text-3); }
.detail-title { font-size: 21px; font-weight: 700; margin: 6px 0 14px; line-height: 1.35; }
.detail-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.status-badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.st-watched { background: #dff0e3; color: var(--green); }
.st-watching { background: #ddebf8; color: var(--blue); }
.st-unwatched { background: #ececef; color: var(--text-2); }
.st-dropped { background: #e2e2e6; color: #6a6a70; }
.detail-year { font-size: 12.5px; color: var(--text-3); }
.detail-sec-label { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; }
.detail-tags { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.detail-tag { padding: 3.5px 11px; border-radius: 999px; background: #f0f0f3; font-size: 12px; color: var(--text-2); }
.detail-notes {
  font-size: 13px; color: var(--text-2); line-height: 1.7;
  background: var(--surface-2); border-radius: 10px; padding: 11px 14px;
  white-space: pre-wrap; word-break: break-all;
}
.detail-empty-note { font-size: 12.5px; color: var(--text-3); }
.detail-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; }

/* ---- 搜索接口 Key 设置弹窗 ---- */
.key-body { padding: 14px 24px 4px; }
.key-desc {
  font-size: 12px; color: var(--text-2); line-height: 1.7;
  background: var(--surface-2); border-radius: 10px; padding: 10px 13px;
  margin-bottom: 16px;
}
.key-help { margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.key-help a { color: var(--blue); text-decoration: none; }
.key-help a:hover { text-decoration: underline; }
.key-status { margin-right: auto; font-size: 12px; color: var(--text-2); }

/* ---- 删除确认弹窗 ---- */
.confirm-modal { width: 360px; padding: 26px 26px 20px; text-align: center; }
.confirm-icon {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: #fdf0f0; color: var(--danger);
  display: flex; align-items: center; justify-content: center;
}
.confirm-icon svg { width: 21px; height: 21px; }
.confirm-modal h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.confirm-modal p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.confirm-modal p b { color: var(--text); }
.confirm-foot { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
