/* ============================================================
   博客设计系统
   ============================================================ */

/* --- 变量 --- */
:root {
  --red: #ff4848;
  --red-glow: rgba(255, 72, 72, 0.5);
  --black: #000000;
  --white: #ffffff;
  --gray-900: #0a0a0a;
  --gray-800: #111111;
  --gray-700: #222222;
  --gray-600: #333333;
  --gray-500: #666666;
  --gray-400: #999999;
  --cyan: #48d4ff;

  --font-heading: "Oswald", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SF Mono", "Consolas", monospace;

  --nav-h: 60px;
  --content-w: 632px;

  --z-progress: 9999;
  --z-nav: 1000;
  --z-side: 500;

  --ease: 0.2s ease;
}


/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  transition: background var(--ease), color var(--ease);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; transition: color var(--ease); }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; }

/* --- 顶部进度条 --- */
#top-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--red); z-index: var(--z-progress);
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--red-glow);
}

/* ============================================================
   导航 — RA 布局：Logo左 + 导航项紧跟 + 🔍 + spacer + 右侧
   ============================================================ */
#nav {
  position: fixed; top: 3px; left: 0; right: 0; height: var(--nav-h);
  background: rgba(0,0,0,0.85); z-index: var(--z-nav);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, background var(--ease);
  display: flex; align-items: center;
}
#nav.hide { transform: translateY(-100%); }

/* — 左半区 — */
.nav-left {
  display: flex; align-items: center;
  padding-left: 32px;
}

/* Logo */
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-family: var(--font-heading);
  font-size: 26px; letter-spacing: 1px; color: var(--white);
  margin-right: 36px;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--red); }
.nav-logo-img { height: 35px; width: auto; display: block; }

/* 导航链接 — 居中，等距 */
.nav-links {
  display: flex; align-items: center; justify-content: center;
  flex: 1;
  gap: 280px;
  height: var(--nav-h);
  position: relative;
}

.nav-links > a,
.nav-item > a {
  display: flex; align-items: center; height: 100%;
  text-decoration: none; font-size: 18px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white);
  transition: color var(--ease);
  position: relative; z-index: 2;
}
.nav-links > a:hover,
.nav-item > a:hover { color: var(--red); }

/* 红色底线 — 已移除 */
.nav-redline { display: none; }

/* 白色滑块 — 盖在红线上 */
.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 4px;
  width: 80px;
  background: #fff;
  border-radius: 2px;
  left: 0;
  transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

/* 有下拉的导航项 */
.nav-item {
  position: relative;
  display: flex; align-items: center;
  height: 100%;
}

/* 搜索图标 */
.nav-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--white); cursor: pointer; flex-shrink: 0;
  transition: color var(--ease);
}
.nav-search-btn:hover { color: var(--red); }
.nav-search-btn svg { width: 100%; height: 100%; }

/* — 右半区 — */
.nav-right {
  display: flex; align-items: center; gap: 20px;
  padding-right: 32px;
}

#menu-btn { display: none; flex-direction: column; gap: 5px; padding: 4px; }
#menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--white); transition: 0.3s ease;
}

/* — 二级下拉菜单 — */
.nav-drop {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 140px;
  background: #000000;
  padding: 8px 0;
  z-index: calc(var(--z-nav) + 10);
}

.nav-item:hover .nav-drop { display: block; }

.nav-drop a {
  display: block;
  padding: 8px 16px;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.3px; text-transform: none;
  color: var(--gray-500);
  text-decoration: none;
  transition: color var(--ease);
  white-space: nowrap;
}
.nav-drop a:hover { color: var(--white); }

/* --- 左侧装饰 --- */
.whimsy-left {
  position: fixed; left: 0;
  top: calc(var(--nav-h) + 3px);
  bottom: 0;
  width: 11vw;
  height: calc(100vh - var(--nav-h) - 3px);
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
}

/* --- 右侧橙色填充 --- */
.orange-fill {
  position: fixed;
  left: 22vw;
  top: calc(var(--nav-h) + 3px);
  bottom: 0;
  right: 0;
  background: rgb(253, 96, 68);
  z-index: 0;
  overflow-x: hidden;
  overflow-y: auto;                /* 保留滚动功能 */
  scrollbar-width: none;           /* Firefox — 隐藏滚动条 */
  -ms-overflow-style: none;        /* IE/Edge — 隐藏滚动条 */
}
/* 隐藏滚动条视觉（保留滚轮 / 触摸滚动） */
.orange-fill::-webkit-scrollbar { display: none; }

/* ============================================================
   橙色面板默认态 — 1:1 复刻警示页
   ============================================================ */

/* === 顶部固定图片 — 滚动淡出 === */
.pf-notice {
  position: sticky;
  top: 2vw;
  z-index: 5;
  display: block;
  max-width: 72%;
  height: auto;
  margin: 2vw 1vw 0 auto;
  pointer-events: none;
}

/* 容器重置 */
.page-feature {
  width: 100%;
  position: relative;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-feature .content {
  width: 100%;
  position: relative;
  max-width: none;
  margin: 0;
  background: transparent;
  overflow-x: hidden;
}

/* 主内容区 — 推到右侧 */
.page-feature .content-title-main {
  margin-left: 49%;
  overflow-x: hidden;
}

/* 内容主体 */
.page-feature .content-main {
  padding: 4vw 3vw 0 0;
  overflow-x: hidden;
}

/* 文字区域 */
.page-feature .areaLead {
  position: relative;
  z-index: 1;
  margin-bottom: 3vw;
}

/* 文本块 — 左对齐 */
.page-feature .areaLead-text01,
.page-feature .areaLead-text02,
.page-feature .areaLead-text03,
.page-feature .areaLead-text04,
.page-feature .areaLead-text05 {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 3vw 0;
  padding: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-feature .areaLead-text01 p,
.page-feature .areaLead-text02 p,
.page-feature .areaLead-text03 p,
.page-feature .areaLead-text04 p,
.page-feature .areaLead-text05 p {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0;
  font-size: 21px;
  line-height: 1.85;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.3px;
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 红色高亮 */
.hl-red { color: var(--red); font-weight: 700; }

/* 文本块不等宽 — 仿原版楼梯式 */
.page-feature .areaLead-text02 p { max-width: 80%; }
.page-feature .areaLead-text03 p { max-width: 88%; }
.page-feature .areaLead-text04 p { max-width: 94%; }
.page-feature .areaLead-text05 p { max-width: 90%; }

/* 底部 */
.page-feature .areaFanza {
  position: relative;
  z-index: 1;
  margin: 0 0 3.4vw 0;
}

.page-feature .areaFanza-text p {
  display: block;
  margin: 0;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  max-width: none;
  white-space: nowrap;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
}

/* === 响应式 === */
@media screen and (max-width: 1279px) and (min-width: 768px) {
  .page-feature .content-title-main { margin-left: 44%; }
  .page-feature .content-main { padding: 6vw 2.5vw 0 0; }
}

@media screen and (max-width: 768px) {
  .page-feature .content-title-main { margin-left: 16%; }
  .page-feature .content-main { padding: 18vw 3vw 0 0; }
  .page-feature .areaLead-text01 { margin: 0 0 7.4vw 0; }
  .page-feature .areaLead-text02 { margin: 0 0 7.4vw 0; }
  .page-feature .areaLead-text02 p { max-width: 90%; }
  .page-feature .areaLead-text03 { margin: 0 0 7.4vw 0; }
  .page-feature .areaLead-text03 p { max-width: 94%; }
  .page-feature .areaLead-text04 { margin: 0 0 7.4vw 0; }
  .page-feature .areaLead-text04 p { max-width: 96%; }
  .page-feature .areaLead-text05 { margin: 0 0 7.4vw 0; }
  .page-feature .areaLead-text05 p { max-width: 96%; }
  .page-feature .areaFanza-text p { max-width: none; white-space: normal; }
}

/* ============================================================
   右侧展示面板 — 封面 + 模糊色彩延伸
   ============================================================ */
.display-content {
  width: 100%;
  padding: 0;
}

/* --- 传统报纸版面（铺满整版） --- */
.newspaper {
  width: 100%;
  min-height: calc(100vh - var(--nav-h) - 3px);
  box-sizing: border-box;
  margin: 0;
  padding: 26px 64px 56px;
  background-color: #f0e8d4;               /* 旧纸底色（图片加载失败时的后备） */
  background-image: url('../Library/old.jpg'); /* 老纸张/污渍纹理 — 直接呈现，不加特效 */
  background-size: 100% 100%;              /* 强制拉伸铺满整个报纸容器，无接缝 */
  background-repeat: no-repeat;            /* 不重复平铺 */
  background-attachment: scroll;           /* 跟随报纸内容一起滚动，不固定 */
  color: #141414;
  font-family: Georgia, 'Times New Roman', 'Songti SC', 'STSong', 'SimSun', serif;
}

/* 报头顶线 — 日期 / 期号 / 版次 */
.np-masthead-top {
  display: flex;
  align-items: baseline;
  font-size: 14px;
  letter-spacing: 1px;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #b5ad94;
}
.np-masthead-top .np-date,
.np-masthead-top .np-edition {
  width: 28%;                 /* 左右固定等宽，保证中间期号居中 */
}
.np-masthead-top .np-date    { text-align: left; }
.np-masthead-top .np-edition { text-align: right; }
.np-vol {
  flex: 1;
  text-align: center;
  font-weight: 700;
}
.np-edition { font-weight: 700; }

/* 报名 — 报纸名字号，超大居中 */
.np-masthead-title {
  text-align: center;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: 6px;
  line-height: 1.02;
  margin: 18px 0 6px;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.np-tagline {
  text-align: center;
  font-size: 13px;
  letter-spacing: 6px;
  color: #555;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 4px double #141414;        /* 报头双线 */
  margin-bottom: 12px;
}

/* 头条 — 特大标题、居中，副题、电头、多栏正文 */
.np-headline {
  font-size: clamp(42px, 6.5vw, 84px);
  line-height: 1.04;
  font-weight: 700;
  text-align: center;
  margin: 0 0 14px;
  letter-spacing: 1px;
  overflow-wrap: break-word;
}
.np-subhead {
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  color: #333;
  line-height: 1.45;
  margin: 0 0 10px;
}
.np-byline {
  text-align: center;
  font-size: 14px;
  color: #444;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #b5ad94;
}
.np-body {
  columns: 3;
  column-gap: 38px;
  column-rule: 1px solid #b5ad94;
  font-size: 17px;
  line-height: 2;
  text-align: justify;
}
.np-body p { margin: 0 0 14px; text-indent: 2em; }

/* 配套报道 — 今日版面其他报道，栏间竖线 */
.np-more-head {
  margin-top: 34px;
  padding-top: 14px;
  border-top: 3px solid #141414;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #222;
}
.np-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #b5ad94;
}
.np-more-col {
  padding: 22px 24px 26px;
  border-right: 1px solid #b5ad94;
}
.np-more-col:nth-child(3n) { border-right: none; }   /* 每行最后一列去掉右边框 */
.np-more-col:nth-child(n+4) { border-top: 1px solid #b5ad94; }   /* 第二行横线 */
.np-more-title {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  overflow-wrap: break-word;
}
.np-more-sub {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  line-height: 1.45;
  margin: 0 0 8px;
}
.np-more-deck {
  font-size: 13px;
  color: #666;
  margin: 0 0 10px;
}
.np-more-text {
  font-size: 15.5px;
  line-height: 1.85;
  color: #222;
  text-align: justify;
}
.np-more-text p { margin: 0 0 10px; text-indent: 2em; }

/* 页脚 */
.np-foot {
  padding: 12px 0 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7a7360;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .newspaper { padding: 20px 14px 40px; }
  .np-masthead-title { font-size: 36px; letter-spacing: 3px; }
  .np-headline { font-size: 32px; }
  .np-subhead { font-size: 16px; }
  .np-body { columns: 1; }
  .np-more { grid-template-columns: 1fr; }
  .np-more-col { border-right: none; border-bottom: 1px solid #b5ad94; }
  .np-more-col:last-child { border-bottom: none; }
}

/* 封面 + 文字横向容器 */
.ds-hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
}

.ds-cover-img {
  width: 234px; height: 234px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

/* 文字区 — 封面右侧 */
.ds-text-area {
  flex: 1;
  min-width: 0;
  padding-left: 62px;
  z-index: 3;
  position: relative;
}

.ds-cat {
  font-size: 14px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 13px;
}

.ds-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.5vw, 57px);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-info {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}

.ds-info-author {
  color: rgba(255,255,255,0.7);
}

.ds-info-sep {
  font-weight: 400;
  color: rgba(255,255,255,0.25);
}

.ds-desc {
  font-size: 17px; line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 754px;
  margin-top: 10px;
}

/* 卡片 hover 和 选中态 */
.scroll-card { cursor: pointer; transition: background 0.15s; }
.scroll-card:hover { background: rgba(255,255,255,0.04); }
.scroll-card.pinned { background: rgba(255,255,255,0.08); border-left: 2px solid var(--red); padding-left: 14px; }

/* --- 滚动卡片窗口 --- */
.scroll-window {
  position: fixed;
  left: 11vw;
  top: calc(var(--nav-h) + 3px);
  bottom: 0;
  width: 11vw;
  overflow: hidden;
  z-index: 1;
  background: var(--black);
  border-left: 1px solid var(--gray-700);
}

.scroll-track {
  will-change: transform;
}

.scroll-card-cat {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 4px;
}

.scroll-card {
  padding: 16px;
  border-bottom: 1px solid var(--gray-700);
  font-size: 12px;
  color: var(--gray-400);
}

.scroll-card:last-child { border-bottom: none; }

.scroll-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.scroll-card-text {
  line-height: 1.5;
}

/* --- 主体 --- */
.page { padding-top: calc(var(--nav-h) + 3px); min-height: 100vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--gray-700);
  padding: 56px 24px; margin-top: 80px;
}
.foot-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 13px; color: var(--gray-500); text-decoration: none; }
.foot-links a:hover { color: var(--white); }
.foot-copy { font-size: 13px; color: var(--gray-500); }

/* --- 通用 --- */
.tag {
  display: inline-block; padding: 4px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; border: 1px solid var(--gray-600);
  border-radius: 2px; color: var(--gray-400);
  text-decoration: none; transition: all var(--ease);
}
.tag:hover, .tag.on { color: var(--white); border-color: var(--gray-400); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  border-radius: 3px; text-decoration: none; transition: all var(--ease);
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ff6060; color: #fff; }
.btn-outline { border: 1px solid var(--gray-600); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }

/* --- 搜索 --- */
.search-wrap {
  position: relative; max-width: 360px; width: 100%;
}
.search-wrap input {
  width: 100%; padding: 11px 14px 11px 40px;
  background: var(--gray-800); border: 1px solid var(--gray-700);
  border-radius: 3px; color: var(--white); font-size: 14px;
  outline: none; transition: border-color var(--ease);
}
.search-wrap input:focus { border-color: var(--gray-500); }
.search-wrap input::placeholder { color: var(--gray-500); }
.search-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gray-500); font-size: 15px; pointer-events: none;
}

/* --- 空状态 --- */
.empty {
  text-align: center; padding: 80px 20px; color: var(--gray-500);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty p { font-size: 17px; }

/* --- 隐藏空间 — 电视信号干扰 --- */
.void-overlay {
  display: none;
  position: fixed; inset: 0;
  background: #000;
  z-index: 99999;
  overflow: hidden;
}
.void-overlay.on { display: block; }

.tv-noise-canvas {
  display: block;
  position: absolute; top: 0; left: 0;
}

.void-input {
  position: absolute; left: -9999px;
  opacity: 0;
}

.void-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}

/* --- 隐藏空间内层 --- */
.void-inner {
  display: none;
  position: absolute; inset: 0;
  background: #000;
  z-index: 10;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.void-inner::-webkit-scrollbar { width: 0; }
.void-inner.on { display: block; }

/* 混沌封面 */
.chaos-cover {
  opacity: 0.92;
  transition: opacity 0.3s;
  will-change: transform;
}

/* --- 故障闪烁转场 --- */
@keyframes glitch-flash {
  0%   { filter: invert(0); transform: translate(0, 0); }
  8%   { filter: invert(1) brightness(1.5); transform: translate(-4px, 2px); }
  12%  { filter: invert(0); transform: translate(3px, -1px); }
  18%  { filter: invert(1) brightness(1.8); transform: translate(-2px, -3px); }
  22%  { filter: invert(0); transform: translate(0, 0); }
  35%  { filter: invert(1); transform: translate(5px, 0); }
  40%  { filter: invert(0); transform: translate(-3px, 1px); }
  55%  { filter: brightness(0.3) saturate(0); transform: translate(1px, -2px); }
  60%  { filter: invert(1) brightness(1.5); transform: translate(0, 0); }
  70%  { filter: none; transform: translate(0, 0); }
  100% { filter: none; transform: translate(0, 0); }
}
.glitch-flash {
  animation: glitch-flash 0.28s ease-out;
  pointer-events: none;
}

/* --- 响应式 --- */
@media (max-width: 750px) {
  :root { --nav-h: 52px; --content-w: 100%; }

  .nav-left { padding-left: 16px; }
  .nav-links { display: none; }
  .nav-right { padding-right: 16px; }
  #menu-btn { display: flex; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: calc(var(--nav-h) + 3px); left: 0; right: 0;
    background: rgba(0,0,0,0.95); padding: 20px 24px;
    gap: 16px; height: auto;
    border-bottom: 1px solid var(--gray-700);
  }
  .nav-item { flex-direction: column; align-items: flex-start; height: auto; gap: 8px; }
  .nav-drop {
    display: none; position: static;
    background: transparent; padding: 0 0 0 16px;
  }
  .nav-item.open .nav-drop { display: block; }
  .nav-search-btn { display: none; }

  .foot-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   EARS / EYES 视图
   ============================================================ */
.ears-view,
.eyes-view {
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
}
/* EARS 全屏模式 — 铺满整个视口（nav 以下），盖住左侧空位 */
.ears-view.fullscreen {
  position: fixed;
  left: 0; right: 0;
  top: calc(var(--nav-h) + 3px);
  bottom: 0;
  height: auto;
  z-index: 50;
}
.eyes-view.fullscreen {
  position: fixed;
  left: 0; right: 0;
  top: calc(var(--nav-h) + 3px);
  bottom: 0;
  height: auto;
  z-index: 50;
}
.eyes-stage {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: #000;
}
.eyes-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
}
.eyes-frame.on { opacity: 1; }

/* EARS 背景生物 — 画布提到编辑器上方，在黑底上爬（pointer-events:none 不挡输入） */
.ears-creature-canvas {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* EARS 自由漂浮打字字符层（参考 free-float-typing-demo.html） */
.ears-float-stage {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.ears-float-stage .char {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
}

/* === EARS 直播观察间 — 主视觉区 / 顶部栏 / 弹幕区 === */
.ears-view { --chat-w: 360px; --bar-h: 46px; }

/* 主视觉区：黑色画布 + 虫子 + 漂浮字；清晰度模糊滤镜挂这里 */
.ears-stage {
  position: absolute; inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #000;
  filter: blur(0px);                 /* 480p 默认最清晰；JS 按清晰度切换 */
  transition: filter 0.25s ease;
}

/* 顶部栏：清晰度 / 音量+曲名 / 在线人数 / 标题 */
.ears-topbar {
  position: absolute;
  top: 0; left: 0; right: var(--chat-w);
  height: var(--bar-h);
  z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.35));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.8);
  overflow: visible;
}
.et-quality { position: relative; flex-shrink: 0; }
.et-social {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
  font-size: 18px;
}
.et-social a {
  line-height: 1;
  opacity: 0.85;
  transition: opacity .15s ease, transform .15s ease;
}
.et-social a:hover {
  opacity: 1;
  transform: scale(1.15);
}
.et-q-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font: inherit; font-size: 10px;
  padding: 3px 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-sizing: content-box;            /* width 纯文字区，不含 padding/border */
  width: 5ch;                          /* 5 字符宽（容 1080p），480p 居中显示 */
  transition: color .15s, border-color .15s, background .15s;
}
.et-q-btn:hover { border-color: rgba(255,255,255,0.5); }
.et-q-menu {
  display: none;
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.15);
  min-width: 80px; z-index: 30; padding: 2px 0;
}
.et-quality.open .et-q-menu { display: block; }
.et-q-menu > div {
  font-size: 12px; color: rgba(255,255,255,0.7);
  padding: 5px 12px; cursor: pointer;
}
.et-q-menu > div:hover { background: rgba(255,255,255,0.08); color: #fff; }
.et-q-menu > div.on { color: #fff; }
.et-audio { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.et-track-wrap { position: relative; min-width: 0; display: inline-flex; }
.et-track {
  display: inline-block; vertical-align: middle;
  width: 94px;
  font-size: 12px; color: rgba(255,255,255,0.55);
  white-space: nowrap; overflow: hidden;
  cursor: pointer; transition: color .15s; user-select: none;
}
.et-track:hover { color: rgba(255,255,255,0.8); }
.et-track.playing { color: rgba(255,255,255,0.9); }
.et-track-text { display: inline-block; white-space: nowrap; will-change: transform; }
.et-track.scrolling .et-track-text {
  animation: et-marquee 12s linear infinite;
}
@keyframes et-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.et-playlist {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.15);
  min-width: 240px; max-width: 300px;
  max-height: 186px;           /* 约 6 首 */
  overflow-y: auto;
  scrollbar-width: thin;       /* Firefox */
  scrollbar-color: transparent transparent;
  z-index: 40; padding: 2px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transition: scrollbar-color .2s;
}
.et-playlist:hover,
.et-playlist:focus-within { scrollbar-color: rgba(255,255,255,0.3) transparent; }
.et-playlist::-webkit-scrollbar { width: 6px; }
.et-playlist::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.et-playlist:hover::-webkit-scrollbar-thumb,
.et-playlist:focus-within::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); }
.et-playlist::-webkit-scrollbar-track { background: transparent; }
.et-track-wrap.open .et-playlist { display: block; }
.et-pl-item {
  font-size: 12px; color: rgba(255,255,255,0.7);
  padding: 6px 12px; cursor: pointer;
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.et-pl-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.et-pl-item.current { color: #fff; }
.et-pl-mark { opacity: 0; font-size: 9px; flex-shrink: 0; color: rgba(255,255,255,0.9); }
.et-pl-item.current .et-pl-mark { opacity: 1; }
.et-pl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.et-pl-artist { color: rgba(255,255,255,0.35); font-size: 11px; flex-shrink: 0; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et-refresh {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.55);
  width: 26px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: color .15s, border-color .15s;
}
.et-refresh:hover { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.85); }
.et-refresh.loading svg { animation: et-spin 0.8s linear infinite; }
.et-search {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.55);
  width: 26px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: color .15s, border-color .15s;
}
.et-search:hover { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.85); }
.et-search-wrap.open .et-search { border-color: rgba(255,255,255,0.5); color: rgba(255,255,255,0.9); }
.et-search-panel {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.15);
  width: 260px; z-index: 50; padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.et-search-wrap.open .et-search-panel { display: block; }
.et-search-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font: inherit; font-size: 12px;
  padding: 5px 8px; outline: none;
}
.et-search-input:focus { border-color: rgba(255,255,255,0.5); }
.et-search-input::placeholder { color: rgba(255,255,255,0.3); }
.et-search-modes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.et-mode {
  background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.5);
  font: inherit; font-size: 11px; padding: 3px 8px; cursor: pointer; border-radius: 2px;
  transition: color .15s, border-color .15s, background .15s;
}
.et-mode:hover { border-color: rgba(255,255,255,0.45); color: rgba(255,255,255,0.8); }
.et-mode.on { border-color: rgba(255,255,255,0.6); color: #fff; background: rgba(255,255,255,0.12); }
/* 筛选器（可叠加 AND） */
.et-search-filters { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 5px; }
.et-filter-group { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.et-flabel { font-size: 10px; color: rgba(255,255,255,0.3); width: 28px; flex-shrink: 0; }
.et-filter {
  background: transparent; border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.45);
  font: inherit; font-size: 10px; padding: 2px 6px; cursor: pointer; border-radius: 2px;
  transition: color .15s, border-color .15s, background .15s;
}
.et-filter:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.75); }
.et-filter.on { border-color: rgba(110,229,153,0.6); color: #6ee599; background: rgba(110,229,153,0.1); }
.et-filter-inline { padding-left: 0; }
.et-filter-inline .et-flabel { display: none; }
/* 语言自定输入框 */
.et-lang-input {
  width: 52px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font: inherit; font-size: 10px; padding: 2px 5px; outline: none; border-radius: 2px;
}
.et-lang-input:focus { border-color: rgba(255,255,255,0.5); }
.et-lang-input::placeholder { color: rgba(255,255,255,0.3); }
/* 年代起止范围 */
.et-date-range { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.et-date-input {
  width: 108px; flex-shrink: 0;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font: inherit; font-size: 10px; padding: 2px 5px; outline: none; border-radius: 2px;
  color-scheme: dark;
}
.et-date-input:focus { border-color: rgba(255,255,255,0.5); }
.et-date-dash { color: rgba(255,255,255,0.4); font-size: 11px; }
/* 标签输入框（tags / fuzzytags 独立输入，可叠加） */
.et-tags-row { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.et-tags-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font: inherit; font-size: 11px;
  padding: 4px 7px; outline: none;
}
.et-tags-input:focus { border-color: rgba(255,255,255,0.5); }
.et-tags-input::placeholder { color: rgba(255,255,255,0.3); }
.et-search-status { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 6px; min-height: 14px; }
.et-search-list { margin-top: 6px; max-height: 200px; overflow-y: auto; }
.et-search-item {
  font-size: 12px; color: rgba(255,255,255,0.7);
  padding: 5px 8px; cursor: pointer;
  display: flex; align-items: center; gap: 6px; min-width: 0;
  border-radius: 2px;
}
.et-search-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.et-search-item.selected { background: rgba(110,229,153,0.18); color: #6ee599; }
.et-search-item.selected:hover { background: rgba(110,229,153,0.28); }
.et-search-list.multi .et-search-item { cursor: default; }
.et-search-list.multi .et-search-item::before {
  content: ''; width: 8px; height: 8px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 2px; margin-right: 2px;
}
.et-search-list.multi .et-search-item.selected::before {
  background: #6ee599; border-color: #6ee599;
}
.et-search-item .et-pl-name { flex: 1; }
.et-search-item .et-pl-artist { color: rgba(255,255,255,0.35); font-size: 11px; flex-shrink: 0; max-width: 90px; }
.et-search-empty { font-size: 11px; color: rgba(255,255,255,0.3); padding: 8px; text-align: center; }
.et-search-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.08); }
.et-search-pager:empty { display: none; }
.et-pg-btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.7);
  font: inherit; font-size: 11px; padding: 2px 8px; cursor: pointer;
}
.et-pg-btn:hover:not(:disabled) { border-color: rgba(255,255,255,0.5); color: #fff; }
.et-pg-btn:disabled { opacity: 0.3; cursor: default; }
.et-pg-info { font-size: 11px; color: rgba(255,255,255,0.5); min-width: 50px; text-align: center; }
@keyframes et-spin { to { transform: rotate(360deg); } }
.et-volume { width: 80px; accent-color: #888; }
.et-viewers { font-size: 12px; color: rgba(255,255,255,0.55); flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.et-viewers > span:first-child { color: rgba(255,255,255,0.85); }
/* 滑轮式人数：每位数字一列，0-9 纵向堆叠，translateY 切换 */
.et-roller { display: inline-flex; font-variant-numeric: tabular-nums; height: 1em; line-height: 1; overflow: hidden; vertical-align: middle; }
.et-digit { display: inline-flex; height: 1em; overflow: hidden; }
.et-strip { display: flex; flex-direction: column; transition: transform .5s cubic-bezier(0.2,0.8,0.2,1); }
.et-strip > span { height: 1em; line-height: 1; display: block; }
.et-arrows { display: inline-flex; flex-direction: column; line-height: 0; gap: 1px; }
.et-arr { fill: rgba(255,255,255,0.25); transition: fill .4s ease; }
.et-arr.up.on { fill: #4ade80; }   /* 涨：绿 */
.et-arr.dn.on { fill: #f87171; }   /* 跌：红 */
.et-title {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #ffffff;
  text-transform: uppercase;
  text-align: left;
}
.et-live {
  flex-shrink: 0;
  background: #e02020;
  color: #fff;
  font-size: 12px; font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.3;
  perspective: 60px;
}
.et-live > span {
  display: inline-block;
}
.et-title-text {
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.et-author {
  flex-shrink: 0;
  color: #ff6ad5;
  text-decoration: none;
  transition: color 1.2s ease, opacity .15s ease;
}
.et-author:hover { opacity: 0.8; }
.et-author-name {
  color: #ffffff;
  font-weight: 900;
}

/* 右侧弹幕区 */
.ears-chat {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: var(--chat-w);
  z-index: 20;
  background: #0a0a0a;
  border-left: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ec-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 8px 10px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
  display: flex; flex-direction: column; gap: 3px;
}
.ec-list::-webkit-scrollbar { width: 6px; }
.ec-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); }
.ec-row {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.45;
  color: rgba(255,255,255,0.85);
  animation: ec-in .18s ease-out;
}
@keyframes ec-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ec-ts { color: rgba(255,255,255,0.32); flex-shrink: 0; font-size: 11px; }
/* 用户名+文本列：独立换行，续行缩进到用户名位置而非时间戳下 */
.ec-body { flex: 1; min-width: 0; }
.ec-un { margin-right: 4px; font-weight: 700; }
.ec-un::after { content: ':'; }
.ec-tx { }
/* 用户等级颜色：LV1 亮白 / LV2 蓝 / LV3 绿 / LV4 金 */
.ec-lv1 { color: #c77dff; }
.ec-lv2 { color: #7ec8ff; }
.ec-lv3 { color: #8effa0; }
.ec-lv4 { color: #ffd070; }
/* 你自己发的留言：用户名紫色，覆盖等级色 */
.ec-row[data-lang="user"] .ec-un { color: #d97a1a; }
/* 特殊虚假用户 rainbow：红色，触发彩虹生物 */
.ec-row[data-lang="rainbow"] .ec-un { color: #ff3030; }

/* 弹幕输入框 */
.ec-input-wrap {
  flex-shrink: 0;
  display: flex; gap: 6px; align-items: stretch;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,0.22);
  background: #0a0a0a;
}
.ec-input {
  flex: 1; min-width: 0; box-sizing: border-box;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-mono); font-size: 12px;
  padding: 7px 9px; border-radius: 4px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.ec-input:focus { border-color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.18); }
.ec-input::placeholder { color: rgba(255,255,255,0.45); }
.ec-send {
  flex-shrink: 0;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px; cursor: pointer;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ec-send::before {
  content: '';
  display: block;
  width: 20px; height: 10px;
  background: rgba(255,255,255,0.95);
  /* 钝尖箭头：右侧尖头被削平，不刺 */
  clip-path: polygon(0% 22%, 58% 22%, 58% 0%, 100% 50%, 58% 100%, 58% 78%, 0% 78%);
}
.ec-send:hover { background: rgba(255,255,255,0.24); }
.ec-send:active::before { background: #fff; }

/* 响应：窄屏弹幕区收窄 */
@media (max-width: 900px) { .ears-view { --chat-w: 280px; } }
@media (max-width: 600px) { .ears-view { --chat-w: 200px; } .et-title, .et-social { display: none; } }

