/* 御笔朱批 • 皇权至上风 (v8 - 桌面/移动双端字号自适应版) */

/* ---- 思维链的机密样式 ---- */
.thinking-panel { margin-bottom: 15px; }
.thinking-panel summary {
  background: #4a4a4a;
  color: #ccc;
  font-family: 'Courier New', monospace;
  font-size: clamp(0.9em, 1.1vw, 1em);
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s;
}
.thinking-panel summary:hover { background: #666; }
.thinking-panel .details-content { display: none; }

/* ---- 整体龙纹边框与奏章背景 ---- */
.imperial-style {
  background: #f7f2e9;
  font-family: 'KaiTi', 'Songti SC', serif;
  color: #3a3a3a;
  border: 1px solid #dca95a;
  padding: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  /* 关键：给整体设一个基准字号，桌面更大 */
  font-size: clamp(15px, 1.05vw + 12px, 18px);
  line-height: 1.8;
}

/* ---- 顶部场景信息栏 ---- */
.imperial-header .scene-panel summary {
  background: none;
  color: #8c735b;
  font-weight: bold;
  font-size: clamp(1.05em, 1.15vw, 1.2em);
  letter-spacing: 1px;
  padding: 5px;
  border-bottom: 1px solid #e0d8c8;
}
.imperial-header .scene-panel summary::before { content: none; }
.imperial-header .scene-panel .details-content {
  background: none;
  border: none;
  padding: 10px 5px;
  font-size: clamp(1em, 1.05vw, 1.08em);
}

/* ---- 华丽的分割线 ---- */
.ruler-divider {
  border: 0;
  height: 2px;
  background-image: linear-gradient(to right, transparent, #c0392b, transparent);
  margin: 5px 0 15px 0;
}

/* ---- 核心修复：正文字号桌面端显著放大 ---- */
.imperial-body {
  padding: 10px 0;
  /* 移动端最低 1em(=15px)，桌面端最高 1.2em(≈21.6px) */
  font-size: clamp(1em, 0.6vw + 0.9em, 1.2em) !important;
  line-height: 1.9 !important;
}
.imperial-body p {
  text-indent: 2em;
  margin-bottom: 1.5em;
}

/* ---- 正文内的特殊文本样式 ---- */
.imperial-body .char-dialogue { color: #2c2c2c; font-weight: bold; }
.imperial-body .inner-thought { color: #888; font-style: italic; }
.imperial-body .system-alert {
  background-color: rgba(192, 57, 43, 0.05);
  border-left: 3px solid #c0392b;
  padding: 10px 15px;
  margin: 15px 0;
  font-size: clamp(0.92em, 1vw, 1em);
  color: #a53125;
  text-indent: 0;
}

/* ---- 底部折叠栏统一奏章标题样式 ---- */
.imperial-footer summary {
  background-color: #c0392b;
  color: #f0c369;
  padding: 10px 20px;
  margin-bottom: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: clamp(1.05em, 1.15vw, 1.2em);
  letter-spacing: 2px;
  transition: all 0.3s ease-in-out;
  position: relative;
  border-radius: 3px;
}
.imperial-footer summary:hover { background-color: #a53125; color: #fff; }
.imperial-footer summary::before {
  content: '章';
  font-family: 'KaiTi';
  font-weight: bold;
  display: inline-block;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  margin-right: 15px;
  background: #f0c369;
  color: #c0392b;
  border-radius: 50%;
  border: 1px solid #a53125;
}
.imperial-footer .details-content {
  padding: 15px;
  background: rgba(240, 195, 105, 0.08);
  border: 1px solid #e0d8c8;
  border-top: none;
  margin-bottom: 10px;
  font-size: clamp(1em, 1.05vw, 1.1em);
}
.imperial-footer .details-content p { margin: 5px 0; }
.imperial-footer .details-content b { color: #a53125; }

/* ---- 人物详情与身体状态的特殊样式 ---- */
.npc-details h4 {
  color: #c0392b;
  font-size: clamp(1.2em, 1.4vw, 1.4em);
  text-align: center;
  margin-bottom: 10px;
}
.npc-details h5 {
  color: #a53125;
  font-size: clamp(1.05em, 1.2vw, 1.18em);
  margin-top: 15px;
  border-bottom: 1px dashed #dca95a;
  padding-bottom: 5px;
}

/* ---- HTML表格的统一样式 ---- */
.imperial-table, .memory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.95em, 1vw, 1.05em);
}
.imperial-table th, .memory-table th {
  background-color: rgba(192, 57, 43, 0.1);
  color: #a53125;
  padding: 8px;
  text-align: center;
  border-bottom: 2px solid #c0392b;
}
.imperial-table td, .memory-table td {
  padding: 8px;
  text-align: center;
  border: 1px solid #e0d8c8;
}
.imperial-table tbody tr:nth-child(even) { background-color: rgba(240, 195, 105, 0.05); }

/* ---- 底部"圣心独断"选项区域 ---- */
.action-choices {
  margin-top: 20px;
  padding: 15px;
  border: 2px solid #c0392b;
  background: linear-gradient(135deg, #fdf5e6 0%, #f7f2e9 100%);
  border-radius: 5px;
}
.action-choices h4 {
  text-align: center;
  font-size: clamp(1.3em, 1.5vw, 1.55em);
  color: #c0392b;
  letter-spacing: 5px;
  margin-bottom: 15px;
}
.action-choices p {
  margin: 8px 0;
  font-size: clamp(1em, 1.1vw, 1.12em);
  cursor: pointer;
}
.action-choices p:hover { color: #c0392b; }

/* ═══════════════════════════════════════════
   桌面端额外加成 (≥1024px 屏幕字号再放大)
   ═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .imperial-style {
    font-size: 17px;
    line-height: 1.85;
  }
  .imperial-body {
    font-size: 1.15em !important;
    line-height: 2 !important;
  }
  .imperial-table, .memory-table {
    font-size: 1.02em;
  }
}

/* 超宽屏 (≥1440px) 再加一档 */
@media (min-width: 1440px) {
  .imperial-style {
    font-size: 18px;
  }
  .imperial-body {
    font-size: 1.2em !important;
  }
}

/* 移动端保留你原来的舒适字号 */
@media (max-width: 640px) {
  .imperial-style {
    font-size: 15px;
    padding: 12px;
  }
  .imperial-body {
    font-size: 1em !important;
    line-height: 1.8 !important;
  }
}