ai {
  --p1: #ffb6c1; /* 樱花粉 */
  --p2: #ffe4e1; /* 迷雾玫瑰 */
  --p3: #fff0f5; /* 薰衣草微红 */
  --bg: #fffdfd; /* 纸张白 */
  --text: #5a4b4d; /* 柔和深灰粉 */
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fdfafb;
  padding: 8px;
  border-radius: 12px;
}

/* 折叠面板基础：手账书签感 */
ai details {
  background: var(--p3);
  border-radius: 10px;
  box-shadow: 2px 4px 10px rgba(255, 182, 193, 0.25);
  border: 1px solid var(--p2);
  overflow: hidden;
}
ai summary {
  list-style: none;
  padding: 12px 15px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(200, 100, 120, 0.4);
  cursor: pointer;
  position: relative;
}
ai summary::-webkit-details-marker { display: none; }
ai summary::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: rgba(255,255,255,0.4);
}
ai details[open] summary { border-bottom: 2px dashed #fff; }

/* 内部运算逻辑：网格手账本+和纸胶带 */
ai t-b {
  position: relative;
  display: block;
  padding: 18px 15px 15px;
  background: #fff;
  background-image: linear-gradient(#fce4ec 1px, transparent 1px), linear-gradient(90deg, #fce4ec 1px, transparent 1px);
  background-size: 18px 18px;
  margin: 15px 12px;
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.06);
  color: #7a6b6d;
  font-size: 13px;
}
ai t-b::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 80px;
  height: 22px;
  background: rgba(255, 182, 193, 0.6);
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* 正文区：少女手账内页，立体阴影与缝线 */
ai ar {
  display: block;
  background: linear-gradient(to bottom right, #fff, #fffafb);
  border-radius: 12px 2px 12px 2px;
  padding: 18px;
  box-shadow: 3px 5px 15px rgba(255, 182, 193, 0.25), inset 0 0 12px rgba(255,228,225,0.3);
  border: 2px dashed #ffb6c1;
  position: relative;
  line-height: 1.6;
}
ai ar::after {
  content: '✿';
  position: absolute;
  bottom: 2px;
  right: 8px;
  font-size: 22px;
  color: rgba(255, 182, 193, 0.4);
}

/* 状态栏：波点底纹容器 */
ai tg, ai ac {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="%23ffc0cb"/></svg>');
}

/* 小纸条便签：带彩色图钉与随机倾斜角 */
ai tg d {
  background: #fff;
  padding: 12px 14px;
  box-shadow: 2px 3px 6px rgba(0,0,0,0.08);
  font-size: 13px;
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
  margin-top: 5px;
  border-bottom-right-radius: 12px 3px;
}
ai tg d::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: inset -1px -1px 2px rgba(0,0,0,0.3), 1px 1px 2px rgba(0,0,0,0.2);
}
/* 4种马卡龙便签纸颜色轮换 */
ai tg d:nth-child(4n+1) { background: #fff9e6; transform: rotate(-2deg); }
ai tg d:nth-child(4n+1)::after { background: #ff9999; }
ai tg d:nth-child(4n+2) { background: #e6f7ff; transform: rotate(1deg); }
ai tg d:nth-child(4n+2)::after { background: #99ccff; }
ai tg d:nth-child(4n+3) { background: #ffe6f2; transform: rotate(-1.5deg); }
ai tg d:nth-child(4n+3)::after { background: #ff99cc; }
ai tg d:nth-child(4n+4) { background: #ebfbe6; transform: rotate(2deg); }
ai tg d:nth-child(4n+4)::after { background: #99ff99; }

/* 记忆区表格：手账内页表格样式 */
ai .m { color: #d87093; font-weight: 500; padding-bottom: 10px; }
ai table {
  width: calc(100% - 24px);
  margin: 10px auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 182, 193, 0.2);
}
ai th {
  background: var(--p1);
  color: #fff;
  padding: 8px;
  font-size: 13px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
  border-right: 1px solid #fff;
}
ai td {
  background: #fff;
  padding: 8px;
  font-size: 12px;
  border-bottom: 1px dashed var(--p2);
  color: var(--text);
}
ai td:first-child, ai th:first-child { text-align: center; }

/* 行动选项：立体圆润贴纸按钮 */
ai ac d {
  background: linear-gradient(135deg, #fff, #fff0f5);
  border: 2px solid var(--p1);
  border-radius: 20px;
  padding: 10px 16px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 0 var(--p1);
  transition: all 0.2s;
  cursor: pointer;
  font-weight: bold;
  color: #d87093;
}
ai ac d:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--p1);
  background: var(--p2);
}