@charset "utf-8";
/* ============================================================================
   chrome-hot.css —— 全站外壳：左侧栏 + 手机顶栏 / 抽屉 + 页脚（2026-11-23）
   ----------------------------------------------------------------------------
   一套标记、一套样式，首页和内页都用它：

     · 首页：views/public/layout_hot_top.php / layout_hot_bottom.php
     · 内页：views/public/layout_top.php / layout_bottom.php

   标记在 views/public/chrome_hot.php 的 hot_chrome_header() / hot_chrome_footer()，
   交互在 assets/front/chrome-hot.js —— 改结构只改那个 PHP 文件。

   版式来自 设计/品牌词3/品牌词3.html：
     · ≥1101：左边 252px 竖排栏目（贴顶、整屏高），右边内容列 + 深色页脚；
     · ≤1100：左侧栏收起，换一条固定顶栏（站标 + 直播中 + 汉堡），栏目进抽屉。
     设计稿的抽屉只在 ≤640 出现，但顶栏 1100 就换成了汉堡，641~1100 之间
     按钮点了没反应 —— 这里把抽屉和顶栏收在同一个断点（≤1100）。

   颜色全部读主题令牌（theme-hot.css 的 --side-* / --band-* / --hc-*），
   本文件里的默认值只是「主题文件没加载」时的兜底（品牌词3 纸白蓝）。
   为什么用 hc- 前缀：内页还加载着 app.css / a5.css（.site-header / .ui-pill …），
   前缀 + 后加载，两边互不打扰。
   ============================================================================ */

:root {
  --hc-max: 1240px;   /* 内容列宽度，和首页 .container 一致 */
  --hc-side: 252px;   /* 设计稿的侧栏宽 */
  --hc-topbar: 64px;  /* 窄屏顶栏高 */
  --hc-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --hc-cond: "Barlow Condensed", "Oswald", "Arial Narrow", "Noto Sans SC", system-ui, sans-serif;

  /* ---- 兜底：品牌词3·纸白蓝（theme-hot.css 会按后台主题覆盖） ---- */
  --hc-line: rgba(21, 23, 28, .10);
  --hc-line-strong: rgba(21, 23, 28, .18);
  --hc-txt: #15171c;
  --hc-txt-2: #4b515d;
  --hc-txt-3: #8a909c;
  --hc-grad: linear-gradient(100deg, #1456ff 0%, #4c82ff 100%);

  --side-bg: #faf9f5;
  --side-txt: #15171c;
  --side-txt-2: #4b515d;
  --side-txt-3: #8a909c;
  --side-hover: rgba(21, 23, 28, .06);
  --side-active-bg: #15171c;
  --side-active-txt: #ffffff;
  --side-active-ico: #1456ff;

  --band: #15171c;
  --band-2: #1d2027;
  --band-txt: #f2f3f5;
  --band-txt-2: #a7adb9;
  --band-txt-3: #7d8493;
  --band-line: rgba(255, 255, 255, .10);
  --band-accent: #8fb4ff;
  /* 页脚比电竞通栏再深一档（设计稿：#121418 vs #0c0e11） */
  --band-foot: #0c0e11;
  --foot-txt: #f2f3f5;
  --foot-txt-2: #9aa1ae;
  --foot-txt-3: #6f7684;
}

/* ============================== 外壳骨架 ============================== */
.shell {
  display: grid;
  grid-template-columns: var(--hc-side) minmax(0, 1fr);
  min-height: 100vh;
  font-family: var(--hc-sans);
}
.shell-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ============================== 左侧栏 ============================== */
.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--hc-line);
  background: var(--side-bg);
  color: var(--side-txt);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

/* 站标：方标 + 站名 + 一行小字
   ⚠️ 方标底色用「卡片白」而不是主题色：后台上传的 logo 多是深色圆标
   （深蓝底 + 红色鹰），压在近黑的主题色块上会糊成一团。白底 + 细边框最稳。 */
.hc-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.hc-logo-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hc-logo-mark svg { width: 20px; height: 20px; }
.hc-logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.hc-logo-txt { min-width: 0; line-height: 1.2; }
.hc-logo-txt b {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--side-txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 8.5em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--side-txt-2);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.side-nav a .ico {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--side-txt-3);
  transition: color .2s;
}
.side-nav a .ico svg { width: 17px; height: 17px; display: block; }
/* 栏目名太长就省略，不要把侧栏撑出横向滚动 */
.side-nav a .lbl {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-nav a:hover { background: var(--side-hover); color: var(--side-txt); }
.side-nav a.on {
  background: var(--side-active-bg);
  color: var(--side-active-txt);
  font-weight: 700;
}
.side-nav a.on .ico { color: var(--side-active-ico); }

/* 内页正文与外壳之间留一点呼吸：首页的每个 section 自带 padding，
   内页的 <main> 开头是面包屑（mt-4），贴着视口上沿太紧 */
body:not(.b3-home) .shell-main > main { padding-top: 10px; }

/* ============================== 窄屏顶栏 ============================== */
.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--hc-topbar);
  padding: 0 18px;
  border-bottom: 1px solid var(--hc-line);
  background: color-mix(in srgb, var(--side-bg) 96%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: border-color .3s, background .3s;
}
.topbar.scrolled {
  background: var(--side-bg);
  border-bottom-color: var(--hc-line-strong);
}
.topbar .hc-logo-txt b { color: var(--side-txt); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* 「直播中 N」小按钮 */
.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--side-active-bg);
  color: var(--side-active-txt);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.btn-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--side-active-ico);
  animation: hc-pulse 1.5s infinite;
}
@keyframes hc-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--side-active-ico) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* 汉堡：三个 span 叠在同一格里，靠位移拉开 */
.hc-burger {
  position: relative;
  width: 40px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--hc-line-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--side-bg) 70%, transparent);
  cursor: pointer;
}
.hc-burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 16px;
  height: 1.6px;
  margin: 0;
  border-radius: 2px;
  background: var(--side-txt);
  transition: transform .25s, opacity .25s;
  transform: translate(-50%, -50%);
}
.hc-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5.2px)); }
.hc-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5.2px)); }
.hc-burger.on span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.hc-burger.on span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(.4); }
.hc-burger.on span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* 抽屉（和顶栏同一个断点出现） */
.hc-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 55;
  padding: calc(var(--hc-topbar) + 12px) 16px 24px;
  background: color-mix(in srgb, var(--side-bg) 98%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hc-line-strong);
  max-height: 100vh;
  overflow: auto;
  overscroll-behavior: contain;
  transform: translateY(-102%);
  transition: transform .36s cubic-bezier(.5, 0, .2, 1);
  font-family: var(--hc-sans);
}
.hc-drawer.open { transform: none; }
.hc-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--side-txt-2);
  text-decoration: none;
  border-bottom: 1px solid var(--side-hover);
}
/* 选中项用主题强调色：深色主题下 --side-active-ico 是「强调色上的文字」
   （近黑），拿来当文字色在深底上就看不见了（2026-11-23 用户反馈）。
   volt 在浅 / 深两套底上都够对比，抽屉直接用它。 */
.hc-drawer a.on { color: var(--volt); }
.hc-drawer a::after { content: "›"; color: var(--side-txt-3); font-size: 17px; }
html.hc-drawer-open,
html.hc-drawer-open body { overflow: hidden; }

/* ============================== 页脚（深色） ==============================
   注意：页脚用的是 --band-foot，比电竞通栏的 --band 再深一档（设计稿里
   电竞 #121418、页脚 #0c0e11，两块挨着但不是一个色），文字走 --foot-txt*。 */
.footer {
  margin-top: auto;
  padding: 44px 0 26px;
  background: var(--band-foot);
  color: var(--foot-txt-2);
  font-family: var(--hc-sans);
}
/* 页脚宽度 = 首页 .container = 内页 main.max-w-site，同一个写死值（桌面 1240） */
.foot-inner {
  width: 1240px;
  max-width: none;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 1100px) {
  .foot-inner { width: auto; max-width: 100%; }
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.foot-brand .hc-logo-txt b { color: var(--foot-txt); }
.foot-brand p {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.75;
  max-width: 30em;
  color: var(--foot-txt-2);
}
.foot-col h5 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--foot-txt);
}
.foot-col a {
  display: block;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--foot-txt-2);
  text-decoration: none;
  transition: color .2s;
}
.foot-col a:hover { color: var(--band-accent); }

.foot-links {
  display: flex;
  align-items: flex-start;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--band-line);
}
.foot-links .lb {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.9;
  color: var(--foot-txt);
}
.foot-links .lk {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  min-width: 0;
}
.foot-links a {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--foot-txt-2);
  text-decoration: none;
  transition: color .2s;
}
.foot-links a:hover { color: var(--band-accent); }
.foot-links .none { font-size: 12.5px; line-height: 1.9; color: var(--foot-txt-3); }
/* 版权：同一行贴右（margin-left:auto 把它推到最右，和左边的友情链接左右分布） */
.foot-links .copy {
  margin-left: auto;
  font-size: 12px;
  line-height: 1.9;
  color: var(--foot-txt-3);
  white-space: nowrap;
}

/* ============================== 回到顶部 ============================== */
.hc-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 50;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hc-line);
  border-radius: 12px;
  background: var(--side-bg);
  color: var(--side-txt-2);
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, .45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, color .2s, border-color .2s;
}
.hc-to-top.show { opacity: 1; visibility: visible; transform: none; }
.hc-to-top:hover { color: var(--side-active-ico); border-color: var(--side-active-ico); }
.hc-to-top svg { width: 18px; height: 18px; }

/* ============================== 断点：收起左侧栏 ============================== */
@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
  }
  .shell-main { padding-top: var(--hc-topbar); }
  .hc-drawer { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .foot-inner { padding: 0 16px; }
  .footer { padding: 34px 0 22px; }
  .foot-grid { gap: 22px; }
  .foot-brand p { max-width: none; }
  /* 手机上友情链接行放不下版权：让它独占一行、允许换行，不再往右挤出去 */
  .foot-links .copy {
    flex-basis: 100%;
    margin-left: 0;
    white-space: normal;
  }
  .hc-to-top { right: 14px; bottom: 16px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc-drawer, .hc-to-top, .hc-burger span { transition: none; }
  .btn-live i { animation: none; }
}
