@font-face {
  font-family: 'XiangCuiHei';
  src: url('assets/fonts/xiangcuilingduhei.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


:root {
    --bg-main: #f8f8f8;
    --bg-header: #ffffff;
    --c-ink: #111111;
    --c-accent: #ff3b30;
    --c-border: #000000;
    --font-stack: 'VT323', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: crosshair; }
body { background-color: var(--bg-main); color: var(--c-ink); font-family: var(--font-stack); font-size: 18px; height: 100vh; overflow: auto; text-transform: uppercase; }

.app-frame { display: flex; flex-direction: column; height: 100vh; max-width: 1600px; margin: 0 auto; background: var(--bg-main); border-left: 1px solid var(--c-border); border-right: 1px solid var(--c-border); }
header { padding: 25px 40px; background: var(--bg-header); border-bottom: 1px solid var(--c-border); z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: flex-end; }
.logo { font-family: 'XiangCuiHei', sans-serif;font-size: 38px; font-weight: normal; line-height: 1; letter-spacing: -1px; position: relative; text-shadow:1px 0 rgba(0,0,0,0.35),
-1px 0 rgba(0,0,0,0.2);}
.subtitle { font-size: 14px; opacity: 0.5; margin-top: 4px; }
.nav-links { margin-top: 10px; }
.nav-btn { background: none; border: 1px solid var(--c-border); font-family: inherit; font-size: 16px; padding: 4px 12px; margin-left: 10px; transition: 0.2s; }
.nav-btn:hover { background: var(--c-border); color: #fff; }

.view {
  display: none;
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  min-height: 0;
}

.view.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.4s ease;
}



#lobby { position: relative; overflow: hidden; background: #fff; }
#interactive-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.lobby-container { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: 5%; pointer-events: none; }
.hero-block { max-width: 800px; }
.museum-tag { font-size: 14px; border: 1px solid var(--c-border); display: inline-block; padding: 2px 8px; margin-bottom: 20px; }
.hero-title { font-size: 120px; line-height: 0.85; margin-bottom: 20px; color: var(--c-ink); }
.hero-intro { font-size: 22px; max-width: 500px; color: #666; margin-bottom: 40px; }
.decorative-line { width: 100px; height: 4px; background: var(--c-border); margin-bottom: 20px; }
.lobby-actions { pointer-events: auto; display: flex; gap: 20px; }
.arch-btn { font-family: inherit; font-size: 20px; padding: 15px 40px; border: 1px solid var(--c-border); background: transparent; transition: 0.3s; }
.arch-btn.primary { background: var(--c-border); color: #fff; }
.arch-btn:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--c-accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 30px; padding-bottom: 100px; }
.card {
  display: flex;
  height: 160px;
  background: #ffffff;
  border: 1px solid #000;
  transition: 0.2s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #ff3b30;
}

.card-img { width: 160px; flex-shrink: 0; border-right: 1px solid #eee; background-size: cover; background-position: center;  }
.card-info { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.card-title {
  font-family: 'XiangCuiHei', sans-serif; /* 👈 用你的字体 */
  font-size: 24px;        /* 可稍微放大一点，更像展品标题 */
  font-weight: normal;    /* 很重要：很多中文 TTF 不吃 bold */
  line-height: 1.2;
  letter-spacing: 1px;    /* 可选：增加“档案 / 展览感” */
}

.card-meta { font-size: 14px; color: #999; display: flex; gap: 10px; }

.table-wrapper { background: #fff; border: 1px solid var(--c-border); }
table { width: 100%; border-collapse: collapse; }
th { background: #f0f0f0; padding: 15px; text-align: left; border-bottom: 1px solid var(--c-border); }
td { padding: 15px; border-bottom: 1px solid #eee; }
tr:hover td { background: #fffbcc; }

/* 弹窗核心优化 */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); z-index: 1000; display: flex; justify-content: center; align-items: center; }
.modal-window { width: 1000px; height: 650px; background: #fff; border: 1px solid var(--c-border); box-shadow: 40px 40px 0 rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.modal-top-bar { background: var(--c-border); color: #fff; padding: 10px 20px; display: flex; justify-content: space-between; }
.close-btn { background: var(--c-accent); color: #fff; border: none; padding: 0 15px; }
.modal-content-wrapper { display: flex; flex: 1; }

/* 图片区域：切换按钮分列左右 */
.modal-visual { flex: 1.2; background: #f4f4f4; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-right: 1px solid #eee; }
.visual-frame { width: 100%; height: 100%; padding: 40px; }
.glitch-img { width: 100%; height: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; }

.nav-arrow-side { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(0,0,0,0.05); color: #000; border: none; 
    width: 40px; height: 100%; font-size: 24px; cursor: pointer; 
    transition: all 0.2s; z-index: 5;
}
.nav-arrow-side:hover { background: rgba(0,0,0,0.1); }
.prev-btn { left: 0; }
.next-btn { right: 0; }

.modal-info { flex: 1; padding: 40px; border-left: 1px solid #eee; overflow-y: auto; }
.info-header { margin-bottom: 30px; border-bottom: 3px solid var(--c-border); padding-bottom: 15px; }
#modal-title {
  font-family: 'XiangCuiHei', sans-serif; /* 👈 用你的 ttf */
  font-size: 38px;          /* 可稍微大一点 */
  font-weight: normal;      /* ⚠️ 不要 bold */
  line-height: 1.2;
  letter-spacing: 1.5px;    /* 增加“档案标题感” */
}

.tag { font-size: 12px; border: 1px solid #ddd; padding: 2px 6px; margin-right: 5px; }
.damage-report { margin-top: 20px; padding: 10px; background: #ffeeee; color: var(--c-accent); font-weight: bold; border-left: 4px solid var(--c-accent); }
.voting-panel { margin-top: 30px; padding: 20px; background: #fafafa; border: 1px solid #eee; }
.vote-item { display: flex; justify-content: space-between; margin-bottom: 10px; }
.vote-control button { width: 25px; height: 25px; background: #000; color: #fff; border: none; cursor: pointer; }
.big-score { font-size: 48px; font-weight: bold; }
.score-danger { color: var(--c-accent); }

.scanline { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.02) 50%); background-size: 100% 4px; z-index: 2000; pointer-events: none; }
.crt-texture { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('https://www.transparenttextures.com/patterns/pinstriped-suit.png'); opacity: 0.03; z-index: 2001; pointer-events: none; }
.blink { animation: blinker 0.8s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }
.hidden { display: none !important; }
.image-counter {
    position: absolute;
    bottom: 18px;
    right: 24px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #111;
    background: rgba(255,255,255,0.85);
    border: 1px solid #000;
    padding: 4px 10px;
    pointer-events: none;
}
.reaction-filter {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.reaction-filter button {
  background: #EBEBEB;
  border: 1.32px solid #000;
  font-family: inherit;
  cursor: pointer;
  font-size: 16px;      /* 👈 字体变大 */
  padding: 13px 18px;
  
}

.reaction-filter button:hover {
  background: #000;
  color: #fff;
}
.system-filter-status {
  color: #E72339;       /* 系统红 */
}
.view-header {
  margin-top: -20px; /* 👈 数值可以慢慢调 */
}

.system-filter-status {
  margin-top: 7px;   /* 👈 往下挪一点点 */
}
.link-btn {
  border: 1px solid #000;
  background: #fff;
  padding: 10px 18px;
  font-family: inherit;
  cursor: pointer;
}

.link-btn:hover {
  background: #000;
  color: #fff;
}
.log-list li {
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}

.log-time {
  width: 72px;
  font-family: monospace;
  font-size: 12px;
  color: #999;
}

.log-main a {
  font-weight: bold;
  color: #4a3cff;
}

.log-desc {
  font-size: 19px;
  color: #333;
  margin-top: 7px;
}
/* ===== 异常链接档案区域 ===== */
.external-log {
  padding: 16px 20px;
  box-sizing: border-box;
  margin-top: 30px;
}

/* =========================
   异常链接档案 · 日志卡片版
   ========================= */

.log-list {
  list-style: none;
  margin-top: 24px;
}

/* 每一条 = 一个“事件块” */
.log-list li {
  padding: 22px 0;
  margin-bottom: 18px;                 /* 👈 拉开条目之间距离 */
  border-bottom: 1px dashed rgba(0,0,0,0.15);
}

/* 时间 = 系统注释 */
.log-time {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.45;
  margin-bottom: 6px;
}

/* 链接 = 事件标题 */
.log-list li > a {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  color: #2f2fff;
  text-decoration: none;
  margin-bottom: 6px;
}

.log-list li > a:hover {
  text-decoration: underline;
}

/* 描述 = 正文内容 */
.log-desc {
  display: block;
  font-size: 18px;
  line-height: 1.6;                    /* 👈 解决“挤”最关键 */
  color: #333;
  max-width: 720px;                    /* 👈 控制阅读宽度 */
}
.research-note {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;

  font-family: 'XiangCuiHei', 'VT323', monospace;
  font-size: 16px;

  color: #b40000;
  opacity: 0.85;

  border: 1.5px solid rgba(180,0,0,0.6);
  border-radius: 12px;

  transform: rotate(-1.5deg);
}
/* === 异常链接库：危险入口按钮 === */
.danger-entry {
  position: relative;
  border: 1.5px solid #E72339;
  color: #E72339;
  background: #fff;
  font-weight: bold;
  letter-spacing: 1px;
}

/* 左侧红色警告符号 */
.danger-entry::before {
  content: "!";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #E72339;
  font-weight: bold;
}

/* hover 触发 */
.danger-entry:hover {
  background: #E72339;
  color: #fff;
  box-shadow: 4px 4px 0 #000;
}
.reaction-filter .danger-entry {
  border: 2px solid #E72339 !important;
  color: #E72339 !important;
  position: relative;
  animation: dangerPulse 1.3s infinite;
}
@keyframes dangerPulse {
  0%   { box-shadow: none; }
  90%  { box-shadow: none; }
  93%  { box-shadow: 0 0 0 2px rgba(231,35,57,0.4); }
  96%  { box-shadow: none; }
  100% { box-shadow: none; }
}
