/* dashboard.css - 数据/卡片风 (tv/gossip)
   关键词: 紧凑网格 / 数据卡片 / 等宽数字 / 浅蓝灰 / 仪表盘感
*/
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #0f172a;
  background: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

:root {
  --primary: #10B981;
  --accent: #059669;
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --blue: #3b82f6;
  --yellow: #f59e0b;
  --red: #ef4444;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --radius: 8px;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary); }

/* Top header */
.dash-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.dash-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.dash-logo { display: flex; align-items: center; gap: 10px; }
.dash-logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  border-radius: var(--radius);
}
.dash-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.dash-name { font-size: 16px; font-weight: 700; }
.dash-tag { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-nav { display: flex; gap: 4px; }
.dash-nav-link {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.dash-nav-link:hover { background: var(--bg); color: var(--primary); }
.dash-header-meta {
  margin-left: auto;
  display: flex;
  gap: 16px;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: var(--radius);
}
.dash-stat {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dash-stat strong {
  color: var(--primary);
  font-size: 15px;
  margin-right: 4px;
}

/* Hero (dashboard style) */
.dash-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 56px 32px;
}
.dash-hero-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
.dash-hero h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.dash-hero p { font-size: 16px; opacity: 0.92; line-height: 1.6; }
.dash-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-hero-stat {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 18px;
}
.dash-hero-stat .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-bottom: 6px;
}
.dash-hero-stat .value {
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.dash-hero-stat .delta {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.85;
}

/* Main */
.dash-main { padding: 32px 0 64px; }
.dash-container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* Section */
.dash-section { margin-bottom: 48px; }
.dash-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dash-section-header h2 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-section-header h2 .icon {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.dash-section-header .meta { color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Cards (3-col grid) */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.dash-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s;
}
.dash-card:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.dash-card:hover::before { opacity: 1; }
.dash-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.dash-card p { color: var(--text-muted); font-size: 14px; }

/* Ranking list (data-table style) */
.dash-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dash-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background 0.15s;
}
.dash-row:last-child { border-bottom: none; }
.dash-row:hover { background: var(--bg); }
.dash-row-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.dash-row h3 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.dash-row p { color: var(--text-muted); font-size: 13px; }
.dash-row-stat {
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.dash-row-stat strong { color: var(--primary); }

/* FAQ */
.dash-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}
.dash-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
}
.dash-faq-q {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.dash-faq-a {
  color: var(--text-muted);
  font-size: 14px;
}

/* Comparison table */
.dash-table-data {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dash-table-data table { width: 100%; border-collapse: collapse; }
.dash-table-data th, .dash-table-data td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.dash-table-data th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-table-data td { font-variant-numeric: tabular-nums; }
.dash-table-data tr:last-child td { border-bottom: none; }
.dash-table-data tr:hover { background: var(--bg); }

/* Article list */
.dash-articles { display: grid; gap: 12px; }
.dash-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  transition: all 0.15s;
}
.dash-article:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.dash-article h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.dash-article .meta { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Footer */
.dash-footer { background: #0f172a; color: #cbd5e1; margin-top: 64px; padding: 48px 0 0; }
.dash-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.dash-footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.dash-footer-col p { font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.dash-footer-col a {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  padding: 4px 0;
}
.dash-footer-col a:hover { color: var(--primary); }
.dash-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 16px 32px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Article main */
.article-main { max-width: 760px; margin: 0 auto; padding: 56px 32px; }
.article-main h1 { font-size: 36px; font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.article-meta {
  display: flex; gap: 16px; align-items: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 40px;
  font-variant-numeric: tabular-nums;
}
.article-content { font-size: 16px; line-height: 1.85; }
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding: 16px 0 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-content h3 { font-size: 18px; font-weight: 600; margin: 32px 0 12px; color: var(--primary); }
.article-content p { margin-bottom: 18px; }
.article-content blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
}
.article-content ul, .article-content ol { margin: 20px 0; padding-left: 28px; }
.article-content li { margin-bottom: 8px; }
.article-content ul.task-list { list-style: none; padding-left: 0; }
.article-content ul.task-list li { padding-left: 28px; position: relative; }
.article-content ul.task-list li input[type="checkbox"] { position: absolute; left: 0; top: 6px; }
.article-content .md-table { width: 100%; border-collapse: collapse; margin: 28px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.article-content .md-table th, .article-content .md-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.article-content .md-table th { background: var(--bg); font-weight: 600; font-size: 13px; }
.article-content pre.md-code { background: #0f172a; color: #e2e8f0; padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: 13px; margin: 20px 0; }
.article-content .md-chart { margin: 28px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); padding: 16px; }
.article-content .md-chart svg { width: 100%; height: auto; display: block; }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.article-content mark { background: rgba(16, 185, 129, 0.1); color: var(--accent); padding: 2px 6px; border-radius: 3px; }
.article-content code { background: var(--bg); padding: 2px 6px; border-radius: 3px; font-size: 14px; }

/* List/Tag/About/404 (similar to guide but more compact) */
.list-main { max-width: 1080px; margin: 0 auto; padding: 56px 32px; }
.list-main h1 { font-size: 28px; margin-bottom: 32px; }
.tag-main { max-width: 760px; margin: 0 auto; padding: 56px 32px; }
.about-main { max-width: 680px; margin: 0 auto; padding: 56px 32px; }
.about-main h1 { font-size: 32px; margin-bottom: 24px; }
.about-main p { margin-bottom: 16px; line-height: 1.8; }
.error-main { text-align: center; padding: 120px 32px; }
.error-main h1 { font-size: 96px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.error-main p { color: var(--text-muted); margin: 16px 0 32px; }
.error-main a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .dash-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 20px; }
  .dash-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .dash-hero { padding: 40px 20px; }
  .dash-hero h1 { font-size: 26px; }
  .dash-container, .article-main, .list-main, .tag-main, .about-main { padding: 32px 20px; }
  .dash-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}