@charset "utf-8";
/* ============================================================================
   a4.css —— 「A4 门户版」前台的差异样式（版式参考 .NET 的 Cms.Front.A4）

   和 a5.css 的分工，别混：
     · a5.css —— 主题令牌（data-theme 那十几套）+ 映射层 + 装饰层 + 各页面零件
                  （赛事回顾 ⑧ / 教练球队 ⑨ / 翻页 ⑩ …）。**颜色全在那里面**。
     · a4.css —— 只有 A4 版式需要的「结构」：快讯跑马灯、Hero 双栏、数据看台表格、
                  看台定高滚动区、赛季专题卡、榜单行。
                  颜色一律走 a5.css 已经定义好的令牌（--a5-*、--a5-hot-*、--accent-rgb），
                  所以**换主题自动跟着变**，这里不写死任何一个色值（除了「不跟主题走」的
                  直播红，那也是取 --a5-hot-rgb）。

   加载顺序：app.css → a5.css → a4.css。同特异性后者赢，不需要 !important。

   版式出处对照（.NET → PHP）：
     Index.cshtml 的快讯条 / Hero / 数据看台 / 赛季专题 → 本文件 2·3·5·6 段
     a4.css（.NET 那份只有 60 行，动的是页头）        → 本文件第 1 段
   ============================================================================ */

/* ============================================================================
   1. 页头：桌面更松更大，手机收小一号
   （对应 .NET 的 a4.css：同一套 .ui-pill，只是间距/字号不同）
   ============================================================================ */

.site-header nav {
  gap: 0.25rem;
  /*
   * 下面这几条是在「拆 a5 的锁」：
   * a5.css 把导航定死成 nowrap + 横向滚动 + 桌面左侧一条竖线（.site-header nav ，
   * 特异性 0,1,1），会盖掉模板上的 flex-wrap 工具类（0,1,0）—— 所以只加 flex-wrap
   * 也不生效，必须在这里逐条还原成 A4 的行为：手机整行换行，桌面一行靠右。
   */
  flex-wrap: wrap;
  overflow-x: visible;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.site-header nav .ui-pill {
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .site-header nav {
    gap: 0.5rem;
  }

  .site-header nav .ui-pill {
    padding: 0.45rem 1rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .site-header nav {
    gap: 0.75rem;
    /* A4 桌面是整排菜单顶到右边（lg:ml-auto），左侧不留竖线、不跟站名挤在一起 */
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .site-header nav .ui-pill {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
  }
}

/* 全站背景图原图显示（app.css 里压到 .16，A4 版要求「后台设了什么都看得见」）。
   卡片本身是实色，不影响正文可读性。 */
body::before {
  opacity: 1;
}

/* ---- 页头只留一条边线 ----
   a5 在页头底部又叠了两样东西：`::after` 的 2px 强调色渐变、以及一层投影。
   再算上 app.css 本来就有的 1px border-bottom，看起来就是「菜单下面多了一条线」。
   A4 的页头只有 border-bottom 那一条（公共样式给的），这里把 a5 那两层去掉。 */
.site-header::after {
  display: none;
}

.site-header {
  box-shadow: none;
}

/* ============================================================================
   2. 快讯跑马灯

   两份相同内容首尾相接，translateX(-50%) 正好走完一份 —— 接缝不会跳。
   鼠标停上去暂停（否则想点的那条永远在跑）；用户要求减少动效时直接不动。
   ============================================================================ */

.a4-ticker {
  border-bottom: 1px solid var(--a5-line-2);
  background: var(--a5-card);
}

.a4-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.375rem 0;
}

.a4-ticker-label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--a5-on-hot);
  background-image: linear-gradient(135deg,
    rgb(var(--a5-hot-rgb)) 0%,
    rgb(var(--a5-hot-2-rgb, var(--a5-hot-rgb))) 100%);
  box-shadow: 0 2px 10px -4px var(--a5-hot-ring);
}

.a4-ticker-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: currentColor;
  animation: a4-pulse 1.6s ease-in-out infinite;
}

.a4-ticker-viewport {
  position: relative;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.a4-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2rem;
  font-size: 0.75rem;
  color: var(--a5-muted);
  animation: a4-marquee 36s linear infinite;
}

.a4-ticker:hover .a4-ticker-track {
  animation-play-state: paused;
}

.a4-ticker-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.a4-ticker-item:hover {
  color: var(--a5-hot-text);
}

/* 每条前面的小圆点：颜色就是这条的状态 */
.a4-ticker-item::before {
  content: "";
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  margin-right: 0.375rem;
  border-radius: 9999px;
  background: var(--a5-dim);
}

.a4-ticker-item--live::before {
  background: rgb(var(--a5-hot-rgb));
}

.a4-ticker-item--upcoming::before {
  background: rgb(var(--accent-rgb));
}

.a4-ticker-item--finished::before {
  background: var(--a5-dim-2);
}

.a4-ticker-empty {
  font-size: 0.75rem;
  color: var(--a5-dim);
}

@keyframes a4-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes a4-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .a4-ticker-track,
  .a4-ticker-dot {
    animation: none;
  }
}

/* ============================================================================
   3. Hero：左轮播（2fr） ‖ 右栏今日焦点 + 热门入口（1fr）

   桌面让两栏**等高**（grid 默认 stretch），轮播内部 track/slide 都撑满 100%，
   否则卡片比图片高时底下会留一条深色空白。
   手机上轮播用 2:1 定高，右栏藏到下面照常显示。
   ============================================================================ */

.a4-hero-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .a4-hero-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

/*
 * 高度定死，别让图片说了算。
 *
 * 之前桌面写的是 aspect-ratio:auto + min-height，本意是「跟右栏等高」，
 * 但那样 .a4-hero 的高度就变成 auto —— 里面 track / slide / img 的 height:100%
 * 百分比链直接断掉，img 只能按原始像素高度撑开：后台传一张 1200px 的竖图，
 * banner 就跟着长到 1200px 高。手机端因为一直是 aspect-ratio 定比，反而没这问题。
 *
 * 现在的口径：
 *   · 手机 / 平板 —— 2:1 定比（宽定高定，跟图片无关，跟 A4 的 aspect-[2/1] 一致），
 *                    再加 max-height 兜住平板横屏，别比桌面还高；
 *   · 桌面（≥1024）—— 直接 440px，与右栏「今日焦点 + 热门入口」齐平。
 * 两种都是「确定高度」，track / slide / img 的 100% 链成立，
 * 图片一律 object-fit: cover 裁进框里，多高多宽的原图都撑不动这层容器。
 */
.a4-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  aspect-ratio: 2 / 1;
  max-height: 460px;
  box-shadow: var(--a5-shadow);
}

@media (min-width: 1024px) {
  .a4-hero {
    /* 440 ≈ 右栏「今日焦点 4 行 + 热门入口」的实测高度，两栏底边基本齐平 */
    aspect-ratio: auto;
    max-height: none;
    height: 440px;
    /* 固定高度后别再被栅格拉成跟右栏等高 */
    align-self: start;
  }
}

.a4-hero-track {
  display: flex;
  height: 100%;
  min-height: 0;          /* flex 子项默认 min-height:auto，图片高时会顶破容器 */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.a4-hero-slide {
  position: relative;
  height: 100%;
  width: 100%;
  flex: none;
  scroll-snap-align: center;
}

.a4-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 底部整条深色渐变 + 大标题：门户式头条感（.NET 版这里是小胶囊） */
.a4-hero-shade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 4rem 1.25rem 2.25rem;
  pointer-events: none;
  background: var(--a5-hero-shade);
}

.a4-hero-shade b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 640px) {
  .a4-hero-shade b {
    font-size: 1.125rem;
  }
}

.a4-hero-btn {
  position: absolute;
  top: 50%;
  display: none;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.9);
  color: var(--a5-ink-2);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.a4-hero:hover .a4-hero-btn {
  opacity: 1;
}

.a4-hero-btn:hover {
  background: #fff;
  color: var(--a5-ink-title);
}

@media (min-width: 768px) {
  .a4-hero-btn {
    display: flex;
  }
}

.a4-hero-btn--prev { left: 0.75rem; }
.a4-hero-btn--next { right: 0.75rem; }

.a4-hero-dots {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  border-radius: 9999px;
  background: rgb(0 0 0 / 0.3);
  backdrop-filter: blur(4px);
}

.a4-hero-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.5);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.a4-hero-dot.is-on {
  width: 1.25rem;
  background: #fff;
}

/* 没有轮播图时的占位：不要留一块纯黑 */
.a4-hero--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--a5-card-2);
  border: 1px solid var(--a5-line-2);
  color: var(--a5-dim);
  text-align: center;
}

.a4-hero-aside {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1rem;
}

.a4-hero-aside .a4-panel--fill {
  flex: 1;
}

/* 右栏「今日焦点」的紧凑比赛行：徽标 + 队名比分 + 联赛时间 */
.a4-focus-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-top: 1px solid var(--a5-line);
}

.a4-focus-row:first-child {
  border-top: 0;
}

.a4-focus-main {
  min-width: 0;
  flex: 1;
}

.a4-focus-main b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--a5-ink);
  transition: color 0.15s ease;
}

.a4-focus-row:hover .a4-focus-main b {
  color: var(--a5-hot-text);
}

.a4-focus-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  color: var(--a5-dim);
}

/* ============================================================================
   4. 通用零件：栏目标题 / 面板 / 文章行 / 榜单行
   （.NET 那边这些是 partial；PHP 侧放在 views/public/a4_parts.php 里拼）
   ============================================================================ */

.a4-sec {
  margin-top: 2rem;
}

.a4-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.a4-sec-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--a5-ink-title);
}

.a4-sec-sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--a5-dim);
}

.a4-sec-more {
  font-size: 0.75rem;
  color: var(--a5-dim);
  transition: color 0.15s ease;
}

.a4-sec-more:hover {
  color: var(--a5-hot-text);
}

.a4-panel {
  padding: 0.875rem;
}

.a4-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--a5-ink-title);
}

.a4-panel-head a {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--a5-dim);
}

.a4-panel-head a:hover {
  color: var(--a5-hot-text);
}

.a4-empty {
  padding: 1.5rem 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--a5-dim);
}

/* 文章行：左小图 + 右标题/摘要/日期 */
.a4-article-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.625rem 0.5rem;
  transition: background-color 0.15s ease;
}

.a4-article-row:hover {
  background: var(--a5-card-2);
}

.a4-article-thumb {
  display: flex;
  height: 4rem;
  width: 6rem;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--a5-soft);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--a5-dim-2);
}

.a4-article-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.a4-article-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
}

.a4-article-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--a5-ink);
  transition: color 0.15s ease;
}

.a4-article-row:hover .a4-article-title {
  color: var(--a5-hot-text);
}

.a4-article-sum {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--a5-muted);
}

.a4-article-date {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--a5-dim);
}

/* 栏目的头条大图（无封面时用渐变 + 首字占位，版面不塌） */
.a4-block-hero {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.a4-block-hero img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.a4-block-hero:hover img {
  transform: scale(1.05);
}

.a4-block-hero .a4-block-ph {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, #334155 0%, #0f172a 100%);
  font-size: 2.25rem;
  font-weight: 900;
  color: rgb(255 255 255 / 0.2);
}

.a4-block-hero .a4-hero-shade {
  padding: 3rem 1rem 0.75rem;
}

/* 榜单行（进球榜 / 场均得分榜 / 栏目速览共用一个语言） */
.a4-rank-ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.a4-rank-ol li + li {
  border-top: 1px solid var(--a5-line);
}

.a4-rank-ol a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  transition: background-color 0.15s ease;
}

.a4-rank-ol a:hover {
  background: var(--a5-card-2);
}

.a4-no {
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--a5-soft);
  color: var(--a5-dim);
}

.a4-no.is-top {
  background: rgb(var(--accent-rgb));
  color: var(--a5-on-accent);
}

.a4-rank-name {
  min-width: 0;
  flex: 1;
}

.a4-rank-name b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--a5-ink);
}

.a4-rank-name span {
  display: block;
  font-size: 0.6875rem;
  color: var(--a5-dim);
}

.a4-rank-val {
  flex: none;
  text-align: right;
}

.a4-rank-val b {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--a5-ink-title);
}

.a4-rank-val i {
  margin-left: 0.125rem;
  font-size: 0.6875rem;
  font-style: normal;
  color: var(--a5-dim);
}

/* ============================================================================
   5. 数据看台：tab + 表格（桌面 420px 定高，表体在卡片里滚）

   .NET 版的 .a4-table 写死了 #94a3b8 / #f8fafc 这些浅色值，深色主题下会糊成一片。
   这里全部换成 a5.css 的令牌，所以换主题自动跟着变。
   ============================================================================ */

.a4-board-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .a4-board-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* 「电子竞技」整行块：桌面端横跨双列，紧凑行在卡内再排成双列 */
.a4-block-full {
  min-width: 0;
}

@media (min-width: 1024px) {
  .a4-block-full {
    grid-column: 1 / -1;
  }

  .a4-block-full .a4-block-rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.25rem;
  }
}

.a4-h420 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 1024px) {
  .a4-h420 {
    height: 420px;
  }
}

.a4-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--a5-line-3) transparent;
}

.a4-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.a4-scroll::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: var(--a5-line-3);
}

.a4-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.a4-table {
  width: 100%;
  border-collapse: collapse;
}

.a4-table th {
  padding: 0.375rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  color: var(--a5-dim);
}

.a4-table th:first-child,
.a4-table td:first-child {
  text-align: left;
  padding-left: 0.5rem;
}

.a4-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--a5-card);
}

.a4-table td {
  padding: 0.4375rem 0.25rem;
  font-size: 0.8125rem;
  text-align: center;
  white-space: nowrap;
  border-top: 1px solid var(--a5-line);
  color: var(--a5-ink-2);
}

.a4-table tbody tr:nth-child(even) td {
  background: var(--a5-card-2);
}

.a4-table tr.is-top .a4-rank {
  background: rgb(var(--accent-rgb));
  color: var(--a5-on-accent);
}

.a4-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.375rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--a5-soft);
  color: var(--a5-muted);
}

.a4-table .a4-team {
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a4-table td.a4-pt {
  font-weight: 700;
  color: var(--a5-ink-title);
}

/* 整行可点：<tr> 上挂 data-href，点哪都跳（行内 <a> 优先，不重复跳） */
.a4-table tr[data-href] {
  cursor: pointer;
}

.a4-table tr[data-href]:hover td {
  background: var(--a5-card-2);
}

/* ============================================================================
   6. 赛季专题：两张渐变横幅 + SVG 水印
   （.NET 版用 Tailwind 的 from-indigo-900/via-slate-900，PHP 侧没有重新构建
     Tailwind，所以收成两个语义类；颜色是「图片型」装饰，不跟主题令牌走。）
   ============================================================================ */

.a4-season-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .a4-season-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.a4-season {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.25rem;
  color: #fff;
  transition: box-shadow 0.2s ease;
}

.a4-season:hover {
  box-shadow: var(--a5-shadow);
}

.a4-season--ucl {
  background-image: linear-gradient(135deg, #312e81 0%, #0f172a 55%, #000 100%);
}

.a4-season--nba {
  background-image: linear-gradient(135deg, #ea580c 0%, #be123c 55%, #0f172a 100%);
}

.a4-season svg {
  position: absolute;
  right: -1.25rem;
  top: -1.25rem;
  width: 8rem;
  height: 8rem;
  color: rgb(255 255 255 / 0.1);
  transition: transform 0.3s ease;
}

.a4-season:hover svg {
  transform: scale(1.1);
}

.a4-season-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
}

.a4-season-title {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.a4-season-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.6);
}

.a4-season-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background-color 0.15s ease;
}

.a4-season:hover .a4-season-pill {
  background: rgb(255 255 255 / 0.25);
}

/* ============================================================================
   7. 标签云 / 赛程筛选条
   ============================================================================ */

.a4-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--a5-soft);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--a5-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.a4-tag:hover {
  background: rgb(var(--accent-rgb));
  color: var(--a5-on-accent);
}

.a4-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.a4-filter-row > span {
  width: 2rem;
  font-size: 0.75rem;
  color: var(--a5-dim);
}

.a4-schedule-rows {
  margin-top: 0.5rem;
  border-top: 1px solid var(--a5-line);
  padding-top: 0.25rem;
}

/* 手机上「查看更多」整条按钮 */
.a4-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--a5-line-2);
  background: var(--a5-card);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--a5-ink-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.a4-more-btn:hover {
  border-color: rgb(var(--a5-hot-rgb));
  color: var(--a5-hot-text);
}

@media (min-width: 768px) {
  .a4-more-btn {
    display: none;
  }
}

/* ============================================================================
   8. app.css 里没有、但 A4 版式要用到的工具类 + 文章标签

   app.css 是 Tailwind 的构建产物，只有它扫过的类才在。A4 版新用到下面这几个，
   PHP 侧跑不了 Tailwind 构建，就在这里按同样的语义补上（同名同义，不另起名字，
   免得模板里一半用 Tailwind、一半用自定义，后面没人分得清）。
   ============================================================================ */

.overflow-y-auto {
  overflow-y: auto;
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
}

/* 精彩直播第 15 张卡压到三列（≥1024）才出，两列时正好 7 行、三列正好 5 行 */
@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }
}

/* 导航在桌面靠右、并排不换行（A4 的 _Nav.cshtml 用它把菜单推到 logo 对侧） */
@media (min-width: 1024px) {
  .lg\:ml-auto {
    margin-left: auto;
  }

  .lg\:flex-nowrap {
    flex-wrap: nowrap;
  }
}

/* ----------------------------------------------------------------------------
   文章详情底部的标签（.a5-tags / .a5-tag）

   模板里一直在用，但 app.css（Tailwind 产物）和 a5.css 里都没有这两个类，
   之前是裸链接——只有下划线，跟正文分不开。这里按首页标签云的观感补上，
   颜色仍走令牌，深色主题自动跟着变。
   ---------------------------------------------------------------------------- */
.a5-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.a5-tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--a5-soft);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--a5-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.a5-tag:hover {
  background: rgb(var(--accent-rgb));
  color: var(--a5-on-accent);
}

/* 标签后面跟的篇数（搜索页热门标签） */
.a5-tag i {
  margin-left: 0.35rem;
  font-size: 0.6875rem;
  font-style: normal;
  opacity: 0.6;
}

/* ============================================================================
   9. 菜单选中态：照 A4 的实心胶囊

   a5.css 把选中态改成了「淡底 + 底部一条 16px 小横线」（它要跟「正在直播」那个
   橙色入口区分开，见 a5.css 第 139 行那段注释）。A4 用的是 app.css 的默认写法：
   --header-active-bg 实心底 + 白字。

   a4.css 在 a5.css 之后加载，同特异性直接盖掉即可。
   ::after 那条横线要连 content 一起清掉，而 a5.css 里另有
   `body[data-theme] .site-header nav .ui-pill-on::after` 一条更高特异性的规则，
   所以这里也带上 body[data-theme] 前缀。
   ============================================================================ */

.site-header nav .ui-pill-on,
.site-header nav .ui-pill-on:hover {
  background: var(--header-active-bg, #0f172a);
  color: #fff;
}

.site-header nav .ui-pill-on::after,
body[data-theme] .site-header nav .ui-pill-on::after {
  content: none;
}

/* ============================================================================
   10. 可点卡片 hover：只保留 A4 的「上浮 + shadow-md」

   a5.css 第 789-796 行给 `body[data-theme] a.ui-card:hover` 加了一条 A4 没有的效果：
   描边变强调色 + 外面套 3px 光晕。鼠标点完停在卡片上时，那圈彩色描边看着像
   「选中态」，和 A4 的干净上浮完全不是一个观感。

   这里用同一条选择器（同特异性、a4.css 后加载）把它还原成 A4 的样子：
   描边回到 .ui-card 的默认色，阴影就是 tailwind 的 hover:shadow-md。
   ============================================================================ */

body[data-theme] a.ui-card:hover {
  border-color: rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
