/* ========== 容器主体 ========== */
scene {
  display: block;
  max-width: 900px;
  margin: 20px auto;
  padding: clamp(16px, 4vw, 28px);
  background: #FAF7F2;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

scene::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 8s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* ========== 顶部信息栏 ========== */
loc {
  display: block;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  border-radius: 10px;
  color: #F8E6D0;
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

loc::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: #D4AF37;
  box-shadow: 0 0 12px #D4AF37;
}

/* ========== 正文区域 ========== */
text {
  display: block;
  line-height: 1.8;
  color: #2C2C2C;
  margin-bottom: 18px;
  font-size: clamp(14px, 2.5vw, 16px);
}

text p {
  margin: 0 0 12px 0;
}

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

/* ========== 对话气泡（超鲜明配色） ========== */
u {
  color: #1E5BA8;
  background: linear-gradient(135deg, rgba(30, 91, 168, 0.2), rgba(30, 91, 168, 0.12));
  padding: 3px 12px;
  border-radius: 8px;
  border-left: 3px solid #1E5BA8;
  font-weight: 600;
  display: inline-block;
  margin: 2px 0;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(30, 91, 168, 0.15);
}

u:hover {
  background: #1E5BA8;
  color: #FFFFFF;
  transform: translateX(3px);
  box-shadow: 0 4px 10px rgba(30, 91, 168, 0.35);
}

q {
  color: #D63384;
  background: linear-gradient(135deg, rgba(214, 51, 132, 0.18), rgba(214, 51, 132, 0.1));
  padding: 3px 14px;
  border-radius: 14px;
  font-weight: 600;
  display: inline-block;
  margin: 2px 0;
  transition: all 0.2s ease;
  quotes: none;
  box-shadow: 0 2px 6px rgba(214, 51, 132, 0.2);
}

q:hover {
  background: #D63384;
  color: #FFFFFF;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.4);
}

em {
  color: #7952B3;
  background: rgba(121, 82, 179, 0.12);
  padding: 2px 10px;
  border-radius: 5px;
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  margin: 2px 0;
  transition: all 0.25s ease;
  box-shadow: 0 1px 4px rgba(121, 82, 179, 0.15);
}

em:hover {
  background: #7952B3;
  color: #FFFFFF;
  transform: scale(1.05);
  box-shadow: 0 3px 8px rgba(121, 82, 179, 0.35);
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ========== 折叠状态栏 ========== */
details {
  background: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

details:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #D4AF37;
}

details summary {
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  color: #2C2C2C;
  font-size: clamp(14px, 2.3vw, 15px);
  user-select: none;
  position: relative;
  transition: all 0.2s ease;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.06) 0%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
}

details summary:hover {
  background-size: 100% 100%;
  padding-left: 24px;
}

details summary::marker {
  color: #D4AF37;
}

details[open] summary {
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 12px;
}

.panel-content {
  padding: 0 18px 14px 18px;
  animation: fadeIn 0.3s ease;
}

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

.panel-content p {
  margin: 6px 0;
  color: #2C2C2C;
  font-size: clamp(13px, 2.2vw, 14px);
  line-height: 1.6;
}

.panel-content b {
  color: #D4AF37;
  font-weight: 600;
}

/* ========== 分隔线 ========== */
hr.divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #D4AF37, transparent);
  margin: 14px 0;
  opacity: 0.5;
}

/* ========== 响应式适配 ========== */
@media (max-width: 600px) {
  scene {
    margin: 12px;
    padding: 16px;
    border-radius: 12px;
  }
  
  loc {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  details summary {
    padding: 10px 14px;
  }
  
  .panel-content {
    padding: 0 14px 12px 14px;
  }
}