/* chigua.bond — 深色事件速报风 */
:root {
  --bg: #0e1117;
  --bg2: #151a24;
  --ink: #e8ecf4;
  --muted: #8b95a8;
  --line: rgba(232, 236, 244, 0.1);
  --brand: #f0a040;
  --brand-dark: #d4862a;
  --surface: rgba(26, 32, 44, 0.92);
  --radius: 10px;
  --max: 900px;
  --sans: "DIN Alternate", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "DIN Condensed", "Arial Narrow", "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background:
    linear-gradient(180deg, #121722 0%, var(--bg) 40%, #0a0d12 100%);
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: #ffc06a; text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  color: inherit; text-decoration: none; font-family: var(--display);
}
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.04em; color: var(--brand); }
.brand-sub { font-size: 0.8rem; color: var(--muted); font-family: var(--sans); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 18px 48px; }

.hero { margin-bottom: 20px; border-left: 3px solid var(--brand); padding-left: 14px; }
.hero h1 {
  margin: 0 0 6px; font-family: var(--display);
  font-size: clamp(1.55rem, 3.8vw, 2.1rem); font-weight: 700; letter-spacing: 0.03em; line-height: 1.3;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { margin: 0; color: var(--muted); font-size: 0.95rem; }

.hub-block { margin: 22px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: 0.02em; }
.more-link { font-size: 0.84rem; color: var(--muted); }
.more-link:hover { color: var(--brand); }
.hub-status { margin: 0 0 10px; font-size: 0.8rem; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip, .chip-link {
  appearance: none; border: 1px solid var(--line); background: var(--bg2);
  color: var(--ink); font: inherit; font-size: 0.84rem; padding: 6px 12px;
  border-radius: 4px; cursor: pointer; text-decoration: none; line-height: 1.3;
}
.chip:hover, .chip-link:hover { border-color: rgba(240, 160, 64, 0.45); color: var(--brand); text-decoration: none; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #1a1208; font-weight: 700; }

.search-bar { display: flex; gap: 8px; }
.search-bar input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; font: inherit; background: var(--bg2); color: var(--ink);
}
.search-bar input:focus { outline: 2px solid rgba(240, 160, 64, 0.4); border-color: var(--brand); }
.search-bar button {
  border: 0; border-radius: 6px; padding: 0 16px; background: var(--brand); color: #1a1208;
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.search-bar button:hover { background: #ffb45a; }

.gallery-block { margin: 22px 0; }
.badge {
  font-size: 0.72rem; color: #1a1208; background: var(--brand);
  padding: 3px 8px; border-radius: 3px; font-weight: 700;
}
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb-card {
  position: relative; margin: 0; padding: 0; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 3/4;
}
.thumb-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.3s ease, opacity 0.2s; }
.thumb-hint {
  position: absolute; left: 8px; bottom: 8px; font-size: 0.7rem; font-weight: 700;
  color: #1a1208; background: var(--brand); padding: 3px 8px; border-radius: 3px; pointer-events: none;
}
.thumb-card:hover img { transform: scale(1.04); opacity: 1; }
.media-empty { padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.hot-list {
  list-style: none; margin: 0; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.hot-item {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.hot-item:last-child { border-bottom: 0; }
.hot-rank { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); font-size: 0.92rem; }
.hot-item:nth-child(n+4) .hot-rank { color: var(--muted); }
.hot-title { color: var(--ink); text-decoration: none; font-size: 0.94rem; line-height: 1.45; }
.hot-title:hover { color: var(--brand); }
.hot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.img-lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 24px; background: rgba(0,0,0,0.88);
}
.img-lightbox[hidden] { display: none !important; }
.img-lightbox img { max-width: min(960px, 100%); max-height: 88vh; object-fit: contain; }
.img-lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 1.4rem; cursor: pointer;
}

.site-footer { border-top: 1px solid var(--line); background: #0a0d12; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 28px 18px 36px; display: grid; gap: 14px; }
.footer-brand { font-family: var(--display); font-size: 1.1rem; font-weight: 700; }
.footer-brand span { color: var(--brand); }
.footer-links, .footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.88rem; }
.footer-links a, .footer-contacts a { color: var(--muted); }
.footer-links a:hover, .footer-contacts a:hover { color: var(--brand); }
.footer-note { margin: 0; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-sub { display: none; }
  .hot-item { grid-template-columns: 24px 1fr; }
  .hot-meta { grid-column: 2; flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .search-bar { flex-direction: column; }
  .search-bar button { padding: 12px 16px; }
}
