/* ═══════════════════════════════════════
   禁忌花园 - 微信风格样式表
   ═══════════════════════════════════════ */

/* 全局样式重置 */
.forbidden-garden * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.forbidden-garden {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #ededed;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   角色头像 - 通过CSS设置
   ═══════════════════════════════════════ */

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.avatar-lin { background-image: url('https://catai.wiki/d1c0a8ab-5c22-438a-bbbd-10cbf551a600/mobile'); }
.avatar-su { background-image: url('https://catai.wiki/41ad764f-787b-4927-8efd-6c404aa73000/cover'); }
.avatar-jiang { background-image: url('https://catai.wiki/2f18957d-98ae-4182-7971-3ba76f6ec600/cover'); }
.avatar-mo { background-image: url('https://catai.wiki/d0bb2e0b-7f2c-40cd-f35c-22c4e90ad300/cover'); }
.avatar-bai { background-image: url('https://catai.wiki/048f7cd5-4a38-427a-74ba-887f729edd00/cover'); }
.avatar-gu { background-image: url('https://catai.wiki/2dedc6e2-7f20-49c1-5a99-feb50b0e9700/cover'); }
.avatar-shen { background-image: url('https://catai.wiki/d4fcd457-b09e-4f61-0949-d2807845ed00/cover'); }
.avatar-player { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

/* ═══════════════════════════════════════
   微信群聊样式
   ═══════════════════════════════════════ */

.wechat-group {
  background: #fff;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
}

.group-header {
  background: #f7f7f7;
  padding: 12px 15px;
  border-bottom: 1px solid #d9d9d9;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: #000;
}

.group-body {
  padding: 15px;
  background: #ededed;
  min-height: 300px;
}

.msg {
  margin-bottom: 20px;
  clear: both;
  overflow: hidden;
}

.msg-left {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.msg-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.msg-left .avatar {
  margin-right: 10px;
}

.msg-right .avatar {
  margin-left: 10px;
  order: 2;
}

.msg-info {
  max-width: 70%;
}

.msg-name {
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
}

.msg-content {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
  word-wrap: break-word;
  word-break: break-word;
  position: relative;
}

.msg-left .msg-content {
  background: #fff;
  color: #000;
}

.msg-left .msg-content::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 8px 6px 0;
  border-color: transparent #fff transparent transparent;
}

.msg-right .msg-content {
  background: #95ec69;
  color: #000;
}

.msg-right .msg-content::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #95ec69;
}

.msg-time {
  font-size: 12px;
  color: #b2b2b2;
  text-align: center;
  margin: 15px 0;
  clear: both;
}

/* ═══════════════════════════════════════
   微信私聊样式
   ═══════════════════════════════════════ */

.wechat-private {
  background: #fff;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
}

.private-header {
  background: #f7f7f7;
  padding: 12px 15px;
  border-bottom: 1px solid #d9d9d9;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: #000;
}

.private-body {
  padding: 15px;
  background: #ededed;
  min-height: 300px;
}

/* ═══════════════════════════════════════
   微信朋友圈样式
   ═══════════════════════════════════════ */

.wechat-moments {
  background: #fff;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
}

.moments-header {
  background: #f7f7f7;
  padding: 12px 15px;
  border-bottom: 1px solid #d9d9d9;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  color: #000;
}

.moments-body {
  padding-bottom: 20px;
}

.moment-item {
  padding: 15px;
  border-bottom: 8px solid #f0f0f0;
  background: #fff;
}

.moment-user {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
}

.moment-user .avatar {
  width: 45px;
  height: 45px;
  margin-right: 12px;
}

.moment-user-info {
  flex: 1;
}

.moment-name {
  font-size: 16px;
  font-weight: 500;
  color: #576b95;
  margin-bottom: 5px;
}

.moment-content {
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  margin-bottom: 12px;
  word-wrap: break-word;
}

.moment-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.moment-image {
  width: 100%;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.moment-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.moment-time {
  font-size: 13px;
  color: #b2b2b2;
}

.moment-actions {
  background: #f7f7f7;
  padding: 4px 10px;
  border-radius: 3px;
  color: #576b95;
  font-size: 14px;
  cursor: pointer;
}

.moment-likes {
  background: #f7f7f7;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 3px;
  font-size: 14px;
  color: #576b95;
}

/* ═══════════════════════════════════════
   现实场景样式
   ═══════════════════════════════════════ */

.real-scene {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.scene-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 20px 25px;
  font-size: 20px;
  font-weight: 600;
}

.scene-meta {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
  flex-wrap: wrap;
}

.scene-tag {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 12px;
}

.scene-body {
  padding: 25px;
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.scene-paragraph {
  margin-bottom: 20px;
  text-indent: 2em;
}

.scene-dialogue {
  margin: 15px 0;
  padding: 12px 15px;
  border-left: 3px solid #667eea;
  background: #f8f9fa;
  font-style: italic;
}

.scene-action {
  color: #666;
  font-size: 15px;
  margin: 15px 0;
  text-align: center;
  font-style: italic;
}

.scene-character {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #667eea;
}

.character-name {
  font-size: 18px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 10px;
}

.character-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* ═══════════════════════════════════════
   NSFW内容样式
   ═══════════════════════════════════════ */

.nsfw-block {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border: 2px solid #ff6b6b;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
}

.nsfw-title {
  color: #c92a2a;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6b6b;
}

.nsfw-content {
  color: #2d3436;
  line-height: 2;
  font-size: 15px;
}

.nsfw-detail {
  margin-top: 15px;
  padding: 12px 15px;
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  border-left: 3px solid #ff6b6b;
}

.nsfw-detail strong {
  color: #c92a2a;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   CG图片样式
   ═══════════════════════════════════════ */

.cg-container {
  margin: 20px 0;
  text-align: center;
}

.cg-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cg-image:hover {
  transform: scale(1.02);
}

.cg-caption {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* ═══════════════════════════════════════
   状态栏样式
   ═══════════════════════════════════════ */

.status-panel {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.status-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.status-item {
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-name {
  font-weight: 500;
  color: #333;
}

.status-value {
  color: #667eea;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   响应式设计
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .forbidden-garden {
    max-width: 100%;
  }
  
  .msg-info {
    max-width: 85%;
  }
  
  .moment-images {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }
  
  .scene-body {
    padding: 15px;
  }
}

/* ═══════════════════════════════════════
   工具类
   ═══════════════════════════════════════ */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}
