/* wqai.ltd v4.1 Production Design System — Crisp Minimalism (Zero Heavy Glow Shadows) */
:root {
  --ac: #c6f432;
  --onac: #111318;
  --ac-ink: #465e06;
  --canvas: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --surface-tint: #f5fbe0;
  --tint-border: #d9ea9a;
  --fg: #111318;
  --fg-2: #4b5262;
  --mut: #767e8f;
  --line: #e4e7ee;
  --line-strong: #cfd4e0;
  --pill-bg: #111318;
  --pill-fg: #ffffff;
  --grid-dot: rgba(17, 19, 24, 0.032);
  --shadow-sm: 0 2px 10px rgba(17, 19, 24, 0.04);
  --shadow-md: 0 10px 24px rgba(17, 19, 24, 0.08);
  color-scheme: light;
}
[data-theme="dark"] {
  --ac: #c6f432;
  --onac: #0b0d12;
  --ac-ink: #c6f432;
  --canvas: #0b0d12;
  --surface: #141822;
  --surface-2: #1c2230;
  --surface-tint: #151e14;
  --tint-border: rgba(198, 244, 50, 0.24);
  --fg: #eef0f5;
  --fg-2: #b8becd;
  --mut: #81899c;
  --line: #212738;
  --line-strong: #2e364d;
  --pill-bg: #eef0f5;
  --pill-fg: #0b0d12;
  --grid-dot: rgba(238, 240, 245, 0.028);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.40);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background-color: var(--canvas);
  background-image:
    linear-gradient(to right, var(--grid-dot) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-dot) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--fg);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
.hd { font-family: "Space Grotesk", "PingFang SC", "Noto Sans SC", sans-serif; letter-spacing: -0.02em; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 980px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 20px; font-weight: 700; }
.brand-sub { font-size: 12.5px; font-weight: 500; color: var(--mut); letter-spacing: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 999px; background: #6f9406; display: inline-block; flex: none; }
[data-theme="dark"] .live-dot { background: var(--ac); }
.nav-pills {
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--canvas);
}
.nav-pill {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--fg-2); border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nav-pill.on { background: var(--pill-bg); color: var(--pill-fg); }
.badge-lime {
  background: var(--ac); color: var(--onac); font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.12);
  line-height: 1.4;
}
[data-theme="dark"] .badge-lime { box-shadow: none; }
.pill-dark {
  background: rgba(17, 19, 24, 0.82); color: #ffffff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px; line-height: 1.4;
}
.pill-topic {
  background: rgba(255, 255, 255, 0.94); color: #111318;
  border: 1px solid rgba(17, 19, 24, 0.12);
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 3px; line-height: 1.4;
  box-shadow: 0 2px 6px rgba(17, 19, 24, 0.12);
}
.chip-topic {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip-topic:hover { border-color: var(--fg); background: var(--ac); color: var(--onac); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg);
  cursor: pointer; transition: transform 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--fg); }
.btn.pri {
  background: var(--ac); color: var(--onac); border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, 0.14);
}
[data-theme="dark"] .btn.pri { box-shadow: none; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.fav-on { background: var(--surface-tint); border-color: var(--ac-ink); color: var(--ac-ink); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card.tint { background: var(--surface-tint); border-color: var(--tint-border); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip {
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); cursor: pointer;
}
.chip.on { background: var(--pill-bg); color: var(--pill-fg); border-color: var(--pill-bg); font-weight: 600; }
.timeline-group { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: start; margin-bottom: 18px; }
.timeline-list { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.poster-169 {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line); background: var(--surface-2);
}
.poster-overlay-tl {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap; pointer-events: none;
}
.poster-overlay-tr {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; align-items: center; gap: 5px;
}
.poster-thumb {
  position: relative; width: 152px; height: 90px; border-radius: 12px;
  overflow: hidden; border: 1px solid var(--line); flex: none; background: var(--surface-2);
}
.poster-169 img, .poster-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.28s ease;
}
.card:hover .poster-169 img, .card:hover .poster-thumb img { transform: scale(1.03); }
.poster-169 svg, .poster-thumb svg { width: 100%; height: 100%; display: block; }
.detail-cover-wrap { margin-bottom: 18px; }
.detail-cover-cap { font-size: 11px; color: var(--mut); margin-top: 6px; text-align: right; }
.clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* High-Heat Competition Topics Strip */
.topic-strip {
  margin-bottom: 22px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.topic-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.topic-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 14px 16px;
}
.topic-links { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.topic-links a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.topic-links a:hover, .topic-links a.topic-go { color: var(--fg); text-decoration: none; }
.topic-anchor-bar {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px;
  padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.topic-anchor-bar a {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--fg-2); border: 1px solid transparent;
}
.topic-anchor-bar a:hover { background: var(--surface-tint); color: var(--ac-ink); border-color: var(--tint-border); }
.mob-carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.mob-carousel-slide { flex: 0 0 100%; width: 100%; scroll-snap-align: start; }
.story-seg { height: 3px; border-radius: 999px; background: var(--line-strong); overflow: hidden; flex: 1; }
.story-fill { height: 100%; width: 0%; background: var(--fg); border-radius: 999px; }
[data-theme="dark"] .story-fill { background: var(--ac); }
.backfill-hint { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); margin: 10px 0 14px; }
.backfill-hint::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.soft-blur { filter: blur(5px); pointer-events: none; user-select: none; opacity: 0.7; }
.drawer-bg {
  position: fixed; inset: 0; background: rgba(11, 13, 18, 0.48); backdrop-filter: blur(3px);
  z-index: 80; display: none; justify-content: flex-end;
}
.drawer-bg.open { display: flex; }
.drawer-panel {
  width: min(500px, 100vw); height: 100%; background: var(--surface);
  border-left: 1px solid var(--line); overflow-y: auto; padding: 24px;
}
.modal-bg {
  position: fixed; inset: 0; background: rgba(11, 13, 18, 0.54); backdrop-filter: blur(4px);
  z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-bg.open { display: flex; }
.modal-box {
  width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 22px; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  max-height: 90vh; overflow-y: auto;
}
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(14px);
  background: var(--fg); color: var(--surface); padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; z-index: 120;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.mob-only { display: none; }
.pc-only { display: block; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 11.5px; color: var(--mut); background: var(--canvas); font-weight: 700; }
/* OPC Interactive Map Section */
.opc-map-shell {
  width: min(1220px, calc(100vw - 40px));
  margin: 0 0 26px 50%;
  transform: translateX(-50%);
}
.opc-map-bar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.opc-map-frame-wrap {
  position: relative; width: 100%; height: min(74vh, 660px); min-height: 540px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.opc-map-frame-wrap iframe {
  display: block; width: 100%; height: 100%; border: 0;
}
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .timeline-group { grid-template-columns: 52px 1fr; gap: 10px; }
  .poster-thumb { width: 96px; height: 64px; }
  .brand-sub { display: none; }
  .nav-pill { padding: 6px 10px; font-size: 12px; }
  .opc-map-shell { width: 100%; margin-left: 0; transform: none; }
  .opc-map-frame-wrap { height: 74vh; min-height: 480px; border-radius: 14px; }
  .mob-only { display: block; }
  .pc-only { display: none; }
  .drawer-bg { align-items: flex-end; }
  .drawer-panel { width: 100%; height: auto; max-height: 88vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; }
}
@media print {
  .no-print, .topbar, footer { display: none !important; }
  body { background: #ffffff !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .card, .card.tint { break-inside: avoid; box-shadow: none !important; }
}
