/* 基础容器：蓝紫渐变赛博风格 */
.rp-ui-wrapper {
  background: linear-gradient(135deg, #120b29 0%, #1a1a3d 50%, #25124d 100%);
  color: #e0d7f5;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #4d3a8c;
  font-family: 'Segoe UI', 'PingFang SC', sans-serif;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  box-sizing: border-box;
}
/* 头部环境信息 */
.rp-header-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  border-left: 4px solid #8e44ad;
}
.rp-env-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}
.rp-label {
  color: #a29bfe;
  font-weight: bold;
}
.rp-env-desc {
  margin-top: 8px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 6px;
}

/* 小说正文 */
.rp-main-text {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 20px;
  color: #f0ebff;
  text-align: justify;
}

/* 心声装饰栏位 */
.rp-voice-container {
  margin: 20px 0;
  border: 1px solid #ff00ff66;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(138, 43, 226, 0.2), rgba(255, 20, 147, 0.1));
  position: relative;
  overflow: hidden;
}
.rp-voice-header {
  background: rgba(255, 0, 255, 0.2);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  color: #ff79c6;
  display: flex;
  align-items: center;
}
.rp-voice-icon {
  margin-right: 6px;
  filter: drop-shadow(0 0 3px #ff79c6);
}
.rp-voice-body {
  padding: 12px 15px;
  font-style: italic;
  color: #f1fa8c;
  text-shadow: 0 0 5px rgba(241, 250, 140, 0.3);
}
.rp-voice-label {
  font-weight: bold;
  color: #bd93f9;
  font-style: normal;
}
/* 折叠面板 */
.rp-details-box {
  background: rgba(40, 30, 80, 0.4);
  border: 1px solid #5a4a9c;
  border-radius: 8px;
  margin-bottom: 10px;
}
.rp-summary-btn {
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
  color: #d6bcfa;
  list-style: none;
  display: flex;
  align-items: center;
  background: rgba(100, 80, 160, 0.2);
}
.rp-summary-btn::-webkit-details-marker { display: none; }
.rp-summary-btn::before {
  content: "▶";
  font-size: 10px;
  margin-right: 10px;
  transition: transform 0.3s;
}
.rp-details-box[open] .rp-summary-btn::before {
  transform: rotate(90deg);
}
.rp-details-content {
  padding: 15px;
  border-top: 1px solid #5a4a9c;
  font-size: 14px;
}
/* 内容组件 */
.rp-highlight { color: #bd93f9; font-weight: bold; }
.rp-info-line { margin: 4px 0; }
.rp-divider { height: 1px; background: rgba(189, 147, 249, 0.2); margin: 12px 0; }
.rp-section-title { color: #ff79c6; font-weight: bold; margin-bottom: 10px; border-bottom: 1px dashed #ff79c644; }
.rp-progress-bg { height: 8px; background: #1a1a2e; border-radius: 4px; margin: 6px 0; overflow: hidden; }
.rp-progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s; }
.rp-progress-fill.cyan { background: linear-gradient(90deg, #00f2fe, #4facfe); box-shadow: 0 0 8px #00f2fe; }
.rp-progress-fill.pink { background: linear-gradient(90deg, #ff00cc, #ff0066); box-shadow: 0 0 8px #ff00cc; }
.rp-stat-header { display: flex; justify-content: space-between; font-size: 13px; }
.rp-stat-delta { font-size: 11px; opacity: 0.8; }
.rp-stat-desc { font-size: 12px; color: #a29bfe; font-style: italic; margin-top: 4px; }
.rp-list { padding-left: 15px; margin: 8px 0; list-style-type: square; }
.rp-list li { margin-bottom: 6px; }
.rp-log-item { background: rgba(0,0,0,0.2); padding: 8px; border-radius: 4px; margin-bottom: 5px; font-size: 13px; }
.rp-tag { background: #6272a4; color: #fff; padding: 2px 6px; border-radius: 3px; font-size: 10px; margin-right: 5px; }
/* 选项按钮 */
.rp-options-box { margin-top: 20px; }
.rp-opt-btn {
  background: linear-gradient(90deg, #44475a 0%, #282a36 100%);
  border: 1px solid #6272a4;
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.rp-opt-btn:hover {
  background: linear-gradient(90deg, #6272a4 0%, #44475a 100%);
  border-color: #bd93f9;
  transform: translateX(5px);
  box-shadow: -4px 0 10px rgba(189, 147, 249, 0.3);
}
/* 移动端适配 */
@media (max-width: 600px) {
  .rp-env-grid { grid-template-columns: 1fr; }
  .rp-ui-wrapper { padding: 10px; }
}