/* ============================================================
   每日 AI / 互联网早报
   ============================================================ */

.nw-hd-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------- 早报头 ------------------------------- */
.nw-hero {
  position: relative;
  margin: 4px 0 22px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(1000px 240px at 8% -30%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(700px 220px at 92% 140%, rgba(167, 139, 250, .12), transparent 70%),
    var(--panel);
  overflow: hidden;
}
.nw-hero::after {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
}
.nw-hero-skeleton { color: var(--dim); font-size: 13px; }
.nw-hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; }
.nw-badge {
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: #04121a;
  background: var(--cyan);
  border-radius: 2px;
  font-weight: 700;
}
.nw-hero-title {
  margin: 12px 0 8px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .5px;
  line-height: 1.3;
}
.nw-hero-intro { margin: 0; color: var(--muted); font-size: 13px; max-width: 860px; }
.nw-nums {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--dim);
}
.nw-nums b { color: var(--text); font-family: var(--mono); font-size: 16px; margin-right: 3px; }

.nw-bullets {
  margin: 14px 0 0;
  padding: 14px 14px 14px 34px;
  background: rgba(6, 10, 17, .55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  counter-reset: b;
}
.nw-bullets li { margin: 0 0 6px; padding-left: 2px; }
.nw-bullets li:last-child { margin-bottom: 0; }
.nw-bullets li::marker { color: var(--cyan); font-family: var(--mono); }
.nw-bullets a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.nw-bullets a:hover { color: var(--cyan); border-bottom-color: rgba(34, 211, 238, .5); }
.nw-bullets em {
  font-style: normal;
  margin-left: 7px;
  font-size: 10px;
  font-family: var(--mono);
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 2px;
  white-space: nowrap;
}

.nw-empty-hero { text-align: center; padding: 26px 0; }
.nw-empty-hero b { font-size: 16px; }
.nw-empty-hero p { color: var(--dim); font-size: 13px; margin: 6px 0 14px; }
.nw-btn {
  display: inline-block; padding: 7px 16px;
  border: 1px solid var(--cyan); color: var(--cyan);
  border-radius: var(--radius); text-decoration: none; font-size: 12px;
}
.nw-btn:hover { background: rgba(34, 211, 238, .1); }

/* ------------------------------- 分类 tab ------------------------------- */
.nw-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.nw-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--panel); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; cursor: pointer; font-family: var(--sans);
  transition: .15s;
}
.nw-tab i { font-style: normal; font-size: 12px; }
.nw-tab span {
  font-family: var(--mono); font-size: 10px; color: var(--dim);
  background: rgba(140, 165, 200, .1); padding: 0 5px; border-radius: 8px;
}
.nw-tab:hover { border-color: var(--line-strong); color: var(--text); }
.nw-tab.on { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, .1); font-weight: 600; }
.nw-tab.on span { color: var(--cyan); background: rgba(34, 211, 238, .15); }

/* ------------------------------- 布局 ------------------------------- */
.nw-layout { display: grid; grid-template-columns: 1fr 258px; gap: 24px; align-items: start; }
.nw-main { min-width: 0; }

/* ------------------------------- 列表 ------------------------------- */
.nw-group { margin-bottom: 26px; }
.nw-group-hd {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 1px; color: var(--muted);
  font-weight: 600;
}
.nw-group-hd em {
  font-style: normal; font-family: var(--mono); font-size: 10px;
  color: var(--dim); font-weight: 400;
}

.nw-item {
  position: relative;
  display: flex; gap: 12px;
  padding: 13px 14px 13px 16px;
  margin-bottom: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: .15s;
}
.nw-item::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px;
  background: var(--line-strong); border-radius: 2px; transition: .15s;
}
.nw-item:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateX(2px); }
.nw-item:hover::before { background: var(--cyan); }
/* 分类色条 */
.nw-item[data-cat="ai"]::before { background: rgba(34, 211, 238, .75); }
.nw-item[data-cat="internet"]::before { background: rgba(167, 139, 250, .75); }
.nw-item[data-cat="hardware"]::before { background: rgba(163, 230, 53, .75); }
.nw-item[data-cat="business"]::before { background: rgba(251, 191, 36, .75); }
.nw-item[data-cat="policy"]::before { background: rgba(248, 113, 113, .75); }
.nw-item[data-cat="global"]::before { background: rgba(96, 165, 250, .75); }

.nw-body { min-width: 0; flex: 1; }
.nw-item-hd { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 10.5px; margin-bottom: 5px; }
.nw-src { color: var(--muted); font-weight: 600; }
.nw-en {
  font-family: var(--mono); font-size: 9px; letter-spacing: .5px;
  color: var(--violet); border: 1px solid rgba(167, 139, 250, .4);
  padding: 0 4px; border-radius: 2px;
}
.nw-cat-tag {
  padding: 0 6px; border-radius: 2px; font-size: 10px;
  color: var(--dim); background: rgba(140, 165, 200, .09);
}
.nw-hot {
  padding: 0 6px; border-radius: 2px; font-size: 10px;
  color: var(--amber); background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .32);
}
.nw-time { margin-left: auto; font-size: 10px; }

.nw-title { margin: 0 0 5px; font-size: 15px; line-height: 1.5; font-weight: 700; letter-spacing: .2px; }
.nw-title a { color: var(--text); text-decoration: none; }
.nw-item:hover .nw-title a { color: var(--cyan); }
.nw-summary {
  margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nw-none { color: var(--dim); font-style: italic; }
.nw-empty, .nw-note { color: var(--dim); font-size: 12.5px; }

/* ------------------------------- 侧栏 ------------------------------- */
.nw-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 82px; }
.nw-side-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
}
.nw-side-hd {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 2px; color: var(--muted);
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
.nw-days { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow: auto; }
.nw-day {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 7px; border-radius: 3px;
  text-decoration: none; color: var(--muted); font-size: 12px;
}
.nw-day b { font-weight: 600; font-size: 12.5px; min-width: 46px; }
.nw-day span { font-size: 10px; color: var(--dim); }
.nw-day em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.nw-day:hover { background: var(--panel-2); color: var(--text); }
.nw-day.on { background: rgba(34, 211, 238, .1); color: var(--cyan); }
.nw-day.on em, .nw-day.on span { color: rgba(34, 211, 238, .7); }

.nw-srcs { display: flex; flex-wrap: wrap; gap: 5px; }
.nw-src-chip {
  font-size: 10.5px; padding: 2px 7px; border-radius: 2px;
  color: var(--muted); border: 1px solid var(--line); background: var(--bg-2);
}
.nw-src-chip i {
  font-style: normal; font-family: var(--mono); font-size: 8px;
  color: var(--violet); margin-left: 4px; vertical-align: 1px;
}
.nw-src-chip.off { opacity: .38; text-decoration: line-through; }
.nw-src-chip.warn { border-color: rgba(251, 191, 36, .4); color: var(--amber); }
.nw-note { margin: 10px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--dim); }

/* ------------------------------- 响应式 ------------------------------- */
@media (max-width: 1000px) {
  .nw-layout { grid-template-columns: 1fr; }
  .nw-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .nw-side-box { flex: 1 1 240px; }
  .nw-days { max-height: 200px; }
}
@media (max-width: 640px) {
  .nw-hero { padding: 16px 14px 16px 16px; }
  .nw-hero-title { font-size: 19px; }
  .nw-nums { gap: 14px; font-size: 11px; }
  .nw-nums b { font-size: 14px; }
  .nw-bullets { padding: 12px 10px 12px 28px; font-size: 12.5px; }
  .nw-item { padding: 11px 11px 11px 13px; }
  .nw-title { font-size: 14px; }
  .nw-summary { -webkit-line-clamp: 3; }
  .nw-hd-right { width: 100%; }
  .nw-hd-right .input { flex: 1; width: auto !important; }
}
