/* 风月AI平台 - 二次元动漫化核心CSS (Alserqi特供版) */

:root {
  --primary-pink: #ff66a3;
  --neon-purple: #b366ff;
  --dark-bg: rgba(20, 15, 30, 0.75);
  --glass-bg: rgba(30, 20, 45, 0.4);
  --glass-border: rgba(255, 102, 163, 0.3);
  --text-main: #fce4ec;
  --text-muted: #f48fb1;
  --bubble-user: rgba(255, 102, 163, 0.25);
  --bubble-ai: rgba(179, 102, 255, 0.2);
}

/* 核心毛玻璃面板特效 */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 20px rgba(255, 102, 163, 0.15);
  border-radius: 16px;
}

/* 左侧角色列表 (后宫侧边栏) */
.sidebar {
  width: 280px;
  height: 96%;
  margin: 1%;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.character-item {
  display: flex;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.character-item:hover, .character-item.active {
  background: rgba(255, 102, 163, 0.15);
  border-left: 3px solid var(--primary-pink);
  box-shadow: 0 0 10px rgba(255, 102, 163, 0.2);
}

.char-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-pink);
  box-shadow: 0 0 8px var(--primary-pink);
  object-fit: cover;
}

/* 主聊天区域 */
.chat-main {
  flex: 1;
  height: 96%;
  margin: 1% 1% 1% 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 聊天记录滚动区 */
.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 自定义二次元滚动条 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-pink);
  border-radius: 3px;
}

/* 聊天气泡设计 */
.message {
  max-width: 75%;
  padding: 12px 18px;
  border-radius: 18px;
  line-height: 1.6;
  font-size: 15px;
  position: relative;
}

.msg-user {
  align-self: flex-end;
  background: var(--bubble-user);
  border: 1px solid rgba(255, 102, 163, 0.4);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(255, 102, 163, 0.1);
}

.msg-ai {
  align-self: flex-start;
  background: var(--bubble-ai);
  border: 1px solid rgba(179, 102, 255, 0.4);
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 15px rgba(179, 102, 255, 0.1);
}

/* 底部输入框区域 */
.input-area {
  padding: 15px;
  background: rgba(20, 15, 30, 0.6);
  border-top: 1px solid var(--glass-border);
  border-radius: 0 0 16px 16px;
  display: flex;
  gap: 10px;
}

.input-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--neon-purple);
  border-radius: 20px;
  padding: 12px 20px;
  color: white;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.input-box:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px rgba(255, 102, 163, 0.3);
}

/* 发送按钮 - 呼吸灯特效 */
.send-btn {
  background: linear-gradient(45deg, var(--primary-pink), var(--neon-purple));
  border: none;
  border-radius: 20px;
  padding: 0 25px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 102, 163, 0.4);
  animation: breathe 2s infinite alternate;
}

@keyframes breathe {
  0% { box-shadow: 0 0 10px rgba(255, 102, 163, 0.3); }
  100% { box-shadow: 0 0 20px rgba(255, 102, 163, 0.7); }
}

/* =========================================
   1. 对话框美化：燕灵与玩家的专属气泡
========================================= */

yan {
    display: block;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.8), rgba(255, 228, 225, 0.5));
    border-left: 4px solid #ff69b4;
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    margin: 10px 0;
    color: #c71585;
    font-weight: 600;
    box-shadow: 2px 3px 8px rgba(255, 105, 180, 0.15);
    line-height: 1.6;
}

user {
    display: block;
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.8), rgba(230, 240, 250, 0.5));
    border-left: 4px solid #4682b4;
    border-radius: 0 12px 12px 0;
    padding: 12px 16px;
    margin: 10px 0;
    color: #1a5b82;
    font-weight: 600;
    box-shadow: 2px 3px 8px rgba(70, 130, 180, 0.15);
    line-height: 1.6;
}

/* =========================================
   2. 状态栏美化：赛博医疗风数据面板
========================================= */

details {
    background: rgba(252, 252, 252, 0.95);
    border: 1px solid #eaeaea;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #ffd1dc;
}

summary {
    background: linear-gradient(90deg, #fdfbfb, #ebedee);
    padding: 12px 16px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    user-select: none;
}

summary:hover {
    background: linear-gradient(90deg, #f5f7fa, #c3cfe2);
    color: #222;
}

details[open] summary {
    border-bottom: 1px solid #ffe4e1;
    color: #d22b55; 
}

details p {
    margin: 0;
    padding: 10px 16px;
    font-size: 0.9em;
    color: #555;
    border-bottom: 1px dashed #f0f0f0;
    line-height: 1.5;
}

details p:last-child {
    border-bottom: none;
}
css
think {
    display: none;
}