.b2-qingqiu-wrap {
  --q-bg-1: #f5f8ff;
  --q-bg-2: #eef5ea;
  --q-ink: #1e2532;
  --q-ink-soft: #5f6f87;
  --q-line: #d8e2ef;
  --q-card: #ffffff;
  --q-brand: #1f7a5b;
  --q-brand-2: #255ecf;
  --q-accent: #e85d27;
  --q-done: #1f8d52;
  --q-open: #dd7a13;
  --q-shadow: 0 18px 40px rgba(35, 53, 88, 0.12);
  color: var(--q-ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

.b2-qingqiu-wrap {
  background: radial-gradient(circle at 10% 20%, var(--q-bg-2) 0%, transparent 35%),
    radial-gradient(circle at 85% 0%, #e7f0ff 0%, transparent 40%),
    linear-gradient(140deg, #f9fbff 0%, #f4f8ff 55%, #f9fff5 100%);
  border-radius: 20px;
  padding: 16px;
}

.b2-qingqiu-hero,
.b2-qingqiu-panel,
.b2-qingqiu-board {
  background: var(--q-card);
  border: 1px solid var(--q-line);
  border-radius: 20px;
  box-shadow: var(--q-shadow);
}

.b2-qingqiu-hero {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.b2-qingqiu-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--q-brand-2);
}

.b2-qingqiu-hero h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.b2-qingqiu-subtitle {
  margin: 8px 0 0;
  color: var(--q-ink-soft);
  font-size: 15px;
}

.b2-qingqiu-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 10px;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--q-line);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 100px;
}

.stat-box span {
  color: var(--q-ink-soft);
  font-size: 12px;
}

.stat-box strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.b2-qingqiu-panel {
  margin-top: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 2fr);
  gap: 24px;
  align-items: end;
}

.b2-qingqiu-panel h3,
.b2-qingqiu-board h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.b2-q-user {
  margin: 0;
}

.b2-q-note {
  margin: 8px 0 0;
  color: var(--q-ink-soft);
  font-size: 13px;
}

.b2-q-form-block label {
  display: block;
  margin: 0 0 6px;
  color: var(--q-ink-soft);
  font-size: 13px;
}

.b2-q-form-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
}

#b2-q-request-input {
  width: 100%;
  border: 1px solid var(--q-line);
  border-radius: 12px;
  background: #fff;
  color: var(--q-ink);
  padding: 10px 12px;
  font-size: 14px;
}

#b2-q-request-input:focus {
  outline: none;
  border-color: #74a7ff;
  box-shadow: 0 0 0 3px rgba(87, 139, 239, 0.16);
}

#b2-q-submit-btn {
  width: 100%;
  margin-top: 0;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, #de4d1b, #ff894a);
  box-shadow: 0 8px 18px rgba(222, 77, 27, 0.28);
  cursor: pointer;
}

#b2-q-submit-btn:hover {
  transform: translateY(-1px);
}

.b2-qingqiu-board {
  margin-top: 16px;
  padding: 16px;
}

.b2-qingqiu-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.b2-q-filter {
  display: flex;
  gap: 8px;
}

.b2-q-filter .chip {
  border: 1px solid var(--q-line);
  background: #fff;
  color: var(--q-ink-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

.b2-q-filter .chip.active {
  border-color: #76a1ed;
  color: #2758bf;
  background: #f2f7ff;
}

.b2-q-table-wrap {
  overflow: auto;
  border: 1px solid var(--q-line);
  border-radius: 14px;
  background: #fff;
}

.b2-q-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  table-layout: fixed;
}

.b2-q-table-wrap thead th {
  text-align: left;
  font-size: 13px;
  color: var(--q-ink-soft);
  background: #f7faff;
  border-bottom: 1px solid var(--q-line);
  padding: 12px;
}

.b2-q-table-wrap tbody td {
  padding: 12px;
  border-bottom: 1px solid #edf2f9;
  font-size: 14px;
  vertical-align: middle;
}

.b2-q-table-wrap thead th:nth-child(1),
.b2-q-table-wrap tbody td:nth-child(1) {
  width: 14%;
}

.b2-q-table-wrap thead th:nth-child(2),
.b2-q-table-wrap tbody td:nth-child(2) {
  width: 20%;
}

.b2-q-table-wrap thead th:nth-child(3),
.b2-q-table-wrap tbody td:nth-child(3) {
  width: 28%;
}

.b2-q-table-wrap thead th:nth-child(4),
.b2-q-table-wrap tbody td:nth-child(4) {
  width: 10%;
  text-align: center;
  vertical-align: middle;
}

.b2-q-table-wrap thead th:nth-child(5),
.b2-q-table-wrap tbody td:nth-child(5) {
  width: 8%;
  text-align: center;
  vertical-align: middle;
}

.b2-q-table-wrap thead th:nth-child(6),
.b2-q-table-wrap tbody td:nth-child(6) {
  width: 12%;
  text-align: center;
  vertical-align: middle;
}

.b2-q-table-wrap thead th:nth-child(7),
.b2-q-table-wrap tbody td:nth-child(7) {
  width: 8%;
  text-align: center;
  vertical-align: middle;
}

.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap thead th:nth-child(1),
.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap tbody td:nth-child(1) {
  width: 16%;
}

.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap thead th:nth-child(2),
.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap tbody td:nth-child(2) {
  width: 24%;
}

.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap thead th:nth-child(3),
.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap tbody td:nth-child(3) {
  width: 38%;
}

.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap thead th:nth-child(4),
.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap tbody td:nth-child(4) {
  width: 12%;
  text-align: center;
}

.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap thead th:nth-child(5),
.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap tbody td:nth-child(5) {
  width: 10%;
  text-align: center;
}

.b2-q-table-wrap thead th:nth-child(4),
.b2-q-table-wrap thead th:nth-child(5),
.b2-q-table-wrap thead th:nth-child(6),
.b2-q-table-wrap thead th:nth-child(7) {
  padding-left: 6px;
  padding-right: 6px;
}

.b2-q-table-wrap tbody td:nth-child(4),
.b2-q-table-wrap tbody td:nth-child(5),
.b2-q-table-wrap tbody td:nth-child(6),
.b2-q-table-wrap tbody td:nth-child(7) {
  padding-left: 6px;
  padding-right: 6px;
}

.b2-q-user-name {
  display: inline-block;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.b2-q-user-link {
  color: inherit;
  text-decoration: none;
}

.b2-q-user-link:hover .b2-q-user-name {
  color: #255ecf;
  text-decoration: underline;
}

.b2-q-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.b2-q-status.open {
  color: var(--q-open);
  background: #fff3e7;
  border: 1px solid #ffd8b6;
}

.b2-q-status.done {
  color: var(--q-done);
  background: #e9f9ef;
  border: 1px solid #b9eacb;
}

.b2-q-status.deleted {
  color: #b42323;
  background: #fff0f0;
  border: 1px solid #efaaaa;
}

.b2-q-visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #9bb9eb;
  border-radius: 50%;
  background: #f2f7ff;
  color: #255ecf;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.b2-q-visit-link:hover {
  border-color: #255ecf;
  background: #e7f0ff;
  color: #1749ae;
  text-decoration: none;
}

.b2-q-visit-empty {
  color: #a7b0bf;
}

.b2-q-delete-reason {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #e7b0b0;
  border-radius: 999px;
  background: #fff4f4;
  color: #ae3838;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.b2-q-table-wrap .b2-q-action-btn,
.b2-q-table-wrap .b2-q-delete-btn,
.b2-q-table-wrap .b2-q-restore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0;
  padding: 6px 10px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
  font-weight: 700;
  vertical-align: middle;
}

.b2-q-table-wrap .b2-q-action-btn {
  border: 1px solid #9dc7b2;
  background: #f0fff7;
  color: #1c7f52;
  border-radius: 10px;
  cursor: pointer;
}

.b2-q-action-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.b2-q-table-wrap .b2-q-delete-btn {
  border: 1px solid #e6a5a5;
  background: #fff4f4;
  color: #b53b3b;
  border-radius: 10px;
  cursor: pointer;
}

.b2-q-table-wrap .b2-q-restore-btn {
  border: 1px solid #9bb9eb;
  border-radius: 10px;
  background: #f2f7ff;
  color: #255ecf;
  cursor: pointer;
}

.b2-q-delete-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.b2-q-table-wrap tbody tr.is-deleted {
  opacity: 0.62;
}

.b2-q-table-wrap tbody tr.is-deleted td {
  position: relative;
}

.b2-q-table-wrap tbody tr.is-deleted td::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  background: #c94b4b;
  pointer-events: none;
}

.b2-qingqiu-wrap.is-public-view .b2-q-table-wrap tbody tr.is-deleted td:nth-child(5)::after {
  display: none;
}

.b2-qingqiu-wrap.is-admin-view .b2-q-table-wrap tbody tr.is-deleted td:nth-child(6)::after,
.b2-qingqiu-wrap.is-admin-view .b2-q-table-wrap tbody tr.is-deleted td:nth-child(7)::after {
  display: none;
}

.b2-q-modal[hidden] {
  display: none;
}

.b2-q-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.b2-q-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 27, 40, 0.48);
}

.b2-q-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 22px;
  border: 1px solid var(--q-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(20, 34, 55, 0.28);
}

.b2-q-modal-dialog h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.b2-q-delete-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.b2-q-delete-reasons button {
  min-height: 40px;
  margin: 0;
  border: 1px solid #e6a5a5;
  border-radius: 8px;
  background: #fff4f4;
  color: #a93232;
  cursor: pointer;
  font-weight: 700;
}

.b2-q-delete-reasons button:hover {
  border-color: #c94b4b;
  background: #ffe8e8;
}
.b2-q-custom-reason {
  display: flex;
  gap: 8px;
  margin: 14px 0 2px;
}

.b2-q-custom-reason input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #fff;
  color: var(--q-ink);
  font-size: 14px;
  outline: none;
}

.b2-q-custom-reason input:focus {
  border-color: var(--q-brand-2);
}

.b2-q-custom-reason .b2-q-custom-confirm {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: #a93232;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.b2-q-custom-reason .b2-q-custom-confirm:hover {
  background: #c94b4b;
}

.b2-q-modal-cancel {
  width: 100%;
  min-height: 38px;
  margin: 12px 0 0;
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #fff;
  color: var(--q-ink-soft);
  cursor: pointer;
}

.b2-q-empty {
  text-align: center;
  color: var(--q-ink-soft);
  padding: 24px 12px;
}

.b2-q-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  background: rgba(24, 33, 48, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 9999;
}

.b2-q-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .b2-qingqiu-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .b2-qingqiu-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .b2-q-form-controls {
    grid-template-columns: 1fr;
  }

  #b2-q-submit-btn {
    min-height: 42px;
  }
}


/* ---- 夜间模式强覆盖：有求必应组件始终使用浅色 ---- */
body.night .b2-qingqiu-wrap {
  background-color: #f4f8ff !important;
}

body.night .b2-qingqiu-hero,
body.night .b2-qingqiu-panel,
body.night .b2-qingqiu-board,
body.night .b2-q-table-wrap,
body.night .b2-q-modal-dialog {
  background-color: #ffffff !important;
  color: #1e2532 !important;
}

/* 标题：清除主题夜间的深色底，恢复深色文字 */
body.night .b2-qingqiu-wrap h1,
body.night .b2-qingqiu-wrap h2,
body.night .b2-qingqiu-wrap h3,
body.night .b2-qingqiu-wrap h4 {
  background: transparent !important;
  color: #1e2532 !important;
}

/* 正文与标签文字 */
body.night .b2-qingqiu-wrap,
body.night .b2-qingqiu-subtitle,
body.night .b2-qingqiu-panel label,
body.night .b2-q-user strong,
body.night .b2-q-note,
body.night .b2-q-table-wrap th,
body.night .b2-q-table-wrap td {
  color: #1e2532 !important;
  border-color: #d8e2ef !important;
}

body.night .b2-qingqiu-eyebrow {
  color: #255ecf !important;
}

/* 输入框 */
body.night #b2-q-request-input,
body.night .b2-q-custom-reason input {
  background: #ffffff !important;
  color: #1e2532 !important;
  border-color: #d8e2ef !important;
}

/* 提交按钮：恢复橙色渐变 */
body.night #b2-q-submit-btn {
  background: linear-gradient(140deg, #de4d1b, #ff894a) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(222, 77, 27, 0.28) !important;
}

/* 表格操作按钮 */
body.night .b2-q-table-wrap .b2-q-action-btn {
  background: #f0fff7 !important;
  color: #1c7f52 !important;
  border-color: #9dc7b2 !important;
}
body.night .b2-q-table-wrap .b2-q-delete-btn {
  background: #fff4f4 !important;
  color: #b53b3b !important;
  border-color: #e6a5a5 !important;
}
body.night .b2-q-table-wrap .b2-q-restore-btn {
  background: #f2f7ff !important;
  color: #255ecf !important;
  border-color: #9bb9eb !important;
}

/* 筛选 chip */
body.night .b2-q-filter .chip {
  background: #ffffff !important;
  color: #5f6f87 !important;
  border-color: #d8e2ef !important;
}
body.night .b2-q-filter .chip.active {
  color: #ffffff !important;
  background: #255ecf !important;
  border-color: #255ecf !important;
}

/* 表格 */
body.night .b2-q-table-wrap table {
  background: #ffffff !important;
}
body.night .b2-q-table-wrap th {
  background: #f7faff !important;
  color: #1e2532 !important;
}

/* 状态徽章与删除原因 */
body.night .b2-q-status.open {
  background: #fff3e7 !important;
  color: #dd7a13 !important;
  border-color: #ffd8b6 !important;
}
body.night .b2-q-status.done {
  background: #e9f9ef !important;
  color: #1f8d52 !important;
  border-color: #b9eacb !important;
}
body.night .b2-q-status.deleted {
  background: #fff0f0 !important;
  color: #b42323 !important;
  border-color: #efaaaa !important;
}
body.night .b2-q-delete-reason {
  background: #fff4f4 !important;
  color: #ae3838 !important;
}

/* 访问链接图标 */
body.night .b2-q-visit-link {
  background: #f2f7ff !important;
  color: #255ecf !important;
  border-color: #9bb9eb !important;
}

/* 删除弹窗按钮 */
body.night .b2-q-delete-reasons button {
  background: #fff4f4 !important;
  color: #a93232 !important;
  border-color: #e6a5a5 !important;
}
body.night .b2-q-modal-cancel {
  background: #ffffff !important;
  color: #5f6f87 !important;
  border-color: #d8e2ef !important;
}
body.night .b2-q-custom-reason .b2-q-custom-confirm {
  background: #a93232 !important;
  color: #ffffff !important;
}

/* ---- 批量删除 / 复选框 / 分页 ---- */
.b2-q-board-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#b2-q-batch-delete {
  min-height: 32px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #e6a5a5;
  border-radius: 10px;
  background: #fff4f4;
  color: #b53b3b;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}
#b2-q-batch-delete:hover:not(:disabled) {
  border-color: #c94b4b;
  background: #ffe8e8;
}
#b2-q-batch-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.b2-q-check-col {
  width: 40px;
  text-align: center;
  vertical-align: middle;
}
.b2-q-check-col input[type="checkbox"],
.b2-q-check {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #255ecf;
  cursor: pointer;
  vertical-align: middle;
}

.b2-q-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.b2-q-page {
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #fff;
  color: var(--q-ink-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
}
.b2-q-page:hover:not(.disabled):not(.active) {
  border-color: #255ecf;
  color: #255ecf;
}
.b2-q-page.active {
  background: #255ecf;
  border-color: #255ecf;
  color: #fff;
}
.b2-q-page.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.b2-q-page-dots {
  color: var(--q-ink-soft);
  padding: 0 2px;
}

/* 夜间模式：批量删除与分页 */
body.night #b2-q-batch-delete {
  background: #fff4f4 !important;
  color: #b53b3b !important;
  border-color: #e6a5a5 !important;
}
body.night .b2-q-page {
  background: #ffffff !important;
  color: #5f6f87 !important;
  border-color: #d8e2ef !important;
}
body.night .b2-q-page.active {
  background: #255ecf !important;
  color: #ffffff !important;
  border-color: #255ecf !important;
}

@media (max-width: 980px) {
  .b2-q-board-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .b2-q-board-tools {
    justify-content: flex-start;
  }
}