/* Landing page (index.html) styles.
 *
 * Tokens (--bg, --panel, --line, --fg, --accent, ...) come from report.css —
 * include both: <link rel="stylesheet" href="_shared/report.css">
 *               <link rel="stylesheet" href="_shared/style.css">
 *
 * This file adds index-specific layout (search box, filter chips, report cards)
 * on top of the shared design tokens, so the index respects the same light/dark
 * theme as the reports.
 */

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 28px;
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tagline { color: var(--fg-dim); font-size: 14px; margin-top: 6px; }

.search {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--fg);
  padding: 8px 12px;
  font-size: 13px;
  min-width: 200px;
}
.search:focus { outline: none; border-color: var(--accent); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.filter-tag {
  background: var(--panel);
  color: var(--fg-dim);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  user-select: none;
}
.filter-tag:hover { color: var(--fg); border-color: var(--accent); }
.filter-tag.active {
  background: var(--accent-soft);
  color: var(--accent-fg);
  border-color: var(--accent-line);
}

.report {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin: 14px 0;
  transition: border-color 0.15s, transform 0.15s;
}
.report:hover { border-color: var(--accent); transform: translateY(-2px); }
.report h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  /* report.css gives h2 a left border; null it on the index cards */
  border-left: none;
  padding-left: 0;
}
.report h2 a { color: var(--fg); }
.report-meta { color: var(--fg-dim); font-size: 13px; margin-bottom: 10px; }
.report-summary { color: var(--fg); font-size: 14px; margin: 8px 0; }
.report-tags { margin-top: 10px; }

.extras { margin-top: 8px; font-size: 12px; }
.extras a { margin-right: 12px; }

.empty {
  text-align: center;
  color: var(--fg-dim);
  padding: 60px 0;
  font-size: 14px;
}

.draft { opacity: 0.55; }
.draft::after { content: " · 草稿"; color: var(--fg-dim); }
