css
/* ═══════════════════════════════════════
   齐王府 · 古风信笺主题（浅色版）
   适用于：内置CSS区域
   ═══════════════════════════════════════ */

/* ── 外层容器 ── */
ai {
  display: block;
  font-family: "楷体", "KaiTi", "STKaiti", "AR PL UKai CN", serif;
  color: #2c2420;
  line-height: 1.9;
  padding: 20px 16px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 29px,
      rgba(180, 140, 110, 0.12) 29px,
      rgba(180, 140, 110, 0.12) 30px
    ),
    linear-gradient(170deg, #f5ede2 0%, #f0e6d6 30%, #ede0ce 60%, #f3ead9 100%);
  border-radius: 10px;
  border: 1px solid #c8b8a0;
  box-shadow:
    0 2px 12px rgba(120, 90, 60, 0.1),
    inset 0 0 40px rgba(200, 170, 130, 0.15);
  position: relative;
  overflow: hidden;
}

ai::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 300px 300px at 5% 5%, rgba(190, 150, 100, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 200px 200px at 95% 95%, rgba(170, 130, 90, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 250px at 50% 50%, rgba(220, 200, 170, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

ai::after {
  content: "❀";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.4em;
  color: rgba(180, 120, 120, 0.15);
  pointer-events: none;
  z-index: 0;
}

ai > * {
  position: relative;
  z-index: 1;
}

/* ── 头部时间地点天气 ── */
hd {
  display: block;
  text-align: center;
  font-size: 0.88em;
  color: #7a6050;
  letter-spacing: 5px;
  padding: 8px 0 16px;
  margin-bottom: 18px;
  border-bottom: none;
  position: relative;
}

hd::before {
  content: "━━━ ❁ ━━━";
  display: block;
  font-size: 0.7em;
  color: rgba(160, 120, 100, 0.35);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

hd::after {
  content: "━━━ ❁ ━━━";
  display: block;
  font-size: 0.7em;
  color: rgba(160, 120, 100, 0.35);
  letter-spacing: 2px;
  margin-top: 6px;
}

/* ── 正文区域 ── */
text {
  display: block;
  padding: 10px 6px;
  font-size: 1.02em;
  line-height: 1.95;
}

text p {
  text-indent: 2em;
  margin: 0.65em 0;
  color: #2c2420;
}

/* NPC对话 - 陆怀 */
npcd {
  display: block;
  margin: 12px 0;
  padding: 10px 16px;
  color: #3a2e28;
  border-left: 3px solid #a08060;
  background: linear-gradient(90deg, rgba(180, 150, 110, 0.1) 0%, rgba(240, 230, 215, 0.02) 100%);
  border-radius: 0 8px 8px 0;
  position: relative;
}

npcd::before {
  content: "🗣 陆怀";
  display: block;
  font-size: 0.72em;
  color: #8a7060;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

/* NPC心理 - 陆怀 */
npcx {
  display: block;
  margin: 10px 0;
  padding: 10px 16px;
  color: #6e5e52;
  font-style: italic;
  border-left: 2px dashed rgba(160, 130, 100, 0.35);
  background: linear-gradient(90deg, rgba(160, 140, 110, 0.06) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
  font-size: 0.93em;
}

npcx::before {
  content: "💭";
  margin-right: 4px;
  font-style: normal;
}

/* 玩家对话与心理 */
me {
  display: block;
  margin: 12px 0;
  padding: 10px 16px;
  color: #5a2a2a;
  border-left: 3px solid #c08080;
  background: linear-gradient(90deg, rgba(200, 140, 140, 0.08) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}

me::before {
  content: "❦ 清鸢";
  display: block;
  font-size: 0.72em;
  color: #a07070;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

/* 其他NPC对话 */
xzh {
  display: block;
  margin: 10px 0;
  padding: 10px 16px;
  color: #4a4440;
  border-left: 3px solid #9a9080;
  background: linear-gradient(90deg, rgba(154, 144, 128, 0.06) 0%, transparent 100%);
  border-radius: 0 8px 8px 0;
}

xzh::before {
  content: "💬";
  margin-right: 6px;
}

/* ═══════════════════════════════════════
   折叠面板（状态栏）· 古风装饰
   ═══════════════════════════════════════ */

ai details {
  margin: 14px 0;
  border: 1px solid rgba(180, 155, 125, 0.3);
  border-radius: 8px;
  background: rgba(245, 237, 225, 0.5);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

ai details:hover {
  border-color: rgba(180, 155, 125, 0.5);
  box-shadow: 0 2px 10px rgba(160, 130, 90, 0.08);
}

/* 每个面板的左上角古风花纹装饰 */
ai details::before {
  content: "┊";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    rgba(180, 130, 100, 0.3) 0%,
    rgba(180, 130, 100, 0.08) 40%,
    rgba(180, 130, 100, 0.08) 60%,
    rgba(180, 130, 100, 0.3) 100%
  );
  color: transparent;
  border-radius: 8px 0 0 8px;
  z-index: 1;
}

/* 面板右上角花卉小装饰 */
ai details::after {
  content: "✿";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.85em;
  color: rgba(180, 130, 120, 0.15);
  pointer-events: none;
  z-index: 1;
}

ai details > summary {
  padding: 11px 16px 11px 14px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.93em;
  color: #5a4a3e;
  background: linear-gradient(90deg, rgba(210, 190, 160, 0.2) 0%, rgba(240, 232, 220, 0.1) 100%);
  border-bottom: 1px solid rgba(180, 155, 125, 0.12);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  letter-spacing: 2px;
  transition: background 0.3s ease;
  position: relative;
}

ai details > summary:hover {
  background: linear-gradient(90deg, rgba(210, 190, 160, 0.35) 0%, rgba(240, 232, 220, 0.15) 100%);
}

ai details > summary::-webkit-details-marker {
  display: none;
}

ai details > summary::after {
  content: "◂";
  margin-left: auto;
  font-size: 0.75em;
  color: #a09080;
  transition: transform 0.3s ease;
}

ai details[open] > summary::after {
  transform: rotate(-90deg);
}

ai details > summary + * {
  padding: 10px 14px;
}

/* ═══════════════════════════════════════
   各面板专属装饰与配色
   ═══════════════════════════════════════ */

/* 📍 当前情况 */
ai > text + details::before {
  background: linear-gradient(180deg, rgba(100, 140, 120, 0.35) 0%, rgba(100, 140, 120, 0.05) 100%);
}
ai > text + details::after {
  content: "🍃";
}

/* 👤 主角信息 - 胭脂色调 */
ai > text + details + details::before {
  background: linear-gradient(180deg, rgba(190, 100, 100, 0.35) 0%, rgba(190, 100, 100, 0.05) 100%);
}
ai > text + details + details::after {
  content: "🌸";
  color: rgba(200, 130, 140, 0.2);
}
ai > text + details + details > summary {
  color: #6a3a3a;
  background: linear-gradient(90deg, rgba(200, 150, 150, 0.12) 0%, transparent 100%);
}

/* 🎭 NPC信息 - 墨色调 */
ai > text + details + details + details::before {
  background: linear-gradient(180deg, rgba(100, 90, 80, 0.35) 0%, rgba(100, 90, 80, 0.05) 100%);
}
ai > text + details + details + details::after {
  content: "🏮";
  color: rgba(180, 100, 80, 0.18);
}
ai > text + details + details + details > summary {
  color: #4a3e35;
}

/* 🔍 探索进度 - 烛光色调 */
ai > text + details + details + details + details::before {
  background: linear-gradient(180deg, rgba(200, 160, 80, 0.35) 0%, rgba(200, 160, 80, 0.05) 100%);
}
ai > text + details + details + details + details::after {
  content: "🔥";
  color: rgba(200, 150, 80, 0.15);
}
ai > text + details + details + details + details > summary {
  color: #6a5530;
}

/* 💬 风月顾问团 - 青竹色调 */
ai > text + details + details + details + details + details::before {
  background: linear-gradient(180deg, rgba(80, 130, 100, 0.35) 0%, rgba(80, 130, 100, 0.05) 100%);
}
ai > text + details + details + details + details + details::after {
  content: "🎋";
  color: rgba(80, 140, 100, 0.18);
}
ai > text + details + details + details + details + details > summary {
  color: #3a5a4a;
}

/* 📝 记忆区 - 水墨蓝灰 */
details.mem {
  border-color: rgba(120, 135, 150, 0.25);
  background: rgba(240, 242, 245, 0.5);
}

details.mem::before {
  background: linear-gradient(180deg, rgba(90, 120, 150, 0.3) 0%, rgba(90, 120, 150, 0.05) 100%) !important;
}

details.mem::after {
  content: "📜" !important;
  color: rgba(100, 120, 140, 0.18) !important;
}

details.mem > summary {
  color: #4a5560 !important;
  background: linear-gradient(90deg, rgba(130, 150, 170, 0.1) 0%, transparent 100%) !important;
}

details.mem > summary:hover {
  background: linear-gradient(90deg, rgba(130, 150, 170, 0.2) 0%, transparent 100%) !important;
}

details.mem details {
  margin: 6px 10px;
  border-color: rgba(120, 135, 150, 0.15);
  background: rgba(235, 238, 242, 0.4);
}

details.mem details::before {
  background: linear-gradient(180deg, rgba(90, 120, 150, 0.15) 0%, transparent 100%) !important;
}

details.mem details::after {
  content: "" !important;
}

details.mem details summary {
  font-size: 0.85em;
  color: #5a6670;
  padding: 8px 12px;
}

details.mem p {
  font-size: 0.86em;
  color: #4a5560;
  line-height: 1.75;
  padding: 2px 0;
}

/* ⚡ 行动推荐 - 金色暖调 */
ai > details:last-child::before {
  background: linear-gradient(180deg, rgba(190, 160, 80, 0.4) 0%, rgba(190, 160, 80, 0.05) 100%) !important;
}

ai > details:last-child::after {
  content: "⚡" !important;
  color: rgba(190, 160, 80, 0.2) !important;
}

ai > details:last-child > summary {
  color: #6a5828 !important;
  background: linear-gradient(90deg, rgba(200, 175, 110, 0.15) 0%, transparent 100%) !important;
}

ai > details:last-child d {
  position: relative;
  padding: 6px 0 6px 12px;
  transition: color 0.25s ease, padding-left 0.25s ease;
  cursor: default;
}

ai > details:last-child d:hover {
  color: #5a4820;
  padding-left: 16px;
}

ai > details:last-child d::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #a09050;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-weight: bold;
}

ai > details:last-child d:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════════════
   数据行与数值
   ═══════════════════════════════════════ */

d {
  display: block;
  padding: 3px 0;
  font-size: 0.88em;
  color: #3e3530;
  line-height: 1.75;
}

f {
  display: inline-block;
  font-weight: bold;
  color: #9a3030;
  background: rgba(200, 100, 100, 0.08);
  padding: 1px 10px;
  border-radius: 12px;
  font-size: 0.93em;
  border: 1px solid rgba(200, 100, 100, 0.18);
}

/* ═══════════════════════════════════════
   属性选择器分区标签
   ═══════════════════════════════════════ */

ai p[t]::before {
  display: block;
  font-size: 0.7em;
  color: #9a8878;
  letter-spacing: 3px;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px dotted rgba(160, 140, 115, 0.25);
}

p[t="基础"]::before { content: "┈ 基础信息 ┈"; }
p[t="外貌"]::before { content: "┈ 容貌体态 ┈"; }
p[t="私密"]::before { content: "┈ 私密描述 ┈"; }
p[t="状态"]::before { content: "┈ 当前状态 ┈"; }
p[t="情欲"]::before { content: "┈ 情欲指数 ┈"; }
p[t="感知"]::before { content: "┈ 感官知觉 ┈"; }
p[t="经验"]::before { content: "┈ 闺房经验 ┈"; }
p[t="物品"]::before { content: "┈ 随身之物 ┈"; }
p[t="阳物"]::before { content: "┈ 阳物详情 ┈"; }
p[t="行动"]::before { content: "┈ 行动策略 ┈"; }
p[t="内心"]::before { content: "┈ 内心独白 ┈"; }
p[t="进度"]::before { content: "┈ 当前进度 ┈"; }
p[t="本次"]::before { content: "┈ 本次探索 ┈"; }
p[t="已知"]::before { content: "┈ 已知敏感 ┈"; }
p[t="玩法"]::before { content: "┈ 玩法解锁 ┈"; }
p[t="变化"]::before { content: "┈ 数值变动 ┈"; }
p[t="请教"]::before { content: "┈ 请教对象 ┈"; }
p[t="建议"]::before { content: "┈ 损友建议 ┈"; }
p[t="领悟"]::before { content: "┈ 领悟程度 ┈"; }
p[t="待实践"]::before { content: "┈ 待实践 ┈"; }

ai p[t] {
  margin: 6px 0;
  padding: 6px 0;
}

/* 情欲进度条 */
p[t="情欲"][lv] {
  position: relative;
  padding-left: 4px;
}

p[t="情欲"][lv]::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: linear-gradient(90deg, #c08080 0%, #d4828a 60%, #e0a0a0 100%);
  opacity: 0.4;
}

/* ═══════════════════════════════════════
   思维链
   ═══════════════════════════════════════ */

/* 如需隐藏思维链，取消下行注释 */
/* ai > details:first-child { display: none; } */

ai > details:first-child {
  border-color: rgba(180, 160, 140, 0.15);
  background: rgba(245, 240, 232, 0.4);
}

ai > details:first-child::after {
  content: "💭" !important;
  color: rgba(160, 140, 120, 0.12) !important;
}

ai > details:first-child summary {
  font-size: 0.82em;
  color: #8a7a68;
  letter-spacing: 1px;
}

ai > details:first-child > p,
ai > details:first-child > div {
  font-size: 0.83em;
  color: #7a6a58;
  font-style: italic;
  padding: 8px 14px;
}

/* ═══════════════════════════════════════
   全局装饰与细节
   ═══════════════════════════════════════ */

/* 滚动条 */
ai ::-webkit-scrollbar {
  width: 4px;
}

ai ::-webkit-scrollbar-track {
  background: transparent;
}

ai ::-webkit-scrollbar-thumb {
  background: rgba(180, 155, 125, 0.25);
  border-radius: 4px;
}

ai ::-webkit-scrollbar-thumb:hover {
  background: rgba(180, 155, 125, 0.4);
}