:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --primary: #2aabee;
  --primary-dark: #1d96d8;
  --border: #2a3544;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.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; justify-content: space-between;
  min-height: 56px; gap: 12px; flex-wrap: wrap;
}
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); }
.hero { padding: 48px 0 32px; text-align: center; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 12px; }
.lead { color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.search-form {
  display: flex; gap: 8px; max-width: 560px; margin: 0 auto 16px;
}
.search-form input {
  flex: 1; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 1rem;
}
.btn {
  display: inline-block; padding: 10px 16px; border-radius: var(--radius);
  border: none; cursor: pointer; font-weight: 600; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-telegram { background: #2481cc; color: #fff; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.cta-row { margin: 20px 0; }
.section { padding: 28px 0; }
.section h2 { font-size: 1.25rem; margin-bottom: 16px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; color: var(--text); font-size: .9rem;
}
.grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--text);
}
.card:hover { border-color: var(--primary); text-decoration: none; }
.card-meta { color: var(--muted); font-size: .85rem; }
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.result-list .meta { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.result-list .desc { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.article-list { list-style: none; padding: 0; }
.article-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.notice {
  background: rgba(42, 171, 238, .12); border: 1px solid rgba(42, 171, 238, .35);
  padding: 12px 14px; border-radius: var(--radius); margin-bottom: 20px; font-size: .95rem;
}
.muted { color: var(--muted); }
.section-intro { color: var(--muted); margin: -0.5rem 0 1rem; font-size: 0.95rem; }
.pagination { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.tabs { margin: 12px 0 20px; }
.tabs a { margin-right: 12px; color: var(--muted); }
.tabs a.active { color: var(--primary); font-weight: 600; }
.article-body h1, .article-body h2, .article-body h3 { margin-top: 1.4em; }
.article-body ul { padding-left: 1.2em; }
.cta-box {
  margin-top: 32px; padding: 24px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border); text-align: center;
}
.site-footer {
  margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .9rem; text-align: center;
}
