/* ============================================================
   VentTrip 温特私定旅行 · 运营后台样式
   桌面端优先，与小程序共用同一套品牌色
   ============================================================ */

:root {
  --primary: #A9824A;
  --primary-deep: #7A5C32;
  --primary-soft: rgba(176, 138, 80, 0.1);
  --primary-line: rgba(176, 138, 80, 0.26);

  --accent: #B08A50;
  --accent-soft: rgba(176, 138, 80, 0.12);

  --bg: #F7F3EB;
  --sidebar: #FBF8F2;
  --surface: #FFFFFF;
  --surface-2: #F7F4ED;
  --surface-3: #EFE9DE;

  --ink: #2A1A12;
  --ink-2: #57453A;
  --muted: #8E7F74;
  --faint: #B3A498;
  --line: rgba(42, 26, 18, 0.08);
  --line-2: rgba(42, 26, 18, 0.14);

  --ok: #2F7D5C;
  --ok-soft: rgba(47, 125, 92, 0.11);
  --warn: #A8791A;
  --warn-soft: rgba(168, 121, 26, 0.12);
  --danger: #A3231B;
  --danger-soft: rgba(163, 35, 27, 0.09);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(42, 26, 18, 0.05);
  --shadow: 0 4px 16px rgba(42, 26, 18, 0.07);
  --shadow-lg: 0 24px 60px rgba(42, 26, 18, 0.18);

  --sidebar-w: 236px;
}

* { box-sizing: border-box; }

/* 作者样式里的 display 会盖掉 UA 的 [hidden]，必须显式兜底 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
svg { display: block; }

/* ---------------- 登录 ---------------- */
.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(228, 87, 46, 0.16), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(107, 46, 20, 0.16), transparent 60%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-logo {
  width: 132px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 3px;
}

.login-card .field {
  margin-top: 28px;
  text-align: left;
}

.login-error {
  min-height: 20px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--danger);
  text-align: left;
}

.login-tip {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
}

.login-tip code {
  background: var(--surface-2);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: var(--ink-2);
}

/* ---------------- 骨架 ---------------- */
.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  z-index: 20;
}

.brand {
  padding: 0 10px 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.brand-logo {
  width: 62px;
  height: auto;
  display: block;
}

.brand-word {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 19px;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.brand-name {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--faint);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.55;
  flex: 0 0 auto;
}

.nav-item:hover { background: rgba(42, 26, 18, 0.045); }

.nav-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(184, 67, 30, 0.24);
}

.nav-item.active svg { opacity: 0.9; }

.nav-item span { flex: 1; }

.nav-count {
  font-style: normal;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(42, 26, 18, 0.06);
  color: var(--muted);
}

.nav-item.active .nav-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nav-count.warn {
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 600;
}

.nav-item.active .nav-count.warn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-link {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
}

.mini-link:hover { color: var(--primary); }
.mini-link.danger:hover { color: var(--danger); }

.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
  padding: 0 32px;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.topbar p {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.view {
  padding: 26px 32px 64px;
  max-width: 1300px;
  width: 100%;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 67, 30, 0.22);
}

.btn-primary:hover { background: #A33A19; }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink-2);
}

.btn-ghost:hover { background: var(--surface-2); }

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover { background: #8C1D16; }

.btn-block { width: 100%; height: 42px; }

.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: 7px;
}

.btn-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  opacity: 0.7;
}

.btn-icon-plus {
  font-size: 16px;
  line-height: 1;
  margin-top: -1px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--ink-2);
}

.icon-btn:hover { background: var(--surface-2); }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
}

.card-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 统计 ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-num {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.stat-num.warn { color: var(--warn); }
.stat-num.ok { color: var(--ok); }

.stat-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13.5px;
}

thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--faint);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FDFBF7; }

.t-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.t-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.t-thumb img { width: 100%; height: 100%; object-fit: cover; }

.t-name {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.t-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 1px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.t-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.t-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.link-btn {
  border: 0;
  background: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.link-btn:hover { background: var(--surface-2); color: var(--ink); }
.link-btn.primary { color: var(--primary); }
.link-btn.primary:hover { background: var(--primary-soft); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { background: var(--danger-soft); }
.link-btn.ok { color: var(--ok); }
.link-btn.ok:hover { background: var(--ok-soft); }

/* ---------------- 状态 ---------------- */
.pill {
  position: relative;
  display: inline-block;
  height: 22px;
  line-height: 22px;
  padding: 0 9px 0 18px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}

/* 圆点用绝对定位：inline-flex 的伪元素会被 flex 压缩，把文字挤到裁切 */
.pill::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: currentColor;
}

.pill.on, .pill.approved { background: var(--ok-soft); color: var(--ok); }
.pill.off, .pill.rejected { background: var(--danger-soft); color: var(--danger); }
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.hot { background: var(--accent-soft); color: var(--accent); }
.pill.neutral { background: var(--surface-3); color: var(--muted); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11.5px;
  margin: 0 4px 4px 0;
}

/* ---------------- 过滤条 ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-3);
  border-radius: 9px;
  gap: 2px;
}

.seg-btn {
  border: 0;
  background: none;
  padding: 5px 13px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.seg-btn .count {
  margin-left: 5px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------------- 帖子卡 ---------------- */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: 0 0 auto;
}

.post-author {
  font-size: 13px;
  font-weight: 600;
}

.post-time {
  font-size: 11.5px;
  color: var(--faint);
}

.post-title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 6px;
}

.post-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-wechat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 10px 6px 12px;
  border-radius: 8px;
  background: var(--primary-soft);
  font-size: 12.5px;
  color: var(--primary);
}

.post-wechat b {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.post-wechat button {
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ---------------- 表单 ---------------- */
.field { display: block; }

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field-label .req { color: var(--danger); margin-left: 2px; }

.field-hint {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
}

.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  padding: 9px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-line);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.7;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'><path fill='%238E7F74' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }

.form-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-child { padding-top: 0; border-top: 0; }

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title::before {
  content: '';
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--primary);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* emoji / 配色选择 */
.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.grad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.grad-btn {
  width: 46px;
  height: 30px;
  border-radius: 7px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.grad-btn.active { border-color: var(--ink); }

/* 图片上传 */
.upload {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-preview {
  width: 108px;
  height: 72px;
  border-radius: 9px;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
}

.upload-box {
  flex: 1;
  min-width: 0;
  height: 72px;
  border: 1px dashed var(--line-2);
  border-radius: 9px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}

.upload-box:hover { border-color: var(--primary-line); color: var(--primary); }

/* 重复项 */
.repeat-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface-2);
  margin-bottom: 10px;
}

.repeat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.repeat-item .input + .textarea { margin-top: 8px; }

/* ---------------- 抽屉 ---------------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 14, 9, 0.42);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scrim.show { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 560px;
  max-width: 92vw;
  background: var(--surface);
  z-index: 41;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.drawer.show { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 { font-size: 16px; font-weight: 700; }
.drawer-head p { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.drawer-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

/* ---------------- 确认框 ---------------- */
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(26, 14, 9, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal h3 { font-size: 15.5px; font-weight: 700; }

.modal p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* ---------------- 提示 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 14px);
  z-index: 80;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(42, 26, 18, 0.94);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error { background: var(--danger); }

/* ---------------- 空状态 ---------------- */
.empty {
  padding: 64px 20px;
  text-align: center;
}

.empty-icon { font-size: 34px; }

.empty-title {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.empty-desc {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- 概览 ---------------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.mini-row:last-child { border-bottom: 0; }

.mini-emoji {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: 0 0 auto;
}

.mini-text { flex: 1; min-width: 0; }

.mini-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-row {
  padding: 10px 20px;
}

.bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.bar-track {
  height: 7px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; }
  .view { padding: 18px 16px 48px; }
  .topbar { padding: 0 16px; }
  .form-grid.cols-2 { grid-template-columns: 1fr; }
}


/* 首页横幅配置 */
.slide-grid {
  display: grid;
  gap: 14px;
}

.slide-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.slide-preview {
  height: 150px;
  border-radius: var(--r-sm);
  background: var(--surface-2) center/cover no-repeat;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 12px;
}

.slide-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-fields .field {
  margin-bottom: 0;
}

/* 帖子缩略图 */
.post-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

/* 首页大洲入口卡片 */
.region-list {
  display: grid;
  gap: 12px;
}

.region-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.region-thumb {
  height: 96px;
  border-radius: var(--r-sm);
  background: var(--surface-2) center/cover no-repeat;
  border: 1px solid var(--line);
}

.region-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.region-fields .field {
  margin-bottom: 0;
}

.region-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.region-actions .check {
  margin: 0;
}

.region-actions .link-btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.region-key {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.post-warn {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(168, 68, 58, 0.08);
  border: 1px solid rgba(168, 68, 58, 0.16);
  color: #A8443A;
  font-size: 12.5px;
  line-height: 1.5;
}

.hero-slot {
  height: 148px;
  border-radius: var(--r-sm);
  background: var(--surface-2) center/cover no-repeat;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
