/* 伪证 — 增强版样式表 */

/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  background: #F5EFE6 url('../img/paper-texture.png');
  color: #1A1A1A;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 顶部导航栏 ===== */
.top-bar {
  height: 120px;
  background: #1A1A1A;
  color: #F5EFE6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

/* 子页面时隐藏顶栏 */
body.subpage-active .top-bar {
  transform: translateY(-100%);
}

.nav-button {
  background: transparent;
  border: 3px solid #F5EFE6;
  color: #F5EFE6;
  padding: 18px 48px;
  font-size: 40px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.nav-button:hover {
  background: #F5EFE6;
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(245, 239, 230, 0.3);
}

.nav-button:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===== 页面容器 ===== */
.page {
  display: none;
  min-height: calc(100vh - 120px);
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 开场引导页 ===== */
.intro-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 100px 100px;
}

.intro-title {
  text-align: center;
  margin-bottom: 80px;
  border-bottom: 6px solid #1A1A1A;
  padding-bottom: 40px;
}

.intro-title h1 {
  font-size: 120px;
  font-weight: 700;
  letter-spacing: 0.25em;
  margin-bottom: 24px;
  line-height: 1.1;
}

.intro-subtitle {
  font-size: 48px;
  color: #4A4A4A;
  letter-spacing: 0.15em;
  font-weight: 400;
}

.intro-content {
  margin-bottom: 80px;
}

.intro-section {
  margin-bottom: 72px;
  line-height: 2;
}

.intro-section:last-child {
  margin-bottom: 0;
}

.intro-section h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 36px;
  color: #8B0000;
  border-left: 8px solid #8B0000;
  padding-left: 24px;
  line-height: 1.3;
}

.intro-section p {
  font-size: 40px;
  margin-bottom: 28px;
  text-indent: 2em;
  line-height: 1.9;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

.intro-section strong {
  font-weight: 700;
  color: #1A1A1A;
}

.intro-list {
  list-style: none;
  padding-left: 2em;
  font-size: 40px;
  line-height: 1.8;
}

.intro-list li {
  margin-bottom: 20px;
  position: relative;
  padding-left: 48px;
}

.intro-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #8B0000;
  font-weight: 700;
  font-size: 44px;
}

.intro-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin-top: 48px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 0;
}

.step-number {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 4px solid #1A1A1A;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 700;
  color: #8B0000;
  transition: all 0.2s ease;
}

.guide-step:hover .step-number {
  background: #8B0000;
  color: #FFFFFF;
  border-color: #8B0000;
}

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1A1A1A;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.step-desc {
  font-size: 36px;
  line-height: 1.8;
  color: #2C2416;
}

.button-large {
  display: block;
  width: 640px;
  margin: 0 auto;
  font-size: 56px;
  padding: 36px 64px;
  background: #8B0000;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 16px rgba(139, 0, 0, 0.25);
}

.button-large:hover {
  background: #6D0000;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(139, 0, 0, 0.35);
}

.button-large:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

.intro-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.button-secondary {
  display: block;
  width: 640px;
  margin: 0 auto;
  font-size: 44px;
  padding: 28px 56px;
  background: #F5EFE6;
  color: #4A4A4A;
  border: 3px solid #2C2416;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-secondary:hover {
  background: #E5DDD0;
  transform: translateY(-2px);
}

/* ===== 主界面 ===== */
.main-header {
  text-align: center;
  padding: 80px 0 64px;
}

.location {
  font-size: 64px;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.subtitle {
  font-size: 56px;
  font-weight: 400;
  color: #4A4A4A;
  letter-spacing: 0.15em;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding: 0 80px;
  margin-bottom: 60px;
}

.character-card {
  border: 4px solid #2C2416;
  padding: 48px 32px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
}

.character-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 4px solid #8B0000;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.character-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.character-card:hover::after {
  opacity: 1;
}

.character-card:active {
  transform: translateY(-8px);
}

.character-portrait {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto 32px;
  border: 3px solid #2C2416;
  transition: border-color 0.25s ease;
}

.character-card:hover .character-portrait {
  border-color: #8B0000;
}

.character-name {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1A1A1A;
  line-height: 1.2;
}

.character-status {
  font-size: 36px;
  color: #4A4A4A;
  margin-bottom: 16px;
  font-weight: 400;
}

.character-alert {
  width: 24px;
  height: 24px;
  background: #8B0000;
  border-radius: 50%;
  margin: 16px auto;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.character-desc {
  font-size: 32px;
  color: #4A4A4A;
  margin-top: 24px;
}

.main-footer {
  text-align: center;
  padding: 48px;
  font-size: 44px;
  color: #2C2416;
  background: rgba(255, 255, 255, 0.6);
  border-top: 3px solid #2C2416;
  font-weight: 500;
}

.main-footer span {
  font-weight: 700;
  color: #8B0000;
}

.reset-link {
  display: inline-block;
  margin-left: 40px;
  padding: 12px 32px;
  font-size: 32px;
  background: transparent;
  color: #6A6255;
  border: 2px solid #C9C0B3;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.reset-link:hover {
  color: #8B0000;
  border-color: #8B0000;
  background: #FFF9F5;
}

/* ===== 对话界面 ===== */
.dialogue-header {
  background: #FFFFFF;
  padding: 14px 80px;
  border-bottom: 2px solid #2C2416;
  display: flex;
  align-items: center;
  gap: 48px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.back-button {
  font-size: 48px;
  color: #4A4A4A;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 16px;
  margin-left: -16px;
  font-weight: 600;
}

.back-button:hover {
  color: #8B0000;
  transform: translateX(-4px);
}

.dialogue-header h2 {
  font-size: 52px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
  flex: 1;
  letter-spacing: 0.05em;
}

.character-info-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 80px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5DDD0;
}

.character-avatar {
  width: 96px;
  height: 96px;
  border: 2px solid #2C2416;
  background: #F5EFE6 no-repeat center center;
  background-size: cover;
  flex-shrink: 0;
}

.character-meta {
  font-size: 32px;
  line-height: 1.4;
}

#dialogue-character-desc {
  color: #4A4A4A;
  margin-bottom: 16px;
  font-weight: 400;
}

#dialogue-progress {
  color: #2C2416;
  font-weight: 500;
}

.question-list {
  padding: 64px 80px;
  max-width: 1600px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.question-list.minimized {
  max-height: 0;
  padding: 0 80px;
  overflow: hidden;
  opacity: 0;
}

.question-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 40px;
  margin-bottom: 24px;
  background: #FFFFFF;
  border: 3px solid #E5DDD0;
  font-size: 44px;
  line-height: 1.6;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-item:hover:not(.locked):not(.asked) {
  border-color: #8B0000;
  box-shadow: 0 4px 16px rgba(139, 0, 0, 0.12);
  transform: translateX(8px);
  cursor: pointer;
}

.question-item.asked {
  background: #F9F7F4;
  border-color: #C9C0B3;
  opacity: 0.75;
}

.question-item.locked {
  background: #FAFAF8;
  color: #9A9288;
  border-color: #E5DDD0;
  cursor: not-allowed;
}

.question-bullet {
  font-size: 40px;
  font-weight: 700;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  color: #8B0000;
}

.question-item.asked .question-bullet {
  color: #6A6255;
}

.question-item.locked .question-bullet {
  color: #C9C0B3;
}

.lock-reason {
  display: block;
  font-size: 32px;
  color: #9A9288;
  margin-top: 12px;
  font-style: italic;
}

/* ===== 回答区域 ===== */
.answer-section {
  padding: 64px 80px 80px;
  max-width: 1600px;
  margin: 0 auto;
  background: #FFFFFF;
  border-top: 4px solid #2C2416;
}

.question-display {
  font-size: 52px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 3px solid #E5DDD0;
  line-height: 1.4;
}

.divider {
  border: none;
  border-top: 2px solid #E5DDD0;
  margin: 48px 0;
}

.answer-content {
  font-size: 44px;
  line-height: 2;
  color: #1A1A1A;
  min-height: 200px;
}

.answer-paragraph,
.answer-para {
  margin-bottom: 40px;
  padding: 36px;
  background: #FAFAF8;
  border-left: 6px solid transparent;
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.answer-paragraph.speech,
.answer-para.speech {
  border-left-color: #8B0000;
  background: #FFF9F5;
}

.answer-paragraph.action,
.answer-para.action {
  border-left-color: #4A4A4A;
  background: #F5F5F3;
  font-style: italic;
  color: #4A4A4A;
}

.para-progress {
  display: none;
  text-align: center;
  font-size: 40px;
  color: #8B0000;
  margin-top: 48px;
  padding: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 3px solid transparent;
  border-radius: 4px;
}

.para-progress:hover {
  background: #FFF9F5;
  border-color: #8B0000;
  transform: translateY(-2px);
}

.answer-actions {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 56px;
}

.button,
.button-primary,
.continue-button,
.mark-doubt-button {
  padding: 24px 56px;
  font-size: 44px;
  border: 3px solid #2C2416;
  background: #FFFFFF;
  color: #1A1A1A;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  background: #F5EFE6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button-primary {
  background: #8B0000;
  border-color: #8B0000;
  color: #FFFFFF;
}

.button-primary:hover {
  background: #6D0000;
  border-color: #6D0000;
  box-shadow: 0 4px 16px rgba(139, 0, 0, 0.25);
}

.continue-button {
  background: #1A1A1A;
  border-color: #1A1A1A;
  color: #FFFFFF;
  min-width: 240px;
}

.continue-button:hover {
  background: #000000;
  border-color: #000000;
}

.mark-doubt-button {
  border-color: #D4AF37;
  color: #8B6914;
}

.mark-doubt-button:hover {
  background: #FFF9E6;
  border-color: #C49A1A;
}

.evidence-gained {
  padding: 40px;
  background: #E8F5E8;
  border: 4px solid #4A7C4A;
  margin: 48px 0;
  font-size: 40px;
  line-height: 1.8;
}

.evidence-gained strong {
  color: #2C5C2C;
  font-weight: 700;
}

/* ===== 分支选项 ===== */
.branch-container {
  padding: 48px;
  background: #FFF9E6;
  border: 4px solid #D4AF37;
  margin: 40px 0;
}

.branch-hint {
  font-size: 40px;
  color: #8B6914;
  margin-bottom: 32px;
  text-align: center;
  font-weight: 600;
}

.branch-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.branch-option {
  padding: 36px 48px;
  border: 3px solid #C49A1A;
  background: #FFFFFF;
  cursor: pointer;
  font-size: 42px;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.7;
}

.branch-option:hover {
  border-color: #8B6914;
  background: #FFFBF0;
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.branch-option:active {
  transform: translateX(4px);
}

/* ===== 考据室 ===== */
.archive-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  padding: 64px 80px;
  max-width: 1920px;
  margin: 0 auto;
}

.materials-column,
.evidence-column {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-title {
  font-size: 56px;
  font-weight: 700;
  color: #8B0000;
  margin-bottom: 16px;
  padding-bottom: 20px;
  border-bottom: 4px solid #8B0000;
}

.material-card {
  background: #FFFFFF;
  border: 4px solid #2C2416;
  padding: 40px;
  transition: box-shadow 0.2s ease;
}

.material-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.material-title {
  font-size: 48px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 24px;
  line-height: 1.3;
}

.material-content {
  font-size: 38px;
  line-height: 1.9;
  color: #2C2416;
  margin-bottom: 24px;
}

.material-content p {
  margin-bottom: 24px;
}

.material-content ul {
  list-style: none;
  padding-left: 1.5em;
}

.material-content li {
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}

.material-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8B0000;
  font-weight: 700;
}

.material-content strong {
  font-weight: 700;
  color: #1A1A1A;
}

.expand-button {
  padding: 16px 40px;
  font-size: 36px;
  background: #F5EFE6;
  border: 3px solid #2C2416;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
}

.expand-button:hover {
  background: #E5DDD0;
  transform: translateY(-2px);
}

.material-expanded {
  margin-top: 24px;
}

.material-source {
  font-size: 32px;
  color: #6A6255;
  font-style: italic;
  padding-top: 24px;
}

.evidence-image {
  background: #FFFFFF;
  border: 4px solid #2C2416;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.evidence-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.evidence-caption {
  text-align: center;
  font-size: 36px;
  color: #4A4A4A;
  margin-top: 20px;
  font-weight: 500;
}

.notebook-cover,
.notebook-page {
  background-color: #FFFEF8;
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.notebook-cover {
  background-image: url('../img/notebook-cover.png');
}

.notebook-page {
  background-image: url('../img/notebook-page.png');
}

.notebook-cover-text,
.notebook-page-text {
  background: rgba(255, 255, 255, 0.82);
  border: 3px solid #2C2416;
}

.notebook-cover-text {
  text-align: center;
  padding: 90px 40px;
}

.notebook-cover-title {
  font-size: 48px;
  margin-bottom: 40px;
  color: #1A1A1A;
}

.notebook-cover-date {
  font-size: 36px;
  color: #4A4A4A;
}

.notebook-cover-hint {
  font-size: 28px;
  color: #6A6255;
  margin-top: 60px;
}

.notebook-page-text {
  padding: 40px;
  font-size: 32px;
  line-height: 1.8;
  color: #1A1A1A;
}

.notebook-page-hand {
  margin-top: 60px;
  font-size: 28px;
  color: #4A4A4A;
  font-style: italic;
}

/* ===== 档案室 ===== */
.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 64px 80px;
  max-width: 1920px;
  margin: 0 auto;
}

.archive-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.evidence-item,
.doubt-item {
  background: #FFFFFF;
  border: 4px solid #2C2416;
  padding: 40px;
  font-size: 40px;
  line-height: 1.8;
  position: relative;
  transition: all 0.2s ease;
}

.evidence-item:hover,
.doubt-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.evidence-name,
.doubt-question {
  font-weight: 700;
  color: #8B0000;
  margin-bottom: 16px;
  font-size: 44px;
}

.evidence-desc,
.doubt-answer {
  color: #2C2416;
  margin-bottom: 12px;
}

.evidence-source,
.doubt-source {
  font-size: 32px;
  color: #6A6255;
  font-style: italic;
}

/* ===== 指认界面 ===== */
.accuse-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 64px 80px;
}

.accuse-header {
  text-align: center;
  margin-bottom: 64px;
}

.accuse-header h2 {
  font-size: 72px;
  font-weight: 700;
  color: #8B0000;
  margin-bottom: 24px;
}

.accuse-hint {
  font-size: 44px;
  color: #4A4A4A;
  line-height: 1.8;
}

.suspect-selection {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 72px;
}

.suspect-card {
  border: 4px solid #2C2416;
  padding: 40px 24px;
  background: #FFFFFF;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.suspect-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  border-color: #8B0000;
}

.suspect-card.selected {
  border-color: #8B0000;
  border-width: 6px;
  background: #FFF9F5;
}

.suspect-card img {
  width: 160px;
  height: 160px;
  border: 3px solid #2C2416;
  margin: 0 auto 24px;
  display: block;
}

.suspect-card.selected img {
  border-color: #8B0000;
}

.suspect-name {
  font-size: 48px;
  font-weight: 700;
  color: #1A1A1A;
}

.evidence-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 72px;
}

.evidence-slot {
  border: 4px solid #2C2416;
  padding: 48px 40px;
  background: #FFFFFF;
  min-height: 480px;
}

.slot-title {
  font-size: 52px;
  font-weight: 700;
  color: #8B0000;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 3px solid #E5DDD0;
  text-align: center;
}

.slot-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slot-option {
  padding: 28px 32px;
  border: 3px solid #E5DDD0;
  background: #FAFAF8;
  cursor: pointer;
  font-size: 38px;
  text-align: left;
  font-family: inherit;
  line-height: 1.7;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot-option:hover {
  border-color: #8B0000;
  background: #FFF9F5;
  transform: translateX(6px);
}

.slot-option.selected {
  border-color: #8B0000;
  border-width: 4px;
  background: #FFF9F5;
  font-weight: 600;
}

.slot-empty {
  text-align: center;
  color: #9A9288;
  font-size: 40px;
  padding: 80px 0;
  font-style: italic;
}

.submit-section {
  text-align: center;
  padding: 48px;
  background: #FAFAF8;
  border: 3px solid #E5DDD0;
}

.submit-section p {
  font-size: 40px;
  color: #4A4A4A;
  margin-bottom: 32px;
  line-height: 1.7;
}

.submit-button {
  padding: 32px 80px;
  font-size: 56px;
  background: #8B0000;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

.submit-button:hover:not(:disabled) {
  background: #6D0000;
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(139, 0, 0, 0.4);
}

.submit-button:disabled {
  background: #C9C0B3;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== 结局页面 ===== */
.ending-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 100px;
}

.ending-title {
  font-size: 96px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.ending-title.success {
  color: #2C5C2C;
}

.ending-title.failure {
  color: #8B0000;
}

.ending-content {
  font-size: 44px;
  line-height: 2.1;
  color: #1A1A1A;
  margin-bottom: 72px;
  padding: 56px;
  background: #FFFFFF;
  border: 4px solid #2C2416;
}

.ending-content p {
  margin-bottom: 36px;
  text-indent: 2em;
}

.ending-content strong {
  font-weight: 700;
  color: #8B0000;
}

.ending-actions {
  display: flex;
  justify-content: center;
  gap: 40px;
}

/* ===== 模态框 ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #FFFFFF;
  padding: 64px 80px;
  border: 6px solid #1A1A1A;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #8B0000;
  line-height: 1.3;
}

.modal-content p {
  font-size: 44px;
  line-height: 1.9;
  color: #2C2416;
  margin-bottom: 48px;
}

.modal img {
  max-width: 100%;
  border: 4px solid #2C2416;
  margin: 32px 0;
}

/* ===== 记录簿放大查看 ===== */
.notebook-zoom-content {
  width: 1100px;
  max-width: 92vw;
  position: relative;
}

.zoom-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 48px;
  background: transparent;
  border: none;
  color: #6A6255;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 8px;
}

.zoom-close:hover {
  color: #8B0000;
}

.zoom-view {
  padding: 24px 8px;
}

.notebook-cover-large,
.notebook-page-large {
  background-color: #FFFEF8;
  border: 4px solid #2C2416;
  padding: 80px 60px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.notebook-cover-large {
  background-image: url('../img/notebook-cover.png');
}

.notebook-page-large {
  background-image: url('../img/notebook-page.png');
}

.cover-title-large {
  position: relative;
  text-align: center;
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1A1A1A;
  background: rgba(255, 255, 255, 0.8);
  padding: 16px 32px;
}

.cover-date-large {
  position: relative;
  text-align: center;
  font-size: 44px;
  color: #4A4A4A;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 32px;
}

.notebook-page-large {
  font-size: 44px;
  line-height: 1.9;
  color: #1A1A1A;
}

.notebook-page-overlay {
  background: rgba(255, 255, 255, 0.78);
  padding: 32px;
}

.page-gap {
  margin-top: 32px;
}

.signature-line {
  margin-top: 64px;
  font-size: 36px;
  color: #4A4A4A;
}

.handwriting-line {
  margin-top: 16px;
  font-size: 32px;
  color: #6A6255;
  font-style: italic;
}

.zoom-caption {
  margin-top: 24px;
  text-align: center;
  font-size: 34px;
  color: #8B0000;
  font-weight: 500;
}

/* ===== 补充：与 HTML/JS 对齐的样式（修复类名脱节）===== */

.divider-thick {
  border: none;
  border-top: 4px solid #2C2416;
  margin: 56px 0;
}

.mark-doubt-button.marked {
  background: #8B6914;
  border-color: #8B6914;
  color: #FFFFFF;
  cursor: default;
}

.empty-notice {
  font-size: 36px;
  color: #A0A0A0;
  padding: 40px;
  text-align: center;
  font-style: italic;
}

.hint-box {
  padding: 32px;
  background: #FFF4E0;
  border-left: 6px solid #8B0000;
  font-size: 34px;
  line-height: 1.8;
  color: #2C2416;
}

/* 档案室容器 */
.archive-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 64px 80px;
}

.archive-header {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 48px;
  color: #1A1A1A;
}

.evidence-section {
  margin-bottom: 56px;
}

.evidence-item.key {
  border-color: #8B0000;
  background: #FFF4E0;
}

/* 指认界面 */
.accusation-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 64px 80px;
}

.step-label {
  font-size: 44px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 12px;
}

.step-hint {
  font-size: 36px;
  color: #4A4A4A;
  margin-bottom: 40px;
}

.suspect-row {
  display: flex;
  gap: 48px;
  font-size: 46px;
  padding: 32px 0 48px;
  flex-wrap: wrap;
}

.suspect-choice {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  color: #1A1A1A;
}

.suspect-choice input[type="radio"] {
  display: none;
}

.suspect-choice .mark {
  font-size: 48px;
  line-height: 1;
}

.suspect-choice .mark::before {
  content: "○";
  color: #1A1A1A;
}

.suspect-choice input[type="radio"]:checked ~ .mark::before {
  content: "●";
  color: #8B0000;
}

/* 三格证据链 */
.slot {
  border: 4px solid #2C2416;
  background: #FFFFFF;
  padding: 36px 44px;
  margin-bottom: 32px;
}

.slot.empty {
  border-style: dashed;
  border-width: 5px;
  background: #FAF6F0;
}

.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 44px;
  font-weight: 700;
  color: #1A1A1A;
  padding-bottom: 20px;
  border-bottom: 3px solid #2C2416;
  margin-bottom: 24px;
}

.slot-index {
  letter-spacing: 0.15em;
}

.slot-question {
  font-size: 38px;
  font-weight: 400;
  color: #4A4A4A;
  margin-left: 20px;
}

.slot-state {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.slot-state.filled {
  color: #2D5F2D;
}

.slot-state.empty {
  color: #8B0000;
}

/* 覆盖卡片式选项为行式布局，容纳 标记/名称/说明 三列 */
.slot-option {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  font-size: 36px;
}

.slot-option-mark {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.slot-option-name {
  font-weight: 700;
  color: #1A1A1A;
  flex-shrink: 0;
}

.slot-option-note {
  font-size: 30px;
  color: #4A4A4A;
  flex: 1;
}

/* 未归类 */
.unfiled {
  border-top: 3px solid #C9C0B3;
  border-bottom: 3px solid #C9C0B3;
  padding: 24px 0;
  margin: 40px 0;
}

.unfiled-toggle {
  font-size: 36px;
  color: #4A4A4A;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.unfiled-toggle:hover {
  color: #8B0000;
}

.unfiled-item {
  font-size: 34px;
  padding: 16px 0 8px 40px;
  color: #4A4A4A;
}

.unfiled-reason {
  font-size: 28px;
  color: #6A6255;
  font-style: italic;
  padding-left: 40px;
}

/* 提交区 */
.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.submit-status {
  font-size: 40px;
  color: #8B0000;
}

.submit-status.ready {
  color: #2D5F2D;
}

/* 结局页面 */
.ending-screen {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px;
  background: #F5EFE6;
}

.ending-quote {
  border-left: 8px solid #8B0000;
  padding-left: 40px;
  font-style: italic;
  color: #2C2416;
  margin: 48px 0;
  text-align: left;
}

.ending-quote p {
  text-indent: 0;
}

.ending-buttons {
  display: flex;
  gap: 48px;
}

.ending-button {
  font-size: 48px;
  padding: 28px 64px;
  border: 4px solid #2C2416;
  background: #FFFFFF;
  color: #1A1A1A;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s ease;
}

.ending-button:hover {
  background: #8B0000;
  color: #F5EFE6;
  border-color: #8B0000;
}

/* 顶栏（补充） */
.nav-buttons {
  display: flex;
  gap: 32px;
}

.date-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 36px;
  font-weight: 500;
}

.separator {
  color: #C9C0B3;
}

.asked-count {
  font-weight: 700;
  color: #8B0000;
}

/* ===== 美化补丁：档案 / 旧报纸质感 ===== */

/* 顶栏：报纸头版红色下边线 */
.top-bar {
  border-bottom: 4px solid #8B0000;
}

/* 标题字距（19世纪印刷感） */
.main-header .location,
.main-header .subtitle,
.dialogue-header h2,
.intro-title h1,
.intro-subtitle,
.character-name,
.material-title,
.section-title,
.ending-title {
  letter-spacing: 0.08em;
}

/* 主界面标题下：双线分隔（报纸头版感） */
.main-header {
  border-bottom: 3px double #2C2416;
  padding-bottom: 32px;
  margin-bottom: 48px;
}

/* 角色卡：右上角档案角标 */
.character-card::before {
  content: "档案";
  position: absolute;
  top: -1px;
  right: -1px;
  background: #8B0000;
  color: #F5EFE6;
  font-size: 24px;
  font-weight: 700;
  padding: 6px 18px;
  letter-spacing: 0.25em;
  z-index: 2;
}

/* 指认页“已填”：红色圆形印章（档案盖章） */
.slot-state.filled {
  display: inline-block;
  color: #8B0000;
  border: 3px solid #8B0000;
  border-radius: 50%;
  padding: 8px 22px;
  transform: rotate(-8deg);
  font-weight: 700;
  letter-spacing: 0.15em;
  box-shadow: inset 0 0 0 3px #FFFFFF;
}

/* 分隔线：报纸双线 */
.divider-thick {
  border-top: 2px solid #2C2416;
  border-bottom: 1px solid #C9C0B3;
  height: 5px;
}

/* 关键证据：左侧红色档案标记线 */
.evidence-item.key {
  box-shadow: inset 6px 0 0 #8B0000;
}

/* 结局：真实历史板块（暗金档案框，区别于马克思引用） */
.ending-history {
  border: 2px solid #8B6914;
  background: #FFF9F0;
  padding: 32px 40px;
  margin: 48px 0;
  text-align: left;
}

.ending-history p {
  text-indent: 0;
}

.ending-history p:first-child {
  color: #8B6914;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
}

.ending-history a {
  color: #8B6914;
  text-decoration: underline;
  font-weight: 600;
  word-break: break-all;
}

.ending-history a:hover {
  color: #8B0000;
}

/* ===== 响应式 ===== */
@media (max-width: 1600px) {
  html { font-size: 14px; }
}

@media (max-width: 1280px) {
  html { font-size: 12px; }
  .character-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: 1fr; }
  .suspect-selection { grid-template-columns: repeat(2, 1fr); }
  .evidence-slots { grid-template-columns: 1fr; }
}
