cot {
    display: none;
}

/* 表情系统 - 425x425 比例优化 */
e {
  display: block;
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin: 10px 0;
}

/* 妈妈表情 (m_e) */
e[c="m_e1"] { background-image: url(https://catai.wiki/700b9c96-8327-4e2a-7340-25cee9952300/w=3000); } /* 开心 */
e[c="m_e2"] { background-image: url(https://catai.wiki/d4ffd9e8-11ae-4836-2d16-ca27adcfe900/w=3000); } /* 基础 */
e[c="m_e4"] { background-image: url(https://catai.wiki/4e726463-c8d9-488e-c772-9b207d676600/w=3000); } /* 哭泣 */
e[c="m_e5"] { background-image: url(https://catai.wiki/9b245a4b-f925-4814-5c5d-0ee22f273e00/w=3000); } /* 愤怒 */
e[c="m_e6"] { background-image: url(https://catai.wiki/32f82dd8-fdd1-4b30-9f28-00c0453e0000/w=3000); } /* 星星眼 */
e[c="m_e8"] { background-image: url(https://catai.wiki/d900ac6f-7dee-42d9-bdfc-016863cb1800/w=3000); } /* 兴奋 */
e[c="m_e9"] { background-image: url(https://catai.wiki/0c63f685-8f27-4b3b-d267-ad056abce400/w=3000); } /* 痛苦 */
e[c="m_e10"] { background-image: url(https://catai.wiki/56a2fcbd-4338-4c90-67b1-c0086564f500/w=3000); } /* 爱心眼 */
e[c="m_e_h"] { background-image: url(https://catai.wiki/a24032b7-ae51-4852-fa79-80d32d6e9e00/w=3000); } /* 坏笑 */

/* 妹妹表情 (s_e) */
e[c="s_e1"] { background-image: url(https://catai.wiki/2132c4e5-da8c-45bd-bd62-d04945cf9700/w=3000); } /* 开心 */
e[c="s_e2"] { background-image: url(https://catai.wiki/6b2bf9f0-7c92-48e5-7894-2b492c9d2900/w=3000); } /* 基础 */
e[c="s_e4"] { background-image: url(https://catai.wiki/866f067b-97c6-411f-7088-6c3e60e68f00/w=3000); } /* 哭泣 */
e[c="s_e5"] { background-image: url(https://catai.wiki/1ac5966d-503d-48bd-e348-96638e8a7d00/w=3000); } /* 愤怒 */
e[c="s_e6"] { background-image: url(https://catai.wiki/853da954-b8a6-4cdc-19d4-6c3c670eb300/w=3000); } /* 星星眼 */
e[c="s_e8"] { background-image: url(https://catai.wiki/292077d2-5b46-45dd-5204-2acb1f8af100/w=3000); } /* 兴奋 */
e[c="s_e9"] { background-image: url(https://catai.wiki/1e8f4e72-c8ec-41fb-fc73-25350ce71d00/w=3000); } /* 痛苦 */
e[c="s_e10"] { background-image: url(https://catai.wiki/c85e8b2e-0543-4bbd-30b1-70954198a400/w=3000); } /* 爱心眼 */
e[c="s_e_h"] { background-image: url(https://catai.wiki/85011b09-76e2-4d38-75cc-053b87aa9400/w=3000); } /* 坏笑 */

/* 服装系统 - 1196x1006 比例优化 */
o {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1196 / 1006;
  background-size: cover;
  background-position: center top;
  border-radius: 15px;
  margin: 15px auto;
}

/* 妈妈服装 (m_o) */
o[c="m_o_ol"] { background-image: url(https://catai.wiki/fafa3580-e6eb-438b-5133-643642803100/w=3000); }
o[c="m_o15"] { background-image: url(https://catai.wiki/dc401194-cb09-4ecd-9cff-2d583e6d2900/w=3000); } /* T恤 */
o[c="m_o_dk"] { background-image: url(https://catai.wiki/dc7ba66e-0e2b-46c1-da56-2fe1ede1ca00/w=3000); } /* 短裤 */
o[c="m_o5"] { background-image: url(https://catai.wiki/eba3ec57-8afd-4b17-7da3-3a7902f8d600/w=3000); } /* 婚纱 */
o[c="m_o7"] { background-image: url(https://catai.wiki/4458e5cb-824a-4055-8367-d1f1001a6700/w=3000); } /* 居家服 */
o[c="m_o_lyq"] { background-image: url(https://catai.wiki/733f81cb-7eb4-482c-e152-d3d97aefc700/w=3000); } /* 连衣裙 */
o[c="m_o1"] { background-image: url(https://catai.wiki/91d9b46f-d9f9-4679-c4cb-880c8de52000/w=3000); } /* 洛丽塔 */
o[c="m_o11"] { background-image: url(https://catai.wiki/65960b32-6b73-4b8c-ec80-a5ec4a2a3c00/w=3000); } /* 全裸 */
o[c="m_o20"] { background-image: url(https://catai.wiki/3c5a010b-bf2b-4d97-c411-023fb88cdc00/w=3000); } /* 睡裙 */
o[c="m_o9"] { background-image: url(https://catai.wiki/951a15d1-8d55-4d0d-0025-e4300bd9f900/w=3000); } /* 围裙 */
o[c="m_o8"] { background-image: url(https://catai.wiki/f3917255-01a0-4827-df8b-e39491c56a00/w=3000); } /* 泳衣 */

/* 妹妹服装 (s_o) */
o[c="s_o15"] { background-image: url(https://catai.wiki/95ac4bf5-d65f-4df9-a7e8-abad259c0700/w=3000); } /* T恤 */
o[c="s_o_dk"] { background-image: url(https://catai.wiki/4f7d2488-7acd-449b-e9b7-bf6ba22f2800/w=3000); } /* 短裤 */
o[c="s_o5"] { background-image: url(https://catai.wiki/64bad9b7-74c2-4e3c-aadf-7d02b7bcb100/w=3000); } /* 婚纱 */
o[c="s_o7"] { background-image: url(https://catai.wiki/01e68411-76f4-4891-320b-d0e498509d00/w=3000); } /* 居家服 */
o[c="s_o_lyq"] { background-image: url(https://catai.wiki/77edbdf1-0e9d-44a1-aef7-28bf881a1b00/w=3000); } /* 连衣裙 */
o[c="s_o1"] { background-image: url(https://catai.wiki/f1d2a29a-2617-4e8c-6580-3dfb1949cd00/w=3000); } /* 洛丽塔 */
o[c="s_o11"] { background-image: url(https://catai.wiki/d9c6c720-529c-4c1a-855d-831fed71f400/w=3000); } /* 全裸 */
o[c="s_o20"] { background-image: url(https://catai.wiki/074e4357-2a28-4a7c-173d-5d033bb01200/w=3000); } /* 睡裙 */
o[c="s_o18"] { background-image: url(https://catai.wiki/fe46a6ca-1ac6-4cd2-280a-a0de1d86d300/w=3000); } /* 校服 */
o[c="s_o8"] { background-image: url(https://catai.wiki/aeeb46d4-dbc2-4458-12b0-c573ddbb1e00/w=3000); } /* 泳衣 */
o[c="s_o19"] { background-image: url(https://catai.wiki/33b158a0-1f34-42da-b758-474f136a1600/w=3000); } /* 运动服 */

/* ========== 正文模块 ========== */
tb {
  display: block;
  margin-bottom: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  line-height: 1.8;
  font-size: 15px;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
tb[data-mode="normal"] {
  background: rgba(255, 250, 230, 0.3);
  border: 1.5px solid rgba(139, 90, 43, 0.25);
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.1), inset 0 0 0 1px rgba(139, 90, 43, 0.06);
  color: #5c3a21;
}
tb[data-mode="nsfw"] {
  background: rgba(255, 240, 220, 0.3);
  border: 1.5px solid rgba(139, 90, 43, 0.25);
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.15), inset 0 0 0 1px rgba(139, 90, 43, 0.06);
  color: #4a2e1b;
}
tb p {
  margin: 0;
}

/* ========== 核心修改：对话专属颜色 ========== */
/* 扮演妹妹时的紫色 */
tb[data-mode="normal"] ll.sis, tb[data-mode="nsfw"] ll.sis {
  color: #9b59b6; 
  font-weight: 600;
}
/* 扮演妈妈时的粉色 */
tb[data-mode="normal"] ll.mom, tb[data-mode="nsfw"] ll.mom {
  color: #ff69b4; 
  font-weight: 600;
}

/* ========== 顶部状态栏 ========== */
stp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 245, 225, 0.2);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(139, 90, 43, 0.22);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.08), inset 0 0 0 1px rgba(139, 90, 43, 0.05);
  position: relative;
}
stp::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  border: 1px dashed rgba(139, 90, 43, 0.15);
  pointer-events: none;
  animation: lace-breathe 4s ease-in-out infinite;
}
sti {
  display: block;
  flex: 1 1 auto;
  min-width: 120px;
  padding: 8px 12px;
  background: rgba(255, 250, 235, 0.4);
  border: 1px solid rgba(139, 90, 43, 0.15);
  border-radius: 8px;
  font-size: 14px;
  color: #6b4226;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
}
sti:hover {
  background: rgba(255, 240, 215, 0.5);
  border-color: rgba(139, 90, 43, 0.25);
  box-shadow: 0 2px 8px rgba(139, 90, 43, 0.15);
  transform: translateY(-1px);
}

/* ========== 阿卡夏纪录 ========== */
details.ab {
  margin-bottom: 20px;
  background: rgba(255, 245, 225, 0.25);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(139, 90, 43, 0.22);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.08), inset 0 0 0 1px rgba(139, 90, 43, 0.05);
  overflow: hidden;
  position: relative;
}
details.ab::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  border: 1px dashed rgba(139, 90, 43, 0.15);
  pointer-events: none;
  animation: lace-breathe 4s ease-in-out infinite;
}
details.ab > summary {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #8b5a2b;
  cursor: pointer;
  background: rgba(255, 240, 215, 0.3);
  border-bottom: 1px solid rgba(139, 90, 43, 0.15);
  list-style: none;
  transition: all 0.2s;
}
details.ab > summary:hover {
  background: rgba(255, 235, 205, 0.4);
  color: #6b4226;
}
details.ab > summary::-webkit-details-marker { display: none; }
details.ab > summary::before {
  content: '▶ ';
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.2s;
  color: rgba(139, 90, 43, 0.5);
}
details.ab[open] > summary::before { transform: rotate(90deg); }

details.ai {
  margin: 12px;
  background: rgba(255, 250, 235, 0.4);
  border: 1px solid rgba(139, 90, 43, 0.15);
  border-radius: 8px;
  overflow: hidden;
}
details.ai > summary {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #6b4226;
  cursor: pointer;
  background: rgba(255, 240, 215, 0.4);
  list-style: none;
  transition: all 0.2s;
}
details.ai > summary:hover {
  background: rgba(255, 230, 200, 0.5);
  color: #4a2e1b;
}
details.ai > summary::-webkit-details-marker { display: none; }
details.ai > summary::before {
  content: '▸ ';
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.2s;
  color: rgba(139, 90, 43, 0.4);
}
details.ai[open] > summary::before { transform: rotate(90deg); }
details.ai p {
  margin: 8px 14px;
  font-size: 13px;
  color: #5c3a21;
  line-height: 1.6;
}
details.ai table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 13px;
  color: #5c3a21;
}
details.ai table th {
  padding: 8px;
  background: rgba(255, 240, 215, 0.5);
  border: 1px solid rgba(139, 90, 43, 0.15);
  font-weight: 600;
  text-align: left;
}
details.ai table td {
  padding: 8px;
  border: 1px solid rgba(139, 90, 43, 0.1);
  background: rgba(255, 250, 235, 0.3);
}
details.ai hr {
  margin: 16px 14px;
  border: none;
  border-top: 1px dashed rgba(139, 90, 43, 0.2);
}

/* ========== 游戏UI容器 ========== */
gui { display: block; margin-top: 20px; }
ulb {
  display: block;
  margin-bottom: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(255, 240, 215, 0.4), rgba(255, 250, 235, 0.4));
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(139, 90, 43, 0.2);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #8b5a2b;
  text-align: center;
  position: relative;
}
ulb::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(139, 90, 43, 0.2) 0px, rgba(139, 90, 43, 0.2) 3px, transparent 3px, transparent 7px);
}

/* ========== 卡片通用 ========== */
cdu, cdm {
  display: block;
  margin-bottom: 16px;
  padding: 16px;
  background: rgba(255, 250, 235, 0.3);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(139, 90, 43, 0.22);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(139, 90, 43, 0.08), inset 0 0 0 1px rgba(139, 90, 43, 0.05);
  position: relative;
  transition: all 0.25s;
}
cdu:hover, cdm:hover {
  background: rgba(255, 245, 225, 0.4);
  border-color: rgba(139, 90, 43, 0.3);
  box-shadow: 0 6px 20px rgba(139, 90, 43, 0.12), inset 0 0 0 1px rgba(139, 90, 43, 0.08);
}
cdu::before, cdm::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  border: 1px dashed rgba(139, 90, 43, 0.15);
  pointer-events: none;
  animation: lace-breathe 4s ease-in-out infinite;
}
cdh {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(139, 90, 43, 0.15);
  font-size: 16px;
  font-weight: 600;
  color: #8b5a2b;
}
tg {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background: rgba(255, 235, 200, 0.5);
  border: 1px solid rgba(139, 90, 43, 0.2);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #8b5a2b;
}

/* ========== 基础信息块 ========== */
ifb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(255, 250, 235, 0.4);
  border: 1px solid rgba(139, 90, 43, 0.15);
  border-radius: 8px;
}
ifb g3 { margin-bottom: 4px; }
ifb gi { border: none; background: transparent; padding: 4px 0; }

/* ========== 网格布局 ========== */
g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
g1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
gi {
  display: block;
  padding: 8px 10px;
  background: rgba(255, 250, 235, 0.5);
  border: 1px solid rgba(139, 90, 43, 0.15);
  border-radius: 6px;
  font-size: 13px;
  color: #6b4226;
  transition: all 0.2s;
}
gi:hover {
  background: rgba(255, 240, 215, 0.6);
  border-color: rgba(139, 90, 43, 0.25);
  box-shadow: 0 2px 6px rgba(139, 90, 43, 0.1);
}

/* ========== 进度条系统 (仅保留好感度) ========== */
brg { display: block; margin-top: 12px; }
sg {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
sl {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #8b5a2b;
}
bt {
  display: block;
  height: 18px;
  background: rgba(255, 240, 215, 0.4);
  border: 1px solid rgba(139, 90, 43, 0.2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: all 0.2s;
}
bt:hover {
  box-shadow: 0 0 8px rgba(139, 90, 43, 0.15);
  border-color: rgba(139, 90, 43, 0.3);
}
bv {
  display: block;
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s;
  position: relative;
  overflow: hidden;
}
bv::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: bar-shine 3s ease-in-out infinite;
}
bv.l { background: linear-gradient(90deg, #8b5a2b, #a67b5b); }

/* ========== 选项框 ========== */
slb { display: block; margin-top: 20px; }
slo {
  display: block;
  margin-bottom: 10px;
  padding: 12px 16px;
  background: rgba(255, 250, 235, 0.4);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(139, 90, 43, 0.2);
  border-radius: 10px;
  font-size: 14px;
  color: #6b4226;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
slo::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  border: 1px dashed rgba(139, 90, 43, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
slo:hover {
  background: rgba(255, 240, 215, 0.5);
  border-color: rgba(139, 90, 43, 0.3);
  box-shadow: 0 4px 12px rgba(139, 90, 43, 0.15);
  transform: translateY(-2px);
}
slo:hover::before { opacity: 1; }

/* ========== 动画 ========== */
@keyframes lace-breathe {
  0%, 100% { border-color: rgba(139, 90, 43, 0.15); }
  50% { border-color: rgba(139, 90, 43, 0.25); }
}
@keyframes bar-shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  stp { flex-direction: column; }
  sti { min-width: 100%; }
  g3 { grid-template-columns: 1fr; }
  ifb g3 { grid-template-columns: 1fr; }
  sg { grid-template-columns: 60px 1fr; }
}