/* ============================================================
   dashboard.css — 登录后首页 + 分类页（2026-08-08 改版）
   设计语言：米白底 + 白卡片 + 红/金/琥珀/石板分类色 + 圆角 14px + 柔和阴影
   ============================================================ */

/* ---------- 登录后首页：顶部 hero ---------- */
.db-hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--line, #e8e2d4);
  margin-bottom: 22px;
}
.db-hero-eyebrow {
  display: flex; align-items: center; gap: 7px;
  font: 600 12.5px var(--mono); letter-spacing: .08em;
  color: var(--mute, #8a8578); text-transform: uppercase;
}
.db-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2ea36b; box-shadow: 0 0 0 3px rgba(46,163,107,.2);
  animation: db-pulse 2.2s ease-in-out infinite;
}
.db-hero-eyebrow {
  background: rgba(46,163,107,.09); border: 1px solid rgba(46,163,107,.22);
  border-radius: 20px; padding: 4px 11px; display: inline-flex;
}
@keyframes db-pulse { 50% { box-shadow: 0 0 0 6px rgba(46,163,107,.08); } }
.db-hero-title {
  margin: 6px 0 4px;
  font: 900 34px var(--serif, Georgia, "Songti SC", serif);
  color: var(--ink, #2b2620); letter-spacing: .01em;
}
.db-hero-dot { color: var(--red, #d63a30); }
.db-hero-sub { font-size: 13px; color: var(--sub, #6b665a); }
.db-hero-actions { display: flex; gap: 10px; padding-bottom: 4px; }

/* ---------- 今日焦点：quote + signals 两栏 ---------- */
.db-focus {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px;
  margin-bottom: 26px;
}
.db-focus-card {
  background: #fff; border: 1px solid #e2dbc9;
  border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(60,50,30,.05);
  transition: box-shadow .2s, transform .2s;
}
.db-focus-card:hover { box-shadow: 0 6px 22px rgba(60,50,30,.1); transform: translateY(-1px); }
.db-focus-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.db-kicker {
  font: 700 12px var(--sans); letter-spacing: .1em; color: var(--mute, #8a8578);
  text-transform: uppercase;
}
.db-focus-more { font-size: 12.5px; color: var(--red, #d63a30); text-decoration: none; }
.db-focus-more:hover { text-decoration: underline; }
.db-quote-text {
  font: 700 17px/1.7 var(--serif, Georgia, "Songti SC", serif);
  color: var(--ink, #2b2620); margin: 0 0 10px;
}
.db-quote-empty { color: var(--mute, #a09a8c); font-weight: 400; font-size: 14px; }
.db-quote-meta { font-size: 12px; color: var(--mute, #a09a8c); }
.db-signal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.db-signal {
  background: var(--bg-soft, #faf7f1); border: 1px solid var(--line, #e8e2d4);
  border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.db-signal-num { font: 800 24px var(--mono, Consolas, monospace); color: var(--red, #d63a30); line-height: 1.1; }
.db-signal-label { font-size: 11.5px; color: var(--sub, #6b665a); }
.db-signal-date { margin-top: 10px; font-size: 11.5px; color: var(--mute, #a09a8c); }

/* ---------- 四大板块 2x2 大卡 ---------- */
.db-cats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-bottom: 30px;
}
.db-cat {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line, #e8e2d4);
  border-top: 4px solid var(--line, #e8e2d4);
  border-radius: 14px; padding: 18px 20px 16px;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 10px rgba(60,50,30,.05);
  transition: box-shadow .2s, transform .2s;
}
.db-cat:hover { box-shadow: 0 8px 26px rgba(60,50,30,.11); transform: translateY(-2px); }
.db-cat-fupan   { border-top-color: var(--red, #d63a30); }
.db-cat-guping  { border-top-color: var(--gold, #a97e1f); }
.db-cat-xuangu  { border-top-color: var(--amber, #b57708); }
.db-cat-guanzhu { border-top-color: var(--slate, #61748a); }
.db-cat-top { display: flex; align-items: center; gap: 9px; }
.db-cat-ic { font-size: 16px; }
.db-cat-fupan .db-cat-ic, .db-cat-fupan .db-cat-name { color: var(--red, #d63a30); }
.db-cat-guping .db-cat-ic, .db-cat-guping .db-cat-name { color: var(--gold, #a97e1f); }
.db-cat-xuangu .db-cat-ic, .db-cat-xuangu .db-cat-name { color: var(--amber, #b57708); }
.db-cat-guanzhu .db-cat-ic, .db-cat-guanzhu .db-cat-name { color: var(--slate, #61748a); }
.db-cat-name { font: 800 17px var(--serif, Georgia, "Songti SC", serif); letter-spacing: .03em; }
.db-cat-cnt {
  margin-left: auto; font: 600 11.5px var(--mono, Consolas, monospace);
  color: var(--mute, #8a8578); background: #f5f1e8;
  border-radius: 20px; padding: 2px 9px;
}
.db-cat-desc { margin: 9px 0 0; font-size: 12.5px; color: var(--sub, #6b665a); line-height: 1.7; }
.db-cat-latest {
  margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line, #e8e2d4);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
}
.db-cat-latest-tag {
  font: 700 10.5px var(--sans); letter-spacing: .06em; color: #fff;
  background: var(--red, #d63a30); border-radius: 4px; padding: 1.5px 6px;
}
.db-cat-latest-title { font-weight: 600; color: var(--ink, #2b2620); }
.db-cat-latest-date { font-size: 11.5px; color: var(--mute, #a09a8c); margin-left: auto; }
.db-cat-teaser {
  margin: 8px 0 0; font-size: 12.5px; color: var(--sub, #6b665a);
  line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.db-cat-empty { margin-top: 13px; font-size: 12.5px; color: var(--mute, #a09a8c); }

/* ---------- 区块头 ---------- */
.db-section { margin-bottom: 32px; }
.db-sec-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px;
}
.db-sec-head h2 {
  font: 900 21px var(--serif, Georgia, "Songti SC", serif);
  color: var(--ink, #2b2620); margin: 0;
}
.db-sec-note { font-size: 12px; color: var(--mute, #a09a8c); }

/* ---------- 时间线 ---------- */
.db-timeline {
  border-left: 2px solid var(--line, #e8e2d4);
  margin-left: 9px; padding-left: 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.db-tl-item {
  position: relative;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #e8e2d4);
  border-radius: 12px; padding: 12px 16px;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .18s;
}
.db-tl-item:hover { box-shadow: 0 4px 16px rgba(60,50,30,.09); transform: translateX(2px); }
.db-tl-dot {
  position: absolute; left: -29px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red, #d63a30);
  border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line, #e8e2d4);
}
.db-tl-dot-guping  { background: var(--gold, #a97e1f); }
.db-tl-dot-xuangu  { background: var(--amber, #b57708); }
.db-tl-dot-guanzhu { background: var(--slate, #61748a); }
.db-chip {
  flex: 0 0 auto;
  font: 700 11px var(--sans); border-radius: 20px; padding: 2px 9px;
}
.db-chip-fupan   { color: var(--red-deep, #b02a20); background: rgba(214,58,48,.08); border: 1px solid rgba(214,58,48,.22); }
.db-chip-guping  { color: var(--gold, #a97e1f); background: rgba(169,126,31,.1); border: 1px solid rgba(169,126,31,.28); }
.db-chip-xuangu  { color: var(--amber, #b57708); background: rgba(181,119,8,.1); border: 1px solid rgba(181,119,8,.28); }
.db-chip-guanzhu { color: var(--slate, #61748a); background: rgba(97,116,138,.1); border: 1px solid rgba(97,116,138,.28); }
.db-tl-body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.db-tl-title { font-weight: 650; font-size: 14.5px; color: var(--ink, #2b2620); }
.db-tl-teaser {
  font-size: 12.5px; color: var(--sub, #6b665a); line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-tl-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--mute, #a09a8c);
}

/* ---------- 热门 Top5 ---------- */
.db-top { display: flex; flex-direction: column; gap: 8px; }
.db-top-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line, #e8e2d4);
  border-radius: 12px; padding: 11px 16px;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .18s;
}
.db-top-item:hover { box-shadow: 0 4px 16px rgba(60,50,30,.09); transform: translateX(2px); }
.db-top-rank {
  flex: 0 0 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font: 800 15px var(--mono, Consolas, monospace);
  color: var(--red, #d63a30); background: rgba(214,58,48,.08);
}
.db-top-item:nth-child(1) .db-top-rank { background: var(--red, #d63a30); color: #fff; }
.db-top-item:nth-child(2) .db-top-rank { background: rgba(169,126,31,.14); color: var(--gold, #a97e1f); }
.db-top-item:nth-child(3) .db-top-rank { background: rgba(181,119,8,.12); color: var(--amber, #b57708); }
.db-top-title { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; color: var(--ink, #2b2620); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-top-meta { flex: 0 0 auto; font-size: 12px; color: var(--mute, #a09a8c); }

/* ============================================================
   分类页（category.html）
   ============================================================ */
.cat-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0 14px; border-bottom: 1px solid var(--line, #e8e2d4);
  margin-bottom: 14px;
}
.cat-head-ic {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff;
  background: linear-gradient(135deg, #d63a30, #b02a20);
  box-shadow: 0 4px 12px rgba(214,58,48,.22);
}
.cat-head-info { flex: 1; min-width: 0; }
.cat-head-title {
  margin: 0 0 4px;
  font: 900 22px var(--serif, Georgia, "Songti SC", serif);
  color: var(--ink, #2b2620);
}
.cat-head-desc { margin: 0 0 4px; font-size: 13px; color: var(--sub, #6b665a); line-height: 1.6; }
.cat-head-meta { margin: 0; font-size: 12.5px; color: var(--mute, #a09a8c); }
.cat-head-sep { margin: 0 4px; }
.cat-head-date { color: var(--red, #d63a30); font-weight: 600; }

/* feature 大卡 */
.cat-feature {
  display: block;
  background: #fff; border: 1px solid var(--line, #e8e2d4);
  border-left: 5px solid var(--red, #d63a30);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 12px;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 12px rgba(60,50,30,.06);
  transition: box-shadow .2s, transform .2s;
}
.cat-feature:hover { box-shadow: 0 8px 26px rgba(60,50,30,.12); transform: translateY(-2px); }
.cat-feature-flag {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.cat-feature-tag {
  font: 700 11px var(--sans); letter-spacing: .06em; color: #fff;
  background: var(--red, #d63a30); border-radius: 5px; padding: 2.5px 8px;
}
.cat-feature-date { font: 600 12px var(--mono, Consolas, monospace); color: var(--mute, #a09a8c); }
.cat-feature-title {
  margin: 0 0 6px;
  font: 800 19px var(--serif, Georgia, "Songti SC", serif);
  color: var(--ink, #2b2620);
}
.cat-feature-teaser {
  margin: 0 0 8px; font-size: 13px; color: var(--sub, #6b665a); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-feature-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--mute, #a09a8c);
}
.cat-feature-go { margin-left: auto; font-weight: 700; color: var(--red, #d63a30); }

/* 历史列表行卡 */
.cat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cat-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #e8e2d4);
  border-radius: 12px; padding: 12px 16px;
  text-decoration: none; color: inherit;
  transition: box-shadow .18s, transform .18s;
}
.cat-row:hover { box-shadow: 0 4px 16px rgba(60,50,30,.09); transform: translateX(2px); }
.cat-row-date {
  flex: 0 0 84px; text-align: center;
  font: 600 11.5px var(--mono, Consolas, monospace); color: var(--red, #d63a30);
  background: rgba(214,58,48,.06); border-radius: 8px; padding: 5px 6px;
}
.cat-row-body { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-row-title { font-weight: 650; font-size: 14px; color: var(--ink, #2b2620); }
.cat-row-teaser {
  font-size: 12.5px; color: var(--sub, #6b665a); line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-row-meta { flex: 0 0 auto; display: flex; gap: 12px; font-size: 12px; color: var(--mute, #a09a8c); }

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .db-focus { grid-template-columns: 1fr; }
  .db-cats { grid-template-columns: 1fr; }
  .db-hero-title { font-size: 28px; }
  .cat-head-ic { flex-basis: 44px; width: 44px; height: 44px; font-size: 18px; }
}
@media (max-width: 560px) {
  .db-tl-meta, .cat-row-meta { display: none; }
  .cat-feature-title { font-size: 18px; }
}

.db-cat-fupan .db-cat-cnt   { color: var(--red-deep, #b02a20); background: rgba(214,58,48,.08); }
.db-cat-guping .db-cat-cnt  { color: var(--gold, #a97e1f); background: rgba(169,126,31,.1); }
.db-cat-xuangu .db-cat-cnt  { color: var(--amber, #b57708); background: rgba(181,119,8,.1); }
.db-cat-guanzhu .db-cat-cnt { color: var(--slate, #61748a); background: rgba(97,116,138,.1); }
.db-cat-fupan .db-cat-latest-tag   { background: var(--red, #d63a30); }
.db-cat-guping .db-cat-latest-tag  { background: var(--gold, #a97e1f); }
.db-cat-xuangu .db-cat-latest-tag  { background: var(--amber, #b57708); }
.db-cat-guanzhu .db-cat-latest-tag { background: var(--slate, #61748a); }
