/* ============================================================ */
/*   漫画线条风·V2·正文空间最大化版                              */
/* ============================================================ */

/* ========== 主容器·外层（不再挤压内部空间）========== */
.reply {
  font-family: "华文楷体", "楷体", "STKaiti", "Comic Sans MS", cursive;
  color: #1a1a1a;
  background: #fdfaf3;
  background-image: 
    radial-gradient(circle, rgba(26,26,26,0.1) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(26,26,26,0.1) 1px, transparent 1.5px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  border: 3px solid #1a1a1a;
  border-radius: 4px;
  padding: 12px 10px;
  margin: 6px 0;
  box-shadow: 5px 5px 0 #1a1a1a;
  position: relative;
  line-height: 1.75;
  font-size: 15px;
}

.reply::before {
  content: "❋ CHAPTER ❋";
  position: absolute;
  top: -12px;
  right: 14px;
  background: #fdfaf3;
  border: 2px solid #1a1a1a;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  transform: rotate(-2deg);
}

/* ========== 顶部状态栏·扁平化，减少高度 ========== */
.reply .statusbar {
  background: #1a1a1a;
  color: #fdfaf3;
  padding: 6px 12px;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.3px;
  border-radius: 2px;
  border-left: 5px solid #ffe66d;
  line-height: 1.5;
}

.reply .statusbar p {
  margin: 0;
  color: #fdfaf3;
}

/* ========== 正文区·最大化空间，只用底色区分 ========== */
.reply .main {
  background: #ffffff;
  padding: 12px 14px;
  margin: 0 0 12px 0;
  border-left: 5px solid #ffe66d;
  border-radius: 2px;
  position: relative;
}

/* 正文段落·最大化行宽 */
.reply .main article p {
  margin: 0 0 10px 0;
  text-indent: 2em;
  color: #1a1a1a;
  line-height: 1.9;
  font-size: 15px;
}

.reply .main article p:last-child {
  margin-bottom: 0;
}

/* 对白荧光笔涂抹效果 */
.reply .main article font[color="purple"],
.reply .main article font[color="deeppink"],
.reply .main article font[color="blue"] {
  display: inline-block;
  font-weight: bold;
  padding: 0 3px;
  margin: 0 1px;
}

.reply .main article font[color="purple"] {
  color: #6b2b8f !important;
  background: linear-gradient(180deg, transparent 62%, #e9d5f5 62%);
}

.reply .main article font[color="deeppink"] {
  color: #c2185b !important;
  background: linear-gradient(180deg, transparent 62%, #fce4ec 62%);
}

.reply .main article font[color="blue"] {
  color: #1565c0 !important;
  background: linear-gradient(180deg, transparent 62%, #d4e6f7 62%);
}

/* ========== 折叠面板·紧凑化 ========== */
.reply details {
  background: #ffffff;
  border: 2px solid #1a1a1a;
  margin: 8px 0;
  box-shadow: 3px 3px 0 #1a1a1a;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.reply details:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #1a1a1a;
}

.reply details[open] {
  box-shadow: 3px 3px 0 #ffe66d, 3px 3px 0 2px #1a1a1a;
}

.reply details summary {
  background: #1a1a1a;
  color: #fdfaf3;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 1px;
  list-style: none;
  position: relative;
  user-select: none;
}

.reply details summary::-webkit-details-marker {
  display: none;
}

.reply details summary::after {
  content: "▼";
  float: right;
  font-size: 9px;
  transition: transform 0.2s ease;
  line-height: 1.5;
}

.reply details[open] summary::after {
  transform: rotate(180deg);
}

.reply details > *:not(summary) {
  padding: 10px 12px;
  animation: fadeIn 0.3s ease;
}

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

.reply details p {
  margin: 4px 0;
  padding: 4px 8px;
  border-left: 3px solid #1a1a1a;
  background: #fefefe;
  font-size: 13px;
  line-height: 1.7;
}

.reply details p b {
  color: #d9534f;
  letter-spacing: 0.3px;
}

/* ========== 在场其他角色·蓝色系 ========== */
.reply details.npc-temp {
  border-color: #4b9dd9;
  box-shadow: 3px 3px 0 #4b9dd9;
}

.reply details.npc-temp summary {
  background: #4b9dd9;
}

.reply details.npc-temp[open] {
  box-shadow: 3px 3px 0 #4b9dd9, 3px 3px 0 2px #1a1a1a;
}

.reply details.npc-temp p b {
  color: #4b9dd9;
  border-bottom: 2px dashed #4b9dd9;
  padding-bottom: 1px;
  display: inline-block;
  margin: 6px 0 3px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

/* ========== 锚定档案·金色系 ========== */
.reply details.npc-anchor {
  border-color: #d4a017;
  box-shadow: 3px 3px 0 #d4a017;
  background: #fffdf5;
}

.reply details.npc-anchor summary {
  background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
  color: #ffffff;
  text-shadow: 1px 1px 0 #1a1a1a;
}

.reply details.npc-anchor[open] {
  box-shadow: 3px 3px 0 #d4a017, 3px 3px 0 2px #1a1a1a;
}

.reply details.npc-anchor p b {
  display: inline-block;
  background: #1a1a1a;
  color: #ffe66d;
  padding: 3px 10px;
  margin: 8px 0 4px;
  border: 2px solid #d4a017;
  box-shadow: 2px 2px 0 #d4a017;
  transform: rotate(-1deg);
}

/* ========== 表格·紧凑 ========== */
.reply .scroll-x {
  overflow-x: auto;
  border: 2px solid #1a1a1a;
  margin: 6px 0;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.reply .scroll-x::-webkit-scrollbar {
  height: 6px;
}

.reply .scroll-x::-webkit-scrollbar-track {
  background: #fdfaf3;
  border-top: 2px solid #1a1a1a;
}

.reply .scroll-x::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 0;
}

.reply table {
  border-collapse: collapse;
  width: 100%;
  min-width: max-content;
  font-size: 12px;
}

.reply table th {
  background: #1a1a1a;
  color: #ffe66d;
  padding: 7px 10px;
  text-align: center;
  border-right: 2px solid #fdfaf3;
  font-weight: bold;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.reply table th:last-child {
  border-right: none;
}

.reply table td {
  padding: 7px 10px;
  border-right: 1.5px dashed #1a1a1a;
  border-bottom: 1.5px dashed #1a1a1a;
  text-align: center;
  color: #1a1a1a;
  background: #ffffff;
  white-space: nowrap;
}

.reply table td:last-child {
  border-right: none;
}

.reply table tbody tr:last-child td {
  border-bottom: none;
}

.reply table tbody tr:hover td {
  background: #ffe66d;
}

/* ========== 选项按钮·招式卡 ========== */
.reply ul.options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply ul.options li {
  list-style: none;
}

.reply ul.options li div[data-action] {
  display: block;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  padding: 10px 14px;
  font-weight: bold;
  font-size: 13px;
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 3px 3px 0 #1a1a1a;
  transition: all 0.12s ease;
  position: relative;
  user-select: none;
  line-height: 1.5;
}

.reply ul.options li div[data-action]:hover {
  background: #ffe66d;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #1a1a1a;
}

.reply ul.options li div[data-action]:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #1a1a1a;
}

.reply ul.options li:nth-child(1) div[data-action] { border-left: 7px solid #4a9d5f; }
.reply ul.options li:nth-child(2) div[data-action] { border-left: 7px solid #d9534f; }
.reply ul.options li:nth-child(3) div[data-action] { border-left: 7px solid #ffb703; }
.reply ul.options li:nth-child(4) div[data-action] { border-left: 7px solid #b968c7; }
.reply ul.options li:nth-child(5) div[data-action] { border-left: 7px solid #4b9dd9; }
.reply ul.options li:nth-child(6) div[data-action] { 
  border-left: 7px solid #6b6b6b; 
  background: #f0f0f0;
}

/* ========== hr分割线 ========== */
.reply hr {
  border: none;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #1a1a1a 0,
    #1a1a1a 10px,
    transparent 10px,
    transparent 18px
  );
  margin: 12px 0;
}

/* ========== exit代码块 ========== */
.reply pre {
  background: #1a1a1a;
  color: #ffe66d;
  border: 3px solid #1a1a1a;
  padding: 14px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  box-shadow: 4px 4px 0 #d9534f;
  overflow-x: auto;
  line-height: 1.7;
  margin: 8px 0;
}

.reply code {
  background: #ffe66d;
  color: #1a1a1a;
  padding: 1px 5px;
  border: 1.5px solid #1a1a1a;
  font-weight: bold;
  font-size: 90%;
}

/* ========== 移动端·进一步压缩边距 ========== */
@media (max-width: 600px) {
  .reply {
    padding: 10px 8px;
    font-size: 14px;
    box-shadow: 4px 4px 0 #1a1a1a;
    margin: 4px 0;
  }
  
  .reply .main {
    padding: 10px 12px;
  }
  
  .reply .main article p {
    font-size: 14px;
    line-height: 1.85;
  }
  
  .reply .statusbar {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .reply details summary {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .reply ul.options li div[data-action] {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .reply table {
    font-size: 11px;
  }
  
  .reply table th, .reply table td {
    padding: 5px 8px;
  }
}