:root {
  --bg: #0a0c0f;
  --panel: #111419;
  --line: #222833;
  --text: #e9edf3;
  --muted: #8b95a3;
  --accent: #f7931a;
  --up: #35d07f;
  --down: #ff6b6b;
  --max: 1000px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ticker */
.ticker { background: #06070a; border-bottom: 1px solid var(--line); font-size: 12.5px; overflow: hidden; white-space: nowrap; }
.ticker .wrap { display: flex; gap: 22px; align-items: center; height: 40px; overflow-x: auto; scrollbar-width: none; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.live { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; flex: none; padding: 2px 8px; border: 1px solid rgba(247,147,26,.4); border-radius: 999px; }
.tick { flex: none; color: var(--muted); }
.tick b { color: #cfd7e2; margin-right: 7px; font-weight: 600; letter-spacing: .02em; }
.tick i { font-style: normal; color: var(--text); margin-right: 7px; font-variant-numeric: tabular-nums; }
.tick em { font-style: normal; font-variant-numeric: tabular-nums; }
.tick .up { color: var(--up); }
.tick .down { color: var(--down); }

/* header */
header { border-bottom: 1px solid var(--line); padding: 24px 0 18px; background: radial-gradient(90% 140% at 12% 0%, rgba(247,147,26,.09), transparent 60%); }
header .wrap { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.brand span { color: var(--accent); }
.sub { color: var(--muted); font-size: 13px; }

/* stat cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.card span { color: var(--muted); font-size: 11.5px; letter-spacing: .06em; }
.card b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card i { color: var(--muted); font-size: 11.5px; font-style: normal; }

/* tag chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.chip {
  font-size: 12.5px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  transition: .15s;
}
.chip:hover { color: var(--accent); border-color: rgba(247,147,26,.5); }
.chip.on { color: var(--accent); border-color: rgba(247,147,26,.5); background: rgba(247,147,26,.08); }

/* news list */
.news { margin: 12px 0 40px; border-top: 1px solid var(--line); }
.item { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; position: relative; transition: padding .15s ease; }
.item:hover { padding-left: 10px; }
.item:hover h3 { color: var(--accent); }
.src { display: inline-block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(247,147,26,.28); border-radius: 4px; padding: 1px 6px; margin-bottom: 7px; }
.item h3 { margin: 0; font-size: 17px; line-height: 1.48; font-weight: 600; letter-spacing: -.01em; transition: color .15s; }
.item p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.time { display: inline-block; margin-top: 8px; color: #6b7482; font-size: 11.5px; }
.item.lead { padding: 22px; margin-top: 0; background: linear-gradient(135deg, rgba(247,147,26,.10), rgba(247,147,26,0) 62%); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.item.lead h3 { font-size: 24px; line-height: 1.35; }
.item.lead p { -webkit-line-clamp: 3; font-size: 14.5px; }

/* article */
.post { max-width: 720px; margin: 34px auto 60px; }
.post .meta { display: flex; align-items: center; gap: 12px; }
.post h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.24; letter-spacing: -.025em; margin: 14px 0 12px; }
.tagline { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.tagline .t { font-size: 12.5px; color: var(--accent); border-bottom: 1px solid rgba(247,147,26,.3); }
.lede { font-size: 17.5px; line-height: 1.72; color: #cfd7e2; margin: 0 0 24px; padding-left: 16px; border-left: 3px solid var(--accent); }
.notice { background: rgba(255,255,255,.03); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.btn { display: inline-block; background: var(--accent); color: #14100a; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 999px; }
.btn:hover { filter: brightness(1.08); }

/* related */
.related { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 20px; }
.related h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.row { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row b { display: block; font-size: 15px; font-weight: 600; line-height: 1.45; }
.row:hover b { color: var(--accent); }
.row span { color: #6b7482; font-size: 11.5px; }

/* tag page */
.taghead { margin: 36px 0 4px; }
.taghead h1 { font-size: 34px; margin: 0 0 4px; letter-spacing: -.02em; }
.taghead p { margin: 0; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 40px 0; }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: #6b7482; font-size: 12px; }

@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .item.lead h3 { font-size: 20px; }
  header { padding: 20px 0 16px; }
  .brand { font-size: 22px; }
  .post h1 { font-size: 26px; }
}

/* search */
header .wrap { flex-wrap: wrap; }
.search { margin-left: auto; position: relative; }
.search input {
  width: 210px;
  background: #05070a;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: width .18s ease, border-color .18s;
}
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.search input:focus { outline: none; border-color: rgba(247,147,26,.6); width: 270px; }
.results {
  position: absolute; right: 0; top: 42px;
  width: 380px; max-height: 70vh; overflow: auto;
  background: #0d1014; border: 1px solid var(--line);
  border-radius: 12px; display: none; z-index: 30;
  box-shadow: 0 24px 48px rgba(0,0,0,.55);
}
.results.on { display: block; }
.r-item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.r-item:last-child { border-bottom: none; }
.r-item:hover { background: #131922; }
.r-t { font-size: 13.5px; line-height: 1.45; }
.r-m { color: var(--muted); font-size: 11px; margin-top: 3px; }
.r-empty { padding: 16px; color: var(--muted); font-size: 13px; }

/* home layout with hot list */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.col { min-width: 0; }
.side { position: sticky; top: 16px; display: grid; gap: 16px; }
.hot { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 6px; }
.hot h2 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.hot ol { list-style: none; margin: 0; padding: 0; }
.hot li { border-top: 1px solid var(--line); }
.hot li:first-child { border-top: none; }
.hot li a { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; }
.rank { color: var(--accent); font-weight: 800; font-size: 13px; width: 18px; flex: none; font-variant-numeric: tabular-nums; padding-top: 1px; }
.ht { min-width: 0; }
.ht b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.42; }
.hot li a:hover b { color: var(--accent); }
.ht em { color: #6b7482; font-size: 11px; font-style: normal; }
.about { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin: 0 0 12px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .search input { width: 150px; }
  .search input:focus { width: 190px; }
  .results { width: calc(100vw - 40px); right: -4px; }
}


/* topic cards */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 6px; }
.tcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 5px;
  transition: border-color .15s, transform .15s;
}
.tcard:hover { border-color: rgba(247,147,26,.45); transform: translateY(-1px); }
.tcard:hover b { color: var(--accent); }
.tcard .cnt { color: var(--accent); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.tcard b { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; transition: color .15s; }
.tcard p {
  margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 900px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .topics { grid-template-columns: 1fr; } }

