@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&display=swap');

/* --- think隐藏思维链 --- */
think {
  display: none;
}
.main-text {
  display: block;
  background: linear-gradient(135deg, #0a0a1a 0%, #0d1128 60%, #10152e 100%);
  border: 1px solid #c8a84b;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 10px 0 16px 0;
  font-family: 'Noto Serif SC', serif;
  font-size: 15.5px;
  line-height: 2.0;
  color: #e8dfc0;
  box-shadow: 0 0 18px rgba(200,168,75,0.18), inset 0 0 30px rgba(10,10,26,0.6);
  position: relative;
}

.main-text::before {
  content: '⚔ 绝世唐门 ⚔';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #0d1128;
  color: #c8a84b;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 0 10px;
}

.main-text p {
  margin: 0 0 14px 0;
  text-indent: 2em;
}

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

/* ── 顶部状态栏 ── */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(90deg, #0b0e22 0%, #141930 50%, #0b0e22 100%);
  border: 1px solid #2a3560;
  border-top: 2px solid #c8a84b;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(200,168,75,0.10);
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 160px;
}

.top-bar-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px #c8a84b);
}

.top-bar-text {
  display: flex;
  flex-direction: column;
}

.top-bar-label {
  font-size: 10px;
  color: #7a8bbf;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.top-bar-value {
  font-size: 13px;
  color: #d4c48a;
  font-weight: 600;
}

/* ── 通用面板 ── */
.panel-header {
  display: block;
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: filter 0.2s;
}

.panel-header::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.7;
}

details[open] > .panel-header::after {
  content: '▴';
}

.panel-header:hover {
  filter: brightness(1.15);
}

.panel-body {
  border: 1px solid #1e2645;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 14px;
  background: #080c1c;
  margin-bottom: 8px;
}

details {
  margin-bottom: 8px;
}

/* ── 记忆面板 ── */
.memory-header {
  background: linear-gradient(90deg, #0f1535 0%, #1a2252 50%, #0f1535 100%);
  color: #7eb8f7;
  border: 1px solid #2a4080;
  box-shadow: 0 0 8px rgba(100,160,255,0.15);
  text-shadow: 0 0 8px rgba(126,184,247,0.5);
}

.memory-body {
  border-color: #2a4080;
}

.memory-config {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.memory-config-col {
  flex: 1 1 160px;
  background: #0d1228;
  border: 1px solid #1e3060;
  border-radius: 6px;
  padding: 10px 12px;
}

.memory-config-title {
  font-size: 11px;
  color: #5a80c0;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 700;
}

.memory-config-list {
  margin: 0;
  padding-left: 14px;
  font-size: 12px;
  color: #8aa8d8;
  line-height: 1.9;
}

.memory-section {
  margin-top: 12px;
}

.memory-section-title {
  font-size: 12px;
  color: #c8a84b;
  letter-spacing: 2px;
  margin-bottom: 8px;
  border-bottom: 1px solid #1e2a50;
  padding-bottom: 4px;
}

.memory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.memory-table th {
  background: #0f1535;
  color: #5a80c0;
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #2a4080;
}

.memory-table td {
  padding: 7px 8px;
  color: #a0b8e0;
  border-bottom: 1px solid #131830;
  vertical-align: top;
  line-height: 1.6;
}

.memory-table tr:hover td {
  background: #0f1430;
}

/* ── 心声面板 ── */
.heart-header {
  background: linear-gradient(90deg, #1a0f30 0%, #2a1850 50%, #1a0f30 100%);
  color: #d4a0f0;
  border: 1px solid #4a2880;
  box-shadow: 0 0 8px rgba(180,100,255,0.15);
  text-shadow: 0 0 8px rgba(212,160,240,0.5);
}

.heart-body {
  border-color: #4a2880;
}

.heart-title {
  font-size: 11px;
  color: #8a50c0;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.heart-content p {
  font-size: 13px;
  color: #c8a8e8;
  margin: 0 0 8px 0;
  padding: 7px 10px;
  background: #100820;
  border-left: 3px solid #7030b0;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}

/* ── 排行榜面板 ── */
.rank-header {
  background: linear-gradient(90deg, #1a1200 0%, #2a1e00 50%, #1a1200 100%);
  color: #ffd060;
  border: 1px solid #6a5010;
  box-shadow: 0 0 8px rgba(255,200,50,0.15);
  text-shadow: 0 0 8px rgba(255,208,96,0.6);
}

.rank-body {
  border-color: #6a5010;
}

.rank-title {
  font-size: 11px;
  color: #c8a030;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 7px;
}

.rank-item {
  background: linear-gradient(135deg, #120e00 0%, #1e1800 100%);
  border: 1px solid #3a2a00;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: #d4b860;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rank-item:hover {
  border-color: #c8a84b;
  box-shadow: 0 0 8px rgba(200,168,75,0.2);
}

/* ── 主角面板 ── */
.mc-header {
  background: linear-gradient(90deg, #001520 0%, #00253a 50%, #001520 100%);
  color: #40d0ff;
  border: 1px solid #006080;
  box-shadow: 0 0 8px rgba(40,200,255,0.15);
  text-shadow: 0 0 8px rgba(64,208,255,0.6);
}

.mc-body {
  border-color: #006080;
}

.mc-title {
  font-size: 11px;
  color: #2090b0;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}

.mc-item {
  background: #030e18;
  border: 1px solid #003850;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: #80c8e0;
  line-height: 1.5;
}

.mc-item strong {
  color: #40a8cc;
}

.mc-section {
  margin-top: 12px;
  border: 1px solid #003850;
  border-radius: 8px;
  overflow: hidden;
}

.mc-section-title {
  background: #001828;
  color: #40d0ff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  letter-spacing: 1px;
}

.mc-section-content {
  padding: 10px 12px;
  font-size: 12.5px;
  color: #80b8d0;
  line-height: 1.8;
}

/* ── 魂环光柱 ── */
.soul-ring-section {
  margin-top: 14px;
}

.soul-ring-title {
  font-size: 11px;
  color: #c8a84b;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.soul-ring-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soul-ring-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ring-color-bar {
  width: 10px;
  min-height: 48px;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.ring-color-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  animation: ringPulse 2.4s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.ring-white {
  background: linear-gradient(180deg, #ffffff 0%, #d0d0d0 50%, #ffffff 100%);
  box-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,255,255,0.4);
}

.ring-yellow {
  background: linear-gradient(180deg, #ffe040 0%, #c89000 50%, #ffe040 100%);
  box-shadow: 0 0 10px rgba(255,200,0,0.8), 0 0 20px rgba(255,200,0,0.4);
}

.ring-purple {
  background: linear-gradient(180deg, #d060ff 0%, #7000c0 50%, #d060ff 100%);
  box-shadow: 0 0 10px rgba(180,0,255,0.8), 0 0 20px rgba(180,0,255,0.4);
}

.ring-black {
  background: linear-gradient(180deg, #404040 0%, #080808 50%, #404040 100%);
  box-shadow: 0 0 10px rgba(80,80,80,0.9), 0 0 22px rgba(0,0,0,0.8);
}

.ring-red {
  background: linear-gradient(180deg, #ff2020 0%, #800000 50%, #ff2020 100%);
  box-shadow: 0 0 12px rgba(255,0,0,0.9), 0 0 28px rgba(255,0,0,0.5);
  animation: redRingFlicker 1.8s ease-in-out infinite;
}

@keyframes redRingFlicker {
  0%, 100% { box-shadow: 0 0 12px rgba(255,0,0,0.9), 0 0 28px rgba(255,0,0,0.5); }
  50% { box-shadow: 0 0 20px rgba(255,40,0,1), 0 0 40px rgba(255,0,0,0.7); }
}

.ring-info {
  font-size: 12.5px;
  color: #90b0c8;
  line-height: 1.6;
}

.ring-info strong {
  color: #c0d8e8;
}

/* ── 女性角色面板 ── */
.female-header {
  background: linear-gradient(90deg, #1a0818 0%, #2e1030 50%, #1a0818 100%);
  color: #ff90c0;
  border: 1px solid #6a2050;
  box-shadow: 0 0 8px rgba(255,80,160,0.18);
  text-shadow: 0 0 8px rgba(255,144,192,0.6);
}

.female-body {
  border-color: #6a2050;
}

.female-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.female-title {
  font-size: 13px;
  color: #ff90c0;
  font-weight: 700;
}

.female-favor {
  font-size: 12.5px;
  color: #ffd0e8;
  background: #2a0820;
  border: 1px solid #8a3060;
  border-radius: 20px;
  padding: 3px 12px;
  box-shadow: 0 0 6px rgba(255,80,160,0.2);
}

.female-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 7px;
  margin-top: 6px;
}

.female-detail-item {
  background: #100818;
  border: 1px solid #4a1840;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  color: #d090b8;
  line-height: 1.5;
}

.female-detail-item strong {
  color: #ff80b0;
}

/* ── 未登场角色面板 ── */
.ghost-header {
  background: linear-gradient(90deg, #101010 0%, #1c1c1c 50%, #101010 100%);
  color: #90a8a8;
  border: 1px solid #304040;
  box-shadow: 0 0 6px rgba(80,120,120,0.12);
}

.ghost-body {
  border-color: #304040;
}

.ghost-title {
  font-size: 11px;
  color: #507070;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.ghost-content p {
  font-size: 12.5px;
  color: #708888;
  margin: 0 0 7px 0;
  padding: 7px 10px;
  background: #0a1010;
  border-left: 3px solid #305050;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}

.ghost-content p strong {
  color: #90b0b0;
}

/* ── 情报/信息面板 ── */
.info-panel {
  background: linear-gradient(135deg, #080c1a 0%, #0d1228 100%);
  border: 1px solid #1e2a50;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.info-panel-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #c8a84b;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  border-bottom: 1px solid #1e2a40;
  padding-bottom: 5px;
}

.info-panel-content p {
  font-size: 12.5px;
  color: #8a9cc0;
  margin: 0 0 6px 0;
  line-height: 1.7;
}

.info-panel-content p strong {
  color: #a8b8d8;
}

/* ── 剧情偏离度 ── */
.deviation-panel .info-panel-title {
  color: #60d080;
}

.deviation-value {
  color: #40ff80;
  text-shadow: 0 0 8px rgba(64,255,128,0.6);
}

.progress-bar-container {
  background: #0a1020;
  border: 1px solid #1e3040;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #20c060 0%, #80ff40 100%);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(80,255,80,0.5);
  transition: width 0.4s ease;
}

.deviation-note {
  font-size: 11px;
  color: #406050;
  margin: 0;
}

/* ── 舞台剧 ── */
.stage-play-area p {
  font-size: 13px;
  color: #a0b8c8;
  margin: 0 0 7px 0;
  padding: 6px 10px;
  background: #080e18;
  border-left: 3px solid #2060a0;
  border-radius: 0 6px 6px 0;
  line-height: 1.7;
}

/* ── 选项按钮 ── */
.choice-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.choice-btn {
  background: linear-gradient(135deg, #0a0e20 0%, #141a35 100%);
  border: 1px solid #2a3870;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #8aaae0;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1.5;
  box-shadow: 0 0 0 rgba(100,150,255,0);
}

.choice-btn:hover {
  background: linear-gradient(135deg, #101628 0%, #1a2445 100%);
  border-color: #c8a84b;
  color: #d4c080;
  box-shadow: 0 0 10px rgba(200,168,75,0.25);
}

