/* ========== 思考面板（左/右）========== */
.thinking-panel {
  background: transparent;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.thinking-panel.right {
  border-right: none;
  border-left: 1px solid var(--border);
}
.panel-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.panel-header h2 { font-size: 14px; color: var(--text2); font-weight: 600; }
.thinking-col {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ========== thinking-card 样式 ========== */
.thinking-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: row; /* 默认横向布局 */
  min-height: 120px;
  flex-shrink: 0;
  overflow: hidden;
}
/* 纵向布局变体（用于特定场景） */
.thinking-card.vertical {
  flex-direction: column;
  min-height: 140px;
}
.tc-icon-col {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: var(--bg2);
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background .15s;
}
.tc-icon-col:hover {
  background: var(--bg3);
}
.tc-icon-col img {
  height: 56px;
  object-fit: contain;
}
.tc-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.thinking-card .tc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.thinking-card .tc-header .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text2);
  flex-shrink: 0;
}
.thinking-card .tc-header .dot.active {
  background: var(--green);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.thinking-card .tc-body {
  flex: 1;
  padding: 8px 10px;
  overflow-y: auto;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--text2);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 70px;
  max-height: 180px;
}
.thinking-card .tc-action {
  padding: 5px 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  background: var(--bg2);
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.tc-action .action-label { color: var(--text2); }
.tc-action .action-value { color: var(--accent2); font-weight: 600; }
.tc-action .action-value.village { color: var(--green); }

/* ========== 行动记录（中间）========== */
.action-panel {
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.action-log {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}
.action-log .day-divider {
  text-align: center;
  margin: 14px 0 10px;
  position: relative;
}
.action-log .day-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}
.action-log .day-divider span {
  background: var(--bg2);
  padding: 2px 14px;
  position: relative;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
}
.action-entry {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--card);
  border-left: 3px solid var(--border);
  animation: fadeIn .3s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.action-entry .ae-time { font-size: 10px; color: var(--text2); }
.action-entry .ae-phase {
  display: inline-block;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 6px;
}
.ae-phase.night { background: #190e08; color: #9a5f49; }
.ae-phase.day   { background: #3a1707; color: #c76240; }
.action-entry .ae-content { margin-top: 5px; font-size: 12px; line-height: 1.5; }
.action-entry .ae-speaker { color: var(--accent2); font-weight: 600; }
.action-entry .ae-target { color: var(--yellow); }
.action-entry.wolf-kill   { border-left-color: var(--wolf); }
.action-entry.seer-check  { border-left-color: var(--seer); }
.action-entry.witch-action { border-left-color: var(--witch); }
.action-entry.vote   { border-left-color: var(--orange); }
.action-entry.speech { border-left-color: var(--blue); }
.action-entry.death  { border-left-color: #e73b64; }
.action-entry.system { border-left-color: var(--text2); background: var(--bg3); }
/* 接管模式的人类发言 */
.action-entry.human-input { border-left-color: var(--green); background: rgba(91,186,106,0.06); }

/* ========== 接管模式输入区 ========== */
.takeover-bar {
  display: none;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
  flex-shrink: 0;
  gap: 8px;
  flex-direction: column;
}
.takeover-bar.show { display: flex; }
.takeover-prompt {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 2px;
}
.takeover-prompt strong { color: var(--yellow); }
.takeover-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.takeover-input-row textarea {
  flex: 1;
  padding: 7px 10px;
  font-size: 12px;
  resize: none;
  height: 56px;
  border-radius: 6px;
}
.takeover-input-row .takeover-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.takeover-input-row .takeover-btns button {
  padding: 6px 12px;
  font-size: 12px;
}
.takeover-target-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.takeover-target-row .target-prompt {
  font-size: 12px;
  color: var(--text2);
  width: 100%;
  margin-bottom: 2px;
}
.btn-target-player {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.btn-target-player:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: none;
  filter: none;
}

/* ========== 郎中行动界面 ========== */
.witch-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.witch-target-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.witch-target-row .target-prompt {
  font-size: 12px;
  color: var(--text2);
  width: 100%;
  margin-bottom: 2px;
}
.btn-target-player.skip-btn {
  border-color: var(--text2);
  color: var(--text2);
  font-style: italic;
}
.btn-target-player.skip-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ========== 品牌头像（思考记录面板） ========== */
.tc-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.tc-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.tc-avatar-custom {
  background: var(--accent2);
}
