/* ============================================================
   每日情报 · Daily Intel — 移动端优先，无外部依赖
   字体只用系统栈；无 Google Fonts / 无 CDN
   ============================================================ */

:root {
  --bg: #eef3f9;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;

  --brand-1: #06b6d4;
  --brand-2: #3b82f6;
  --brand-3: #6366f1;
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2) 52%, var(--brand-3));

  /* 三种真假口径 */
  --v-ok: #047857;   --v-ok-bg: #d1fae5;   --v-ok-line: #a7f3d0;
  --v-rm: #b45309;   --v-rm-bg: #fef3c7;   --v-rm-line: #fde68a;
  --v-an: #4338ca;   --v-an-bg: #e0e7ff;   --v-an-line: #c7d2fe;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px -14px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(60% 34% at 12% 0%, rgba(6, 182, 212, .10), transparent 60%),
    radial-gradient(55% 30% at 95% 6%, rgba(99, 102, 241, .09), transparent 55%),
    var(--bg);
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- 顶部进度条 ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: transparent;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 14px 14px 0;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0891b2 0%, #3b82f6 48%, #6366f1 100%);
  box-shadow: 0 14px 34px -12px rgba(59, 130, 246, .45);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(45% 60% at 85% 10%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(40% 55% at 8% 95%, rgba(255, 255, 255, .12), transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: none;
}
.hero.has-photo { min-height: 210px; aspect-ratio: 16 / 9; }
.hero.has-photo .hero-photo { display: block; }
.hero.has-photo::before {
  background:
    linear-gradient(180deg, rgba(15,23,42,.35) 0%, rgba(15,23,42,.62) 70%, rgba(15,23,42,.78) 100%),
    radial-gradient(45% 60% at 85% 10%, rgba(255,255,255,.12), transparent 60%);
  z-index: 1;
}
.hero.has-photo .hero-grid { opacity: .18; z-index: 1; }
.hero.has-photo .hero-inner { z-index: 2; }
.hero-inner { position: relative; padding: 20px 20px 18px; }

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px; font-weight: 700;
  opacity: .95;
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 2px; background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .9);
  transform: rotate(45deg);
}
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .30);
}
.live i {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.6s ease-in-out infinite;
}

.hero h1 {
  margin-top: 14px;
  font-size: 34px; font-weight: 800; letter-spacing: 6px; line-height: 1.15;
  text-shadow: 0 2px 14px rgba(15, 23, 42, .25);
}
.hero-date { margin-top: 6px; font-size: 15px; font-weight: 600; opacity: .96; }
.hero-date .sep { margin: 0 8px; opacity: .6; }
.hero-meta { margin-top: 6px; font-size: 11.5px; opacity: .82; }
.hero-meta time { font-family: var(--mono); }

.hero-disclaimer {
  display: inline-block; margin-top: 12px;
  font-size: 12px; line-height: 1.6;
  padding: 7px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35);
}
.hero-disclaimer.stale { background: rgba(180, 83, 9, .35); border-color: rgba(253, 230, 138, .7); }

/* Hero photo: cover, never stretch; no empty frame when missing */
.hero.has-photo { margin: 14px 14px 0; }
.hero.has-photo .hero-inner {
  min-height: clamp(200px, 52vw, 320px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 3;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-photo[hidden] { display: none !important; }
.hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15, 23, 42, .28) 0%, rgba(15, 23, 42, .52) 48%, rgba(15, 23, 42, .82) 100%);
  pointer-events: none;
}
.hero.has-photo .hero-grid { z-index: 2; opacity: .22; }
.hero.has-photo::before { z-index: 1; }

/* ---------- 栏目导航（吸顶） ---------- */
.catnav {
  position: sticky; top: 0; z-index: 40;
  margin-top: 14px;
  background: rgba(238, 243, 249, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.catnav-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; gap: 8px;
  padding: 10px 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.catnav-inner::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.chip .ci { display: inline-flex; width: 15px; height: 15px; color: var(--brand-2); }
.chip .ci svg { width: 100%; height: 100%; }
.chip b { font-family: var(--mono); font-size: 11px; font-weight: 700; opacity: .65; }
.chip.active {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px -6px rgba(59, 130, 246, .6);
}
.chip.active .ci { color: #fff; }
.chip.active b { opacity: .9; }
.chip:active { transform: scale(.96); }

/* ---------- 真假筛选 ---------- */
.vfilter-wrap { max-width: 680px; margin: 0 auto; padding: 14px 14px 0; }
.vfilter { display: flex; gap: 8px; flex-wrap: wrap; }

.vchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.vchip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.vchip b { font-family: var(--mono); font-size: 11px; font-weight: 700; opacity: .7; }
.vchip:active { transform: scale(.95); }

.vchip[data-f="已核实"]  { color: var(--v-ok); border-color: var(--v-ok-line); }
.vchip[data-f="传闻"]    { color: var(--v-rm); border-color: var(--v-rm-line); }
.vchip[data-f="媒体解读"] { color: var(--v-an); border-color: var(--v-an-line); }

.vchip.on[data-f="全部"]    { background: var(--ink); border-color: var(--ink); color: #fff; }
.vchip.on[data-f="已核实"]  { background: var(--v-ok-bg); color: var(--v-ok); border-color: var(--v-ok); }
.vchip.on[data-f="传闻"]    { background: var(--v-rm-bg); color: var(--v-rm); border-color: var(--v-rm); }
.vchip.on[data-f="媒体解读"] { background: var(--v-an-bg); color: var(--v-an); border-color: var(--v-an); }

.legend { margin-top: 10px; font-size: 11px; color: var(--faint); line-height: 1.7; }
.legend b { font-weight: 700; }
.lg-v { color: var(--v-ok); } .lg-r { color: var(--v-rm); } .lg-a { color: var(--v-an); }

/* ---------- 栏目与卡片 ---------- */
.sections { max-width: 680px; margin: 0 auto; padding: 6px 14px 34px; }
.sec { scroll-margin-top: 92px; }

.sec-head { display: flex; align-items: center; gap: 10px; margin: 24px 2px 4px; }
.sec-icon {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--grad);
  box-shadow: 0 6px 14px -6px rgba(59, 130, 246, .55);
}
.sec-icon svg { width: 17px; height: 17px; }
.sec-name { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.sec-count {
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--brand-2);
  background: rgba(59, 130, 246, .09); border: 1px solid rgba(59, 130, 246, .25);
  padding: 2px 8px; border-radius: 999px;
}
.sec-desc { margin: 0 2px 12px; font-size: 11.5px; color: var(--faint); letter-spacing: .5px; }

.card {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px 16px 13px;
  margin-bottom: 13px;
  animation: fadeUp .5s cubic-bezier(.2, .7, .3, 1) both;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:active { transform: scale(.99); }
.card.hide { display: none; }

.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 999px; border: 1px solid transparent;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge.v-verified { color: var(--v-ok); background: var(--v-ok-bg); border-color: var(--v-ok-line); }
.badge.v-rumor    { color: var(--v-rm); background: var(--v-rm-bg); border-color: var(--v-rm-line); }
.badge.v-analysis { color: var(--v-an); background: var(--v-an-bg); border-color: var(--v-an-line); }

.subcat {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: #f8fafc; border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 999px;
}

.media { margin: 11px 0 2px; }
.media img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line); background: #f1f5f9;
}
.media figcaption { margin-top: 6px; font-size: 11px; color: var(--faint); }
.media.is-video { position: relative; }
.media.is-video .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(15, 23, 42, .55);
  border: 1.5px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.media.is-video .play::before {
  content: ""; position: absolute; top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}

.title { margin-top: 4px; font-size: 16.5px; font-weight: 700; line-height: 1.55; letter-spacing: .2px; }
.title a { color: inherit; text-decoration: none; }
.title a:active { color: var(--brand-2); }

.summary { margin-top: 7px; font-size: 13.5px; line-height: 1.78; color: #475569; }

.tags { margin-top: 9px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; color: var(--brand-2);
  background: rgba(59, 130, 246, .07); border-radius: 6px; padding: 2px 7px;
}

.meta {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.meta .src { font-weight: 600; color: var(--ink-2); }
.meta .dot { opacity: .4; }
.meta time { font-family: var(--mono); font-size: 11.5px; }
.meta .go {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--brand-2); text-decoration: none;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, .32); background: rgba(59, 130, 246, .06);
  transition: transform .15s ease;
}
.meta .go svg { width: 12px; height: 12px; }
.meta .go:active { transform: scale(.94); }

.sec-empty {
  display: none;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 20px 16px; margin-bottom: 13px;
  text-align: center; font-size: 13px; color: var(--faint);
  background: rgba(255, 255, 255, .6);
}
.sec-empty.show { display: block; }

.fatal {
  margin: 40px 0; padding: 26px 20px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 14px; line-height: 2;
}
.fatal code { font-family: var(--mono); font-size: 12px; background: #f1f5f9; padding: 2px 6px; border-radius: 6px; }

/* ---------- 页脚 / 回顶 ---------- */
.foot { padding: 8px 22px 64px; text-align: center; font-size: 11.5px; color: var(--faint); line-height: 2; }
.foot code { font-family: var(--mono); font-size: 11px; background: #e8eef6; padding: 1px 6px; border-radius: 6px; color: var(--ink-2); }
.foot .arch-link {
  display: inline-block; margin-top: 4px;
  color: var(--brand-2); font-weight: 700; text-decoration: none;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, .32); background: rgba(59, 130, 246, .06);
}

/* Archive list page */
.archive-page .hero-inner { min-height: 0; }
.archive-wrap { max-width: 680px; margin: 0 auto; padding: 8px 16px 64px; }
.archive-lead { font-size: 13px; color: var(--muted); margin: 4px 2px 16px; }
.archive-list { list-style: none; }
.archive-list li { margin-bottom: 10px; }
.archive-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; text-decoration: none; color: var(--ink);
  font-weight: 700; box-shadow: var(--shadow);
}
.archive-list a span { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--brand-2); }
.archive-empty { text-align: center; color: var(--faint); padding: 28px 12px; }

.totop {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(59, 130, 246, .65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
}
.totop svg { width: 19px; height: 19px; }
.totop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- 动效 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.8); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { animation: none; }
  .live i { animation: none; }
}

/* ---------- 桌面 hover 增强（不影响手机） ---------- */
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 16px 34px -14px rgba(15,23,42,.22); }
  .chip:hover { border-color: rgba(59, 130, 246, .5); }
  .vchip:hover { filter: brightness(.97); }
  .meta .go:hover { background: rgba(59, 130, 246, .12); }
  .title a:hover { color: var(--brand-2); }
}

/* ---------- 稍宽屏微调 ---------- */
@media (min-width: 681px) {
  .hero { margin: 20px auto 0; max-width: 652px; }
  .hero.has-photo { margin: 20px auto 0; }
  .hero h1 { font-size: 38px; }
}
