/* ========================================
   媚黑美母主题 - Details状态栏样式
   作用域：仅details元素内部
   ======================================== */

/* 状态栏容器 */
details {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.3s ease !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif !important;
}

/* 状态栏悬停效果 */
details:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8) !important;
}

/* 展开状态额外间距 */
details[open] {
  padding-bottom: 20px !important;
}

/* Summary标题样式 */
details summary {
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #FFFFFF !important;
  padding: 4px 0 !important;
  list-style: none !important;
  user-select: none !important;
  transition: color 0.2s ease !important;
}

/* 隐藏默认箭头 */
details summary::-webkit-details-marker {
  display: none !important;
}

/* Summary悬停高亮 */
details summary:hover {
  color: #E0E0E0 !important;
}

/* Summary前装饰符号 */
details summary::before {
  content: "▸ " !important;
  display: inline-block !important;
  transition: transform 0.3s ease !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* 展开时旋转箭头 */
details[open] summary::before {
  transform: rotate(90deg) !important;
}

/* 内容区域样式 */
details > *:not(summary) {
  margin-top: 12px !important;
  color: #FFFFFF !important;
  line-height: 1.6 !important;
}

/* 强调文本（粗体） */
details strong {
  font-weight: 600 !important;
  color: #FFFFFF !important;
}

/* 表格样式 */
details table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 12px !important;
  background-color: transparent !important;
}

details th,
details td {
  padding: 10px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-align: left !important;
  color: #FFFFFF !important;
}

details th {
  background-color: rgba(255, 255, 255, 0.08) !important;
  font-weight: 600 !important;
}

details td {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

/* 水平分割线 */
details hr {
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  margin: 16px 0 !important;
}

/* 列表样式 */
details ul,
details ol {
  padding-left: 24px !important;
  color: #FFFFFF !important;
}

details li {
  margin-bottom: 6px !important;
  color: #FFFFFF !important;
}

/* 段落间距 */
details p {
  margin: 8px 0 !important;
  color: #FFFFFF !important;
}

/* 响应式适配 - 移动端 */
@media (max-width: 768px) {
  details {
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
    border-radius: 10px !important;
  }
  
  details summary {
    font-size: 14px !important;
  }
  
  details th,
  details td {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
}

/* 动效降级 - 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  details,
  details summary,
  details summary::before {
    transition: none !important;
  }
}