/* 品牌标识覆盖（2026-10-19，阶段六十九/七十）：
   前台原来的「渐变方块 AT + 品牌文字标」全部换成 TOKEN CORE 品牌资产。
   - 原结构：<a class="nav-logo"><div class="nav-logo-icon">AT</div>
             <div class="nav-logo-text">AI <span>Token Computing</span></div></a>
   - 首页主标题原来是 <h1 class="logo">…</h1> 渐变文字，现换成横式标识。
   - 不改构建产物（assets-v11 里的 Vue chunk 是压缩过的），只用 CSS 覆盖：
     图标位换成图形标，文字位换成字形图/SVG 标识。
   - **深色主题的坑**：本项目的深色主题不是换色，而是给 <html> 整体加
     `filter: invert(1) hue-rotate(180deg)`（见 theme-front.css），页面里所有像素
     都会被反相。直接塞白色版 logo 会被反相成黑字、在深底上完全看不见；
     塞深色版虽然能看见，但 CORE 的青色会被 hue-rotate 压成暗青，颜色不准。
     解法：深色主题下给 logo 自己再套一层同样的 `invert(1) hue-rotate(180deg)`，
     两层滤镜互为逆运算 → logo 按原图原色渲染（白 T + 正青色 CORE），
     而它所在的导航栏/页脚仍然是深色。
   - 页脚 .footer-logo-icon / .footer-name 同样处理。 */

/* ---------- 导航栏 ---------- */
.nav-logo .nav-logo-icon {
  background: url('/brand/logo-mark-light.png') center / contain no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-indent: -9999px;
}

.nav-logo .nav-logo-text {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  width: 101px !important;
  height: 22px !important;
  flex: 0 0 auto;
  background: url('/brand/logo-word-light.png') left center / contain no-repeat;
}

/* 文字节点与 <span> 要彻底隐藏，否则 font-size:0 下仍可能撑高行盒 */
.nav-logo .nav-logo-text > * { display: none !important; }


/* 深色主题：白色版资源 + 反向滤镜，抵消 <html> 的整页反相，保持品牌原色 */
html.tbc-dark .nav-logo .nav-logo-icon {
  background-image: url('/brand/logo-mark.png') !important;
  filter: invert(1) hue-rotate(180deg);
}
html.tbc-dark .nav-logo .nav-logo-text {
  background-image: url('/brand/logo-word.png');
  filter: invert(1) hue-rotate(180deg);
}

/* ---------- 页脚 ---------- */
.footer-logo-icon {
  background: url('/brand/logo-mark-light.png') center / contain no-repeat !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-indent: -9999px;
}

.footer-name {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  display: inline-block !important;
  width: 96px !important;
  height: 21px !important;
  background: url('/brand/logo-word-light.png') left center / contain no-repeat;
}

.footer-name em { display: none !important; }


html.tbc-dark .footer-logo-icon {
  background-image: url('/brand/logo-mark.png') !important;
  filter: invert(1) hue-rotate(180deg);
}
html.tbc-dark .footer-name {
  background-image: url('/brand/logo-word.png');
  filter: invert(1) hue-rotate(180deg);
}

/* ---------- 窄屏：只留图形标，避免挤压导航 ---------- */
@media (max-width: 560px) {
  .nav-logo .nav-logo-text { width: 86px !important; height: 19px !important; }
  .nav-logo { margin-right: 16px !important; }
}

/* ---------- 首页主标题（阶段七十） ----------
   原结构：<h1 class="logo">AI Token Computing</h1>，构建产物里是一段
   渐变文字（background-clip:text）。这里整块换成 TOKEN CORE 横式标识：
   左侧品牌图形标 + 右侧「TOKEN / CORE」矢量字标（hero-lockup-*.svg，
   字标用 <text>+textLength 写死宽度，回退字体下也不会变形）。
   文字文本在 bundle 里同步改成 TOKEN CORE，仅用 font-size:0 隐藏，
   不影响 DOM/SEO；深色主题同样用反向滤镜抵消整页反相。 */
h1.logo {
  display: inline-block !important;
  position: relative !important;
  width: min(800px, 84vw) !important;
  aspect-ratio: 800 / 180 !important;
  height: auto !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
  color: transparent !important;
  background-image: url('/brand/hero-lockup-light.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  margin-bottom: 2.2rem !important;
  vertical-align: top !important;
}

/* 深色主题：白色版标识 + 反向滤镜 */
html.tbc-dark h1.logo {
  background-image: url('/brand/hero-lockup-dark.svg') !important;
  filter: invert(1) hue-rotate(180deg);
}

/* 窄屏：等比缩小，保持 hero 节奏 */
@media (max-width: 560px) {
  h1.logo { width: min(460px, 88vw) !important; margin-bottom: 1.4rem !important; }
}

