/* 趣卡社工作平台 — Ink & Mist（对照 llm-gateway 视觉语言） */

:root {
  --ink: #121826;
  --ink-soft: #3d4659;
  --ink-mute: #7b8499;
  --mist: #f3f5f8;
  --mist-deep: #e8ecf2;
  --line: #d7dde8;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: #ccfbf1;
  --ok: #027a48;
  --ok-soft: #ecfdf3;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --info: #026aa2;
  --info-soft: #f0f9ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-panel: 0 1px 0 rgba(18, 24, 38, .04), 0 10px 28px -16px rgba(18, 24, 38, .18);
  --font-display: "Syne", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: "Noto Sans SC", "Syne", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 76px;

  --el-color-primary: #121826;
  --el-color-primary-light-3: #3d4659;
  --el-color-primary-light-5: #7b8499;
  --el-color-primary-light-7: #d7dde8;
  --el-color-primary-light-8: #e8ecf2;
  --el-color-primary-light-9: #f3f5f8;
  --el-color-primary-dark-2: #0b1018;
  --el-color-success: #027a48;
  --el-color-warning: #b54708;
  --el-color-danger: #b42318;
  --el-border-radius-base: 8px;
  --el-font-family: var(--font-sans);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
[v-cloak] { display: none; }

/* ---- 壳 ---- */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 118, 110, .08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(18, 24, 38, .05), transparent 50%),
    linear-gradient(180deg, #f7f8fb 0%, var(--mist) 40%, #eef1f6 100%);
}
.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(18, 24, 38, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 38, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  /* 主内容层级为 1，确保其中的抽屉遮罩和媒体预览可以覆盖导航。 */
  z-index: 0;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(215, 221, 232, .9);
  overflow: hidden;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: .75rem .85rem 1.15rem;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--ink) 0%, #243049 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark.big { width: 52px; height: 52px; font-size: 20px; border-radius: 12px; margin: 0 auto 12px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.2;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  padding: 0 .25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .7rem .85rem;
  border-radius: 10px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.sidebar-link svg { width: 16px; height: 16px; opacity: .8; flex-shrink: 0; }
.sidebar-link:hover {
  background: rgba(15, 118, 110, .08);
  color: var(--ink);
  transform: translateX(2px);
}
.sidebar-link.active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.sidebar-link.active svg { opacity: 1; }
.sidebar-footer {
  margin-top: auto;
  padding: 1rem .85rem .85rem;
  border-top: 1px solid var(--line);
}
.sidebar-footer small { color: var(--ink-mute); font-size: 12px; }
.sidebar-footer strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-weight: 600;
}
.qwp-role-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--mist-deep);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}
.qwp-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.qwp-logout-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.qwp-logout-btn:hover { background: var(--mist); color: var(--ink); }
.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sidebar-toggle svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 180ms ease; }
.sidebar-toggle:hover { background: var(--mist); color: var(--ink); }

html.is-sidebar-animated .app-shell {
  transition: grid-template-columns 180ms ease;
}
html.is-sidebar-collapsed .app-shell {
  grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}
html.is-sidebar-collapsed .app-shell .sidebar { padding: 1.1rem .6rem; }
html.is-sidebar-collapsed .app-shell .brand-block {
  justify-content: center;
  padding: .75rem 0 1rem;
}
html.is-sidebar-collapsed .app-shell .brand-name,
html.is-sidebar-collapsed .app-shell .sidebar-link-text,
html.is-sidebar-collapsed .app-shell .sidebar-toggle-text,
html.is-sidebar-collapsed .app-shell #qwp-user-badge small,
html.is-sidebar-collapsed .app-shell #qwp-user-badge strong,
html.is-sidebar-collapsed .app-shell #qwp-user-badge .qwp-role-chip,
html.is-sidebar-collapsed .app-shell .qwp-logout-btn span {
  display: none;
}
html.is-sidebar-collapsed .app-shell .sidebar-nav { padding: 0; align-items: center; }
html.is-sidebar-collapsed .app-shell .sidebar-link {
  justify-content: center;
  width: 44px;
  padding: .7rem 0;
}
html.is-sidebar-collapsed .app-shell .sidebar-link:hover { transform: none; }
html.is-sidebar-collapsed .app-shell .sidebar-footer { padding: .85rem 0 0; }
html.is-sidebar-collapsed .app-shell .sidebar-toggle,
html.is-sidebar-collapsed .app-shell .qwp-logout-btn {
  width: 44px;
  margin: 10px auto 0;
}
html.is-sidebar-collapsed .app-shell .sidebar-toggle svg { transform: rotate(180deg); }

.content-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.topbar { padding: 1.15rem 1.75rem .35rem; }
.topbar-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.15;
}
.main-area { padding: .5rem 1.75rem 2.5rem; }
.page-subtitle {
  margin: 0 0 1.1rem;
  color: var(--ink-mute);
  font-size: .92rem;
  max-width: 52rem;
}
.qwp-body.is-list-page { overflow: hidden; }
.qwp-body.is-list-page .app-shell,
.qwp-body.is-list-page .content-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.qwp-body.is-list-page .topbar,
.qwp-body.is-list-page .page-subtitle { display: none; }
.qwp-body.is-list-page .main-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}
.qwp-body.is-list-page #app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.qwp-body.is-list-page .qwp-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.qwp-body.is-list-page .qwp-list-toolbar,
.qwp-body.is-list-page .qwp-list-filters { flex-shrink: 0; }
.qwp-body.is-list-page .qwp-panel-body.flush {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.qwp-body.is-list-page .qwp-panel-body.flush .el-table {
  flex: 1;
  width: 100%;
}
.qwp-body.is-list-page .qwp-panel-footer { flex-shrink: 0; }

/* ---- 面板 / 卡片 ---- */
.qwp-panel,
.qwp-page-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(215, 221, 232, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.qwp-panel + .qwp-panel,
.qwp-page-card + .qwp-page-card { margin-top: 1.15rem; }
.qwp-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(247,248,251,.9));
}
.qwp-panel-head h2,
.qwp-panel-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}
.qwp-panel-head p {
  margin: .25rem 0 0;
  color: var(--ink-mute);
  font-size: 13px;
}
.qwp-panel-body { padding: 1.15rem 1.25rem; }
.qwp-panel-body.flush { padding: 0; }
.qwp-panel-footer {
  padding: .85rem 1.1rem 1rem;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem .85rem;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination-total {
  color: var(--ink-soft);
  font-size: .85rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: .45rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.page-link:hover:not(:disabled) {
  border-color: var(--ink-mute);
  color: var(--ink);
}
.page-link:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.page-jump {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.4rem;
  padding: .35rem .7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: .85rem;
  margin: 0;
  cursor: text;
}
.page-jump-input {
  width: 3.2rem;
  min-height: 1.6rem;
  padding: .1rem .25rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  text-align: center;
  -moz-appearance: textfield;
}
.page-jump-input::-webkit-outer-spin-button,
.page-jump-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.page-jump-input:focus,
.page-size-select:focus {
  outline: none;
  border-color: var(--ink-mute);
}
.page-size {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.4rem;
  padding: .35rem .7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: .85rem;
  margin: 0;
  white-space: nowrap;
}
.page-size-select {
  min-height: 1.6rem;
  min-width: 3.6rem;
  padding: .1rem .35rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.qwp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qwp-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.qwp-page-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.qwp-sub { color: var(--ink-mute); font-size: 13px; }
.qwp-link { display: inline-block; color: var(--accent); text-decoration: none; cursor: pointer; font-weight: 500; }
.qwp-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---- 筛选网格 ---- */
.qwp-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 18px;
}
.qwp-filter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.qwp-filter-field > label {
  flex: 0 0 auto;
  min-width: 4.2rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.qwp-filter-field .el-input,
.qwp-filter-field .el-select,
.qwp-filter-field .qwp-enum-cell { flex: 1; min-width: 0; width: auto; }

.qwp-list-page { display: flex; flex-direction: column; gap: 12px; }
.qwp-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.qwp-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.qwp-list-count {
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 600;
}
.qwp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qwp-active-filter {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mist-deep);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}
.qwp-list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.qwp-list-filters .qwp-filter-field { width: auto; }
.qwp-list-filters .qwp-filter-field > label { min-width: auto; }
.qwp-list-filters .qwp-filter-field .el-input { width: 180px; flex: 0 0 auto; }
.qwp-list-filters .qwp-filter-field .qwp-enum-cell { width: 168px; flex: 0 0 auto; }
.qwp-panel-head.qwp-list-toolbar {
  align-items: center;
  padding-bottom: .9rem;
}

/* ---- 统计卡 ---- */
.qwp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 1.15rem;
}
.qwp-stat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(215, 221, 232, .95);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.qwp-stat-card:hover {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: 0 4px 12px -8px rgba(18, 24, 38, .25);
  color: inherit;
  text-decoration: none;
}
.qwp-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qwp-stat-icon.is-req { background: #dbeafe; color: #2563eb; }
.qwp-stat-icon.is-task { background: #ccfbf1; color: #0f766e; }
.qwp-stat-icon.is-bug { background: #ffedd5; color: #c2410c; }
.qwp-stat-label {
  color: var(--ink-mute);
  font-size: 11px;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qwp-stat-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.qwp-dash-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px 0 12px;
}
.qwp-dash-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.qwp-dash-panels > .qwp-panel {
  margin: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.qwp-dash-panels > .qwp-panel + .qwp-panel { margin-top: 0; }
.qwp-dash-panels > .qwp-panel:only-child { grid-column: 1 / -1; }
.qwp-dash-panels > .qwp-panel.is-dragging { opacity: .65; }
.qwp-dash-panels .qwp-panel-body.flush {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.qwp-dash-count {
  margin-left: 8px;
  vertical-align: middle;
}
.qwp-dash-panels .qwp-panel-head {
  align-items: center;
}
.qwp-panel-head-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}
.qwp-dash-drag {
  color: var(--ink-mute);
  cursor: grab;
  font-size: 14px;
  letter-spacing: -2px;
  user-select: none;
  flex-shrink: 0;
}
.qwp-dash-manage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #e7ebf0);
}
.qwp-dash-manage-meta {
  flex: 1;
  min-width: 0;
}
.qwp-dash-manage-meta strong {
  display: block;
  font-size: 14px;
}
.qwp-panel-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.qwp-dash-panels .qwp-panel-refresh {
  --el-button-text-color: var(--ink-mute);
  --el-button-hover-text-color: var(--accent);
  --el-button-hover-bg-color: rgba(15, 118, 110, .08);
}
.qwp-dash-panels .qwp-cell-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .qwp-dash-panels {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}

/* ---- 表格 ---- */
.qwp-panel .el-table {
  --el-table-bg-color: #fff;
  --el-table-tr-bg-color: #fff;
  --el-table-header-bg-color: #f3f5f8;
  --el-table-header-text-color: var(--ink-mute);
  --el-table-text-color: var(--ink);
  --el-table-border-color: var(--line);
  --el-table-row-hover-bg-color: #eef6f5;
}
.qwp-panel .el-table th.el-table__cell {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
}
.qwp-panel .el-table td.el-table__cell { padding: 10px 0; }
.qwp-panel .el-table .el-table-fixed-column--right {
  background-color: #fff;
}
.qwp-panel .el-table th.el-table-fixed-column--right {
  background-color: #f3f5f8;
}
.qwp-panel .el-table .el-table__body tr:hover > .el-table-fixed-column--right,
.qwp-panel .el-table .el-table__body tr.hover-row > .el-table-fixed-column--right {
  background-color: #f5f9f9;
}
.qwp-panel .el-table .el-table-fixed-column--right.is-last-column {
  box-shadow: -6px 0 8px -6px rgba(18, 24, 38, .18);
}
.qwp-panel .el-table .el-table-fixed-column--right .cell,
.qwp-panel .el-table td.el-table__cell:last-child .cell {
  padding-right: 16px;
}
.qwp-panel .el-table .el-button.is-link {
  margin-inline: 2px;
  padding: 2px 6px;
  border-radius: 4px;
}
.qwp-panel .el-table .el-button.is-link:focus,
.qwp-panel .el-table .el-button.is-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px currentColor;
}
.el-button--primary { --el-button-bg-color: var(--ink); --el-button-border-color: var(--ink); --el-button-hover-bg-color: #1b2438; --el-button-hover-border-color: #1b2438; }
.el-button { font-weight: 600; border-radius: 8px; }
.el-input__wrapper, .el-select__wrapper, .el-textarea__inner {
  border-radius: 8px !important;
  box-shadow: 0 0 0 1px var(--line) inset !important;
}
.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-textarea__inner:focus {
  box-shadow: 0 0 0 1px rgba(15, 118, 110, .55) inset, 0 0 0 3px rgba(15, 118, 110, .12) !important;
}

.qwp-enum-cell { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.qwp-enum-cell:not(.is-tag) {
  display: block;
  width: 100%;
}
.el-form-item__content > .qwp-enum-cell { width: 100%; }
.qwp-enum-cell.is-tag {
  position: relative;
  max-width: 100%;
  min-height: 24px;
  cursor: pointer;
}
.qwp-enum-cell.is-tag .qwp-tag,
.qwp-enum-cell.is-tag .qwp-sub { position: relative; z-index: 0; }
.qwp-enum-tag-select {
  position: absolute;
  inset: 0;
  width: 100% !important;
  min-width: 0;
  opacity: 0;
  z-index: 1;
}
.qwp-enum-tag-select .el-select__wrapper {
  min-height: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}
.qwp-enum-tag-select .el-select__wrapper.is-focused,
.qwp-enum-tag-select .el-select__wrapper.is-hovering {
  box-shadow: none !important;
}

/* ---- 枚举色签 ---- */
.qwp-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid;
  line-height: 20px;
  white-space: nowrap;
  font-weight: 600;
}

/* ---- 富文本 ---- */
.qwp-rich { line-height: 1.7; word-break: break-word; color: var(--ink); font-size: 14px; }
.qwp-rich img { max-width: 100%; cursor: zoom-in; border-radius: 4px; }
.qwp-rich p { margin: 6px 0; }
.qwp-rich table { border-collapse: collapse; }
.qwp-rich table td, .qwp-rich table th { border: 1px solid var(--line); padding: 4px 8px; }
.qwp-rich pre { background: var(--mist); padding: 10px; border-radius: 6px; overflow: auto; }
.qwp-rich blockquote { border-left: 4px solid var(--line); padding-left: 10px; color: var(--ink-mute); margin: 6px 0; }
.qwp-rich h1, .qwp-rich h2, .qwp-rich h3, .qwp-rich h4, .qwp-rich h5, .qwp-rich h6 { margin: 10px 0 6px; line-height: 1.4; color: var(--ink); font-weight: 600; }
.qwp-rich h1 { font-size: 20px; }
.qwp-rich h2 { font-size: 18px; }
.qwp-rich h3 { font-size: 16px; }
.qwp-rich h4, .qwp-rich h5, .qwp-rich h6 { font-size: 15px; }
.qwp-rich ul, .qwp-rich ol { margin: 6px 0; padding-left: 22px; }
.qwp-rich li { margin: 2px 0; }
.qwp-rich code { background: var(--mist); border-radius: 3px; padding: 1px 5px; font-family: Consolas, Monaco, "Courier New", monospace; font-size: 13px; }
.qwp-rich pre code { background: none; padding: 0; border-radius: 0; }
.qwp-rich a { color: var(--accent); }
.qwp-rich hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.qwp-editor-wrap .w-e-text-container [data-slate-editor] ul,
.qwp-editor-wrap .w-e-text-container [data-slate-editor] ol { padding-left: 24px; }
.qwp-empty { color: #c0c4cc; font-size: 13px; }
.qwp-editor-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qwp-editor-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.qwp-editor-toolbar { flex: 1; min-width: 0; }
.qwp-editor-wrap .toolbar-container,
.qwp-editor-toolbar .w-e-bar { border-bottom: 0; }
.qwp-editor-wrap .editor-container { min-height: 160px; }
.qwp-editor-expand {
  flex-shrink: 0;
  width: 36px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qwp-editor-expand:hover { color: var(--ink); background: var(--mist); }
.qwp-editor-layer.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.qwp-editor-mask {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 38, .55);
}
.qwp-editor-layer.is-expanded .qwp-editor-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 48px));
  height: calc(100vh - 48px);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(18, 24, 38, .28);
}
.qwp-editor-layer.is-expanded .qwp-editor-body {
  flex: 1;
  min-height: 0;
  height: 100% !important;
  overflow: hidden;
}
.qwp-editor-layer.is-expanded .qwp-editor-body .w-e-text-container,
.qwp-editor-layer.is-expanded .qwp-editor-body .w-e-scroll {
  height: 100%;
}

/* ---- 时间线 ---- */
.qwp-timeline-wrap { margin-top: 0; }
.qwp-timeline-wrap .el-timeline {
  margin: 0;
  padding: 0;
}
.qwp-log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.qwp-log-when { color: var(--ink-mute); font-size: 12px; }
.comment-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.comment-card.system { background: var(--mist); border-style: dashed; }
.comment-sys {
  font-size: 11px; color: var(--ink-mute); background: var(--mist-deep);
  padding: 0 6px; border-radius: 3px; line-height: 18px;
}
.comment-status { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.qwp-comment-input { margin-top: 16px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.qwp-comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* ---- 详情栅格 ---- */
.qwp-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; }
.qwp-detail-item .label { color: var(--ink-mute); font-size: 12px; margin-bottom: 4px; }
.qwp-detail-item .value { color: var(--ink); font-size: 14px; font-weight: 500; }

/* ---- 个人中心 ---- */
.qwp-profile-card { max-width: 720px; padding: 18px 22px 22px; }
.qwp-profile-actions { margin-top: 18px; }

/* ---- 抽屉 ---- */
.el-drawer.qwp-drawer {
  background: #fff;
  box-shadow: -18px 0 48px -28px rgba(18, 24, 38, .45);
}
.el-drawer.qwp-drawer .el-drawer__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--mist);
}
.el-drawer.qwp-drawer.is-file-dragging .qwp-drawer-body {
  outline: 2px dashed #0f766e;
  outline-offset: -10px;
  background-image: linear-gradient(rgba(15, 118, 110, .07), rgba(15, 118, 110, .07));
}
.qwp-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 1.1rem 1.35rem;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.qwp-drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.qwp-drawer-sub { margin: 4px 0 0; color: var(--ink-mute); font-size: 13px; }
.qwp-drawer-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-mute);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.qwp-drawer-close:hover { background: var(--mist); color: var(--ink); }
.qwp-drawer-body { flex: 1; min-height: 0; overflow: auto; padding: 1.15rem 1.35rem 1.4rem; }
.qwp-drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: .9rem 1.25rem;
  background: rgba(247, 248, 251, .85);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.qwp-drawer-split {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.1fr);
  flex: 1;
  min-height: 0;
  height: 100%;
}
.qwp-drawer-rail {
  background: var(--mist);
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.4rem;
  min-height: 0;
}
.qwp-drawer-main {
  background: #fff;
  overflow: auto;
  padding: 1.1rem 1.25rem 1.4rem;
  min-height: 0;
}
.qwp-related-block { margin-top: 18px; }
.qwp-related-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.qwp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.qwp-section-title::before {
  content: "";
  flex: 0 0 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}
.qwp-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.qwp-panel-head h2 .el-tag { margin-left: 8px; vertical-align: middle; }

/* ---- 枚举左侧列表 ---- */
.qwp-enum-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink-soft);
}
.qwp-enum-item:hover { background: rgba(15, 118, 110, .08); color: var(--ink); }
.qwp-enum-item.active { background: var(--ink); color: #fff; }
.qwp-enum-item.active .qwp-sub { color: rgba(255,255,255,.7); }

/* ---- 登录 ---- */
.qwp-login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(15, 118, 110, .16), transparent 55%),
    radial-gradient(800px 420px at 100% 10%, rgba(18, 24, 38, .08), transparent 50%),
    linear-gradient(180deg, #f7f8fb 0%, var(--mist) 100%);
}
.qwp-login-card {
  width: min(420px, calc(100vw - 32px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(215, 221, 232, .95);
  border-radius: 20px;
  padding: 36px 34px 30px;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(10px);
}
.qwp-login-title { text-align: center; margin-bottom: 26px; }
.qwp-login-title h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -.03em;
  color: var(--ink);
}
.qwp-login-sub { color: var(--ink-mute); font-size: 13px; margin: 0; }
.qwp-login-btn { width: 100%; margin-top: 6px; }

.w-e-text-container [data-slate-editor] img { max-width: 100%; }

.qwp-datetime { line-height: 1.3; font-variant-numeric: tabular-nums; }
.qwp-datetime-time { color: var(--ink-mute); font-size: 12px; margin-top: 2px; }

.qwp-enum-label,
.qwp-enum-option { display: inline-flex; align-items: center; gap: 8px; }
.qwp-enum-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(18, 24, 38, .12);
}
.qwp-enum-popper.el-select__popper .el-select-dropdown__wrap,
.qwp-enum-popper .el-select-dropdown__wrap {
  max-height: 420px !important;
}
.qwp-enum-popper .el-select-dropdown__item { height: 34px; line-height: 34px; }

.qwp-attach-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.qwp-attach-item { width: 132px; }
.qwp-attach-media {
  position: relative;
  width: 132px;
  height: 88px;
}
.qwp-attach-thumb {
  width: 132px;
  height: 88px;
  border-radius: 8px;
  background: var(--mist);
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}
.qwp-attach-media .el-image,
.qwp-attach-media .el-image__inner {
  width: 132px;
  height: 88px;
  border-radius: 8px;
}
.qwp-attach-video {
  position: relative;
  display: block;
  width: 132px;
  height: 88px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.qwp-attach-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(18, 24, 38, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.qwp-video-viewer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 24, 38, .78);
}
.qwp-video-viewer__player {
  max-width: min(92vw, 1080px);
  max-height: 86vh;
  background: #000;
  border-radius: 8px;
}
.qwp-video-viewer__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.qwp-attach-file {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  width: 132px;
  height: 88px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  word-break: break-all;
  font-size: 12px;
  line-height: 1.4;
}
.qwp-attach-name {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qwp-attach-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 24, 38, .66);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qwp-attach-remove:hover { background: #c45656; }
.qwp-secret-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--warn);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

@media (max-width: 1400px) {
  .qwp-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .qwp-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qwp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qwp-drawer-split { grid-template-columns: 1fr; }
  .qwp-drawer-rail { border-right: 0; border-bottom: 1px solid var(--line); max-height: 42vh; }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
