/* ===== 催眠学院恋曲 - 状态栏美化样式 ===== */
/* 核心配色方案：粉紫渐变，契合暧昧/恋爱主题 */
:root {
  --primary-bg: rgba(45, 27, 61, 0.85);
  --secondary-bg: rgba(90, 40, 110, 0.7);
  --accent-pink: #ff6bcb;
  --accent-light-pink: #ff9ee0;
  --accent-purple: #8a6bff;
  --accent-light-purple: #c86bfa;
  --text-primary: #f8e0f8;
  --text-secondary: #e0b0ff;
  --border-color: rgba(255, 107, 203, 0.3);
  --hover-glow: rgba(255, 158, 224, 0.2);
}

/* 状态栏主容器 */
.status-panel {
  background: var(--primary-bg);
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 900px;
  border: 1px solid var(--accent-pink);
  box-shadow: 0 10px 30px rgba(255, 107, 203, 0.15);
  font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* 添加背景装饰光效 */
.status-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 203, 0.1) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* 模块通用样式 */
.qq-block {
  background: var(--secondary-bg);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.qq-block:hover {
  border-color: var(--accent-light-pink);
  box-shadow: 0 5px 15px var(--hover-glow);
  transform: translateY(-2px);
}

/* 标题样式 */
.qq-sub-title {
  color: var(--accent-light-pink);
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(200, 107, 250, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 表格样式 */
.qq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.qq-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(224, 176, 255, 0.1);
  vertical-align: top;
  line-height: 1.6;
}

.qq-table tr:last-child td {
  border-bottom: none;
}

.qq-table td:first-child {
  width: 25%;
  color: var(--text-secondary);
  font-weight: bold;
  white-space: nowrap;
}

.qq-table td:last-child {
  color: var(--text-primary);
  word-break: break-word;
}

.qq-table thead th {
  background: rgba(138, 107, 255, 0.2);
  color: var(--accent-light-purple);
  padding: 12px 15px;
  text-align: left;
  font-weight: bold;
  border-bottom: 2px solid rgba(200, 107, 250, 0.3);
}

/* details 元素样式 */
details {
  transition: all 0.3s ease;
}

details summary {
  cursor: pointer;
  padding: 15px;
  background: linear-gradient(90deg, rgba(255, 107, 203, 0.1), transparent);
  border-radius: 10px;
  font-weight: bold;
  color: var(--accent-light-pink);
  list-style: none;
  position: relative;
  user-select: none;
}

details summary:hover {
  background: linear-gradient(90deg, rgba(255, 107, 203, 0.2), transparent);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '▶';
  position: absolute;
  right: 15px;
  transition: transform 0.3s;
  color: var(--accent-purple);
}

details[open] summary::after {
  transform: rotate(90deg);
}

/* 角色卡片特殊样式 */
.character-card {
  background: rgba(30, 15, 40, 0.5);
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  border-left: 4px solid var(--accent-purple);
}

/* 正文区域 */
.content-area {
  background: rgba(30, 15, 40, 0.7);
  border-radius: 8px;
  padding: 25px;
  margin-top: 15px;
  border: 1px solid rgba(138, 107, 255, 0.3);
  line-height: 1.8;
  font-size: 1.05em;
  max-height: 600px;
  overflow-y: auto;
}

.content-area::-webkit-scrollbar {
  width: 8px;
  background: rgba(30, 15, 40, 0.3);
}

.content-area::-webkit-scrollbar-thumb {
  background: var(--accent-pink);
  border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light-pink);
}

/* 行动推荐列表 */
.qq-actions {
  padding-left: 20px;
  margin-top: 15px;
}

.qq-actions li {
  margin-bottom: 12px;
  padding: 12px 15px;
  background: rgba(138, 107, 255, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple);
  transition: all 0.3s;
  list-style-position: inside;
}

.qq-actions li:hover {
  background: rgba(138, 107, 255, 0.2);
  transform: translateX(5px);
}

.qq-actions li::marker {
  color: var(--accent-pink);
  font-weight: bold;
}

/* 记忆表格特殊处理 */
.qq-mem .qq-table td {
  padding: 10px 12px;
  font-size: 0.9em;
}

.qq-mem .qq-table tr:nth-child(even) {
  background: rgba(138, 107, 255, 0.05);
}

/* 特殊标签样式 */
.qq-note {
  background: rgba(255, 107, 203, 0.1);
  border: 1px solid rgba(255, 107, 203, 0.3);
  border-radius: 6px;
  padding: 12px 15px;
  margin-top: 15px;
  font-size: 0.9em;
  color: var(--accent-light-pink);
  font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .status-panel {
    padding: 15px;
    margin: 10px;
  }
  
  .qq-table td {
    padding: 10px;
    display: block;
    width: 100%;
    border-bottom: none;
  }
  
  .qq-table td:first-child {
    width: 100%;
    padding-bottom: 5px;
    color: var(--accent-light-purple);
    font-size: 0.9em;
  }
  
  .qq-table tr {
    border-bottom: 1px solid rgba(224, 176, 255, 0.1);
    padding: 10px 0;
    display: block;
  }
  
  .content-area {
    padding: 15px;
    font-size: 1em;
  }
}

/* 动画效果 */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 203, 0.3); }
  50% { box-shadow: 0 0 20px rgba(255, 107, 203, 0.5); }
}

/* 为重要状态添加脉冲效果 */
.qq-character[open] .character-card {
  animation: pulse-glow 2s infinite;
}