
/* ═══════════════════════════════════════════════════════════
   FEELING4EVER LIBRARY · COLLECTION OS —— 深色 · 4:3 (1440×1080)
   移植自 RhineLabUI style.css + theme.css 暗色变量（烘焙为默认）
   ═══════════════════════════════════════════════════════════ */
* { box-sizing: border-box; }
:root {
  --ink: #e0e3dc;
  --muted: #a6b0b1;
  --line: #536166;
  --paper: #11181b;
  --panel: #202a2f;
  --field: #2a363b;
  --accent: #c5a16b;
  --accent-soft: rgba(197, 161, 107, 0.28);
  font-family: "MiSans", "Mi Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: #0b0f11;
  font-synthesis: none;
}
body { margin: 0; overflow: hidden; }
button, input { font: inherit; }
button {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
::selection { background: var(--accent-soft); color: #fff; }

#viewport {
  width: 100vw;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, #131a1d 0%, #0b0f11 68%, #07090a 100%);
}
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 1080px;
  overflow: hidden;
  transform-origin: center;
  isolation: isolate;
  background: var(--paper);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.75);
}
.three-scene { position: absolute; inset: 0; }
.three-scene canvas { display: block; width: 100%; height: 100%; cursor: grab; }

.scene-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 14, 16, 0.42), transparent 34%),
    linear-gradient(0deg, rgba(10, 14, 16, 0.34), transparent 26%),
    radial-gradient(ellipse at 44% 48%, transparent 34%, rgba(9, 12, 14, 0.42) 88%);
}

/* ── 品牌区（左上）── */
.brand {
  position: absolute;
  left: 44px;
  top: 114px;
  z-index: 5;
  line-height: 1;
  user-select: none;
  width: 300px;
  white-space: nowrap;
}
.brand h1 {
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 46px;
  margin: 0;
  font-weight: 750;
}
.brand > div {
  font-size: 18px;
  line-height: 23px;
  letter-spacing: 0.6px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 12px;
}
.brand p {
  margin: 14px 0 0 0;
  font-size: 35px;
  line-height: 40px;
  display: flex;
  justify-content: space-between;
}
.brand p b { font-weight: 750; letter-spacing: 3px; }
.brand-analysis {
  position: relative;
  display: block;
  width: 218px;
  height: 40px;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.powered {
  position: absolute;
  right: 44px;
  bottom: 108px;
  font-size: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 24px;
  color: var(--muted);
  transition: opacity 0.4s;
}
/* 预览面板（含悬出的操作条）出现时让位 */
.preview-panel:not([hidden]) ~ .powered { opacity: 0; pointer-events: none; }
.powered b { font-weight: 750; color: var(--ink); }
.powered i { height: 6px; width: 25px; background: var(--accent); display: inline-block; margin-left: 11px; }

/* ── 顶部导航 ── */
.system-nav {
  position: absolute;
  right: 44px;
  top: 124px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 43px;
}
.system-nav button {
  font-size: 14px;
  line-height: 1;
  min-height: 28px;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.system-nav button:hover { color: var(--accent); }
.nav-glyph { width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; }
.key {
  font-size: 11px;
  border: 1px solid var(--line);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 19px;
  height: 21px;
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.7;
  margin-left: 6px;
}

/* ── 档案 HUD ── */
.archive-ui {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s 0.3s;
  position: absolute;
  inset: 0;
  z-index: 4;
}
[data-mode="archive"] .archive-ui,
[data-mode="detail"] .archive-ui { opacity: 0; }
[data-mode="archive"] .archive-ui { opacity: 1; }
[data-mode="archive"] .archive-ui button { pointer-events: auto; }
[data-modal="true"] .archive-ui { opacity: 0 !important; pointer-events: none !important; }

.archive-callout {
  position: absolute;
  left: 700px;
  top: 471px;
  width: 720px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.3px;
  margin-bottom: 22px;
  color: var(--muted);
}
.eyebrow > span { margin-left: 16px; }
.file-title {
  font-size: 28px;
  font-weight: 750;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  letter-spacing: 0.2px;
}
.file-open {
  font-size: 25px;
  margin-left: 48px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.file-title:hover .file-open { opacity: 1; transform: translate(3px, -3px); }
.callout-rule {
  height: 1px;
  background: var(--line);
  margin-left: 57px;
  margin-top: 55px;
  position: relative;
}
.callout-rule i {
  position: absolute;
  left: -61px;
  top: -3px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.file-summary {
  margin-left: 58px;
  margin-top: 22px;
  width: 620px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}
.file-summary > span:last-child {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}
.read-file {
  display: flex;
  align-items: center;
  gap: 70px;
  margin-left: 58px;
  margin-top: 58px;
  font-size: 14px;
  letter-spacing: 1px;
}
.read-file > span { font-size: 24px; transition: transform 0.3s; }
.read-file:hover { color: var(--accent); }
.read-file:hover > span { transform: translateX(9px); }

.archive-counter { position: absolute; bottom: 115px; left: 45px; }
.tiny-label { font-size: 11px; letter-spacing: 1.7px; color: var(--muted); }
.archive-counter > div {
  font-size: 58px;
  line-height: 1.1;
  margin-top: 16px;
  display: flex;
  gap: 21px;
  align-items: baseline;
}
.archive-counter i { font-style: normal; font-weight: 300; font-size: 32px; color: var(--muted); }
.count-total { font-size: 22px; color: var(--muted); }

.archive-navigation {
  position: absolute;
  left: 378px;
  bottom: 131px;
  display: flex;
  align-items: center;
  gap: 33px;
}
.archive-navigation > button,
.column-navigation button {
  width: 46px;
  height: 46px;
  font-size: 28px;
  color: var(--muted);
  transition: background 0.3s;
}
.archive-navigation > button:hover,
.column-navigation button:hover {
  background: var(--field);
  color: var(--ink);
}
.column-navigation {
  position: absolute;
  left: 754px;
  bottom: 131px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.column-navigation button { font-size: 24px; }
.column-navigation > div { display: grid; gap: 7px; min-width: 140px; }
.column-navigation > div > span { font-size: 10px; letter-spacing: 1.2px; color: var(--muted); }
.column-navigation strong { font-size: 15px; font-weight: 400; }

.file-ticks { display: flex; align-items: center; gap: 12px; }
.file-ticks button { width: 14px; height: 40px; position: relative; }
.file-ticks button:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  width: 2px;
  height: 12px;
  background: var(--line);
  transition: height 0.4s, background 0.4s, top 0.4s;
}
.file-ticks button.selected:before { height: 33px; top: 3px; background: var(--ink); }
.file-ticks button:hover:before { height: 24px; top: 8px; background: var(--accent); }

.archive-hint {
  position: absolute;
  bottom: 60px;
  left: 379px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.9px;
}
.archive-hint > span { margin: 0 12px; }
.archive-hint kbd { font: inherit; }

.hover-label {
  position: absolute;
  left: 45px;
  bottom: 264px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}
.hover-label #hover-title { color: var(--ink); }

/* ── 滚动数字 ── */
#selected-number, #column-index, #selected-code, #hover-code {
  display: inline-flex;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  height: 1em;
  vertical-align: baseline;
}
.roll-col { display: inline-block; overflow: hidden; height: 1em; }
.roll-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.roll-strip > span { height: 1em; line-height: 1em; display: block; }
.roll-in { animation: rollText 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rollText {
  from { opacity: 0; transform: translateY(0.5em); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 右下角预览面板（新增）── */
.preview-panel {
  --zoom: 1;
  position: absolute;
  right: 44px;
  bottom: 148px;
  width: 404px;
  z-index: 7;
  display: flex;
  background: linear-gradient(160deg, rgba(32, 42, 47, 0.96), rgba(17, 24, 27, 0.96));
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transform: scale(var(--zoom));
  transform-origin: 100% 100%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s;
  cursor: pointer;
}
.preview-panel.pop { animation: previewPop 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.preview-panel[hidden] { display: none; }
@keyframes previewPop {
  0% { opacity: 0; transform: translate(18px, 18px) scale(var(--zoom)); }
  100% { opacity: 1; transform: translate(0, 0) scale(var(--zoom)); }
}
.preview-panel.zoomed { box-shadow: 0 26px 64px rgba(0, 0, 0, 0.62); }
.preview-cover { flex: none; padding: 18px; }
.preview-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 18px 14px 4px;
  justify-content: center;
}
.preview-no { font-size: 10px; letter-spacing: 1.6px; color: var(--accent); }
.preview-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-author { font-size: 12px; color: var(--muted); }
.preview-meta { font-size: 11px; color: var(--muted); letter-spacing: 0.4px; }
.preview-clearance {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  padding: 3px 8px;
  width: max-content;
}
.preview-abstract {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s;
}
.preview-panel.zoomed .preview-abstract { max-height: 148px; opacity: 1; }
.preview-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.preview-actions button {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.preview-actions button span { transition: transform 0.3s; }
.preview-actions button:hover { color: var(--accent); }
.preview-actions button:hover span { transform: translateX(6px); }

/* 程序化封面 */
.cover {
  position: relative;
  width: 150px;
  height: 216px;
  display: block;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--accent) 16%, #1a2326) 0%, #141c1f 52%, #10171a 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, #2c363a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 10px 0 22px -14px rgba(0, 0, 0, 0.9);
}
.cover-no {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8.5px;
  letter-spacing: 2.4px;
  color: var(--accent);
}
.cover-spine {
  position: absolute;
  left: 9px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: color-mix(in srgb, var(--accent) 60%, transparent);
}
.cover-title {
  position: absolute;
  top: 50%;
  left: 46px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 5px;
  color: #e8eae5;
  max-height: 168px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.cover-foot {
  position: absolute;
  bottom: 9px;
  left: 12px;
  right: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cover-foot b { font-size: 8px; font-weight: 600; color: var(--muted); }
.cover-foot i {
  font-style: normal;
  font-size: 6px;
  letter-spacing: 0.8px;
  color: color-mix(in srgb, var(--accent) 70%, #7d857f);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 详情模式 ── */
.detail-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.26s;
}
.detail-ui.visible { opacity: 1; }
.detail-ui[hidden] { display: none; }
.back-button {
  position: absolute;
  left: 44px;
  top: 289px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 24px;
  color: var(--muted);
}
.back-button span { font-size: 12px; letter-spacing: 1px; color: var(--ink); }
.back-button small { font-size: 10px; margin-left: 18px; color: var(--muted); border: 1px solid var(--line); padding: 4px; }
.back-button:hover { color: var(--accent); }
.object-caption { position: absolute; left: 45px; bottom: 235px; }
.object-caption > span { font-size: 37px; letter-spacing: -1px; }
.object-caption > div { font-size: 10px; letter-spacing: 1.8px; margin-top: 7px; color: var(--muted); }
.object-caption > small { font-size: 10px; letter-spacing: 1px; display: block; margin-top: 34px; color: var(--muted); }
.object-caption > small span { font-size: 18px; margin-left: 18px; }

.detail-content {
  position: absolute;
  left: 866px;
  top: 289px;
  width: 532px;
  pointer-events: auto;
  outline: none !important;
}
.detail-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.4px;
}
.detail-kicker span:last-child { font-size: 9px; color: var(--muted); }
.detail-content h2 {
  font-size: 36px;
  line-height: 1.14;
  letter-spacing: -0.8px;
  margin: 28px 0 13px;
  max-width: 520px;
  font-weight: 700;
}
.detail-title-cn { font-size: 23px; font-weight: 700; display: flex; align-items: center; gap: 23px; }
.detail-title-cn > span { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.detail-rule { height: 2px; background: var(--line); margin-top: 28px; }
.metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 42px; margin: 28px 0 34px; }
.metadata dt { font-size: 9px; letter-spacing: 0.7px; color: var(--muted); }
.metadata dd { margin: 8px 0 0; font-size: 14px; }
.metadata dd i { display: inline-block; width: 5px; height: 5px; background: var(--accent); margin-right: 8px; vertical-align: middle; }

.detail-tabs { position: relative; display: flex; gap: 34px; border-bottom: 1px solid var(--line); }
.detail-tabs button { font-size: 10px; color: var(--muted); position: relative; padding: 0 0 14px; letter-spacing: 1px; }
.detail-tabs button span { font-size: 13px; margin-left: 8px; }
.detail-tabs button.active { color: var(--ink); }
.detail-tabs button.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.tab-panel { padding-top: 22px; min-height: 210px; }
.tab-panel.tab-in { animation: tabIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-label { font-size: 10px; letter-spacing: 1.6px; color: var(--muted); margin-bottom: 14px; }
.tab-panel p { font-size: 14.5px; line-height: 2.05; color: #cfd5d2; margin: 0; }
.findings, .access-log { list-style: none; margin: 0; padding: 0; }
.findings li { font-size: 13.5px; line-height: 2; color: #cfd5d2; padding-left: 20px; position: relative; }
.findings li:before { content: "▪"; position: absolute; left: 0; color: var(--accent); font-size: 10px; top: 2px; }
.access-log li { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 1px; color: var(--muted); padding: 9px 0; border-bottom: 1px dashed var(--line); }
.access-log li i { font-style: normal; color: var(--ink); }

.detail-actions { display: flex; gap: 18px; margin-top: 30px; }
.solid-button, .export-button {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  transition: background 0.25s, border-color 0.25s;
}
.solid-button { background: var(--field); }
.solid-button:hover, .export-button:hover { border-color: var(--accent); }
.solid-button > span, .export-button > span { font-size: 11px; color: var(--muted); }
.detail-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.detail-footnote a { color: var(--muted); }
.detail-footnote a:hover { color: var(--accent); }

/* 解密入场（遮挡条退开） */
.detail-content.decrypt-in > * {
  animation: decryptReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.detail-content.decrypt-in > *:nth-child(1) { animation-delay: 0.05s; }
.detail-content.decrypt-in > *:nth-child(2) { animation-delay: 0.13s; }
.detail-content.decrypt-in > *:nth-child(3) { animation-delay: 0.2s; }
.detail-content.decrypt-in > *:nth-child(4) { animation-delay: 0.26s; }
.detail-content.decrypt-in > *:nth-child(5) { animation-delay: 0.32s; }
.detail-content.decrypt-in > *:nth-child(6) { animation-delay: 0.38s; }
.detail-content.decrypt-in > *:nth-child(7) { animation-delay: 0.44s; }
.detail-content.decrypt-in > *:nth-child(8) { animation-delay: 0.5s; }
.detail-content.decrypt-in > *:nth-child(9) { animation-delay: 0.56s; }
.detail-content.decrypt-in > *:nth-child(10) { animation-delay: 0.62s; }
@keyframes decryptReveal {
  from { opacity: 0; transform: translateX(34px); clip-path: inset(0 0 0 0); }
  to { opacity: 1; transform: none; }
}

/* ── 解密对角线覆盖层 ── */
#inspection-marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s;
}
[data-mode="detail"] #inspection-marks { opacity: 1; }
#inspection-lines { stroke: var(--accent); stroke-width: 1.8; fill: none; }
#inspection-point { fill: var(--accent); opacity: 0; }
#inspection-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 196px;
  font-size: 13px;
  letter-spacing: 2.2px;
  color: var(--muted);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.6s 0.8s;
  pointer-events: none;
}
#inspection-text strong { color: var(--ink); margin-left: 10px; letter-spacing: 1.4px; }
[data-mode="detail"] #inspection-text { opacity: 1; }

/* ── 页脚 ── */
.system-footer {
  position: absolute;
  bottom: 35px;
  left: 44px;
  right: 44px;
  font-size: 10px;
  letter-spacing: 0.9px;
  display: flex;
  gap: 44px;
  color: var(--muted);
  z-index: 5;
}
.system-footer > span { display: flex; align-items: center; gap: 10px; }
.status-light { width: 5px; height: 5px; background: #777b60; display: inline-block; animation: pulseLight 2.4s infinite; }
@keyframes pulseLight { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.system-footer > span:nth-child(2) { margin-left: auto; }
.system-footer i { font-style: normal; margin: 0 5px; }
.system-footer button { font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.system-footer button:hover { color: var(--ink); }

/* ── 弹窗 ── */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 14, 0.62);
  backdrop-filter: blur(3px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}
.modal-backdrop.closing { animation: fadeOut 0.2s forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.terminal-modal {
  width: 860px;
  max-height: 780px;
  background: linear-gradient(170deg, #232e33 0%, #1a2327 100%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 26px 30px 22px;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
.modal-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.modal-top button { letter-spacing: 1px; }
.modal-top button:hover { color: var(--accent); }
.terminal-modal h2 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 22px 0 0; }
.terminal-modal h2 > span { font-size: 10px; line-height: 1.2; font-weight: 400; letter-spacing: 1.6px; color: var(--muted); }
.terminal-modal h2 small { display: block; font-size: 25px; line-height: 1.15; font-weight: 700; letter-spacing: 0.8px; color: var(--ink); margin: 0; }
.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  background: var(--field);
  border: 1px solid var(--line);
  padding: 13px 16px;
}
.search-field > span:first-child { color: var(--accent); font-size: 17px; }
.search-field input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.4px;
}
.search-field input:focus { outline: none; }
.category-filters { display: flex; gap: 9px; flex-wrap: wrap; }
.category-filters button {
  font-size: 11px;
  letter-spacing: 0.6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.category-filters button.active { background: var(--accent); border-color: var(--accent); color: #16130c; }
.index-results-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}
.index-results-scroll::-webkit-scrollbar { height: 6px; }
.index-results-scroll::-webkit-scrollbar-thumb { background: var(--line); }
.result-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 130px 90px;
  gap: 16px;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  padding: 16px 6px 10px;
  white-space: nowrap;
}
.search-results { overflow-y: auto; overflow-x: visible; min-height: 200px; max-height: 380px; }
.search-results::-webkit-scrollbar { width: 8px; }
.search-results::-webkit-scrollbar-thumb { background: var(--line); }
.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 130px 90px;
  gap: 16px;
  align-items: center;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(83, 97, 102, 0.35);
  white-space: nowrap;
}
.result-row:hover { background: rgba(42, 54, 59, 0.5); }
.result-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.result-author { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
.result-code { font-size: 10px; letter-spacing: 1px; color: var(--accent); font-weight: 600; }
.result-row button { font-size: 11px; letter-spacing: 1px; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.result-row button:hover { color: var(--accent); }
.empty-results { display: grid; place-items: center; gap: 10px; padding: 60px 0; color: var(--muted); }
.empty-results span { font-size: 30px; }
.empty-results strong { font-size: 15px; color: var(--ink); }
.empty-results p { margin: 0; font-size: 12px; }
.modal-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.modal-bottom i { color: var(--accent); font-style: normal; }

/* ── 通知 ── */
.toast {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.6px;
  padding: 11px 20px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 30;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 加载遮罩 ── */
.loading {
  position: absolute;
  inset: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  z-index: 40;
  color: var(--ink);
  transition: opacity 0.8s;
}
.loading.done { opacity: 0; pointer-events: none; }
.loading-mark svg { width: 128px; height: 76px; }
.loading > span { font-size: 12px; letter-spacing: 3.4px; color: var(--muted); }
.loading > i {
  width: 210px;
  height: 2px;
  background: var(--field);
  position: relative;
  overflow: hidden;
}
.loading > i:after {
  content: "";
  position: absolute;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: loadSweep 1.4s infinite cubic-bezier(0.45, 0, 0.55, 1);
}
@keyframes loadSweep { to { left: 110%; } }
.loading.error > i { display: none; }


#inspection-lines,#inspection-text{display:none!important}
.powered,.system-nav [data-action="saved"],.object-caption>small,.preview-clearance,#selected-clearance,.detail-actions,.metadata>div:nth-child(4),.preview-panel,.hover-label{display:none!important}.archive-callout{left:1240px!important;top:405px!important;width:570px!important;pointer-events:none}.archive-callout .f4e-compat{display:none!important}.f4e-hover-kicker{font-size:13px;font-weight:750;letter-spacing:1.35px;color:var(--muted);margin-bottom:19px}.f4e-hover-kicker strong{font-size:14px;color:var(--ink);font-weight:800;letter-spacing:1.1px}.f4e-hover-original{font-size:20px;line-height:1.18;font-weight:760;letter-spacing:.45px;color:var(--ink);max-width:560px;margin-bottom:12px;text-transform:uppercase}.f4e-hover-cn{font-size:34px;line-height:1.12;font-weight:820;letter-spacing:.15px;color:var(--ink);max-width:560px;margin-bottom:24px}.f4e-hover-author-cn{font-size:22px;line-height:1.2;font-weight:800;color:var(--ink);margin-bottom:6px}.f4e-hover-author-original{font-size:15px;line-height:1.25;font-weight:720;letter-spacing:.55px;color:var(--muted);margin-bottom:17px}.f4e-hover-genre{font-size:14px;font-weight:760;letter-spacing:1.15px;color:var(--ink);padding-top:15px;border-top:1px solid var(--line);width:100%}.archive-callout .f4e-hover-access{pointer-events:auto;margin-left:0!important;margin-top:30px!important;gap:68px!important;font-size:15px!important;font-weight:800!important;letter-spacing:1.25px!important;color:var(--ink)}.archive-callout .f4e-hover-access>span{font-size:25px}.archive-callout .f4e-hover-access:hover{color:var(--accent)}

:root{--ink:#e7e8e3;--muted:#aab2b2;--line:#3f4b50;--paper:#0b1013;--panel:#151d21;--field:#20292d;--accent:#c5a16b}
#viewport{background:#0b1013!important}
#stage{background:#0b1013!important}
.scene-atmosphere{display:none!important}
.brand h1{font-size:42px!important;line-height:1.06!important}.brand>div{font-size:20px!important;line-height:1.25!important}.brand p{font-size:36px!important;line-height:1.1!important}
.system-nav button{font-size:16px!important}.key{font-size:14px!important}
.tiny-label,.column-navigation>div>span,.archive-hint,.system-footer,.system-footer button,.detail-kicker,.detail-kicker span:last-child,.metadata dt,.panel-label,.object-caption>div,.back-button small{font-size:14px!important;line-height:1.4!important}
.column-navigation strong,.count-total,.detail-tabs button,.detail-tabs button span,.metadata dd,.tab-panel p,.back-button span{font-size:16px!important}
.archive-hint{letter-spacing:1px!important}.archive-hint>span{margin:0 15px!important}
.archive-navigation>button,.column-navigation button{font-size:30px!important}
.object-caption>span{font-size:40px!important}.detail-content h2{font-size:40px!important;line-height:1.12!important}.detail-title-cn{font-size:24px!important}.detail-title-cn>span{font-size:14px!important}
.metadata dd{line-height:1.5!important}.tab-panel p{line-height:1.8!important}.detail-tabs{gap:36px!important}.detail-tabs button{padding-bottom:15px!important}
.f4e-hover-kicker{font-size:18px!important}.f4e-hover-kicker strong{font-size:18px!important}.f4e-hover-original{font-size:25px!important;line-height:1.2!important}.f4e-hover-cn{font-size:43px!important;line-height:1.08!important}.f4e-hover-author-cn{font-size:29px!important}.f4e-hover-author-original,.f4e-hover-genre,.archive-callout .f4e-hover-access{font-size:18px!important}.archive-callout .f4e-hover-access>span{font-size:34px!important}
#viewport:before,#viewport:after{display:none!important}
.detail-content{left:920px!important;top:255px!important;width:800px!important}
.brand{width:410px!important}.brand h1{font-size:50px!important;line-height:1.05!important}.brand>div{font-size:24px!important}.brand p{font-size:43px!important;justify-content:flex-start!important;align-items:baseline!important;gap:22px!important}.brand-analysis{width:auto!important;height:auto!important;flex:0 0 auto!important}
.system-nav button,.key,.tiny-label,.column-navigation>div>span,.archive-hint,.system-footer,.system-footer button,.detail-kicker,.detail-kicker span:last-child,.metadata dt,.panel-label,.object-caption>div,.back-button small,.column-navigation strong,.count-total,.detail-tabs button,.detail-tabs button span,.metadata dd,.tab-panel p,.back-button span,.detail-title-cn>span{font-size:18px!important}
.archive-navigation>button,.column-navigation button{font-size:36px!important}
.object-caption>span{font-size:48px!important}.detail-content h2{font-size:48px!important;line-height:1.1!important}.detail-title-cn{font-size:29px!important}
.metadata dd{line-height:1.55!important}.tab-panel p{line-height:1.75!important}
.archive-counter>div{font-size:70px!important}.archive-counter i{font-size:38px!important}

.brand p{font-size:24px!important;line-height:1.25!important;color:var(--muted)!important;font-weight:600!important;letter-spacing:.6px!important;justify-content:flex-start!important;gap:8px!important}
.brand p b{font-size:inherit!important;color:inherit!important;font-weight:600!important;letter-spacing:.6px!important}
.detail-quote{font-size:23px!important;line-height:1.55!important;color:var(--ink)!important;font-weight:400!important;letter-spacing:.1px!important;margin:24px 0 30px!important;max-width:780px}
.f4e-metadata{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 42px!important;margin:0 0 34px!important}
#detail-content .metadata.f4e-metadata>div{display:block!important}
#detail-content .metadata.f4e-metadata dd{font-size:18px!important;line-height:1.55!important}
.object-caption{bottom:205px!important;width:255px!important;max-width:255px!important}.object-caption>span{font-size:48px!important;font-weight:800!important;line-height:1.05!important}.object-caption>div:not(.f4e-object-count){font-size:18px!important;line-height:1.35!important;margin-top:12px!important;max-width:255px!important;white-space:normal!important;overflow-wrap:anywhere}.f4e-object-count{font-size:18px!important;line-height:1.35!important;margin-top:10px!important;color:var(--muted)!important;letter-spacing:.6px!important}#detail-content .detail-kicker>span:first-child{font-size:29px!important;line-height:1.1!important;font-weight:800!important;letter-spacing:.4px!important;color:var(--ink)!important}

.detail-tabs{align-items:flex-end!important}.detail-tabs::after{content:"切换  ←  →"!important;margin-left:auto!important;padding:0 0 15px!important;color:var(--muted)!important;font-size:18px!important;line-height:1!important;letter-spacing:1px!important;white-space:nowrap!important;display:block!important}

.detail-title-cn{position:relative!important;padding-right:340px!important;min-height:44px!important}.f4e-extract-pdf{position:absolute;right:0;top:50%;transform:translateY(-50%);display:inline-flex!important;align-items:center;justify-content:space-between;gap:28px;min-width:294px;padding:11px 0 10px;border:0;border-bottom:1px solid var(--line);color:var(--ink)!important;background:transparent;text-decoration:none!important;font:800 17px/1.15 MiSans,'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:1.25px;white-space:nowrap;cursor:pointer}.f4e-extract-pdf:hover,.f4e-extract-pdf:focus{color:var(--accent)!important;border-bottom-color:var(--accent);outline:none}.f4e-extract-pdf kbd.key{display:inline-flex!important;justify-content:center;align-items:center;min-width:54px;height:27px;box-sizing:border-box;padding:0 7px;margin-left:6px;border:1px solid var(--line);background:transparent;color:var(--muted);font:700 13px/1 MiSans,'PingFang SC','Microsoft YaHei',sans-serif!important;letter-spacing:.2px;opacity:.75;flex-shrink:0}

/* Detail navigation alignment */
@media (min-width:781px){
.system-nav button[data-action="search"],
.back-button{
  display:grid!important;
  grid-template-columns:256px 48px;
  column-gap:12px!important;
  align-items:center!important;
  width:316px!important;
  box-sizing:border-box!important;
  font-size:18px!important;
  line-height:1.35!important;
  letter-spacing:1px!important;
  color:var(--muted)!important;
}
.back-button{left:auto!important;right:44px!important;top:160px!important;bottom:auto!important}
.system-nav .nav-main,
.back-button .nav-main{
  display:grid!important;
  grid-template-columns:24px 220px;
  column-gap:12px!important;
  align-items:center!important;
  width:256px!important;
  min-width:256px!important;
  box-sizing:border-box!important;
}
.system-nav .nav-label,
.back-button .nav-label{
  width:220px!important;
  font:inherit!important;
  color:var(--muted)!important;
  text-align:right!important;
  white-space:nowrap;
}
.system-nav .nav-glyph,
.back-button .nav-glyph{
  width:24px!important;
  height:28px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:18px!important;
  color:var(--muted)!important;
}
.system-nav .key,
.back-button .key{
  width:48px!important;
  min-width:48px!important;
  height:28px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:14px!important;
  line-height:1!important;
  letter-spacing:0!important;
  color:var(--muted)!important;
  border:1px solid var(--line)!important;
}
}
.f4e-object-count{display:none!important}
.f4e-bilingual span{display:block}.f4e-bilingual .f4e-chinese{margin-top:3px}
.system-nav button,.object-caption>div:not(.f4e-object-count),.back-button span{font-size:18px!important;line-height:1.35!important}

@media (min-width:781px){
.terminal-modal .modal-top{font-size:12px}
.terminal-modal h2>span{font-size:12px}
.terminal-modal h2 small{font-size:27px}
.terminal-modal .search-field>span:first-child{font-size:19px}
.terminal-modal .search-field input{font-size:16px}
.terminal-modal .category-filters button{font-size:13px}
.terminal-modal .result-header{font-size:11px}
.terminal-modal .result-title{font-size:15px}
.terminal-modal .result-author{font-size:14px}
.terminal-modal .result-code{font-size:12px}
.terminal-modal .result-row button{font-size:13px}
.terminal-modal .modal-bottom{font-size:11px}
.terminal-modal .empty-results span{font-size:32px}
.terminal-modal .empty-results strong{font-size:17px}
.terminal-modal .empty-results p{font-size:14px}
}

/* Integrated portrait-mobile terminal */
@media (max-width:780px) and (orientation:portrait){
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#070b0d}
#viewport{width:100vw;height:100dvh;overflow:hidden;background:#070b0d!important}
#stage{width:100vw;height:100dvh;overflow:hidden;background:#0b1013!important;box-shadow:none;isolation:isolate}
#stage:before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(180deg,rgba(5,8,10,.72) 0%,rgba(5,8,10,.08) 21%,rgba(5,8,10,.02) 45%,rgba(5,8,10,.28) 62%,rgba(5,8,10,.68) 100%),radial-gradient(ellipse at 50% 46%,transparent 28%,rgba(4,7,8,.24) 100%)}
.three-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:1;touch-action:none;transform:translateY(-88px) scale(1.21);transform-origin:50% 50%}
.three-scene canvas{width:100%!important;height:100%!important;touch-action:none;cursor:grab}
.scene-atmosphere{display:block!important;z-index:2;pointer-events:none;background:linear-gradient(180deg,rgba(7,10,12,.42),transparent 23%,transparent 66%,rgba(7,10,12,.42)),radial-gradient(ellipse at 50% 48%,transparent 42%,rgba(7,10,12,.38) 100%)!important}
.brand{left:18px!important;top:18px!important;width:210px!important;z-index:8;text-shadow:0 2px 14px rgba(0,0,0,.72)}
.brand h1{font-size:20px!important;line-height:22px!important;letter-spacing:1.5px!important}
.brand>div{margin-top:4px!important;font-size:9px!important;line-height:12px!important;letter-spacing:1.2px!important;font-weight:500}
.brand p{margin-top:4px!important;width:180px!important;font-size:9px!important;line-height:12px!important;letter-spacing:1.2px!important;justify-content:flex-start!important;gap:5px!important;color:var(--muted);font-weight:500}
.brand p b{font:inherit!important;letter-spacing:inherit!important;color:inherit!important}
.brand-analysis{width:auto!important;height:auto!important;font:inherit!important;letter-spacing:inherit!important}
.system-nav{top:calc(var(--mobile-brand-bottom,80px) - 34px)!important;right:16px!important;gap:12px!important;z-index:9}
.system-nav button{min-height:34px!important;font-size:9px!important;letter-spacing:.65px!important;padding:0 8px!important;background:rgba(10,15,17,.46);border:1px solid rgba(197,161,107,.24);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.system-nav button:nth-child(2){display:none!important}.system-nav .nav-glyph{font-size:16px!important}.system-nav .key{display:none!important}
.archive-ui{z-index:6!important}
.archive-callout{left:80px!important;right:16px!important;top:56%!important;width:auto!important;padding:0!important;box-sizing:border-box;border:0!important;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;text-shadow:0 2px 12px #000,0 1px 3px #000}
.f4e-hover-kicker{margin-bottom:8px!important;font-size:9px!important;letter-spacing:1.1px!important}.f4e-hover-kicker strong{font-size:10px!important;letter-spacing:.8px!important}
.f4e-hover-original{max-width:none!important;margin-bottom:4px!important;font-size:12px!important;line-height:1.22!important;letter-spacing:.35px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f4e-hover-cn{max-width:none!important;margin-bottom:12px!important;font-size:28px!important;line-height:1.08!important;letter-spacing:.1px!important}
.f4e-hover-author-cn{margin-bottom:3px!important;font-size:17px!important;line-height:1.18!important}
.f4e-hover-author-original{margin-bottom:8px!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.f4e-hover-genre{padding-top:9px!important;font-size:10px!important;letter-spacing:1px!important;border-top:0!important}
.archive-callout .f4e-hover-access{width:100%;min-height:40px;margin:12px 0 0!important;padding-top:10px!important;justify-content:space-between!important;border-top:0!important;gap:0!important;font-size:11px!important;letter-spacing:1.1px!important}
.archive-callout .f4e-hover-access>span{font-size:20px!important}
.archive-counter{left:18px!important;top:calc(var(--mobile-brand-bottom,80px) + 52px)!important;bottom:auto!important;z-index:8;height:54px;padding:0!important;background:transparent!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:0 2px 10px #000}
.tiny-label{font-size:8px!important;letter-spacing:1.25px!important}.archive-counter>div{margin-top:3px!important;gap:8px!important;font-size:30px!important;line-height:1!important}.archive-counter i{font-size:18px!important}.count-total{font-size:13px!important}
.archive-navigation{left:auto!important;right:16px!important;top:calc(var(--mobile-brand-bottom,80px) + 52px)!important;bottom:auto!important;z-index:8;height:48px;gap:5px!important;padding:0!important;background:transparent!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:0 2px 10px #000}
.archive-navigation>button{width:32px!important;height:42px!important;font-size:18px!important}.file-ticks{gap:4px!important}.file-ticks button{width:7px!important;height:34px!important}.file-ticks button:before{left:3px!important;top:12px!important;width:1px!important;height:10px!important}.file-ticks button.selected:before{top:3px!important;height:28px!important}
.column-navigation{left:18px!important;right:16px!important;top:var(--mobile-brand-bottom,80px)!important;bottom:auto!important;z-index:8;height:36px;padding:0!important;box-sizing:border-box;justify-content:space-between;gap:10px!important;background:transparent!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:0 2px 10px #000}
.column-navigation button{flex:none;width:32px!important;height:34px!important;font-size:17px!important}.column-navigation>div{flex:1;min-width:0!important;display:flex!important;align-items:center;justify-content:space-between;gap:8px!important}.column-navigation>div>span{font-size:8px!important;letter-spacing:.85px!important;white-space:nowrap}.column-navigation strong{font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-panel{display:none!important}
.preview-panel[hidden]{display:none!important}.preview-cover,.preview-no,.preview-title,.preview-author,.preview-meta,.preview-clearance,.preview-actions{display:none!important}.preview-info{display:block!important;padding:0!important}.preview-info:before{content:"ABSTRACT / 内容简介";display:block;margin-bottom:6px;color:var(--accent);font-size:8px;letter-spacing:1.25px}
.preview-abstract{display:-webkit-box!important;margin:0!important;max-height:49px!important;overflow:hidden!important;opacity:1!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:10.5px!important;line-height:1.58!important;color:#c8cecc!important}.preview-panel.pop{animation:mobileTextIn .42s cubic-bezier(.22,1,.36,1)!important}@keyframes mobileTextIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.archive-hint{left:80px!important;right:16px!important;bottom:52px!important;z-index:8;text-align:left;padding:0!important;font-size:11px!important;line-height:1.35!important;letter-spacing:.35px!important;white-space:normal;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:0 2px 12px #000,0 1px 3px #000}.archive-hint>span{margin:0 6px!important}.archive-hint kbd{color:inherit}
.hover-label,#inspection-text,.powered{display:none!important}
.system-footer{left:16px!important;right:16px!important;bottom:17px!important;z-index:9;gap:10px!important;font-size:8px!important;letter-spacing:.6px!important;text-shadow:0 2px 10px #000}.system-footer>span:nth-child(2){margin-left:auto!important}.system-footer button{display:none!important}
[data-mode="detail"] .system-nav{display:none!important}.detail-ui{z-index:7!important;overflow:hidden}
.back-button{left:18px!important;right:auto!important;top:var(--mobile-brand-bottom,80px)!important;bottom:auto!important;z-index:10;gap:8px!important;min-height:34px;padding:0!important;font-size:17px!important;background:transparent!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:0 2px 12px #000}.back-button span{font-size:9px!important}.back-button small{display:none!important}
.object-caption{display:none!important}.object-caption>span{font-size:24px!important}.object-caption>div{margin-top:3px!important;font-size:8px!important}.object-caption>small{margin-top:8px!important;font-size:8px!important}.object-caption>small span{font-size:13px!important;margin-left:8px!important}.f4e-object-count{margin-top:4px!important;font-size:10px!important}
.detail-content{left:85px!important;right:16px!important;top:30%!important;bottom:18px!important;width:auto!important;height:auto!important;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:0 0 44px!important;background:transparent!important;border:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;scrollbar-width:none;text-shadow:0 2px 12px #000,0 1px 3px #000}.detail-content::-webkit-scrollbar{display:none}
.detail-kicker{font-size:9px!important}#detail-content .detail-kicker>span:first-child{font-size:16px!important}.detail-content h2{margin:14px 0 9px!important;max-width:none!important;font-size:18px!important;line-height:1.28!important;font-weight:700!important}.detail-title-cn{min-height:0!important;padding-right:0!important;display:flex!important;flex-wrap:wrap;align-items:baseline!important;gap:8px!important;font-size:26px!important;line-height:1.16!important;font-weight:500!important}.detail-title-cn>span{font-size:9px!important}
.f4e-extract-pdf{position:static!important;transform:none!important;width:auto!important;min-width:0!important;margin:20px 0 0!important;padding:0!important;font-size:10px!important;gap:0!important;border:0!important;background:transparent!important}.f4e-extract-pdf kbd{display:none!important}.detail-rule{display:none!important}.detail-quote{margin:22px 0 18px!important;font-size:10px!important;line-height:1.55!important}
.metadata{grid-template-columns:1fr 1fr!important;gap:18px 14px!important;margin:18px 0 24px!important}.metadata dt{font-size:10px!important;line-height:1.35!important}.metadata dd{margin-top:6px!important;font-size:10px!important;line-height:1.45!important}.detail-tabs{gap:12px!important;overflow-x:auto;border:0!important}.detail-tabs button{flex:1;min-width:max-content;font-size:10px!important;padding:0!important;border:0!important;background:transparent!important}.detail-tabs button span{margin-left:4px!important;font-size:10px!important}.tab-panel{min-height:0!important;padding-top:20px!important;font-size:10px!important;line-height:1.6!important;border:0!important}
.modal-backdrop{padding:calc(var(--mobile-brand-bottom,80px) + 12px) 14px 12px!important;box-sizing:border-box;align-items:flex-start!important}.terminal-modal{width:100%!important;max-height:100%!important;box-sizing:border-box;overflow:hidden;padding:16px!important}.modal-top{padding-bottom:12px!important}.terminal-modal h2{margin:14px 0 0!important;gap:4px!important}.terminal-modal h2>span{font-size:10px!important;line-height:1.2!important;font-weight:400!important}.terminal-modal h2 small{font-size:25px!important;line-height:1.15!important;font-weight:700!important}.search-field{height:34px!important;min-height:34px!important;box-sizing:border-box;margin:14px 0 10px!important;padding:0 11px!important;gap:9px!important}.search-field>span:first-child{font-size:13px!important}.search-field input{min-width:0;font-size:11px!important;line-height:1!important}.category-filters{display:flex!important;flex:0 0 36px!important;min-height:36px!important;height:36px!important;box-sizing:border-box;padding-bottom:2px!important;flex-wrap:nowrap!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;touch-action:pan-x;scrollbar-width:none}.category-filters::-webkit-scrollbar{display:none}.category-filters button{flex:0 0 auto;height:34px!important;box-sizing:border-box;padding:0 12px!important;font-size:10px!important;white-space:nowrap}.modal-list{grid-template-columns:1fr!important}.search-row{flex-direction:column}.index-results-scroll{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;width:100%;margin-top:8px!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;touch-action:pan-x}.index-results-scroll .result-header,.index-results-scroll .result-row{width:596px;min-width:596px;grid-template-columns:185px 155px 130px 78px!important;gap:16px!important;box-sizing:border-box}.index-results-scroll .result-header>span,.index-results-scroll .result-row>span,.index-results-scroll .result-row>button{white-space:nowrap!important}.index-results-scroll .search-results{flex:1 1 auto!important;width:596px;min-width:596px;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:visible!important}
.f4e-demo[data-index-origin="home"] .modal-backdrop{padding-top:14dvh!important}
@media(max-width:370px) and (orientation:portrait){.archive-callout{left:72px!important;top:56%!important;padding:0!important}.f4e-hover-cn{font-size:25px!important}.archive-hint{left:72px!important}}
.detail-content,.detail-content *{font-size:10px!important}.detail-content *{border:0!important;box-shadow:none!important}.detail-content h2{font-size:18px!important}.detail-content .detail-title-cn{font-size:26px!important}.detail-content .detail-title-cn>span{font-size:10px!important}.f4e-bilingual span{display:block!important;font-size:10px!important;line-height:1.45!important}.f4e-bilingual .f4e-chinese{margin-top:2px}.detail-tabs button.active{color:var(--accent)!important}.f4e-extract-pdf kbd.key{display:none!important}


[data-mode="detail"] .three-scene{transform:translateY(-96px) scale(1.42)!important;transform-origin:50% 50%!important}
#detail-content .detail-kicker,#detail-content .detail-kicker span{font-size:11px!important}
#detail-content .detail-quote{font-size:12px!important;line-height:1.55!important}
#detail-content .metadata dd,#detail-content .metadata dd span{font-size:11px!important;line-height:1.45!important}
#detail-content .tab-panel,#detail-content .tab-panel *{font-size:11px!important;line-height:1.6!important}
@media(prefers-reduced-motion:reduce){.preview-panel.pop,.roll-in{animation:none!important}.roll-strip{transition-duration:.01ms!important}}
#detail-content{font-size:14px!important}
#detail-content .detail-content h2,#detail-content h2{font-size:17px!important}
#detail-content .detail-title-cn{font-size:25px!important}
#detail-content .detail-quote,#detail-content .metadata dt,#detail-content .metadata.f4e-metadata dd,#detail-content .metadata.f4e-metadata dd span,#detail-content .detail-tabs button,#detail-content .detail-tabs button span,#detail-content .panel-label,#detail-content .tab-panel,#detail-content .tab-panel *,#detail-content .findings li,#detail-content .access-log li{font-size:10px!important}.detail-tabs::after{display:none!important;content:none!important}

}


/* Two-page detail reader */
#detail-content{bottom:76px!important;display:flex;flex-direction:column;overflow:hidden!important;padding-bottom:0!important;min-height:0}
#detail-content .f4e-detail-heading{flex:0 1 auto;min-height:0;max-height:60%;overflow-y:auto}
#detail-content .f4e-detail-deck{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:24px;margin-top:20px}
#detail-content .f4e-detail-pages{min-height:0;min-width:0;position:relative}
#detail-content [data-detail-panel]{height:100%;min-height:0;box-sizing:border-box}
#detail-content [data-detail-panel][hidden]{display:none!important}
#detail-content [data-detail-panel="1"]:not([hidden]){display:flex;flex-direction:column}
#detail-content .f4e-detail-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--accent) transparent}
#detail-content .metadata{margin:0!important;padding:4px 0 12px;gap:24px 28px}
#detail-content .metadata>div{display:block!important}
#detail-content .detail-tabs{flex:none;gap:22px}
#detail-content .detail-tabs::after{display:none!important}
#detail-content .tab-panel{flex:1 1 0;min-height:0!important;padding:18px 12px 12px 0}
#detail-content .f4e-page-nav{display:flex;flex-direction:column;gap:14px;border-left:1px solid var(--line);padding-left:14px;align-self:start}
#detail-content .f4e-page-nav button{display:flex;flex-direction:column;gap:5px;align-items:flex-start;color:var(--muted);font-size:22px;line-height:1.4;padding:8px 0}
#detail-content .f4e-page-nav button span{font-size:14px;white-space:nowrap}
#detail-content .f4e-page-nav button.active{color:var(--accent)}
/* Place page controls beyond the aligned reading column. */
@media(min-width:781px),(orientation:landscape){
 #detail-content{width:984px!important}
 #detail-content .f4e-detail-heading{width:800px;max-width:800px}
 #detail-content .f4e-detail-deck{grid-template-columns:800px 160px;gap:24px}
}
#detail-content .f4e-page-nav{border:0!important;padding-left:0!important;gap:24px}
#detail-content .f4e-page-nav button{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:10px;align-items:center;width:100%;text-align:left}
#detail-content .f4e-page-nav .f4e-page-arrow{font-size:24px;line-height:1}
#detail-content .f4e-page-nav .f4e-page-label{display:flex;flex-direction:column;gap:5px;font-size:14px;line-height:1.3}
#detail-content .f4e-page-nav .f4e-page-label small{display:block;font-size:10px;line-height:1.3;letter-spacing:.55px;white-space:nowrap}

#detail-content button:focus-visible,#detail-content .tab-panel:focus-visible{outline:1px solid var(--accent)!important;outline-offset:3px}
@media(max-width:780px) and (orientation:portrait){
 #detail-content{bottom:50px!important}
 #detail-content .f4e-detail-heading{max-height:55%}
 #detail-content .f4e-detail-deck{grid-template-columns:minmax(0,1fr) 48px;gap:10px;margin-top:12px}
 #detail-content .f4e-page-nav{padding-left:6px;gap:12px}
 #detail-content .f4e-page-nav button span{font-size:9px!important}
 #detail-content .metadata{gap:14px 10px}
 #detail-content .detail-tabs{gap:8px}
 #detail-content .detail-tabs button{min-width:0}
 #detail-content{overflow:visible!important}
 #detail-content .f4e-detail-heading{width:100%;max-width:100%}
 #detail-content .f4e-detail-deck{position:relative;grid-template-columns:minmax(0,1fr);gap:0;width:100%}
 #detail-content .f4e-detail-pages{width:100%;overflow:hidden}
 #detail-content .f4e-page-nav{position:absolute;left:-78px;top:0;width:70px;padding:0!important;gap:20px}
 #detail-content .f4e-page-nav button{grid-template-columns:12px minmax(0,1fr);column-gap:4px;min-height:44px}
 #detail-content .f4e-page-nav .f4e-page-label{font-size:9px!important}
 #detail-content .f4e-page-nav .f4e-page-label small{font-size:6.5px!important;letter-spacing:0}
 #detail-content .f4e-page-nav .f4e-page-arrow{font-size:16px!important}
}

/* Detail titles and genre placement; Chinese titles fit on one line. */
#detail-content h2{font-size:calc(48px + 2pt)!important;white-space:normal;overflow-wrap:break-word}
#detail-content .detail-title-cn{font-size:34px!important}
#detail-content .detail-title-cn>.f4e-title-text{font-size:inherit!important;color:inherit;letter-spacing:inherit;flex:0 1 auto;min-width:0;max-width:100%;white-space:nowrap}
#detail-content .f4e-detail-access{position:relative;display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;color:var(--muted)}
#detail-content .f4e-foreign-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:24px;margin:28px 0 13px}
#detail-content .f4e-foreign-title-row h2{min-width:0;margin:0!important}
#detail-content .f4e-detail-genre{position:static;margin:0;font-size:18px!important;font-weight:700;line-height:1.4;letter-spacing:1px;color:var(--muted);white-space:nowrap;text-align:right}
@media(max-width:780px) and (orientation:portrait){
 #detail-content .detail-kicker{align-items:flex-start}
 #detail-content .f4e-foreign-title-row{column-gap:12px;margin:14px 0 9px}
 #detail-content .f4e-detail-genre{font-size:10px!important}
}
#detail-content .detail-quote{font-size:18px!important}
@media(max-width:780px) and (orientation:portrait){
 #detail-content h2{font-size:29px!important}
 #detail-content .detail-title-cn{font-size:calc(17px + 2pt)!important;display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px}
 #detail-content .detail-title-cn>.f4e-extract-pdf{position:static!important;grid-column:1;transform:none!important;justify-self:start}
 #detail-content .detail-quote{font-size:10px!important}
}

