/* ==========================================
   秦昭·剑馆纯爱风 · 樱粉薄荷银簪配色
   ========================================== */

/* 思维链隐藏 */
think{display:none}

/* 剑心触发标记隐藏（AI仍会输出供世界书识别） */
.jianxin-flag{display:none}

/* ========== 顶部状态栏 ========== */
topbar{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  padding:12px 14px;
  margin:8px 0 14px 0;
  background:linear-gradient(135deg,#fff5f7 0%,#f0fbf6 100%);
  border-radius:18px;
  border:1px solid #ffd6e0;
  box-shadow:0 2px 8px rgba(255,182,193,0.15);
  font-size:13px;
}
.tb-item{
  display:inline-flex;
  align-items:center;
  padding:5px 12px;
  background:#ffffff;
  border-radius:14px;
  color:#7a5c6e;
  border:1px solid #ffe4ec;
  transition:all 0.3s ease;
  font-weight:500;
  white-space:nowrap;
  flex:0 0 auto;
  max-width:calc(50% - 10px);
  overflow:hidden;
  text-overflow:ellipsis;
}
.tb-item:hover{
  transform:translateY(-2px);
  box-shadow:0 4px 10px rgba(255,154,184,0.25);
  background:#fff0f5;
}

/* ========== 正文区（聊天气泡感）双保险写法 ========== */
text,
.text-body{
  display:block;
  padding:20px 22px;
  margin:14px 0;
  background:linear-gradient(180deg,#fffafc 0%,#fdfdf9 100%);
  border-radius:20px;
  border:1px solid #ffe6ee;
  box-shadow:0 3px 14px rgba(255,182,193,0.12),inset 0 1px 0 rgba(255,255,255,0.8);
  position:relative;
  line-height:1.85;
  color:#3d3540;
  font-size:15px;
}
text::before,
.text-body::before{
  content:"❀";
  position:absolute;
  top:-10px;
  left:24px;
  background:#ffffff;
  color:#ff9eb5;
  padding:0 8px;
  font-size:14px;
  border-radius:50%;
  z-index:1;
}
text p,
.text-body p{
  margin:0 0 14px 0;
  text-indent:2em;
}
text p:last-child,
.text-body p:last-child{
  margin-bottom:0;
}

/* ========== 全局分割线美化 ========== */
hr{
  border:none;
  height:1px;
  background:linear-gradient(90deg,transparent 0%,#ffb6c1 20%,#ffb6c1 50%,#b8d8c8 80%,transparent 100%);
  margin:16px 0;
  position:relative;
}
hr::after{
  content:"⚔️";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  background:#ffffff;
  padding:0 8px;
  color:#d49bb0;
  font-size:11px;
}
details hr{
  border:none;
  height:1px;
  background:linear-gradient(90deg,transparent,#ffd6e0 30%,#c8e6d8 70%,transparent);
  margin:12px 0;
}
details hr::after{
  content:"· ❀ ·";
  color:#d49bb0;
  font-size:10px;
  background:#fff;
  padding:0 8px;
}

/* ========== details 折叠面板 ========== */
details{
  margin:10px 0;
  background:#ffffff;
  border-radius:14px;
  border:1px solid #ffe0e9;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(180,200,200,0.08);
  transition:box-shadow 0.3s;
}
details:hover{box-shadow:0 4px 12px rgba(255,182,193,0.18)}
details summary{
  padding:12px 16px;
  cursor:pointer;
  font-weight:600;
  color:#a85676;
  background:linear-gradient(90deg,#fff5f8 0%,#f5fbf8 100%);
  border-left:4px solid #ffaec5;
  list-style:none;
  user-select:none;
  transition:background 0.3s;
  font-size:14px;
}
details summary::-webkit-details-marker{display:none}
details summary::after{
  content:"▾";
  float:right;
  color:#d49bb0;
  transition:transform 0.3s;
}
details[open] summary::after{transform:rotate(180deg)}
details summary:hover{
  background:linear-gradient(90deg,#ffeaf1 0%,#e8f6ef 100%);
}
details[open] summary{
  border-bottom:1px dashed #ffd6e0;
}
details > p,
details > div{
  padding:12px 18px;
  color:#5a4a55;
  font-size:14px;
  line-height:1.7;
}

/* ========== 角色信息行美化 ========== */
details > p b{
  display:inline-block;
  color:#c47a96;
  font-weight:600;
  margin-right:2px;
}
details > p{
  padding:10px 18px;
  margin:0;
  border-bottom:1px dotted #fce8ef;
  font-size:13px;
  color:#5a4a55;
}
details > p:last-child{border-bottom:none}

/* ========== 秦昭 OS 高亮 ========== */
.zhao-os{
  color:#9C27B0;
  font-style:italic;
  background:linear-gradient(90deg,#fdf0f8,#faf5ff);
  padding:2px 6px;
  border-radius:6px;
  font-weight:500;
}

/* ========== 好感度 & 悸动进度条 ========== */
.stat-bar-wrap{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0;
  flex-wrap:wrap;
}
.stat-bar-label{
  font-size:12px;
  font-weight:600;
  color:#7a5c6e;
  min-width:36px;
  white-space:nowrap;
}
.stat-bar-label .phase-tag{
  display:inline-block;
  font-size:11px;
  background:#fff0f5;
  color:#c47a96;
  padding:1px 8px;
  border-radius:10px;
  margin-left:4px;
  font-weight:500;
}
.stat-bar{
  flex:1;
  min-width:100px;
  height:16px;
  background:#fdf0f4;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #ffe4ec;
  position:relative;
  box-shadow:inset 0 1px 2px rgba(0,0,0,0.04);
}
.stat-bar-fill{
  height:100%;
  border-radius:10px;
  transition:width 0.6s cubic-bezier(0.4,0,0.2,1);
  position:relative;
}
.stat-bar-fill.affection{
  background:linear-gradient(90deg,#ffb6c1,#ff7e9b);
  box-shadow:0 0 6px rgba(255,126,155,0.4);
}
.stat-bar-fill.flutter{
  background:linear-gradient(90deg,#d4b8d8,#b38dc0);
  box-shadow:0 0 6px rgba(179,141,192,0.4);
}
.stat-bar-value{
  font-size:11px;
  color:#7a5c6e;
  font-weight:600;
  min-width:44px;
  text-align:right;
  white-space:nowrap;
}

/* ========== 记忆区专属样式 ========== */
.memory-panel summary{
  background:linear-gradient(90deg,#f0fbf6 0%,#fff5f7 100%);
  border-left-color:#9fd9c2;
  color:#5a8a76;
}
.memory-card{padding:14px 16px}
.memory-info{
  background:#fffaf4;
  border:1px dashed #ffd9a8;
  color:#a87a4a;
  padding:6px 12px;
  border-radius:10px;
  font-size:12px;
  margin-bottom:12px;
  text-align:center;
}
.memory-section{margin-bottom:14px}
.memory-title{
  font-weight:600;
  color:#7a5c6e;
  margin-bottom:6px;
  padding-left:8px;
  border-left:3px solid #ffaec5;
  font-size:13px;
}
.memory-table{
  width:100%;
  border-collapse:collapse;
  background:#fffdfd;
  border-radius:8px;
  overflow:hidden;
  font-size:13px;
}
.memory-table th{
  background:#ffeaf1;
  color:#a85676;
  padding:7px 8px;
  font-weight:600;
  text-align:left;
  border-bottom:1px solid #ffd6e0;
}
.memory-table td{
  padding:7px 8px;
  border-bottom:1px solid #fdf0f4;
  color:#5a4a55;
  vertical-align:top;
}
.memory-table tr:last-child td{border-bottom:none}

/* ========== 选项按钮（涟漪 + 悬浮）========== */
choices{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:14px 0 6px 0;
}
.ch-item{
  padding:12px 14px;
  background:linear-gradient(135deg,#ffffff 0%,#fff5f8 100%);
  border:1.5px solid #ffd6e0;
  border-radius:14px;
  color:#7a4f64;
  cursor:pointer;
  transition:all 0.35s cubic-bezier(0.4,0,0.2,1);
  font-size:14px;
  line-height:1.55;
  position:relative;
  overflow:hidden;
  font-weight:500;
}
.ch-item::before{
  content:"";
  position:absolute;
  top:50%;left:50%;
  width:0;height:0;
  background:radial-gradient(circle,rgba(255,154,184,0.25) 0%,transparent 70%);
  border-radius:50%;
  transform:translate(-50%,-50%);
  transition:width 0.5s,height 0.5s;
}
.ch-item:hover{
  transform:translateY(-3px);
  border-color:#ff9eb5;
  color:#a8385c;
  box-shadow:0 6px 16px rgba(255,154,184,0.3);
  background:linear-gradient(135deg,#fff0f5 0%,#ffe4ec 100%);
}
.ch-item:hover::before{
  width:200%;height:200%;
}
.ch-item:active{
  transform:translateY(-1px);
  box-shadow:0 2px 6px rgba(255,154,184,0.4);
}

/* ========== 移动端适配 ========== */
@media (max-width:600px){
  choices{grid-template-columns:1fr}
  topbar{font-size:12px;padding:10px;gap:4px 6px}
  .tb-item{padding:4px 10px;font-size:12px;max-width:calc(50% - 6px)}
  text,
  .text-body{padding:16px 16px;font-size:14px}
  details summary{font-size:13px}
  .memory-table{font-size:12px}
  .stat-bar-wrap{gap:4px}
  .stat-bar{min-width:60px}
}