/* =====================================================================
   布拖县人大代表之家 · PC 端工作台首页
   - 只在本页（body[data-page="home"]）生效，不改动内页现有的绿色工作区
   - 主色沿用 --green / --ink 等既有变量，红金仅用于页头与强调
   ===================================================================== */

/* ---------- 红金品牌层：仅首页 ---------- */
body[data-page="home"] {
  --home-red-deep: #8c1f1c;
  --home-red: #b52b25;
  --home-gold: #d9a441;
  --home-gold-light: #f7dca4;
  --home-paper: #fff8ed;
  --home-ink: #2b1612;
}

/* ---------- 页头横幅 ---------- */
body[data-page="home"] .topbar {
  /* 固定在顶部，滚动时不动 */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 28px;
  border: 0;
  background: linear-gradient(100deg, #7f1c1a 0%, #b52b25 46%, #7f1c1a 100%);
  box-shadow: 0 2px 14px rgba(120, 25, 20, .28);
}
/* 顶部金色高光 + 底部金色收边，对应参考图的标题框描边 */
body[data-page="home"] .topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--home-gold) 18%, var(--home-gold-light) 50%, var(--home-gold) 82%, transparent);
}
body[data-page="home"] .topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 220, 164, .7), transparent);
}
body[data-page="home"] .topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 30px;
  color: #fff;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(80, 10, 8, .5);
}
body[data-page="home"] .topbar .brand svg { width: 30px; height: 30px; flex: none; }
body[data-page="home"] .primary-nav { align-self: stretch; }
body[data-page="home"] .primary-nav span { color: #f3d3b5; font-weight: 500; }
body[data-page="home"] .primary-nav .on {
  color: #fff;
  font-weight: 700;
  border-bottom-color: var(--home-gold-light);
}
body[data-page="home"] .account { color: #ffe9cd; }
body[data-page="home"] .account .avatar {
  color: var(--home-red-deep);
  background: linear-gradient(145deg, #ffe9c4, var(--home-gold));
  font-weight: 700;
}
body[data-page="home"] .account .refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(247, 220, 164, .55);
  border-radius: 15px;
  background: rgba(255, 255, 255, .1);
  color: #ffe9cd;
  font-size: 12px;
  transition: background-color .18s ease, border-color .18s ease;
}
body[data-page="home"] .account .refresh-btn:hover { background: rgba(255, 255, 255, .2); border-color: var(--home-gold-light); }
body[data-page="home"] .account .refresh-btn[data-busy] svg { animation: home-spin .8s linear infinite; }
@keyframes home-spin { to { transform: rotate(360deg); } }

/* ---------- 主内容区 ---------- */
.home-main {
  margin-left: 244px;
  width: calc(100% - 244px);
  min-width: 936px;
  /* 页头 fixed 高 72px，内容区从上往下让出这块 + 内边距 */
  padding: 96px 30px 40px;
  box-sizing: border-box;
}
.sidebar.collapsed ~ .home-main { margin-left: 72px; width: calc(100% - 72px); }

/* 侧边栏与固定页头对齐：页头 72px，侧边栏从 72px 开始，并可滚动 */
body[data-page="home"] .sidebar {
  top: 72px;
  bottom: 0;
  height: auto;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overflow-x: hidden;
}

/* 展开/收起按钮压在首项右侧，现在首项是「首页」，给它让出空间避免文字被盖住 */
.sidebar > .sidebar-toggle + .nav-item { padding-right: 58px; }
.sidebar.collapsed > .sidebar-toggle + .nav-item { padding-right: 0; }

/* 问候行 */
.home-greeting {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.home-greeting h1 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .5px;
}
.home-greeting h1 b { color: var(--home-red); }
.home-greeting p { margin: 0; color: var(--muted); font-size: 13px; }
.home-greeting .stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.home-greeting .stamp .updated { display: inline-flex; align-items: center; gap: 6px; }
.home-greeting .stamp .dot { width: 6px; height: 6px; border-radius: 50%; background: #2fa76f; }

/* ---------- 待办横幅 ---------- */
.home-todo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 13px 18px;
  border: 1px solid #f0d7b4;
  border-left: 4px solid var(--home-red);
  border-radius: 10px;
  background: linear-gradient(90deg, #fff6ea, #fffdf9);
  box-shadow: 0 2px 10px rgba(140, 31, 28, .06);
}
.home-todo[hidden] { display: none; }
.home-todo .todo-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: #fbe4e2;
  color: var(--home-red);
}
.home-todo .todo-text { flex: 1 1 auto; min-width: 0; }
.home-todo .todo-text strong { color: var(--home-ink); font-size: 14px; }
.home-todo .todo-text span { color: #8a6b4d; font-size: 12.5px; }
.home-todo .todo-text ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 0; padding: 0; list-style: none; }
.home-todo .todo-text li {
  padding: 2px 9px;
  border: 1px solid #f0cfc0;
  border-radius: 10px;
  background: #fff;
  color: #8d3524;
  font-size: 12px;
}
.home-todo .todo-go {
  flex: none;
  height: 32px;
  padding: 0 15px;
  border: 1px solid var(--home-red);
  border-radius: 16px;
  background: #fff;
  color: var(--home-red);
  font-size: 13px;
  font-weight: 600;
}
.home-todo .todo-go:hover { background: var(--home-red); color: #fff; }

/* 无待办时：淡绿、安静，不再抢注意力 */
.home-todo.is-clear {
  border-color: #d7ece2;
  border-left-color: #2fa76f;
  background: linear-gradient(90deg, #f4fbf7, #fbfefc);
}
.home-todo.is-clear .todo-icon { background: #e4f5ec; color: #1f9d6b; }
.home-todo.is-clear .todo-text strong { color: #2b4a3c; }
.home-todo.is-clear .todo-text span { color: #7d9489; }

/* 待办明细：默认折叠，点「展开明细」逐条查看 */
.home-todo .todo-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.home-todo .todo-toggle {
  height: 32px;
  padding: 0 13px;
  border: 1px solid #e6d2bb;
  border-radius: 16px;
  background: #fff;
  color: #8a6b4d;
  font-size: 12.5px;
}
.home-todo .todo-toggle:hover { border-color: var(--home-gold); color: var(--home-red); }
.home-todo .todo-list {
  display: none;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.home-todo[data-collapsed="false"] .todo-list { display: block; }
.home-todo .todo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  margin-top: 6px;
  border: 1px solid #f2e3d1;
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  color: #6b5637;
}
.home-todo .todo-dot {
  width: 6px; height: 6px; flex: none;
  border-radius: 50%;
  background: var(--home-red);
  box-shadow: 0 0 0 3px rgba(181, 43, 37, .12);
}
.home-todo .todo-item-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-todo .todo-item-text b { color: #8d3524; font-weight: 600; }
.home-todo .todo-end {
  flex: none;
  height: 25px;
  padding: 0 10px;
  border: 1px solid #e5b6b0;
  border-radius: 13px;
  background: #fff;
  color: #b5402f;
  font-size: 12px;
}
.home-todo .todo-end:hover { background: #fdeceb; border-color: #d9877c; }
.home-todo .todo-end[data-busy] { opacity: .6; pointer-events: none; }
/* 原型演示入口：低调的虚线按钮，只用于体验交互流程 */
.home-todo .todo-demo {
  height: 28px;
  padding: 0 12px;
  border: 1px dashed #b9d6c8;
  border-radius: 14px;
  background: transparent;
  color: #3f8a6a;
  font-size: 12px;
}
.home-todo .todo-demo:hover { border-style: solid; background: #eff9f4; }

/* ---------- 常用入口 ---------- */
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.home-section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.home-section-head h2::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--home-red), var(--home-gold));
}
.home-section-head .head-note { color: var(--muted); font-size: 12px; }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 16px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-align: left;
  box-shadow: 0 1px 3px rgba(26, 42, 64, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* 参考图六边形描边的轻量化：悬停时右上角浮现 */
.entry-card::after {
  content: "";
  position: absolute;
  top: -26px;
  right: -26px;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(217, 164, 65, .16), transparent 70%);
  transform: rotate(24deg);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--home-gold);
  box-shadow: 0 8px 20px rgba(140, 31, 28, .12);
}
.entry-card:hover::after { opacity: 1; }
.entry-card:focus-visible { outline: 3px solid rgba(217, 164, 65, .45); outline-offset: 2px; }
.entry-card .entry-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5a70;
  font-size: 13px;
  font-weight: 600;
}
.entry-card .entry-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-strong);
  font-size: 12px;
}
.entry-card:hover .entry-ico { background: #fdf0dc; color: var(--home-red); }
.entry-card .entry-num {
  margin-top: 4px;
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--home-red) 30%, #d1622a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.entry-card .entry-num small { margin-left: 3px; font-size: 12px; font-weight: 600; -webkit-text-fill-color: #8a6b4d; }
.entry-card .entry-sub { color: var(--muted); font-size: 12px; line-height: 1.5; min-height: 18px; }
.entry-card .entry-last {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #eceff3;
  color: #98a2b3;
  font-size: 11.5px;
}
.entry-card .entry-last em {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.entry-card .entry-last .arrow { flex: none; color: var(--home-gold); }
/* 数据未到 / 未接入 */
.entry-card[data-state="pending"] .entry-num { background: none; color: #c7d0dd; -webkit-text-fill-color: #c7d0dd; }
.entry-card[data-state="error"] .entry-num { background: none; color: #d0b6a8; -webkit-text-fill-color: #d0b6a8; }
.entry-card[data-state="pending"] .entry-last,
.entry-card[data-state="error"] .entry-last { color: #c0c9d4; }
/* 更多入口：不显示数字，改为次级指标 */
.entry-card.entry-more { background: linear-gradient(135deg, #fffaf2, #fff); }
.entry-card.entry-more .entry-num { font-size: 15px; font-weight: 700; background: none; color: var(--home-red); -webkit-text-fill-color: initial; line-height: 1.6; }

/* ---------- 数据区：趋势 + 构成 + 动态 三栏并列 ---------- */
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(270px, 1fr);
  gap: 16px;
  align-items: start;
}
/* 三栏各自按内容高度走，不被最高的一栏拉长 */
.home-columns > .home-panel { align-self: start; }
.home-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(26, 42, 64, .05);
}
.home-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f0f3f7;
}
.home-panel > header h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.home-panel > header .seg { display: flex; gap: 4px; }
.home-panel > header .seg button {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  color: #6b7a8d;
  font-size: 12px;
}
.home-panel > header .seg button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-strong);
  font-weight: 600;
}
.home-panel .panel-body { padding: 16px; }

/* 趋势图：纯 SVG，无第三方库 */
.trend-chart { position: relative; }
.trend-chart svg { display: block; width: 100%; height: 168px; overflow: visible; }
.trend-chart .axis-label { fill: #94a3b8; font-size: 11px; }
.trend-chart .bar { transition: opacity .15s ease; }
.trend-chart .bar:hover { opacity: .78; }
/* 空态：压到 168px，与图表同高，避免首屏被一张空图吃掉 */
.trend-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 168px;
  border: 1px dashed #e6ebf1;
  border-radius: 8px;
  background: #fbfcfe;
  color: #a3adba;
  font-size: 13px;
}
.trend-empty b { display: block; color: #c3ccd8; font-size: 26px; font-weight: 400; line-height: 1; }
.trend-empty small { color: #b6c0cc; font-size: 12px; }

/* 构成图：放在约 300px 的窄栏里，三组纵向排列，组内每行一个类别 */
.dist-grid { display: flex; flex-direction: column; gap: 14px; }
.dist-card { min-width: 0; }
.dist-card h4 {
  margin: 0 0 7px;
  padding-left: 7px;
  border-left: 2px solid var(--home-gold);
  color: #5a6a7d;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}
.dist-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dist-card li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #57657a;
}
.dist-card li > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dist-card li .bar-track { height: 7px; border-radius: 4px; background: #f1f4f8; overflow: hidden; }
.dist-card li .bar-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #d9a441, #b52b25); }
.dist-card li b { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* 快捷操作 */
.quick-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #edf0f4; }
.quick-row .quick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
  color: #45566c;
  font-size: 13px;
}
.quick-row .quick:hover { border-color: var(--green); color: var(--green-strong); background: var(--green-soft); }

/* 最新动态（嵌在第三栏，较窄） */
.feed-tabs { display: flex; gap: 2px; padding: 9px 10px 0; flex-wrap: wrap; }
.feed-tabs button {
  height: 25px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #6b7a8d;
  font-size: 12px;
}
.feed-tabs button[aria-selected="true"] { background: var(--green-soft); color: var(--green-strong); font-weight: 600; }
.feed-list { margin: 0; padding: 4px 6px 6px; list-style: none; }
.feed-list li > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  row-gap: 1px;
  width: 100%;
  padding: 7px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
}
.feed-list li > button:hover { background: #f7f9fc; }
.feed-list .tag {
  grid-row: 1;
  grid-column: 1;
  padding: 1px 4px;
  border-radius: 4px;
  background: #f2f5f9;
  color: #5d6e83;
  font-size: 10.5px;
  text-align: center;
}
.feed-list .feed-title { grid-row: 1; grid-column: 2; color: #27364a; font-size: 12.5px; }
.feed-list .feed-time {
  grid-row: 2;
  grid-column: 1 / -1;
  padding-left: 1px;
  color: #9aa6b5;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.feed-list .feed-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-empty { padding: 30px 16px; color: #a3adba; font-size: 13px; text-align: center; }

/* 入口卡右上角的「数据来源」标注 */
.entry-card .entry-src {
  margin-left: auto;
  overflow: hidden;
  max-width: 52%;
  color: #b0bcc9;
  font-size: 10.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 后台模块总览 ---------- */
.module-table-wrap { overflow-x: auto; }
.module-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.module-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  background: #fafbfd;
  color: #6b7a8d;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.module-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f4f6fa;
  color: #46566c;
  vertical-align: middle;
}
.module-table tbody tr:hover td { background: #f8fbfa; }
.module-table tbody tr:last-child td { border-bottom: 0; }
.module-table .mod-name { color: var(--ink); font-weight: 600; white-space: nowrap; }
.module-table .mod-tab { color: #8b98a9; white-space: nowrap; }
.module-table .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.module-table .num.strong { color: var(--home-red); font-weight: 700; }
.module-table .mod-cols {
  overflow: hidden;
  max-width: 380px;
  color: #98a2b3;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.module-table .mod-go {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d8e0ea;
  border-radius: 13px;
  background: #fff;
  color: #52637a;
  font-size: 12px;
  white-space: nowrap;
}
.module-table .mod-go:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-strong); }

/* 模块总览：工具条 / 排序 / 分页 / 行交互 */
.mod-toolbar { display: flex; align-items: center; gap: 10px; }
.mod-search {
  width: 190px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid #dbe3ec;
  border-radius: 15px;
  background: #fff;
  color: #27364a;
  font-size: 12.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.mod-search::placeholder { color: #a9b4c2; }
.mod-search:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 3px rgba(11, 143, 99, .12); }
.mod-sort {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #6b7a8d;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
}
.mod-sort span { color: #b3bdc9; font-size: 10px; }
.mod-sort:hover { color: var(--green-strong); }
.mod-sort.is-active { color: var(--green-strong); }
.mod-sort.is-active span { color: var(--green); }
.module-table tbody tr[data-mod-row] { cursor: pointer; }
.module-table tbody tr[data-mod-row]:hover td { background: #f6faf8; }
.module-table tbody tr[data-mod-row]:hover .mod-name { color: var(--green-strong); }
.mod-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid #f0f3f7;
  color: #8b98a9;
  font-size: 12.5px;
}
.mod-pages { display: flex; gap: 4px; }
.mod-pages button {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
  color: #52637a;
  font-size: 12.5px;
}
.mod-pages button:hover:not(:disabled) { border-color: var(--green); color: var(--green-strong); }
.mod-pages button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
.mod-pages button:disabled { opacity: .45; cursor: not-allowed; }

/* 动态：加载更多 / 分类色标 */
.feed-body { padding-bottom: 6px; }
.feed-list .tag--notice { background: #f1f4fb; color: #4a6bb0; }
.feed-list .tag--style { background: #fdf2f0; color: #b3552f; }
.feed-list .tag--research { background: #eef7f3; color: #2c7f5f; }
.feed-list .tag--activity { background: #fbf4ea; color: #9a7226; }
.feed-list .tag--duty { background: #f4f0fa; color: #6a4f9e; }
.feed-more-wrap { padding: 2px 10px 6px; text-align: center; }
.feed-more {
  width: 100%;
  height: 28px;
  border: 1px dashed #dbe3ec;
  border-radius: 6px;
  background: #fcfdfe;
  color: #7c8b9d;
  font-size: 12px;
}
.feed-more:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-strong); }
.feed-list li > button { cursor: pointer; }
.dist-card li.dist-none { color: #b3bdc9; font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1439px) {
  .home-main { padding: 94px 24px 36px; }
  .entry-grid { gap: 12px; }
  .entry-card .entry-num { font-size: 27px; }
}
@media (max-width: 1250px) {
  .home-main { margin-left: 220px; width: calc(100% - 220px); }
  .sidebar.collapsed ~ .home-main { margin-left: 72px; width: calc(100% - 72px); }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-columns > .home-panel:first-child { grid-column: 1 / -1; }
  /* 窄屏两栏时，构成图横向平铺更省纵向空间 */
  .dist-grid { flex-direction: row; gap: 20px; }
  .dist-grid .dist-card { flex: 1 1 0; }
}
@media (max-width: 1050px) {
  .home-columns { grid-template-columns: minmax(0, 1fr); }
  .home-columns > .home-panel:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-card, .entry-card::after, body[data-page="home"] .account .refresh-btn { transition: none; }
  body[data-page="home"] .account .refresh-btn[data-busy] svg { animation: none; }
}

/* 首页 shell 不需要顶部内边距（页头已 fixed） */
body[data-page="home"] .shell { padding-top: 0; }
