/* ==========================================================================
   aside.css — 侧栏（设计稿 07/09 的三栏两侧）
     左 200px：游戏分类导航
     右 320px：站点数据 / 折扣热度榜 / 游戏盒子卡
   两侧的显示开关在 layout.css（.col-side / .col-aside 只在 ≥1280 出现）。
   这里只负责「长什么样」，不负责「什么时候出现」。
   依赖：tokens.css / base.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   左侧：游戏分类导航
   -------------------------------------------------------------------------- */
.side-nav {
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-2);
}
.side-nav h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--txt-3);
  padding: 0 var(--sp-2) var(--sp-3);
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--txt-2);
  /* 当前分类的琥珀竖条：用伪元素而不是 border，避免未选中项也占位 */
  position: relative;
}
.side-nav a:hover { background: var(--bg-4); color: var(--txt-1); }
.side-nav a[aria-current="page"] {
  background: var(--bg-4);
  color: var(--txt-1);
  font-weight: 700;
}
.side-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 2px;
  background: var(--acc-400);
}
.side-nav .n {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--txt-3);
  font-variant-numeric: tabular-nums;
}
.side-nav a[aria-current="page"] .n { color: var(--acc-300); }

/* 「近期开服日历」复用 .side-nav 外壳（同一个 200px 窄栏里的第二块，
   视觉上必须和分类导航是同一种卡），但内容是纯日期列表、没有计数。 */
.side-nav--plain { margin-top: var(--sp-4); }
.side-nav--plain a {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  padding-block: 7px;
}
.side-nav--plain .side-more {
  margin-top: var(--sp-1);
  font-size: 12.5px;
  color: var(--txt-3);
  justify-content: flex-end;
}
.side-nav--plain .side-more:hover { color: var(--acc-400); }

/* --------------------------------------------------------------------------
   右栏：站点数据（2×2 计数格）
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-3);
}
.stat-grid b {
  display: block;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--acc-300);
  font-variant-numeric: tabular-nums;
}
.stat-grid span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--txt-3);
}

/* --------------------------------------------------------------------------
   右栏：折扣热度榜（列表行，设计稿 03/07）—— 复用 .aside-card .aside-list
   -------------------------------------------------------------------------- */
.aside-card .aside-list .ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--r-icon);
  object-fit: cover;
  background: var(--bg-4);
}
.aside-card .aside-list .hl-name {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aside-card .aside-list .hl-name > a,
.aside-card .aside-list .hl-name > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aside-card .aside-list .hl-name > .badge-discount { flex: none; }
.aside-card .aside-list .n { flex: none; font-size: 12px; }

/* --------------------------------------------------------------------------
   右栏：详情页下载卡头部（图标 + 游戏名 + 类型/规模信息，设计稿 09）
   -------------------------------------------------------------------------- */
.aside-card .ad-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.aside-card .ad-head .ico {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-icon);
  object-fit: cover;
  background: var(--bg-4);
}
.aside-card .ad-head .ad-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aside-card .ad-head .ad-sub {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--txt-3);
}

/* --------------------------------------------------------------------------
   右栏：游戏盒子卡（非模态二次引导，只在内容流固定位出现）
   -------------------------------------------------------------------------- */
.box-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-3);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.box-card .bc-main { min-width: 0; flex: 1 1 auto; text-align: left; }
.box-card .bc-t { font-size: 14px; font-weight: 700; }
.box-card .bc-d {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--txt-3);
}
.box-card .bc-act { flex: none; }

/* 320px 的侧栏塞不下「图标 + 名 + 角标 + 新区/礼包」四段：
   实测游戏名会被截成「十二战纪（6…」。按设计稿 07 只留前三段，
   全宽列表页（折扣专区等）不受影响，那里照旧显示第四段。 */
@media (min-width: 1280px) {
  .col-aside .aside-card .aside-list .n { display: none; }
}
