:root {
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --success: #52c41a;
  --warning: #faad14;
  --error: #f5222d;
  --purple: #722ed1;
  --cyan: #13c2c2;

  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --sidebar-active: #1677ff;
  --sidebar-hover: #f5f7fa;
  --sidebar-border: #e5e6eb;
  --sidebar-text: #1f2329;
  --sidebar-text-muted: rgba(31, 35, 41, 0.45);
  --header-bg: rgba(255, 255, 255, 0.85);

  --text: #1f2329;
  --text-secondary: #646a73;
  --text-tertiary: #8f959e;

  --border: #e5e6eb;
  --hover: #f2f3f5;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.06);

  --sidebar-width: 220px;
  --sidebar-collapsed: 64px;
  --header-height: 60px;
}

html.dark {
  --bg: #141414;
  --card-bg: #1f1f1f;
  --sidebar-bg: #1f1f1f;
  --sidebar-hover: #262626;
  --sidebar-border: #303030;
  --sidebar-text: #e6e6e6;
  --sidebar-text-muted: rgba(230, 230, 230, 0.45);
  --header-bg: rgba(31, 31, 31, 0.85);
  --text: #e6e6e6;
  --text-secondary: #a6a6a6;
  --text-tertiary: #737373;
  --border: #303030;
  --hover: #262626;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.24);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.36), 0 12px 28px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

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

body {
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 14px;
  background: var(--bg);
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ============ 布局 ============ */

.layout {
  display: flex;
  min-height: 100vh;
}

/* ---- 侧边栏 ---- */

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  overflow: hidden;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  transition:
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.35s ease;
}

.sidebar--collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar--collapsed .sidebar__logo {
  justify-content: center;
  padding: 0;
}

.sidebar--collapsed .sidebar__logo-text,
.sidebar--collapsed .menu-group__title,
.sidebar--collapsed .menu-group__toggle,
.sidebar--collapsed .menu-item__text {
  display: none;
}

.sidebar--collapsed .menu-item {
  justify-content: center;
  padding: 0;
}

/*
 * 图标模式（整条侧边栏收起）下，鼠标悬停时临时展开，
 * 否则只剩图标、没有分组标题，用户无法分辨各项属于哪个分组。
 * 用 :hover 即可，不需要 JS 维护状态。
 */
@media (width > 768px) {
  .sidebar--collapsed:hover {
    width: var(--sidebar-width);
    box-shadow: var(--shadow-hover);
  }

  .sidebar--collapsed:hover .sidebar__logo {
    justify-content: flex-start;
    padding: 0 18px;
  }

  .sidebar--collapsed:hover .sidebar__logo-text,
  .sidebar--collapsed:hover .menu-group__toggle,
  .sidebar--collapsed:hover .menu-item__text {
    display: block;
  }

  .sidebar--collapsed:hover .menu-item {
    justify-content: flex-start;
    padding: 0 18px;
  }
}

.sidebar__logo {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
  height: var(--header-height);
  padding: 0 18px;
  color: var(--sidebar-text);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar__logo-mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 15px;
  background: var(--primary);
  border-radius: 6px;
}

.sidebar__menu {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.menu-group__title {
  padding: 12px 18px 6px;
  overflow: hidden;
  color: var(--sidebar-text-muted);
  font-size: 11px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/*
 * 可折叠的分组标题（参照宝塔面板左侧菜单）
 *
 * 分组标题变成可点击的按钮：右侧带一个箭头指示展开状态，
 * 点击后收起/展开该分组下的菜单项。
 * 折叠状态存 localStorage，刷新后保持。
 */
.menu-group__toggle {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px 6px;
  overflow: hidden;
  color: var(--sidebar-text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.menu-group__toggle:hover {
  color: var(--sidebar-text);
}

/*
 * 箭头：展开时朝下，收起时朝右
 *
 * 颜色跟分组标题一样淡的话，箭头在 100% 缩放下几乎看不见，
 * 用户根本不知道分组标题可以点。所以这里单独用更深的灰色。
 */
.menu-group__arrow {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.menu-group__toggle:hover .menu-group__arrow {
  color: var(--primary);
}

.menu-group__arrow svg {
  display: block;
}

.menu-group--collapsed .menu-group__arrow {
  transform: rotate(-90deg);
}

/*
 * 展开 / 收起的动画
 *
 * 用 grid-template-rows: 0fr -> 1fr 做高度过渡：
 * 内容放进一个 min-height: 0 的子容器里，0fr 时高度为 0（配合 overflow: hidden 完全藏起来），
 * 1fr 时高度等于内容自然高度。好处是不用 JS 去测量实际高度，
 * 内容长度变化时动画也能自动跟上。
 */
.menu-group__items {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 收起时高度归零并裁掉溢出，视觉上等同于隐藏 */
.menu-group--collapsed .menu-group__items {
  grid-template-rows: 0fr;
}

/* 真正被裁掉的那一层：必须允许高度收缩到 0，否则内容会撑出来 */
.menu-group__inner {
  min-height: 0;
  overflow: hidden;
}

/*
 * 菜单项自身的淡入 + 轻微上移
 *
 * 只有高度变化的话，文字是「被拉出来」的，略显生硬；
 * 配合一点透明度和位移，过渡看起来更顺。
 *
 * 收起时给一点延迟，等淡出基本完成再让高度归零，
 * 否则文字会先被裁掉、淡出动画就看不到了。
 */
.menu-group__inner .menu-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-group--collapsed .menu-group__inner .menu-item {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.16s ease 0.08s,
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0.06s;
}

.menu-item {
  display: flex;
  gap: 12px;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  overflow: hidden;
  color: var(--sidebar-text);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    padding-left 0.3s ease;
}

.menu-item:hover {
  color: var(--primary);
  background: var(--sidebar-hover);
}

.menu-item--active {
  color: #fff;
  background: var(--sidebar-active);
}

.menu-item__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-size: 16px;
}

.menu-item__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 主区域 ---- */

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main--collapsed {
  margin-left: var(--sidebar-collapsed);
}

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 20px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
}

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

.header__right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.icon-btn:hover {
  color: var(--primary);
  background: var(--hover);
}

.icon-btn:active {
  transform: scale(0.92);
}

.header__user {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: background-color 0.25s ease;
}

.header__user:hover {
  background: var(--hover);
}

.avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  background: var(--primary);
  border-radius: 50%;
  overflow: hidden;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 20px;
  overflow-x: hidden;
}

/* ============ 通用组件 ============ */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.3s ease;
}

.card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card__header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.35s ease;
}

.card__title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.card__body {
  padding: 18px;
}

.card__body--flush {
  padding: 0;
}

/* ---- 按钮 ---- */

.btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  color: var(--text);
  font-size: 13px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.btn:active {
  transform: scale(0.96);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn--primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.25);
}

.btn--primary:hover {
  color: #fff;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn--danger:hover {
  color: var(--error);
  border-color: var(--error);
}

.btn--sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

/* ---- 标签 ---- */

.tag {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 2px 8px;
  color: var(--tag-color, var(--primary));
  font-size: 12px;
  background: color-mix(in srgb, var(--tag-color, var(--primary)) 12%, transparent);
  border-radius: 4px;
}

/* ---- 表格 ---- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 12px 18px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  background: var(--hover);
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
}

.table td {
  padding: 12px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.35s ease;
}

.table tbody tr {
  transition: background-color 0.3s ease;
}

.table tbody tr:hover {
  background: var(--hover);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table__path {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
}

.table__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ---- 操作列靠右：表头与按钮都贴右侧对齐 ---- */

.table th:last-child,
.table td:last-child {
  text-align: right;
}

/* ---- 文章列表：固定列宽 ----
   自动布局下「文章」列会吃掉整行宽度，其余列被压到换行，
   这里用 colgroup + 固定布局把每列宽度钉死，行高才会一致。
   难度、篇幅已并入标题列的副信息，表格从 8 列减到 6 列，
   每列都能留出左右 16px 内边距，内容不再互相贴住。 */

.table--articles {
  table-layout: fixed;
  min-width: 940px;
}

.table--articles th,
.table--articles td {
  /* 上下留足呼吸感，左右内边距对称，避免相邻列文字贴在一起 */
  padding: 16px;
  vertical-align: middle;
}

/* 副信息（出处 · 难度 · 篇幅）与标题之间再拉开一点距离 */
.cell-title__sub {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 12px;
  white-space: nowrap;
}

.cell-title__dot {
  color: var(--border);
}

.cell-title__sub .difficulty {
  min-width: 26px;
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
}

.table--articles th {
  /* 表头与内容列左边缘对齐 */
  padding-left: 16px;
}

.cell-nowrap {
  white-space: nowrap;
}

.cell-status {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.cell-status__rev {
  color: var(--text-tertiary);
  font-size: 11px;
}

.cell-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.cell-tags__more {
  color: var(--text-tertiary);
  font-size: 11px;
}

/* ---- 分页 ---- */

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.pagination__info {
  margin-right: auto;
  color: var(--text-tertiary);
  font-size: 12px;
}

/* ---- 表单 ---- */

.form-item {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

/* ---- 已建标签多选 ---- */

.check-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.check-list__item {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  font-size: 12.5px;
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.check-list__box {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.check-list__empty {
  color: var(--text-tertiary);
  font-size: 12.5px;
}

.input {
  width: 100%;
  height: 34px;
  padding: 0 11px;
  color: var(--text);
  font: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

/* 小尺寸输入框（下拉筛选、工具条用） */
.input--sm {
  width: auto;
  min-width: 110px;
  height: 30px;
  padding: 0 9px;
  font-size: 12.5px;
}

/* 校验失败态 */
.input--error,
.input--error:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 14%, transparent);
}

/* ---- 进度条 ---- */

.progress {
  margin-bottom: 16px;
}

.progress:last-child {
  margin-bottom: 0;
}

.progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
}

.progress__label {
  color: var(--text-secondary);
}

.progress__detail {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.progress__track {
  height: 6px;
  overflow: hidden;
  background: var(--hover);
  border-radius: 3px;
}

.progress__bar {
  height: 100%;
  background: var(--bar-color, var(--primary));
  border-radius: 3px;
  transition:
    width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color 0.35s ease;
}

/* ---- 正文页签顶部的 AI 分析概要进度 ---- */

.basic-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.basic-progress .tag {
  align-self: flex-start;
}

.basic-progress .progress {
  margin-bottom: 0;
}

/* ---- 分析阶段清单 ---- */

/*
 * 概要进度条下面的一行阶段标记：把「切分 → 翻译 → 生词 → 发音 → 组装」
 * 五个阶段并排列出来，已完成的置灰、进行中的高亮，方便用户一眼看出
 * 当前卡在哪一步、后面还有几步。
 */

.ai-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.ai-stages__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--hover);
  color: var(--text-tertiary);
  font-size: 11.5px;
  line-height: 1.5;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

/* 已完成的阶段：颜色淡下去，表示不用再等了 */
.ai-stages__item--done {
  color: var(--text-secondary);
  border-color: color-mix(in srgb, var(--success) 32%, var(--border));
  background: color-mix(in srgb, var(--success) 8%, transparent);
}

/* 进行中的阶段：高亮 + 轻微呼吸动画 */
.ai-stages__item--active {
  color: #fff;
  border-color: transparent;
  background: var(--bar-color, var(--primary));
  font-weight: 600;
}

.ai-stages__item--active .ai-stages__dot {
  background: #fff;
  animation: ai-stage-pulse 1.4s ease-in-out infinite;
}

/* 失败时把进行中的阶段标红 */
.ai-stages__item--failed {
  color: #fff;
  border-color: transparent;
  background: var(--error, #f5222d);
  font-weight: 600;
}

.ai-stages__item--failed .ai-stages__dot {
  background: #fff;
  animation: none;
}

.ai-stages__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

@keyframes ai-stage-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

/* ---- 空状态 ---- */

.empty {
  padding: 48px 20px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

/* ---- 加载态 ---- */

.loading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ 页面级样式 ============ */

/* ---- 统计卡 ---- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (width <= 1200px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 640px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }
  .health-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .stat {
    gap: 10px;
    padding: 12px;
  }

  .stat__icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
  }

  .stat__label {
    font-size: 11px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stat__value {
    font-size: 20px;
    line-height: 26px;
  }

  .stat__trend {
    flex-wrap: wrap;
    row-gap: 2px;
    font-size: 11px;
  }

  .stat__glow {
    display: none;
  }
}

.stat {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  overflow: hidden;
}

.stat__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--stat-color, var(--primary));
  font-size: 20px;
  background: color-mix(in srgb, var(--stat-color, var(--primary)) 12%, transparent);
  border-radius: var(--radius-sm);
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.stat__content {
  min-width: 0;
}

.stat--clickable {
  cursor: pointer;
}

.stat__label {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 12px;
}

.stat__value {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.stat__suffix {
  margin-left: 4px;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 400;
}

.stat__trend {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
}

.stat__trend--up {
  color: var(--error);
}

.stat__trend--down {
  color: var(--success);
}

.stat__trend--flat {
  color: var(--text-tertiary);
}

.stat__trend-label {
  color: var(--text-tertiary);
}

.stat__glow {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 110px;
  height: 110px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--stat-color, var(--primary)) 22%, transparent),
    transparent 70%
  );
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
}

.card--interactive:hover .stat__glow {
  opacity: 1;
  transform: scale(1);
}

/* ---- 页面网格 ---- */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (width <= 1100px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ---- 图表 ---- */

.chart {
  width: 100%;
  height: 300px;
}

.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.chart-legend__item {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 3px 8px;
  color: var(--text-secondary);
  font-size: 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.chart-legend__item:hover {
  color: var(--text);
  background: var(--hover);
}

.chart-legend__item--off {
  opacity: 0.4;
  text-decoration: line-through;
}

/* ---- 分段控件（时间范围切换） ---- */

.segmented {
  display: inline-flex;
  padding: 2px;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.segmented__item {
  padding: 4px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.segmented__item:hover {
  color: var(--text);
}

.segmented__item--active {
  color: var(--primary);
  font-weight: 500;
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chart-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* 柱状图（纯 CSS 绘制） */
.bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 220px;
  padding: 12px 0;
}

.bars__col {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bars__value {
  color: var(--text-tertiary);
  font-size: 11px;
}

/* 分组柱状图：一根柱子内堆叠多个序列 */
.bars__stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 36px;
  overflow: hidden;
  transform-origin: bottom;
  animation: bar-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  transition: opacity 0.25s ease;
}

.bars__stack:hover {
  opacity: 0.85;
}

.bars__seg {
  width: 100%;
  min-height: 2px;
  transition: height 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bars__seg:first-child {
  border-radius: 4px 4px 0 0;
}

.bars__bar {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--primary), var(--primary-hover));
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: bar-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  transition: opacity 0.25s ease;
}

.bars__bar:hover {
  opacity: 0.8;
}

.bars__label {
  color: var(--text-tertiary);
  font-size: 11px;
}

@keyframes bar-rise {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* 环形图（纯 CSS conic-gradient） */
.donut-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.donut {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  animation: donut-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.donut::after {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 108px;
  height: 108px;
  content: '';
  background: var(--card-bg);
  border-radius: 50%;
  transition: background-color 0.35s ease;
}

.donut__center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  text-align: center;
  transform: translate(-50%, -50%);
}

.donut__value {
  font-size: 22px;
  font-weight: 600;
}

.donut__label {
  color: var(--text-tertiary);
  font-size: 11px;
}

@keyframes donut-in {
  from {
    opacity: 0;
    transform: scale(0.85) rotate(-30deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.donut-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.donut-legend__item {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 3px 8px;
  color: var(--text-secondary);
  font-size: 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.donut-legend__item:hover {
  color: var(--text);
  background: var(--hover);
}

.donut-legend__item--active {
  color: var(--text);
  background: color-mix(in srgb, var(--legend-color, var(--primary)) 12%, transparent);
  border-color: color-mix(in srgb, var(--legend-color, var(--primary)) 40%, transparent);
}

.donut-legend__item--muted {
  opacity: 0.45;
}

/* ---- 列表 ---- */

.list {
  display: flex;
  flex-direction: column;
}

.list__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition:
    background-color 0.3s ease,
    border-color 0.35s ease;
}

.list__item:last-child {
  border-bottom: none;
}

.list__item:hover {
  background: var(--hover);
}

.list__avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50%;
}

.list__content {
  flex: 1;
  min-width: 0;
}

.list__title {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list__desc {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list__time {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

/* ---- 时间轴 ---- */

.timeline {
  padding: 4px 0;
}

.timeline__item {
  position: relative;
  padding: 0 0 20px 26px;
  animation: fade-slide-up 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  position: absolute;
  top: 14px;
  bottom: -2px;
  left: 5px;
  width: 2px;
  content: '';
  background: var(--border);
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__dot {
  position: absolute;
  top: 4px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--dot-color, var(--primary));
  border: 2px solid var(--card-bg);
  border-radius: 50%;
}

.timeline__title {
  font-size: 13px;
}

.timeline__desc {
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.timeline__time {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 11px;
}

/* ============ 登录页 ============ */

.login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #e8efff 0%, #f5f8ff 50%, #dbe8ff 100%);
}

.login__card {
  width: 380px;
  padding: 36px;
  color: #1f2329;
  background: #ffffff;
  border: 1px solid #e5e6eb;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(22, 119, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  animation: fade-slide-up 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.login__title {
  margin-bottom: 6px;
  color: #1f2329;
  font-size: 20px;
  font-weight: 600;
}

.login__subtitle {
  margin-bottom: 26px;
  color: #8f959e;
  font-size: 13px;
}

.login .input {
  color: #1f2329;
  background: #f5f7fa;
  border-color: #e5e6eb;
}

.login .input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

/* ---- 救援重置面板（双重验证密钥解不开时的应急入口） ---- */

.login__rescue {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e6eb;
}

.login__rescue .form-item {
  margin-bottom: 14px;
}

.login .form-label {
  color: #1f2329;
}

.login__tip {
  margin-top: 16px;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.login__error {
  margin-bottom: 14px;
  padding: 9px 12px;
  color: var(--error);
  font-size: 13px;
  background: color-mix(in srgb, var(--error) 10%, transparent);
  border-radius: var(--radius-sm);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  75% {
    transform: translateX(6px);
  }
}

/* ---- 登录滑动验证码 ---- */

.captcha__imgbox {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 140;
  overflow: hidden;
  background: #f5f7fa;
  border: 1px solid #e5e6eb;
  border-radius: var(--radius-sm);
}

.captcha__bg {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.captcha__piece {
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.captcha__track {
  position: relative;
  height: 40px;
  margin-top: 10px;
  overflow: hidden;
  background: #f5f7fa;
  border: 1px solid #e5e6eb;
  border-radius: var(--radius-sm);
  user-select: none;
}

.captcha__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: rgba(22, 119, 255, 0.12);
  border-right: 1px solid rgba(22, 119, 255, 0.4);
}

.captcha__tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f959e;
  font-size: 12.5px;
  pointer-events: none;
}

.captcha__thumb {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -2px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  cursor: grab;
  touch-action: none;
}

.captcha__thumb:active {
  cursor: grabbing;
}

.captcha__thumb--ok {
  background: var(--success);
}

.captcha__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.captcha__status {
  color: #8f959e;
  font-size: 12px;
}

.captcha__refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #646a73;
  font-size: 15px;
  background: transparent;
  border: 1px solid #e5e6eb;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.3s ease;
}

.captcha__refresh:hover {
  color: var(--primary);
  transform: rotate(60deg);
}

/* ---- 登录点击验证入口 + 中间弹窗 ---- */

.captcha__trigger {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  color: var(--text-secondary);
  font-size: 13px;
  background: #eef4ff;
  border: 1px solid #d6e4ff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.captcha__trigger:hover {
  border-color: var(--primary);
}

.captcha__trigger-dot {
  width: 10px;
  height: 10px;
  background: #bfbfbf;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.captcha__trigger--checking .captcha__trigger-dot {
  background: #faad14;
}

.captcha__trigger--ok {
  color: #52c41a;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.captcha__trigger--ok .captcha__trigger-dot {
  background: #52c41a;
}

.captcha-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  animation: fade-in 0.2s ease;
}

.captcha-modal {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  animation: modal-in 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.captcha-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.captcha-modal__body {
  padding: 16px;
}

/* ============ 模态框 ============ */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  animation: fade-in 0.25s ease;
}

.modal {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  animation: modal-in 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.modal__body {
  padding: 20px;
}

.modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============ 提示消息 ============ */

.toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  background: var(--toast-color, var(--primary));
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  animation: toast-in 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.toast--leaving {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

/* ============ 进场动画 ============ */

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-slide-up 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

/* 对象存储页需要撑满内容区高度，让列表区独立滚动 */
.content > .animate-in {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.fade-enter-active {
  transition: opacity 0.28s ease;
}

.fade-leave-active {
  transition: opacity 0.28s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 路由切换动画 */
.route-enter-active {
  transition:
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.route-leave-active {
  transition: opacity 0.18s ease;
}

.route-enter-from {
  opacity: 0;
  transform: scale(0.97);
}

.route-leave-to {
  opacity: 0;
}

/* ============ 响应式 ============ */

/* ============ 内容管理专用组件 ============ */

/* ---- 工具栏 ---- */

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

.toolbar .input {
  height: 30px;
  width: auto;
  min-width: 120px;
}

/* 列表页筛选栏：搜索框吃掉剩余宽度，三个下拉框等宽，整行填满不参差 */
.toolbar .toolbar__search {
  flex: 1 1 260px;
  max-width: 460px;
  width: auto;
  min-width: 220px;
}

.toolbar .toolbar__select {
  flex: 0 0 132px;
  width: 132px;
}

/* 筛选栏里的按钮跟输入框同高，视觉上才在一条线上 */
.toolbar .btn {
  height: 30px;
}

.toolbar__spacer {
  flex: 1;
}

/* ---- 标签页 ---- */

.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 9px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.tab:hover {
  color: var(--primary);
}

.tab--active {
  color: var(--primary);
  font-weight: 500;
  border-bottom-color: var(--primary);
}

/* ---- 宽版弹窗 ---- */

.modal--wide {
  max-width: 880px;
}

.modal--tall {
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

/*
 * 高弹窗的滚动容器是 .modal__body 本身。
 *
 * 之前把 overflow-y 放在了 body 内层 div（.pf）上，但 .modal__body 作为
 * flex 子项没有 min-height: 约束，内层 div 会撑高并溢出到底部按钮下面，
 * 导致「生命周期」等区块被页脚遮住、滚不到。
 */
.modal--tall .modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* 内层内容不再自己滚动，交给 .modal__body */
.modal--tall .modal__body--scroll {
  overflow-y: visible;
}

/* ============ 全屏面板 ============ */

body.body--locked {
  overflow: hidden;
}

.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  background: var(--bg);
  animation: fade-in 0.2s ease;
}

.fullscreen__panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.fullscreen__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  height: var(--header-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.fullscreen__header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.fullscreen__title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.fullscreen__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.fullscreen__body > .card {
  max-width: 1400px;
  margin: 0 auto;
}

.fullscreen__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* 全屏面板里的标签页紧贴标题栏，去掉自身下边框 */
.fullscreen__header .tabs {
  margin-bottom: 0;
  border-bottom: none;
}

/* ---- 文本域 ---- */

.textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 11px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.textarea--min {
  min-height: 62px;
}

.textarea--mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
}

/* ---- 表单栅格 ----
   列间距拉开，避免左右两栏的文字贴在一起；
   行间距在 .form-item 自身的下外边距基础上再补一点。 */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 24px;
}

/* 文章属性页：表单不必撑满全屏，限制宽度后每栏宽度更舒服 */
.pane--meta {
  max-width: 1080px;
}

@media (width <= 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- 段落编辑器 ---- */

.para {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.para__head {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  background: var(--hover);
  border-bottom: 1px solid var(--border);
}

.para__index {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  font-size: 11px;
  background: var(--primary);
  border-radius: 50%;
}

/*
 * 段落概要：只放字数、句数这类统计，不再重复正文内容。
 * 正文就在下方的输入框里，标题再抄一遍纯属冗余。
 */
.para__meta {
  flex: 1;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.para__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

/* 正文段落与逐句翻译同处编辑时，正文输入框给足高度 */
.pane--basic .para__body > .form-item .textarea {
  min-height: 96px;
}

/* ---- 句子编辑器 ---- */

.sent {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sent__no {
  color: var(--text-tertiary);
  font-size: 12px;
}

.sent__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sent__empty {
  padding: 4px 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

/*
 * 单句段落：英文原文就是上方「正文段落」，这里只放一行说明，
 * 省掉一个与正文重复的输入框。
 */
.sent__merged {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.sent__merged-tag {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text);
}

.sent__merged-hint {
  color: var(--text-tertiary);
}

.sent__fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/*
 * 英文原文与中文翻译并排：
 * 两者一一对应，左右分栏比上下堆叠省一半纵向空间，
 * 长句也能一眼对上关系。
 */
.sent__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (width <= 860px) {
  .sent__pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 并排字段里的标签压扁一点，避免把输入框挤下去 */
.sent__pair .form-label {
  margin-bottom: 4px;
  font-size: 12px;
}

/* 句子里的文本域不需要太高，撑满会显得空 */
.sent__fields .textarea--min {
  min-height: 56px;
}

/* ---- 生词表格 ---- */

.vocab {
  width: 100%;
  border-collapse: collapse;
}

.vocab th {
  padding: 8px 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  background: var(--hover);
  border-bottom: 1px solid var(--border);
}

.vocab td {
  padding: 6px 10px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.vocab tr:last-child td {
  border-bottom: none;
}

.vocab .input {
  height: 30px;
  font-size: 12.5px;
}

.vocab__word {
  font-weight: 600;
}

/* ---- 密钥展示 ---- */

.key-display {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  background: var(--hover);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
}

/* ---- 文章标题单元格 ---- */

.cell-title {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.cell-title__text {
  min-width: 0;
}

.cell-title__name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 难度徽标 ---- */

.difficulty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
}

.difficulty--A1,
.difficulty--A2 {
  background: #52c41a;
}

.difficulty--B1 {
  background: #13c2c2;
}

.difficulty--B2 {
  background: #1677ff;
}

.difficulty--C1 {
  background: #722ed1;
}

.difficulty--C2 {
  background: #fa541c;
}

/* ---- 提示条 ---- */

.hint {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.hint--info {
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

/* 提示条里的接口地址 / 路径 */
.hint code {
  padding: 1px 6px;
  font-size: 12px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: var(--text-primary);
  background: var(--hover);
  border-radius: var(--radius-sm);
  word-break: break-all;
}


/* ============ 服务器（服务商）表单 ============ */

/* 表单分组：把长表单拆成「基本信息 / 连接信息 / 生命周期」等区块 */
.pf {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pf__section {
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}

.pf__section:last-child {
  margin-bottom: 0;
}

.pf__section:focus-within {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.pf__section-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.pf__section-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: var(--radius-sm);
}

.pf__section-title {
  font-size: 13.5px;
  font-weight: 600;
}

.pf__section-desc {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 12px;
}

.pf__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.pf__grid .form-item {
  margin-bottom: 14px;
}

.pf__grid .form-item:last-child {
  margin-bottom: 0;
}

.pf__col-2 {
  grid-column: span 2;
}

/* ---- 厂商 Logo 选择器 ---- */

.pf-logo {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* 预览框 + 状态文案的竖排容器 */
.pf-logo__side {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
}

.pf-logo__preview {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--primary);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent),
    var(--hover);
  border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.pf-logo__preview:hover {
  border-color: var(--primary);
}

.pf-logo__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pf-logo__placeholder {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 10.5px;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

.pf-logo__main {
  flex: 1;
  min-width: 0;
}

.pf-logo__row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pf-logo__row .input {
  flex: 1;
  min-width: 0;
}

.pf-logo__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pf-logo__meta {
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.55;
}

/* 底部「说明 / 收起说明」一行 */
.pf-logo__foot {
  margin-top: 8px;
}

.pf-logo__toggle {
  padding: 0;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 1px dashed currentcolor;
  transition: color 0.25s ease;
}

.pf-logo__toggle:hover {
  color: var(--primary);
}

.pf-logo__detail {
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 11.5px;
  line-height: 1.55;
}

/* 预览框下方的状态文案 */
.pf-logo__caption {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 11px;
  text-align: center;
}

/* 上传中 / 错误态 */
.pf-logo__preview--loading {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- 开关行（SSL 校验 / 启用） ---- */

.pf-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pf-switch {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  cursor: pointer;
  background: var(--hover);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.pf-switch:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

/* 勾选后整块高亮 */
.pf-switch:has(input:checked) {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--primary) 32%, transparent);
}

.pf-switch input {
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
}

.pf-switch__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pf-switch__title {
  font-size: 13px;
  font-weight: 500;
}

.pf-switch__desc {
  color: var(--text-tertiary);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---- 必填标记 ---- */

.pf-req {
  margin-left: 2px;
  color: var(--error);
}

/* ---- 弹窗内的提示条 ---- */

.pf-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  border-radius: var(--radius-sm);
}

.pf-note__icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--primary);
}

/* ---- 字段级提示与错误 ---- */

.pf-field__hint {
  margin-top: 5px;
  color: var(--text-tertiary);
  font-size: 11.5px;
  line-height: 1.5;
}

.pf-field__hint--error {
  color: var(--error);
}

.pf-field__error {
  margin-top: 5px;
  color: var(--error);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---- 到期时间快捷按钮 ---- */

.pf-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pf-preset {
  height: 26px;
  padding: 0 10px;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.pf-preset:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

/* ---- 服务器配置：统计条 ---- */

.bt-stats {
  margin-bottom: 12px;
}

.bt-stats__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.bt-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  padding: 10px 8px;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.bt-stat__num {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.bt-stat__label {
  color: var(--text-tertiary);
  font-size: 11.5px;
}

/* ---- 服务器配置：筛选 / 排序工具条 ---- */

.bt-toolbar {
  margin-bottom: 12px;
}

.bt-toolbar__row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding: 9px 12px;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.bt-toolbar__field {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12.5px;
}

.bt-toolbar__count {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 12px;
}

@media (width <= 640px) {
  .pf__grid,
  .pf-switches {
    grid-template-columns: minmax(0, 1fr);
  }

  .pf__col-2 {
    grid-column: span 1;
  }

  .bt-stats__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-toolbar__count {
    margin-left: 0;
  }

  .pf-logo {
    flex-direction: column;
  }

  .pf__section-desc {
    display: none;
  }
}

/* ============ AI 助手页 ============ */

/* ---- 上下分栏 ---- */

.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
}

@media (width <= 900px) {
  .ai-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 编辑器里的 AI 标签页：外层已经有一张卡片，去掉多余内边距 */
.pane--ai > .ai-layout,
.pane--ai > .hint,
.pane--ai > .card {
  margin: 0;
}

.pane--ai > .card {
  margin-top: 16px;
}

.ai-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ai-col--side {
  gap: 14px;
  padding: 14px 16px;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.ai-col__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ---- 文件选择 ---- */

.ai-file {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-file__input {
  display: none;
}

.ai-file__name {
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 选项 ---- */

.ai-options {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ai-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
}

.ai-check__box {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---- 步骤说明 ---- */

.ai-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.9;
}

.ai-note {
  padding-top: 10px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ---- 逐句翻译预览 ---- */

.ai-sent__en {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.75;
}

.ai-sent__zh {
  padding-left: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
  border-left: 2px solid var(--primary);
}

.ai-sent__note {
  padding: 6px 9px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.7;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

/* ---- 精读内容预览 ---- */

.preview-wrap {
  max-width: 860px;
}

.preview__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview__para {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.preview__para-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.preview__para-no {
  flex-shrink: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.preview__para-text {
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.6;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.preview__sentences {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview__sent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.preview__sent--empty {
  color: var(--text-tertiary);
}

.preview__sent-no {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 22px;
  text-align: center;
  background: var(--hover);
  border-radius: 50%;
}

.preview__sent-main {
  min-width: 0;
  flex: 1;
}

.preview__sent-en {
  color: var(--text);
  font-size: 14px;
  line-height: 1.75;
}

.preview__sent-zh {
  padding-left: 10px;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
  border-left: 2px solid var(--primary);
}

.preview__sent-zh--empty {
  color: var(--text-tertiary);
  border-left-color: var(--border);
}

.preview__sent-note {
  padding: 6px 9px;
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.7;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.preview__vocab {
  margin-top: 22px;
}

.preview__vocab-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.preview__vocab-count {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
}

/* ---- 正文点词释义卡片 ---- */
.word-tap {
  border-bottom: 1px dashed rgba(22, 119, 255, 0.4);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.word-tap:hover {
  background: rgba(22, 119, 255, 0.08);
  border-bottom-color: var(--primary);
}

.word--active {
  background: rgba(22, 119, 255, 0.16);
  border-bottom-color: var(--primary);
}

.wordcard {
  position: fixed;
  z-index: 1000;
  width: 300px;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
}

.wordcard__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.wordcard__row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-right: 22px;
  margin-bottom: 6px;
}

.wordcard__word {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.wordcard__phonetic {
  color: var(--text-tertiary);
  font-size: 12px;
}

.wordcard__pos {
  padding: 1px 6px;
  color: var(--primary);
  font-size: 11px;
  background: rgba(22, 119, 255, 0.1);
  border-radius: 3px;
}

.wordcard__meaning {
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.wordcard__meaning--empty {
  color: var(--text-tertiary);
}

.wordcard__example {
  padding: 7px 9px;
  margin-top: 8px;
  background: var(--hover);
  border-radius: var(--radius-sm);
}

.wordcard__example-en {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.65;
}

.wordcard__example-zh {
  margin-top: 3px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.6;
}

.wordcard__hint {
  height: 30px;
  margin-top: 9px;
  font-size: 12px;
}

.wordcard__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.wordcard__loading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.wordcard__error {
  padding: 6px 9px;
  margin-bottom: 8px;
  color: var(--error);
  font-size: 12px;
  background: rgba(245, 34, 45, 0.08);
  border-radius: var(--radius-sm);
}

@media (width <= 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar--mobile-open {
    transform: translateX(0);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.3);
  }

  .sidebar__mask {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.45);
    animation: fade-in 0.25s ease;
  }

  .main,
  .main--collapsed {
    margin-left: 0;
  }

  .content {
    padding: 12px;
  }

  .header {
    gap: 8px;
    padding: 0 12px;
  }

  .header__left {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .header__title {
    overflow: hidden;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__user span {
    display: none;
  }

  .header__user {
    padding: 4px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .card__header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
  }

  .card__body {
    padding: 14px;
  }

  .toolbar .toolbar__search {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }

  .toolbar .toolbar__select {
    flex: 1 1 calc(50% - 6px);
    width: auto;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination__info {
    flex-basis: 100%;
    margin: 0 0 8px;
    text-align: center;
  }

  .modal-mask {
    padding: 12px;
    align-items: flex-end;
  }

  .modal {
    max-height: 92vh;
    overflow-y: auto;
  }

  .table-wrap {
    margin: 0 -14px;
    padding: 0 14px;
  }
}

/* 尊重系统的减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ AI 模型配置页 ============ */

.card__title-sub {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 400;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.provider {
  padding: 16px 18px;
}

.provider__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.provider__mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--vendor-color, var(--primary));
  background: color-mix(in srgb, var(--vendor-color, var(--primary)) 12%, transparent);
  border-radius: 8px;
}

/* 服务器厂商 Logo：与管理端列表、控制面板卡片共用 */
.provider__logo {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--hover);
  overflow: hidden;
}

/* 表单里的预览图：带边框，方便和输入框区分 */
.provider__logo--preview {
  border: 1px solid var(--border);
}

/* 控制面板卡片标题里的小尺寸变体 */
.provider__logo--inline {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.provider__mark--inline {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.provider__title {
  flex: 1;
  min-width: 0;
}

.provider__name {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.provider__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

.provider__vendor {
  color: var(--vendor-color, var(--primary));
  font-weight: 600;
}

.provider__meta .mono {
  font-family: Consolas, Menlo, monospace;
  word-break: break-all;
}

.provider__actions {
  flex-shrink: 0;
  margin-left: auto;
}

.provider__actions .table__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  white-space: nowrap;
}

.provider__url {
  margin-top: 10px;
  color: var(--text-tertiary);
  font-size: 12px;
  word-break: break-all;
}

.provider__remark {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

@media (width <= 640px) {
  .provider__head {
    flex-wrap: wrap;
  }
  .provider__actions {
    width: 100%;
    margin-left: 0;
  }
  .provider__actions .table__actions {
    justify-content: flex-start;
  }
}

/* ============ 对象存储页 ============ */

.ob__page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.ob__stats {
  margin-bottom: 0;
}

/* 主卡片：撑满剩余高度，列表区可独立滚动 */
.ob__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 320px;
  overflow: hidden;
}

/* ---- 顶部标题区 ---- */

.ob__header {
  flex-wrap: wrap;
  gap: 12px 16px;
}

.ob__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ob__subtitle {
  color: var(--text-tertiary);
  font-size: 12px;
}

/* 工具条：搜索 + 视图切换 + 刷新 + 主操作 */
.ob__toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.ob__search {
  width: 230px;
  height: 32px;
}

.ob__primary-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.ob__panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
}

/* ---- 面包屑 ---- */

.ob__breadcrumb {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--hover) 55%, transparent);
  border-bottom: 1px solid var(--border);
}

.ob__crumbs {
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}

.ob__crumb {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  max-width: 220px;
  padding: 4px 8px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.ob__crumb:hover {
  color: var(--primary);
  background: var(--card-bg);
}

.ob__crumb--active {
  color: var(--text);
  font-weight: 600;
}

.ob__crumb--active:hover {
  color: var(--text);
  background: transparent;
}

/* 返回上级按钮 */
.ob__back-btn {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 10px 4px 8px;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.ob__back-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.ob__crumb-sep {
  color: var(--text-tertiary);
  font-size: 13px;
  user-select: none;
}

/* 右侧统计小标签 */
.ob__crumb-meta {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ob__meta-chip {
  padding: 2px 9px;
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ---- 批量选择条 ---- */

.ob__selection {
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
}

.ob__selection--on {
  display: flex;
}

.ob__selection-count {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
}

.ob__selection-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---- 内容区（拖拽上传目标） ---- */

.ob__content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 320px;
  transition: background-color 0.2s ease;
}

.ob__content--drag {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.ob__drop-hint {
  position: absolute;
  top: 12px;
  right: 20px;
  display: none;
  gap: 8px;
  align-items: center;
  padding: 7px 13px;
  color: var(--primary);
  font-size: 12.5px;
  background: var(--card-bg);
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border));
  border-radius: 999px;
  pointer-events: none;
}

.ob__content--drag .ob__drop-hint {
  display: inline-flex;
}

.ob__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 4px 0;
  overflow: auto;
}

.ob__loading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ---- 空状态 ---- */

.ob__empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  text-align: center;
}

.ob__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  border-radius: 50%;
}

.ob__empty-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.ob__empty-desc {
  max-width: 420px;
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.7;
}

.ob__empty-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* ---- 表格 ---- */

.ob__table {
  width: 100%;
}

.ob__cell-check {
  width: 40px;
  padding-right: 0;
}

.ob__check {
  display: inline-flex;
  align-items: center;
}

.ob__check input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}

.ob__row {
  transition: background-color 0.15s ease;
}

.ob__row--selected {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.ob__row--selected:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.ob__name-cell {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.ob__type-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--type-color);
  background: color-mix(in srgb, var(--type-color) 12%, transparent);
  border-radius: var(--radius-sm);
}

.ob__name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.ob__name--link {
  padding: 0;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.ob__name--link:hover {
  color: var(--primary);
}

/* 类型标签 */
.ob__tag {
  flex-shrink: 0;
  padding: 1px 7px;
  color: var(--tag-color);
  font-size: 11px;
  white-space: nowrap;
  background: color-mix(in srgb, var(--tag-color) 12%, transparent);
  border-radius: 4px;
}

.ob__time {
  color: var(--text-tertiary);
  font-size: 12px;
}

.ob__cell-actions {
  white-space: nowrap;
}

/* ---- 行内操作 ---- */

.ob__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.ob__action-btn {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 28px;
  padding: 0 9px;
  color: var(--text-secondary);
  font-size: 12.5px;
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.ob__action-btn:hover {
  color: var(--primary);
  background: var(--hover);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.ob__action-btn--primary {
  color: var(--text-secondary);
}

/* ---- 更多下拉菜单 ---- */

.ob__menu-wrap {
  position: relative;
  display: inline-flex;
}

.ob__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  min-width: 148px;
  padding: 5px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
}

.ob__menu-wrap--open .ob__menu {
  display: flex;
}

/* 浮动的「更多」菜单：挂到 body 上，避免被列表容器的 overflow 裁切 */
.ob__menu--floating {
  position: fixed;
  top: 0;
  left: 0;
  /* 基类 .ob__menu 里的 right:0 / bottom 由 JS 用内联样式接管，
     这里必须显式清零，否则会与 JS 设置的 left 一起构成过约束定位，
     导致菜单宽度被拉伸、渲染错位。 */
  right: auto;
  bottom: auto;
  z-index: 1200;
  display: flex;
  width: max-content;
  min-width: 148px;
  max-width: min(240px, calc(100vw - 16px));
  overflow: visible;
  box-shadow: var(--shadow-hover), 0 8px 28px rgb(0 0 0 / 12%);
}

.ob__menu-item {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 7px 9px;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ob__menu-item:hover {
  background: var(--hover);
}

.ob__menu-item:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.ob__menu-item:disabled:hover {
  background: transparent;
}

.ob__menu-item--danger {
  color: var(--error);
}

.ob__menu-item--danger:hover {
  background: color-mix(in srgb, var(--error) 9%, transparent);
}

.ob__menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--border);
}

/* ---- 网格视图 ---- */

.ob__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 14px;
  padding: 18px 20px;
}

.ob__grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 14px 12px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.ob__grid-item:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.ob__grid-item--selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.ob__grid-check {
  position: absolute;
  top: 9px;
  left: 9px;
  display: flex;
  align-items: center;
}

.ob__grid-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
}

.ob__grid-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  background: color-mix(in srgb, var(--type-color) 10%, transparent);
  border-radius: var(--radius);
}

.ob__grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ob__grid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--type-color);
}

.ob__grid-name {
  width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob__grid-meta {
  color: var(--text-tertiary);
  font-size: 11px;
}

.ob__grid-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* 网格视图：只留图标，避免文字按钮撑破卡片 */
.ob__actions--compact {
  gap: 3px;
}

.ob__actions--compact .ob__action-btn {
  width: 28px;
  height: 26px;
  padding: 0;
  justify-content: center;
}

.ob__actions--compact .ob__menu-wrap {
  width: 28px;
}

.ob__actions--compact .ob__action-btn--more {
  width: 28px;
}

/* ---- 上传任务列表 ---- */

/* 居中的上传进度浮窗（不透明，尺寸固定，可关闭） */
.ob__upload-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  width: 560px;
  height: 420px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 120px);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.24);
  transform: translate(-50%, -50%);
  animation: ob-pop-in 0.18s ease-out;
}

@keyframes ob-pop-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* 隐藏状态（切走页面 / 手动关闭） */
.ob__upload-pop--hidden {
  display: none;
}

.ob__upload-pop__head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.ob__upload-pop__title {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.ob__upload-pop__summary {
  flex: 1;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 标题栏右侧的按钮组（关闭） */
.ob__upload-pop__actions {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  align-items: center;
}

/* 关闭按钮 */
.ob__upload-pop__close {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-tertiary);
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ob__upload-pop__close:hover {
  color: var(--error);
  background: var(--hover);
}

/* 文件列表：占满浮窗剩余空间，内部滚动 */
.ob__uploads {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.ob__uploads:empty {
  display: none;
}

/* 每个文件一行：上面一行是文件名/大小/百分比/速度/状态，下面是进度条 */
.ob__upload-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.ob__upload-item:last-child {
  border-bottom: none;
}

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

.ob__upload-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ob__upload-size {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.ob__upload-percent {
  flex-shrink: 0;
  min-width: 42px;
  color: var(--text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ob__upload-speed {
  flex-shrink: 0;
  min-width: 76px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ob__upload-status {
  flex-shrink: 0;
  min-width: 62px;
  color: var(--primary);
  font-size: 12.5px;
  text-align: right;
}

.ob__upload-status--ok {
  color: var(--success);
}

.ob__upload-status--fail {
  color: var(--error);
}

/* 等待中的任务整体压暗，一眼能看出还没开始 */
.ob__upload-item--waiting .ob__upload-name,
.ob__upload-item--waiting .ob__upload-size,
.ob__upload-item--waiting .ob__upload-percent,
.ob__upload-item--waiting .ob__upload-speed {
  color: var(--text-tertiary);
}

.ob__upload-item--done .ob__upload-name,
.ob__upload-item--fail .ob__upload-name {
  color: var(--text-secondary);
}

/* 进度条 */
.ob__upload-bar {
  padding-left: 1px;
}

.ob__progress {
  position: relative;
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: var(--hover);
  border-radius: 999px;
}

.ob__progress-fill {
  width: 0;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.15s linear;
}

.ob__upload-item--done .ob__progress-fill {
  background: var(--success);
}

.ob__upload-item--fail .ob__progress-fill {
  background: var(--error);
}

/* 等待中的任务不画进度条，避免看起来像卡住 */
.ob__upload-item--waiting .ob__progress-fill {
  background: transparent;
}

/* ---- 目标目录选择器 ---- */

.ob__picker-crumbs {
  margin-bottom: 10px;
}

.ob__picker {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ob__picker-item {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ob__picker-item:last-child {
  border-bottom: none;
}

.ob__picker-item:hover {
  background: var(--hover);
}

.ob__picker-empty {
  padding: 24px;
  color: var(--text-tertiary);
  font-size: 13px;
  text-align: center;
}

/* ---- 预览兜底 ---- */

.ob__preview-fallback {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 30px 0;
  text-align: center;
}

.ob__preview-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  color: var(--type-color);
  background: color-mix(in srgb, var(--type-color) 12%, transparent);
  border-radius: var(--radius);
}

.ob__preview-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.ob__preview-meta {
  color: var(--text-tertiary);
  font-size: 12px;
}

/* ---- 响应式 ---- */

@media (width <= 1100px) {
  .ob__search {
    width: 180px;
  }

  .ob__action-btn {
    padding: 0 7px;
  }
}

@media (width <= 900px) {
  .ob__toolbar {
    width: 100%;
    margin-left: 0;
  }

  .ob__search {
    flex: 1 1 160px;
    width: auto;
  }

  .ob__primary-actions {
    padding-left: 0;
    border-left: none;
  }

  .ob__breadcrumb {
    gap: 8px;
  }

  .ob__crumb-meta {
    width: 100%;
  }

  .ob__actions {
    justify-content: flex-start;
  }

  .ob__cell-actions {
    white-space: normal;
  }
}

@media (width <= 640px) {
  .ob__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 14px;
  }

  .ob__grid-thumb {
    width: 64px;
    height: 64px;
  }

  .ob__selection {
    padding: 10px 14px;
  }
}

/* ---- 对象存储图片选择器（.obp__*） ---- */

.obp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.obp__toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.obp__toolbar .input {
  flex: 1;
  min-width: 0;
}

.obp__crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.obp__meta {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.obp__list {
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.obp__item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.obp__item:last-child {
  border-bottom: none;
}

.obp__item:hover {
  background: var(--hover);
}

.obp__item--selected {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  box-shadow: inset 2px 0 0 var(--primary);
}

.obp__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--text-tertiary);
}

.obp__thumb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  overflow: hidden;
  background: var(--hover);
  border-radius: 4px;
}

.obp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.obp__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obp__size,
.obp__time {
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 11.5px;
  white-space: nowrap;
}

.obp__loading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 34px 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.obp__empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 34px 16px;
  text-align: center;
}

.obp__empty-icon {
  color: var(--text-tertiary);
}

.obp__empty-title {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.obp__empty-desc {
  color: var(--text-tertiary);
  font-size: 12.5px;
}
