/* Bitidea News — 浅色专业资讯风 */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #1a1a1a;
  --text-2: #6b7280;
  --accent: #0f62fe;
  --accent-soft: #eef4ff;
  --warn: #d97706;
  --high: #dc2626;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65; font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 16px; }
.logo { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.logo:hover { text-decoration: none; }
.top-nav { display: flex; gap: 14px; flex: 1; }
.top-nav a { color: var(--text-2); font-size: 15px; position: relative; }
.dot-warn { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-left: 3px; vertical-align: super; }
.search-box input {
  border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px;
  font-size: 14px; width: 150px; background: var(--bg); outline: none;
}
.search-box input:focus { border-color: var(--accent); width: 200px; transition: width .2s; }
.cat-nav { display: flex; gap: 4px; overflow-x: auto; padding: 0 16px 10px; -webkit-overflow-scrolling: touch; }
.cat-nav a { white-space: nowrap; padding: 4px 14px; border-radius: 16px; color: var(--text-2); font-size: 14px; }
.cat-nav a.active { background: var(--accent); color: #fff; }
.cat-nav a:hover { text-decoration: none; background: var(--accent-soft); }
.cat-nav a.active:hover { background: var(--accent); }

/* content */
main { padding: 20px 16px 40px; }
.page-title { font-size: 24px; margin: 8px 0 16px; }
.section-title { font-size: 17px; margin: 26px 0 12px; padding-left: 10px; border-left: 4px solid var(--accent); }
.report-banner {
  display: block; background: var(--accent-soft); border: 1px solid #d3e2ff;
  border-radius: var(--radius); padding: 10px 16px; margin-bottom: 6px; font-weight: 500;
}
.report-banner:hover { text-decoration: none; filter: brightness(0.98); }

/* headline */
.headline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.headline-card {
  background: linear-gradient(180deg, #fff, #fbfcff); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.headline-card h3 { margin: 8px 0 6px; font-size: 17px; line-height: 1.45; }
.headline-card h3 a { color: var(--text); }
.headline-card p { margin: 0; font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.badge { padding: 1px 9px; border-radius: 10px; font-size: 12px; }
.badge.cat { background: var(--accent-soft); color: var(--accent); }
.badge.imp-high { background: #fee2e2; color: var(--high); }
.badge.imp-mid { background: #fef3c7; color: var(--warn); }
.badge.imp-low { background: #f3f4f6; color: var(--text-2); }
.card-title { margin: 8px 0 6px; font-size: 17px; line-height: 1.45; }
.card-title a { color: var(--text); }
.card-summary { margin: 0 0 8px; font-size: 14.5px; color: #374151; }
.card-sources { font-size: 13px; }
.card-sources a { color: var(--text-2); }
.pager { display: flex; justify-content: space-between; margin: 20px 0; }

/* folded */
.folded { margin-top: 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 10px 16px; }
.folded summary { cursor: pointer; color: var(--text-2); font-size: 14px; }
.folded ul { margin: 10px 0 4px; padding-left: 18px; }
.folded li { font-size: 14px; margin: 4px 0; }
.folded li a { color: #4b5563; }

/* event detail */
.event-detail h1 { font-size: 24px; line-height: 1.4; margin: 10px 0; }
.event-summary { font-size: 16.5px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 16px 18px; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.tl-time { font-size: 12.5px; }
.tl-source { display: inline-block; background: #f3f4f6; border-radius: 8px; padding: 0 8px; font-size: 12.5px; margin-right: 6px; color: var(--text-2); }

/* lists & tables */
.archive-list { list-style: none; padding: 0; }
.archive-list li { padding: 10px 4px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
th { background: #f9fafb; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.row-warn td { background: #fffbeb; }

/* report */
.report-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.report-body h1 { font-size: 24px; }
.report-body h2 { font-size: 19px; border-left: 4px solid var(--accent); padding-left: 10px; margin-top: 26px; }

.empty { text-align: center; padding: 40px 0; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 18px 0; font-size: 13.5px; color: var(--text-2); }
.site-footer p { margin: 4px 0; }

@media (max-width: 640px) {
  .headline-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .search-box { order: 3; width: 100%; }
  .search-box input { width: 100%; }
  .search-box input:focus { width: 100%; }
}
