/* Article stream layout adapted from the supplied design.html. */
body.article-stream, body.article-detail {
  --bg: #090a0d;
  --surface-1: #111317;
  --surface-2: #161920;
  --line: rgba(255, 255, 255, .06);
  --line-hover: rgba(255, 255, 255, .15);
  --text-1: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --accent: #3b82f6;
  background: var(--bg);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  padding: 24px 20px 60px;
  color-scheme: dark;
}
.article-stream *, .article-stream *::before, .article-stream *::after { box-sizing: border-box; }
.article-stream .stream-wrapper { max-width: 840px; margin: 0 auto; padding: 0; }
.article-stream :is(h1, h2, p) { margin: 0; }
.article-stream a { color: inherit; text-decoration: none; }
.article-stream a:hover { text-decoration: none; }
.article-stream :is(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.article-stream .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.article-stream .stream-toolbar { display: flex; align-items: center; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.article-stream .nav-tabs { display: flex; align-items: center; flex-wrap: nowrap; flex: 1; min-width: 0; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.article-stream .nav-tabs::-webkit-scrollbar { display: none; }
.article-stream .tab-item { padding: 5px 14px; font-size: 13px; font-weight: 500; color: var(--text-2); border-radius: 4px; white-space: nowrap; transition: background-color .15s, color .15s; }
.article-stream .tab-item:hover { color: var(--text-1); background: rgba(255, 255, 255, .04); }
.article-stream .tab-item.active { color: #fff; background: rgba(255, 255, 255, .08); font-weight: 600; }
.article-stream .meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 11px; color: var(--text-3); }
.article-stream .meta-left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.article-stream .tag-badge { font-size: 10.5px; font-weight: 500; color: #cbd5e1; background: rgba(255, 255, 255, .05); padding: 1px 6px; border-radius: 3px; overflow-wrap: anywhere; }
.article-stream .tag-time { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.article-stream :is(.lead-title, .lead-desc, .card-h3, .card-p, .hairline-title, .sub-title, .feed-title, .feed-summary) { overflow-wrap: anywhere; }
.article-stream .lead-banner { display: grid; grid-template-columns: 1.25fr 1fr; background: linear-gradient(135deg, rgba(255, 255, 255, .025), transparent); border-radius: 8px; overflow: hidden; margin-bottom: 24px; transition: background-color .25s; }
.article-stream .lead-banner:hover { background-color: rgba(255, 255, 255, .02); }
.article-stream .lead-cover { width: 100%; height: 250px; overflow: hidden; background: #14171e; }
.article-stream :is(.lead-cover, .card-thumb-wide, .hairline-thumb, .sub-thumb, .feed-cover) img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-stream .lead-cover img { transition: transform .4s; filter: brightness(.95); }
.article-stream .lead-banner:hover .lead-cover img { transform: scale(1.03); }
.article-stream .lead-info { padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; }
.article-stream .lead-title { font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: -.2px; margin-bottom: 8px; }
.article-stream .lead-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-stream .lead-banner.without-cover { grid-template-columns: 1fr; }
.article-stream .lead-banner.without-cover .lead-info { min-height: 160px; }
.article-stream .duo-section { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.article-stream .stream-card { min-width: 0; }
.article-stream .feature-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; height: 100%; border-radius: 8px; padding: 16px; transition: background-color .2s, border-color .2s, transform .2s; }
.article-stream .card-outlined { background: var(--surface-1); }
.article-stream .card-outlined:hover { transform: translateY(-2px); }
.article-stream .card-solid { background: var(--surface-2); }
.article-stream .card-solid:hover { background: #1a1f29; transform: translateY(-2px); }
.article-stream .feature-card.without-cover { min-height: 154px; }
.article-stream .card-thumb-wide { width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; margin-bottom: 12px; background: #16181e; }
.article-stream .card-thumb-wide img { transition: transform .35s; }
.article-stream .feature-card:hover .card-thumb-wide img { transform: scale(1.04); }
.article-stream .card-h3 { font-size: 14px; font-weight: 500; line-height: 1.42; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-stream .card-p { font-size: 12px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-stream .hairline-block { display: flex; flex-direction: column; margin-bottom: 24px; border-top: 1px solid var(--line); }
.article-stream .hairline-item { display: flex; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.article-stream .hairline-item:hover { background: rgba(255, 255, 255, .02); }
.article-stream .hairline-thumb { width: 100px; height: 64px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #14171e; }
.article-stream .hairline-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; gap: 5px; }
.article-stream .hairline-title { font-size: 13.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.article-stream .compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.article-stream .compact-grid > article { min-width: 0; }
.article-stream .sub-card { display: flex; gap: 12px; padding: 12px; height: 100%; background: var(--surface-1); border-radius: 8px; transition: background-color .2s; }
.article-stream .sub-card:hover { background: var(--surface-2); }
.article-stream .sub-thumb { width: 104px; height: 70px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #14171e; }
.article-stream .sub-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; gap: 6px; }
.article-stream .sub-title { font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2px; }
.article-stream .article-feed { display: flex; flex-direction: column; gap: 16px; }
.article-stream .feed-card { display: flex; align-items: stretch; gap: 20px; padding: 16px; background: var(--surface-1); border-radius: 8px; transition: background-color .2s; }
.article-stream .feed-card:hover { background: var(--surface-2); }
.article-stream .feed-cover { width: 180px; height: 112px; flex-shrink: 0; overflow: hidden; border-radius: 4px; background: #14171e; }
.article-stream .feed-body { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; }
.article-stream .feed-title { font-size: 15px; font-weight: 500; line-height: 1.45; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-stream .feed-summary { color: var(--text-2); font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-stream .pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.article-stream .page-btn { height: 40px; min-width: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--text-2); background: var(--surface-1); border: 0; transition: color .15s, background-color .15s; }
.article-stream a.page-btn:hover { color: var(--text-1); background: #20252f; }
.article-stream a.page-btn:active { background: #292f3b; }
.article-stream .page-btn.active { color: #fff; background: #2563eb; font-weight: 600; cursor: default; }
.article-stream .page-direction { margin-inline: 4px; }
.article-stream .page-btn.disabled { color: var(--text-3); opacity: .4; cursor: default; }
.article-stream .page-gap { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 20px; color: var(--text-3); font-size: 12px; }
.article-stream .page-mobile-gap { display: none; }
.article-stream .stream-empty { border: 1px dashed var(--line-hover); border-radius: 8px; padding: 60px 20px; text-align: center; }
.article-stream .stream-empty h2 { font-size: 16px; margin-bottom: 8px; }
.article-stream .stream-empty p { color: var(--text-2); font-size: 12px; }
.article-stream #cms-list.htmx-request { opacity: .65; transition: opacity .15s; }
@media (max-width: 768px) {
  .article-stream :is(.lead-banner, .duo-section, .compact-grid) { grid-template-columns: 1fr; }
  .article-stream .lead-cover { height: 200px; }
}
@media (max-width: 480px) {
  body.article-stream { padding: 20px 16px 40px; }
  .article-stream .lead-info { padding: 18px; }
  .article-stream .stream-toolbar { gap: 12px; }
  .article-stream .hairline-title { -webkit-line-clamp: 2; }
  .article-stream :is(.hairline-thumb, .sub-thumb) { width: 80px; height: 60px; }
  .article-stream .feed-card { gap: 12px; padding: 12px; }
  .article-stream .feed-cover { width: 92px; height: 80px; }
  .article-stream .feed-title { font-size: 13px; }
  .article-stream .pagination { gap: 3px; margin-top: 24px; padding-top: 20px; }
  .article-stream .page-btn { height: 36px; min-width: 30px; padding-inline: 7px; }
  .article-stream .page-direction { min-width: 32px; margin-inline: 0; }
  .article-stream .page-gap { height: 36px; min-width: 14px; }
  .article-stream .page-secondary { display: none; }
  .article-stream .page-mobile-gap { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .article-stream *, .article-stream *::before, .article-stream *::after { transition: none !important; }
  .article-stream :is(.lead-banner, .feature-card):hover img, .article-stream .feature-card:hover { transform: none; }
}
