:root {
  --blue: #0066FF;
  --red: #E63946;
  --ink: #111111;
  --gray: #4A4A4A;
  --muted: #888888;
  --line: #E0E0E0;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-h: 0 12px 26px rgba(17, 24, 39, 0.10);
  --headH: 60px;
  --tickH: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto,
               "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Header: nav ---------------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; }
.nav {
  height: var(--headH);
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 26px;
  border-bottom: 1px solid var(--ink);
  background: #fff;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 2rem; font-weight: 800; letter-spacing: -0.5px;
  text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.logo svg { width: 28px; height: 28px; flex: none; }
.live {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 1.5px;
  padding: 3px 6px 2px; border-radius: 2px;
  animation: livePulse 1.6s ease-in-out infinite;
}
.cats { display: flex; gap: 24px; margin-left: 6px; min-width: 0; }
.cats a {
  position: relative; padding: 6px 0;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.4px;
  color: var(--gray); white-space: nowrap;
}
.cats a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.28s ease;
}
.cats a:hover, .cats a.active { color: var(--ink); }
.cats a:hover::after, .cats a.active::after { transform: scaleX(1); }
.search {
  margin-left: auto; display: flex; overflow: hidden;
  border: 1px solid var(--line); border-radius: 3px; background: var(--bg);
}
.search input {
  border: 0; background: transparent; outline: none;
  padding: 9px 12px; width: 200px; min-width: 0;
  font: inherit; font-size: 0.9rem; color: var(--ink);
}
.search input:focus { background: #fff; }
.search button {
  border: 0; background: var(--blue); color: #fff;
  width: 42px; cursor: pointer; display: grid; place-items: center;
}
.search button:hover { background: #0052cc; }

/* ---------------- Header: ticker ---------------- */
.ticker {
  height: var(--tickH); background: var(--ink); color: #fff;
  display: flex; align-items: stretch; overflow: hidden;
}
.ticker-cap {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; background: #000;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.ticker-cap::before {
  content: ""; width: 7px; height: 7px; background: var(--red);
  animation: livePulse 1.2s ease-in-out infinite;
}
.ticker-view { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; }
.ticker-track {
  display: flex; width: max-content;
  animation: tickerScroll 40s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; white-space: nowrap; }
.ticker-set a { font-size: 0.85rem; opacity: 0.92; }
.ticker-set a:hover { color: #9cc5ff; opacity: 1; }
.ticker-set a::after {
  content: ""; display: inline-block; width: 5px; height: 5px;
  background: var(--red); margin: 0 20px; vertical-align: middle;
}

/* ---------------- Hero ---------------- */
.hero {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(12, 1fr);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-main {
  grid-column: span 8; position: relative; display: block;
  min-height: 440px; overflow: hidden;
}
.hero-main img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; animation: imgIn 0.8s ease both;
  transition: transform 0.6s ease;
}
.hero-main:hover img { transform: scale(1.03); }
.hero-main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.82) 100%);
}
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; color: #fff; }
.hero-cap h1 {
  font-size: clamp(1.6rem, 2.6vw, 3rem); line-height: 1.08;
  letter-spacing: -0.5px; font-weight: 800; margin: 12px 0 10px;
}
.hero-cap p { color: #d5d7da; font-size: 0.98rem; max-width: 62ch; }
.hero-side {
  grid-column: span 4; min-width: 0;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.hs-item { display: block; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.hs-item time {
  color: var(--red); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.hs-item h3 {
  margin-top: 6px; font-size: 1.05rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-item:hover h3 { color: var(--blue); }
.hs-photo { display: flex; align-items: center; gap: 14px; padding: 18px 22px; flex: 1; min-width: 0; }
.hs-photo figure { width: 118px; height: 118px; flex: none; overflow: hidden; }
.hs-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hs-photo:hover img { transform: scale(1.07); }
.hs-photo h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.32; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-photo:hover h3 { color: var(--blue); }

/* ---------------- Chips & tags ---------------- */
.chip {
  display: inline-block; padding: 4px 8px; border-radius: 2px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue);
  background: rgba(0, 102, 255, 0.08);
}
.chip-red { color: #fff; background: var(--red); }
.tags { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px 0 2px; }
.tags-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; color: var(--muted); margin-right: 4px; }
.tag {
  font-size: 0.78rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; transition: all 0.2s ease;
}
.tag:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------------- Section head ---------------- */
.sec-head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 26px 0 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}
.sec-head h2 { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.sec-head .count { color: var(--muted); font-size: 0.85rem; }

/* ---------------- Matrix grid ---------------- */
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-bottom: 8px; }
.m-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.5s ease both;
}
.m-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.m-card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.m-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.m-card:hover img { transform: scale(1.05); }
.m-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.m-body h3 {
  font-size: 1rem; font-weight: 700; line-height: 1.32; min-height: 2.64em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-card:hover h3 { color: var(--blue); }
.m-body time { color: var(--muted); font-size: 0.78rem; }

/* ---------------- Deep dive (horizontal scroll) ---------------- */
.deep {
  margin-top: 36px; padding: 26px 0 30px;
  background: #ECEEF2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.deep .sec-head { padding-top: 0; }
.dd-track {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 16px;
}
.dd-track::-webkit-scrollbar { height: 8px; }
.dd-track::-webkit-scrollbar-track { background: #dfe2e8; border-radius: 4px; }
.dd-track::-webkit-scrollbar-thumb { background: #c0c6d1; border-radius: 4px; }
.dd-card {
  flex: 0 0 400px; min-width: 0; scroll-snap-align: start;
  background: var(--card); box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dd-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.dd-card figure { aspect-ratio: 16 / 9; overflow: hidden; }
.dd-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dd-card:hover img { transform: scale(1.04); }
.dd-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.dd-body h3 {
  font-size: 1.08rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dd-card:hover h3 { color: var(--blue); }
.dd-body p {
  color: var(--gray); font-size: 0.88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dd-hint { margin-top: 2px; color: var(--muted); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------------- Page head / prose ---------------- */
.page-head { padding: 30px 0 10px; display: grid; gap: 6px; }
.kicker { color: var(--blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.page-head h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; }
.page-sub { color: var(--gray); max-width: 70ch; }

.prose {
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 30px 34px; margin: 18px 0 46px;
}
.prose p { margin-bottom: 14px; color: #2c2c2c; line-height: 1.75; }
.prose h2 { font-size: 1.15rem; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; color: #2c2c2c; }
.prose a { color: var(--blue); font-weight: 600; }

/* ---------------- Wire list (Latest) ---------------- */
.wire {
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); margin: 20px 0 44px;
}
.w-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.w-row:last-child { border-bottom: 0; }
.w-num {
  width: 52px; flex: none; padding-top: 2px;
  font-size: 1.5rem; font-weight: 800; line-height: 1.1;
  color: #D7DBE2; font-variant-numeric: tabular-nums;
}
.w-row figure { width: 150px; aspect-ratio: 4 / 3; flex: none; overflow: hidden; }
.w-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.w-row:hover img { transform: scale(1.05); }
.w-main { min-width: 0; display: grid; gap: 6px; }
.w-main h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.w-row:hover h3 { color: var(--blue); }
.w-main p {
  color: var(--gray); font-size: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.w-main time { color: var(--muted); font-size: 0.78rem; }

/* ---------------- Search page ---------------- */
.tip {
  margin: 14px 0 8px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  color: var(--gray); font-size: 0.9rem;
}
kbd {
  padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 3px; background: #fff; font-size: 0.8em; font-family: inherit;
}
.s-group { padding: 18px 0 8px; }
.s-date {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px;
}
.s-row {
  display: flex; gap: 16px; align-items: baseline;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
}
.s-row time { flex: none; width: 110px; color: var(--muted); font-size: 0.78rem; }
.s-row .s-title { font-weight: 600; font-size: 0.98rem; min-width: 0; }
.s-row:hover .s-title { color: var(--blue); }
.no-results {
  margin: 18px 0 40px; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--red);
}
.no-results p { color: var(--gray); margin-top: 6px; }
mark { background: rgba(0, 102, 255, 0.16); color: inherit; padding: 0 1px; border-radius: 2px; }
[hidden] { display: none !important; }

/* ---------------- Detail page ---------------- */
.back {
  display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 12px;
  color: var(--muted); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.back:hover { color: var(--blue); }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px; align-items: start; padding-bottom: 46px;
}
.story h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.12;
  letter-spacing: -0.5px; margin: 10px 0 12px;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  color: var(--muted); font-size: 0.85rem;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.meta .src { color: var(--blue); font-weight: 600; }
.meta .src:hover { text-decoration: underline; }
.story .hero-img { overflow: hidden; margin-bottom: 22px; }
.story .hero-img img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  animation: imgIn 0.7s ease both;
}
.lede { font-size: 1.12rem; font-weight: 500; color: #333; margin-bottom: 14px; }
.story .body p { margin-bottom: 16px; color: #2c2c2c; font-size: 1rem; line-height: 1.75; }
.story .body h3 {
  margin: 26px 0 10px; font-size: 1.05rem; line-height: 1.4;
  border-left: 3px solid var(--blue); padding-left: 10px;
}
.rail { position: sticky; top: calc(var(--headH) + var(--tickH) + 20px); display: grid; gap: 14px; min-width: 0; }
.rail-title {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 8px;
}
.rel-card {
  display: grid; grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px; align-items: center; padding: 10px;
  background: var(--card); box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.rel-card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.rel-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.rel-card:hover img { transform: scale(1.06); }
.rel-card h4 {
  font-size: 0.88rem; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rel-card:hover h4 { color: var(--blue); }
.rel-card time { display: block; margin-top: 5px; color: var(--muted); font-size: 0.72rem; }

/* ---------------- Footer ---------------- */
.site-foot { background: #fff; border-top: 1px solid var(--ink); margin-top: 8px; }
.foot {
  max-width: 1280px; margin: 0 auto; padding: 26px 24px;
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  align-items: center; justify-content: space-between;
}
.foot-brand { display: grid; gap: 2px; font-size: 1.1rem; font-weight: 800; text-transform: uppercase; }
.foot-brand small { color: var(--muted); font-size: 0.66rem; font-weight: 600; letter-spacing: 1.5px; }
.foot-links { display: flex; gap: 22px; font-size: 0.9rem; font-weight: 600; color: var(--gray); }
.foot-links a:hover { color: var(--blue); }
.foot-right { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 0.8rem; }
.to-top { display: inline-flex; gap: 6px; align-items: center; color: var(--ink); font-weight: 700; }
.to-top:hover { color: var(--blue); }

/* ---------------- Animations ---------------- */
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes imgIn {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- Mobile hamburger (pure CSS checkbox hack) ---------------- */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.burger { display: none; }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
  .m-grid { grid-template-columns: repeat(3, 1fr); }
  .dd-card { flex-basis: 340px; }
  .search input { width: 150px; }
}

@media (max-width: 960px) {
  .nav { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 0; }
  .logo { font-size: 1.5rem; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 42px; height: 40px; margin-left: auto;
    padding: 0 10px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 4px; background: #fff;
  }
  .burger span {
    display: block; height: 2px; width: 100%; border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .burger:hover span { background: var(--blue); }
  .nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cats, .search { display: none; }
  .nav-toggle:checked ~ .cats {
    display: flex; flex-direction: column; width: 100%;
    gap: 0; margin-left: 0; padding: 4px 0 8px;
    border-top: 1px solid var(--line);
    animation: menuIn 0.25s ease both;
  }
  .nav-toggle:checked ~ .cats a {
    padding: 12px 4px; font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .cats a:last-child { border-bottom: 0; }
  .nav-toggle:checked ~ .cats a::after { display: none; }
  .nav-toggle:checked ~ .cats a.active { color: var(--blue); }
  .nav-toggle:checked ~ .search {
    display: flex; width: 100%; margin-left: 0; margin-bottom: 12px;
    animation: menuIn 0.25s ease both;
  }
  .nav-toggle:checked ~ .search input { flex: 1; width: auto; }

  .hero { grid-template-columns: 1fr; }
  .hero-main { grid-column: auto; min-height: 340px; }
  .hero-side {
    grid-column: auto; border-left: 0; border-top: 1px solid var(--line);
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .hs-item { border-bottom: 0; }
  .hs-item:first-child { border-right: 1px solid var(--line); }
  .hs-photo { grid-column: 1 / -1; border-top: 1px solid var(--line); }

  .m-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .detail-grid { grid-template-columns: 1fr; gap: 26px; }
  .rail { position: static; grid-template-columns: repeat(2, 1fr); }
  .rail-title { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .nav { padding: 10px 14px; }
  .logo { font-size: 1.35rem; }
  .hero { margin-top: 14px; }
  .hero-main { min-height: 300px; }
  .hero-cap { padding: 16px; }
  .hero-cap h1 { font-size: 1.55rem; }
  .hero-side { grid-template-columns: 1fr; }
  .hs-item:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .hs-photo { padding: 14px 16px; }
  .hs-photo figure { width: 96px; height: 96px; }
  .sec-head h2 { font-size: 1.1rem; }
  .m-grid { gap: 14px; }
  .m-body { padding: 12px 12px 14px; }
  .m-body h3 { font-size: 0.92rem; }
  .dd-card { flex-basis: 78vw; }
  .page-head h1 { font-size: 1.6rem; }
  .prose { padding: 22px 18px; }
  .w-num { display: none; }
  .w-row { padding: 12px 14px; gap: 12px; }
  .w-row figure { width: 104px; }
  .s-row time { width: 84px; }
  .rail { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-main img { animation: none; opacity: 1; filter: none; }
}
