/* ===== 状态栏容器 ===== */
.rili-status {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  color: #4A2C3E;
  line-height: 1.7;
  margin: 16px 0;
}

.rili-status details {
  background: linear-gradient(135deg, #FFF9FC 0%, #FFE5F0 100%);
  border: 2px solid #FFB3D9;
  border-radius: 16px;
  margin-bottom: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rili-status details:hover {
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
  transform: translateY(-2px);
}

.rili-status details[open] {
  border-color: #FF69B4;
}

.rili-status summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #FF69B4;
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
  user-select: none;
}

.rili-status summary::-webkit-details-marker {
  display: none;
}

.rili-status summary:hover {
  color: #FF1493;
}

.rili-status summary .s-icon {
  width: 20px;
  height: 20px;
  background: #FF69B4;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.rili-status summary .s-icon::before {
  content: "♥";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.status-memory summary .s-icon::before {
  content: "★";
}

.status-action summary .s-icon::before {
  content: "→";
  font-size: 14px;
  font-weight: 900;
}

/* ===== 字段行 ===== */
.rili-status .field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 179, 217, 0.4);
}

.rili-status .field:last-child {
  border-bottom: none;
}

.rili-status .field b {
  color: #FF69B4;
  font-weight: 600;
  min-width: 80px;
  position: relative;
  padding-left: 12px;
}

.rili-status .field b::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #FFB3D9;
  font-size: 18px;
  line-height: 1;
}

.rili-status .field span {
  flex: 1;
  color: #4A2C3E;
}

/* ===== 装备淫具 ===== */
.equip-block {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #FFE5F0;
}

.equip-title {
  font-weight: 700;
  color: #FF69B4;
  margin-bottom: 8px;
  font-size: 15px;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 2px solid #FFB3D9;
}

.equip-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
}

.equip-list li {
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  border-left: 3px solid #FFB3D9;
  transition: all 0.2s;
}

.equip-list li:hover {
  background: #FFE5F0;
  border-left-color: #FF69B4;
}

.equip-list li b {
  color: #FF69B4;
  font-weight: 600;
  margin-right: 6px;
}

/* ===== 身体描述 ===== */
.body-detail {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  border: 1px dashed #FFB3D9;
}

.body-detail .b-row {
  padding: 5px 8px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 179, 217, 0.2);
}

.body-detail .b-row:last-child {
  border-bottom: none;
}

.body-detail .b-row b {
  color: #FF69B4;
  font-weight: 600;
  min-width: 70px;
  flex-shrink: 0;
}

.body-detail .b-row span {
  flex: 1;
  color: #8B6F7D;
  font-size: 13px;
}

/* ===== 好感度 & 内心独白 ===== */
.affection, .inner-mono {
  background: linear-gradient(120deg, #FFE5F0 0%, #FFF 100%);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 8px 0;
  border-left: 4px solid #FF69B4;
}

.affection b, .inner-mono b {
  color: #FF69B4;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.aff-num {
  font-size: 20px;
  font-weight: 900;
  color: #FF1493;
  margin-right: 8px;
  text-shadow: 0 2px 4px rgba(255, 20, 147, 0.3);
}

.aff-quip {
  color: #8B6F7D;
  font-style: italic;
  font-size: 13px;
}

.inner-mono span {
  display: block;
  color: #4A2C3E;
  font-style: italic;
  padding-left: 10px;
  border-left: 2px solid #FFB3D9;
}

/* ===== 记忆区表格 ===== */
.memo-block {
  margin: 12px 0;
}

.memo-label {
  font-weight: 600;
  color: #FF69B4;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: #FFE5F0;
  border-radius: 8px;
  font-size: 13px;
}

.memory-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.1);
}

.memory-table thead {
  background: linear-gradient(135deg, #FFB3D9 0%, #FF69B4 100%);
  color: white;
}

.memory-table th {
  padding: 10px 8px;
  font-weight: 600;
  text-align: left;
}

.memory-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #FFE5F0;
  color: #4A2C3E;
}

.memory-table tbody tr:nth-child(even) {
  background: rgba(255, 229, 240, 0.3);
}

.memory-table tbody tr:hover {
  background: #FFE5F0;
}

.memo-stm-table td:first-child {
  font-weight: 700;
  color: #FF69B4;
}

/* ===== 行动推荐 ===== */
.act-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act-list li {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.act-erotic {
  background: linear-gradient(135deg, #FFE5F0 0%, #FFD0E6 100%);
  color: #C71585;
  border-color: #FF69B4;
}

.act-plot {
  background: linear-gradient(135deg, #FFF0F5 0%, #FFE4ED 100%);
  color: #DB7093;
  border-color: #FFB3D9;
}

.act-bold {
  background: linear-gradient(135deg, #FFFAFC 0%, #FFF0F7 100%);
  color: #C76C96;
  border-color: #FFADD2;
}

.act-daily {
  background: linear-gradient(135deg, #FFF 0%, #FFF9FC 100%);
  color: #B57A9E;
  border-color: #FFC0E0;
}

.act-free {
  background: white;
  color: #8B6F7D;
  border-color: #FFE5F0;
  font-style: italic;
}

.act-list li:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15);
}

/* ===== 思维链气泡（新增） ===== */
.rili-think {
  display: block;
  background: linear-gradient(135deg, #FFF6FB 0%, #FCEEF6 100%);
  border: 1px dashed #FFADD2;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 12px 0;
  position: relative;
  opacity: 0.92;
}

.rili-think .think-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #DB7093;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.rili-think .think-dot {
  width: 10px;
  height: 10px;
  background: #FF69B4;
  border-radius: 50%;
  animation: thinkPulse 1.6s ease-in-out infinite;
}

@keyframes thinkPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; }
}

.rili-think p {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: #9C7A8B;
  line-height: 1.7;
}

/* ===== 正文美化（首字下沉已移除） ===== */
.rili-main {
  display: block;
  margin: 20px 0;
  line-height: 2;
  color: #4A2C3E;
  font-size: 15px;
}

.rili-main p {
  margin: 18px 0;
  text-indent: 2em;
  position: relative;
  padding-left: 14px;
}

.rili-main p::before {
  content: "❀";
  position: absolute;
  left: 0;
  top: 6px;
  color: #FFC0E0;
  font-size: 12px;
  text-indent: 0;
}

.rili-main p + p {
  border-top: 1px dashed rgba(255, 179, 217, 0.25);
  padding-top: 14px;
}

/* ===== 聊天消息气泡美化（新增） ===== */
.message-item,
.chat-message,
div[class*="message"],
li[class*="message"] {
  border-radius: 16px !important;
}

.message-content,
div[class*="bubble"],
div[class*="content"] {
  background: linear-gradient(135deg, #FFF9FC 0%, #FFE5F0 100%) !important;
  border: 1.5px solid #FFB3D9 !important;
  border-radius: 16px !important;
  color: #4A2C3E !important;
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.12) !important;
  padding: 12px 16px !important;
}

/* ===== 输入框 ===== */
textarea,
input[type="text"],
div[class*="input"],
div[class*="editor"] {
  background: linear-gradient(135deg, #FFF9FC 0%, #FFE5F0 100%) !important;
  border: 2px solid #FFB3D9 !important;
  border-radius: 16px !important;
  color: #4A2C3E !important;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15) !important;
}

textarea:focus,
input[type="text"]:focus {
  border-color: #FF69B4 !important;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3) !important;
  outline: none !important;
}

/* ===== 按钮 ===== */
button,
div[class*="btn"],
a[class*="btn"] {
  background: linear-gradient(135deg, #FFB3D9 0%, #FF69B4 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

button:hover,
div[class*="btn"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3) !important;
}

/* ===== 评论区（用属性选择器广撒网） ===== */
div[class*="comment"],
li[class*="comment"] {
  background: linear-gradient(135deg, #FFF9FC 0%, #FFE5F0 100%) !important;
  border: 1.5px solid #FFB3D9 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  margin: 10px 0 !important;
  color: #4A2C3E !important;
}

span[class*="author"],
div[class*="nickname"],
div[class*="username"] {
  color: #FF69B4 !important;
  font-weight: 700 !important;
}

span[class*="time"],
div[class*="date"] {
  color: #8B6F7D !important;
  font-size: 12px !important;
}

/* ===== 模组卡片 ===== */
div[class*="mod"],
li[class*="mod"],
div[class*="card"] {
  background: linear-gradient(135deg, #FFF9FC 0%, #FFE5F0 100%) !important;
  border: 1.5px solid #FFB3D9 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15) !important;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
  .rili-status { font-size: 13px; }
  .rili-status summary { font-size: 15px; }
  .memory-table { font-size: 12px; }
  .memory-table th, .memory-table td { padding: 8px 6px; }
  .equip-list { grid-template-columns: 1fr; }
  .rili-main { font-size: 14px; }
}