/* ===== NEON STAGE 霓虹舞台 - 内置CSS ===== */

/* --- 正文区域 --- */
text {
  display: block;
  background: linear-gradient(135deg, rgba(15, 5, 30, 0.65) 0%, rgba(10, 10, 35, 0.55) 100%);
  border-left: 3px solid #e040fb;
  border-radius: 0 12px 12px 0;
  padding: 20px 18px;
  margin: 14px 0;
  font-size: 15px;
  line-height: 1.85;
  color: #e8e0f0;
  letter-spacing: 0.3px;
  box-shadow: inset 0 0 30px rgba(224, 64, 251, 0.06), 0 2px 12px rgba(0, 0, 0, 0.3);
}

text p {
  text-indent: 2em;
  margin: 0 0 12px 0;
  padding: 0;
}

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

/* --- 通用 details/summary 样式 --- */
details {
  background: linear-gradient(145deg, rgba(20, 8, 40, 0.75) 0%, rgba(12, 15, 45, 0.7) 100%);
  border: 1px solid rgba(224, 64, 251, 0.25);
  border-radius: 10px;
  margin: 10px 0;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(224, 64, 251, 0.08), 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

details:hover {
  border-color: rgba(224, 64, 251, 0.55);
  box-shadow: 0 0 25px rgba(224, 64, 251, 0.18), 0 4px 20px rgba(0, 0, 0, 0.3);
}

details[open] {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.12), 0 4px 18px rgba(0, 0, 0, 0.3);
}

details summary {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: #e040fb;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(90deg, rgba(224, 64, 251, 0.1) 0%, transparent 70%);
  border-bottom: 1px solid rgba(224, 64, 251, 0.12);
  letter-spacing: 1px;
  transition: color 0.3s ease, background 0.3s ease;
  list-style: none;
}

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

details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  font-size: 12px;
  color: #00e5ff;
  transition: transform 0.3s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details[open] summary {
  color: #00e5ff;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
  border-bottom-color: rgba(0, 229, 255, 0.15);
}

details summary:hover {
  color: #f8f8f8;
  background: linear-gradient(90deg, rgba(224, 64, 251, 0.2) 0%, rgba(0, 229, 255, 0.08) 100%);
}

/* details 内部内容区 */
details > p,
details > div {
  padding: 6px 16px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: #c8bfd8;
}

details > p:first-of-type {
  padding-top: 12px;
}

details > p:last-of-type {
  padding-bottom: 14px;
}

/* --- 各状态栏特殊装饰（通过nth-of-type区分） --- */

/* 第1个details: 📍当前状态 - 品红主调 */
details:nth-of-type(1) {
  border-left: 3px solid #e040fb;
}

/* 第2个details: 👤 user角色信息 - 青色主调 */
details:nth-of-type(2) {
  border-left: 3px solid #00e5ff;
}

details:nth-of-type(2) summary {
  color: #00e5ff;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
}

details:nth-of-type(2):hover {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 第3个details: 🎭 参赛者一览 - 琥珀色主调 */
details:nth-of-type(3) {
  border-left: 3px solid #ffab40;
}

details:nth-of-type(3) summary {
  color: #ffab40;
  background: linear-gradient(90deg, rgba(255, 171, 64, 0.1) 0%, transparent 70%);
}

details:nth-of-type(3):hover {
  border-color: rgba(255, 171, 64, 0.55);
  box-shadow: 0 0 25px rgba(255, 171, 64, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}

details:nth-of-type(3)[open] {
  border-color: rgba(255, 171, 64, 0.4);
}

details:nth-of-type(3)[open] summary {
  color: #ffd180;
  background: linear-gradient(90deg, rgba(255, 171, 64, 0.15) 0%, transparent 70%);
}

/* 第4个details: ⚖️ 评委动态 - 红色主调 */
details:nth-of-type(4) {
  border-left: 3px solid #ff5252;
}

details:nth-of-type(4) summary {
  color: #ff5252;
  background: linear-gradient(90deg, rgba(255, 82, 82, 0.1) 0%, transparent 70%);
}

details:nth-of-type(4):hover {
  border-color: rgba(255, 82, 82, 0.55);
  box-shadow: 0 0 25px rgba(255, 82, 82, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}

details:nth-of-type(4)[open] {
  border-color: rgba(255, 82, 82, 0.4);
}

details:nth-of-type(4)[open] summary {
  color: #ff8a80;
  background: linear-gradient(90deg, rgba(255, 82, 82, 0.15) 0%, transparent 70%);
}

/* 第5个details: 📝 记忆区 - 蓝紫主调 */
details:nth-of-type(5) {
  border-left: 3px solid #7c4dff;
}

details:nth-of-type(5) summary {
  color: #7c4dff;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.1) 0%, transparent 70%);
}

details:nth-of-type(5):hover {
  border-color: rgba(124, 77, 255, 0.55);
  box-shadow: 0 0 25px rgba(124, 77, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}

details:nth-of-type(5)[open] {
  border-color: rgba(124, 77, 255, 0.4);
}

details:nth-of-type(5)[open] summary {
  color: #b388ff;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
}

/* 第6个details: 💡 行动建议 - 绿色主调 */
details:nth-of-type(6) {
  border-left: 3px solid #69f0ae;
}

details:nth-of-type(6) summary {
  color: #69f0ae;
  background: linear-gradient(90deg, rgba(105, 240, 174, 0.1) 0%, transparent 70%);
}

details:nth-of-type(6):hover {
  border-color: rgba(105, 240, 174, 0.55);
  box-shadow: 0 0 25px rgba(105, 240, 174, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}

details:nth-of-type(6)[open] {
  border-color: rgba(105, 240, 174, 0.4);
}

details:nth-of-type(6)[open] summary {
  color: #b9f6ca;
  background: linear-gradient(90deg, rgba(105, 240, 174, 0.15) 0%, transparent 70%);
}

/* --- 顶部装饰分割线（用在text前后营造氛围） --- */
text::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e040fb, #00e5ff, #e040fb, transparent);
  margin-bottom: 16px;
  opacity: 0.5;
}

text::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff, #e040fb, #00e5ff, transparent);
  margin-top: 16px;
  opacity: 0.5;
}

/* --- 霓虹呼吸动画（用于正文左边框） --- */
@keyframes neonPulse {
  0%, 100% { border-left-color: #e040fb; box-shadow: inset 0 0 30px rgba(224, 64, 251, 0.06), 0 2px 12px rgba(0, 0, 0, 0.3); }
  50% { border-left-color: #00e5ff; box-shadow: inset 0 0 30px rgba(0, 229, 255, 0.08), 0 2px 15px rgba(0, 229, 255, 0.1); }
}

text {
  animation: neonPulse 6s ease-in-out infinite;
}

/* --- 移动端适配 --- */
@media (max-width: 600px) {
  text {
    padding: 14px 12px;
    font-size: 14px;
    line-height: 1.8;
    border-radius: 0 8px 8px 0;
  }

  details {
    border-radius: 8px;
    margin: 8px 0;
  }

  details summary {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  details > p,
  details > div {
    padding: 5px 12px;
    font-size: 12.5px;
  }
}