/* 动态现实世界 CSS 样式 */

/* =========================================================
   动态现实世界 · 现实档案卡片风
   约束：
   - 不改 HTML，只适配现有自定义标签结构
   - 整体页面背景使用米白色
   - 字号最小 13.5px，正文默认 13.5px
   - 电脑端更美观，手机端完整展示
   - 角色行动与既定事实使用折叠信息卡
   - 财务信息 finance 与内心信息 mind 使用卡片形式
   ========================================================= */

:root {
  --rw-page: #f3eadc;
  --rw-card: #fff8ec;
  --rw-card-soft: #fff2df;
  --rw-card-warm: #ffefd1;
  --rw-text: #24211d;
  --rw-muted: #6d665e;
  --rw-faint: #9a9288;
  --rw-border: rgba(116, 82, 38, 0.24);
  --rw-border-strong: rgba(116, 82, 38, 0.34);
  --rw-shadow: rgba(20, 16, 12, 0.08);
  --rw-shadow-soft: rgba(20, 16, 12, 0.045);
  --rw-blue: #5f7084;
  --rw-blue-soft: #e6edf2;
  --rw-green: #687852;
  --rw-green-soft: #e8efdc;
  --rw-gold: #936d34;
  --rw-gold-soft: #fff0d0;
  --rw-red: #925f4f;
  --rw-red-soft: #f2ddd5;
  --rw-purple: #71617d;
  --rw-purple-soft: #ece5ef;
  --rw-gray-soft: #f4eadc;
  --rw-radius-lg: 14px;
  --rw-radius-md: 11px;
  --rw-radius-sm: 8px;
  --rw-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --rw-mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 10px;
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 252, 244, 0.8), transparent 28rem),
    linear-gradient(180deg, #f8f0e2 0%, var(--rw-page) 100%);
  color: var(--rw-text);
  font-family: var(--rw-font);
  font-size: 13.5px;
  line-height: 1.65;
}

settings,
intent-check,
scene,
text,
hook,
facts,
character,
PHOTO_STATUS,
RENTAL_STATUS,
recommend,
finance,
mind,
age,
birth,
identity,
job,
background,
activity,
appearance,
clothing,
personality,
sexual-privacy,
relationship,
known,
choice,
item {
  display: block;
}

/* =========================================================
   通用外层卡片
   ========================================================= */
settings,
intent-check,
scene,
text,
hook,
facts,
character,
PHOTO_STATUS,
RENTAL_STATUS,
recommend {
  width: 100%;
  margin: 0 0 8px;
  border: 1px solid rgba(116, 82, 38, 0.22);
  border-radius: var(--rw-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12) 42%),
    linear-gradient(135deg, #fff8ec 0%, #f9e5c4 100%);
  color: var(--rw-text);
  box-shadow:
    0 4px 12px rgba(82, 55, 24, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.78);
  overflow: hidden;
}

settings::before,
scene::before,
text::before,
hook::before,
facts::before,
character::before,
PHOTO_STATUS > details > summary,
RENTAL_STATUS > details > summary,
recommend::before {
  display: block;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(116, 82, 38, 0.18);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.66), rgba(255,255,255,0.08)),
    linear-gradient(180deg, #fff3dd, #edd4aa);
  color: #6d4d24;
  font-size: 13.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

settings::before { content: "系统状态"; }
scene::before { content: "当前场景"; }
text::before { content: "正文"; }
hook::before { content: "角色行动清单"; }
character::before { content: "人物档案"; }
recommend::before { content: "下一步可选行动"; }

/* =========================================================
   settings 系统开关
   ========================================================= */
settings {
  padding: 0 10px 10px;
}

settings span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 8px 6px 0 0;
  padding: 3px 10px;
  border: 1px solid rgba(116, 82, 38, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.18)),
    #f6dfba;
  color: var(--rw-muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

/* =========================================================
   scene 当前场景
   电脑端三格，手机端竖排
   ========================================================= */
scene {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr) minmax(0, 1.45fr);
  gap: 8px;
  padding: 0 10px 10px;
}

scene::before {
  grid-column: 1 / -1;
  margin: 0 -10px;
}

scene span {
  position: relative;
  display: block;
  min-height: 62px;
  padding: 26px 11px 10px;
  border: 1px solid rgba(116, 82, 38, 0.26);
  border-left-width: 4px;
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.16)),
    #f7e2bd;
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}

scene span::before {
  position: absolute;
  left: 10px;
  top: 7px;
  color: #77582d;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
}

scene .time {
  border-left: 4px solid var(--rw-blue);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.12)),
    var(--rw-blue-soft);
  font-family: var(--rw-mono);
  font-weight: 750;
}

scene .time::before { content: "时间"; }

scene .weather {
  border-left: 4px solid var(--rw-gold);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.12)),
    #f8e6bd;
  font-weight: 750;
}

scene .weather::before { content: "天气"; }

scene .place {
  border-left: 4px solid var(--rw-green);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.12)),
    var(--rw-green-soft);
  font-weight: 750;
}

scene .place::before { content: "地点"; }

/* =========================================================
   details 通用样式
   ========================================================= */
details {
  display: block;
}

details > summary {
  cursor: pointer;
  display: block;
  position: relative;
  min-height: 42px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(116, 82, 38, 0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.08)),
    linear-gradient(180deg, #fff4df, #ead0a6);
  color: #61461f;
  font-size: 13.5px;
  font-weight: 850;
  letter-spacing: 0.02em;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::before {
  content: "▸";
  display: inline-block;
  width: 18px;
  color: #6f4d20;
  font-size: 13.5px;
  font-weight: 900;
}

details[open] > summary::before {
  content: "▾";
}

/* =========================================================
   intent-check 玩家意图检查
   ========================================================= */
intent-check {
  border-left: 4px solid var(--rw-purple);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.06)),
    var(--rw-purple-soft);
}

intent-check details {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 13.5px;
  line-height: 1.7;
}

intent-check summary {
  margin: 0;
  border-bottom-color: rgba(123, 106, 130, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.04)),
    var(--rw-purple-soft);
  color: var(--rw-purple);
}

intent-check details[open] {
  padding: 0 10px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.06)),
    var(--rw-purple-soft);
}

intent-check details[open] > summary {
  margin: 0 -10px 8px;
}

intent-check details[open] > summary ~ * {
  display: block;
  padding: 9px 11px;
  border: 1px solid rgba(116, 82, 38, 0.26);
  border-left: 4px solid var(--rw-purple);
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    var(--rw-purple-soft);
  color: var(--rw-text);
}

/* =========================================================
   text 正文
   ========================================================= */
text {
  padding: 0 17px 16px;
  border-color: rgba(116, 82, 38, 0.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.18)),
    #fff8ec;
  box-shadow:
    0 5px 15px rgba(82, 55, 24, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

text::before {
  margin: 0 -17px;
  color: var(--rw-gold);
}

text p {
  margin: 0.75em 0 0;
  text-indent: 2em;
}

text p:first-child {
  margin-top: 11px;
}

/* =========================================================
   hook 角色行动清单
   ========================================================= */
hook,
facts {
  padding: 0;
  border-left: 4px solid var(--rw-red);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.1)),
    var(--rw-red-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

hook::before,
facts::before {
  content: none;
}

hook details,
facts details {
  margin: 0;
  padding: 0;
}

hook details > summary,
facts details > summary {
  margin: 0;
  color: var(--rw-red);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.1)),
    var(--rw-red-soft);
}

hook details[open],
facts details[open] {
  padding: 0 10px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.06)),
    var(--rw-red-soft);
}

hook details[open] > summary,
facts details[open] > summary {
  margin: 0 -10px 8px;
}

hook br,
facts br {
  display: block;
  content: "";
  margin: 7px 0;
}

/* =========================================================
   character 人物档案
   ========================================================= */
character {
  padding: 0 10px 10px;
}

character::before {
  margin: 0 -10px 8px;
  color: var(--rw-blue);
}

character > details {
  margin: 0 0 8px;
  border: 1px solid rgba(116, 82, 38, 0.3);
  border-radius: var(--rw-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.12)),
    #fff1d8;
  box-shadow:
    0 4px 12px rgba(82, 55, 24, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.76);
  overflow: hidden;
}

character > details:last-child {
  margin-bottom: 0;
}

character > details > summary {
  border-bottom-color: rgba(95, 112, 132, 0.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.04)),
    var(--rw-blue-soft);
  color: var(--rw-blue);
}

character > details > summary presence,
character > details > summary .presence_badge {
  float: right;
  margin-left: 8px;
  padding: 2px 9px;
  border: 1px solid rgba(116, 82, 38, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.18)),
    var(--rw-blue-soft);
  color: var(--rw-blue);
  font-size: 13.5px;
  font-weight: 850;
}

character > details > summary presence::before,
character > details > summary .presence_badge::before {
  content: "存在感 ";
}

character > details[open] {
  padding-bottom: 8px;
}

character > details[open] > summary {
  margin-bottom: 8px;
}

/* 年龄/生日、身份/职业双字段 */
.two-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 8px 8px;
}

.two-grid > age,
.two-grid > birth,
.two-grid > identity,
.two-grid > job {
  min-height: 58px;
  padding: 25px 10px 9px;
  border: 1px solid rgba(116, 82, 38, 0.34);
  border-left: 4px solid #8a673a;
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.12)),
    #f8e2bb;
  color: var(--rw-text);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.two-grid > age::before,
.two-grid > birth::before,
.two-grid > identity::before,
.two-grid > job::before {
  position: absolute;
  left: 10px;
  top: 7px;
  color: #77582d;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1;
}

age::before { content: "年龄"; }
birth::before { content: "生日"; }
identity::before { content: "身份"; }
job::before { content: "职业"; }

/* 人物字段卡片 */
background,
activity,
appearance,
clothing,
personality,
sexual-privacy,
relationship,
known,
mind,
finance {
  position: relative;
  margin: 0 8px 8px;
  padding: 34px 11px 10px;
  border: 1px solid rgba(116, 82, 38, 0.3);
  border-left: 4px solid #8a673a;
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.12)),
    #f9e7c8;
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.7;
  word-break: break-word;
}

background::before,
activity::before,
appearance::before,
clothing::before,
personality::before,
sexual-privacy::before,
relationship::before,
known::before,
mind::before,
finance::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 7px 11px;
  border-bottom: 1px solid rgba(116, 82, 38, 0.24);
  border-radius: var(--rw-radius-md) var(--rw-radius-md) 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1)),
    #efd3a7;
  color: #68491f;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.2;
}

background::before { content: "背景设定"; }
activity::before { content: "当前活动"; }
appearance::before { content: "外貌形象"; }
clothing::before { content: "衣着穿搭"; }
personality::before { content: "人格基准"; }
sexual-privacy::before { content: "隐私状态"; }
relationship::before { content: "关系信息"; }
known::before { content: "已知信息"; }
mind::before { content: "内心信息"; }
finance::before { content: "财务信息"; }

personality::before,
mind::before {
  color: var(--rw-purple);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.04)),
    var(--rw-purple-soft);
}

finance::before {
  color: var(--rw-green);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.04)),
    var(--rw-green-soft);
}

relationship::before {
  color: var(--rw-red);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.04)),
    var(--rw-red-soft);
}

known::before {
  color: var(--rw-blue);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.04)),
    var(--rw-blue-soft);
}

personality {
  border-left: 4px solid var(--rw-purple);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.08)),
    var(--rw-purple-soft);
  font-family: var(--rw-mono);
}

mind {
  border-left: 4px solid var(--rw-purple);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.08)),
    var(--rw-purple-soft);
}

mind item,
finance item {
  display: block;
  position: relative;
  margin: 0 0 7px;
  padding: 7px 9px 7px 86px;
  border: 1px solid rgba(116, 82, 38, 0.18);
  border-radius: var(--rw-radius-sm);
  background: rgba(255,255,255,0.38);
  color: var(--rw-text);
  line-height: 1.62;
  word-break: break-word;
}

mind item:last-child,
finance item:last-child {
  margin-bottom: 0;
}

mind item > b,
finance item > b {
  position: absolute;
  left: 9px;
  top: 7px;
  width: 68px;
  color: var(--rw-muted);
  font-weight: 850;
  white-space: nowrap;
}

mind item {
  border-color: rgba(113, 97, 125, 0.24);
  background: rgba(255,255,255,0.36);
}

mind item > b {
  color: var(--rw-purple);
}

finance item {
  border-color: rgba(104, 120, 82, 0.25);
  background: rgba(255,255,255,0.34);
}

finance item > b {
  color: var(--rw-green);
}

relationship {
  border-left: 4px solid var(--rw-red);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.08)),
    var(--rw-red-soft);
}

known {
  border-left: 4px solid var(--rw-blue);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.08)),
    var(--rw-blue-soft);
}

finance {
  border-left: 4px solid var(--rw-green);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.08)),
    var(--rw-green-soft);
  font-family: var(--rw-mono);
}

.yulong-status {
  position: relative;
  display: block;
  margin: 0 8px 8px;
  padding: 34px 11px 10px;
  border: 1px solid rgba(113, 97, 125, 0.3);
  border-left: 4px solid var(--rw-purple);
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    var(--rw-purple-soft);
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.7;
  word-break: break-word;
  box-shadow:
    0 2px 7px rgba(82, 55, 24, 0.045),
    inset 0 1px 0 rgba(255,255,255,0.68);
}

.yulong-status::before {
  content: "权限身份";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 7px 11px;
  border-bottom: 1px solid rgba(113, 97, 125, 0.24);
  border-radius: var(--rw-radius-md) var(--rw-radius-md) 0 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.08)),
    #ded2e6;
  color: var(--rw-purple);
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.2;
}

.yulong-status item {
  display: block;
  position: relative;
  margin: 0 0 7px;
  padding: 7px 9px 7px 96px;
  border: 1px solid rgba(113, 97, 125, 0.24);
  border-radius: var(--rw-radius-sm);
  background: rgba(255,255,255,0.42);
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.62;
  word-break: break-word;
}

.yulong-status item:last-child {
  margin-bottom: 0;
}

.yulong-status item > b {
  position: absolute;
  left: 9px;
  top: 7px;
  width: 78px;
  color: var(--rw-purple);
  font-weight: 900;
  white-space: nowrap;
}

/* =========================================================
   hr 分割线：细线 + 中心档案点，适用于财务等区域
   ========================================================= */
hr,
finance hr,
section hr {
  height: 18px;
  margin: 10px 0;
  border: 0;
  background:
    radial-gradient(circle, rgba(138, 103, 58, 0.72) 0 2px, transparent 2.6px) center / 8px 8px no-repeat,
    radial-gradient(circle, rgba(138, 103, 58, 0.32) 0 1.5px, transparent 2px) calc(50% - 18px) center / 7px 7px no-repeat,
    radial-gradient(circle, rgba(138, 103, 58, 0.32) 0 1.5px, transparent 2px) calc(50% + 18px) center / 7px 7px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(138, 103, 58, 0.1) 16%, rgba(138, 103, 58, 0.46) 50%, rgba(138, 103, 58, 0.1) 84%, transparent 100%) center / 100% 1px no-repeat;
}

finance hr {
  background:
    radial-gradient(circle, rgba(79, 123, 85, 0.74) 0 2px, transparent 2.6px) center / 8px 8px no-repeat,
    radial-gradient(circle, rgba(79, 123, 85, 0.32) 0 1.5px, transparent 2px) calc(50% - 18px) center / 7px 7px no-repeat,
    radial-gradient(circle, rgba(79, 123, 85, 0.32) 0 1.5px, transparent 2px) calc(50% + 18px) center / 7px 7px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(79, 123, 85, 0.1) 16%, rgba(79, 123, 85, 0.46) 50%, rgba(79, 123, 85, 0.1) 84%, transparent 100%) center / 100% 1px no-repeat;
}

/* =========================================================
   PHOTO_STATUS 约拍摄影状态
   ========================================================= */
PHOTO_STATUS {
  padding: 0;
  border-left: 4px solid var(--rw-gold);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.1)),
    var(--rw-gold-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

PHOTO_STATUS > details {
  margin: 0;
  padding: 0;
}

PHOTO_STATUS > details > summary {
  margin: 0;
  color: var(--rw-gold);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.1)),
    var(--rw-gold-soft);
}

PHOTO_STATUS > details[open] {
  padding: 0 10px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.06)),
    var(--rw-gold-soft);
}

PHOTO_STATUS > details[open] > summary {
  margin: 0 -10px 8px;
}

PHOTO_STATUS section {
  display: block;
  margin: 8px 10px 10px;
  padding: 10px 11px;
  border: 1px solid rgba(147, 109, 52, 0.26);
  border-left: 4px solid var(--rw-gold);
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #fff4df;
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.68;
  word-break: break-word;
}

PHOTO_STATUS item {
  display: block;
  position: relative;
  margin: 0 0 7px;
  padding: 7px 9px 7px 86px;
  border: 1px solid rgba(147, 109, 52, 0.22);
  border-radius: var(--rw-radius-sm);
  background: rgba(255,255,255,0.42);
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.62;
  word-break: break-word;
}

PHOTO_STATUS item:last-child {
  margin-bottom: 0;
}

PHOTO_STATUS item > b {
  position: absolute;
  left: 9px;
  top: 7px;
  width: 68px;
  color: var(--rw-gold);
  font-weight: 900;
  white-space: nowrap;
}

/* =========================================================
   RENTAL_STATUS 房东租客状态
   ========================================================= */
RENTAL_STATUS {
  padding: 0;
  border-left: 4px solid var(--rw-green);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.1)),
    var(--rw-green-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

RENTAL_STATUS > details {
  margin: 0;
  padding: 0;
}

RENTAL_STATUS > details > summary {
  margin: 0;
  color: var(--rw-green);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.1)),
    var(--rw-green-soft);
}

RENTAL_STATUS > details[open] {
  padding: 0 10px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.06)),
    var(--rw-green-soft);
}

RENTAL_STATUS > details[open] > summary {
  margin: 0 -10px 8px;
}

RENTAL_STATUS section {
  display: block;
  margin: 8px 10px 10px;
  padding: 10px 11px;
  border: 1px solid rgba(104, 120, 82, 0.26);
  border-left: 4px solid var(--rw-green);
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #f0f6e6;
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.68;
  word-break: break-word;
}

RENTAL_STATUS section > b {
  display: block;
  margin: -2px -1px 9px;
  padding: 6px 9px;
  border: 1px solid rgba(104, 120, 82, 0.2);
  border-radius: var(--rw-radius-sm);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.14)),
    var(--rw-green-soft);
  color: var(--rw-green);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

RENTAL_STATUS item {
  display: block;
  position: relative;
  margin: 0 0 7px;
  padding: 7px 9px 7px 96px;
  border: 1px solid rgba(104, 120, 82, 0.22);
  border-radius: var(--rw-radius-sm);
  background: rgba(255,255,255,0.42);
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.62;
  word-break: break-word;
}

RENTAL_STATUS item:last-child {
  margin-bottom: 0;
}

RENTAL_STATUS item > b {
  position: absolute;
  left: 9px;
  top: 7px;
  width: 78px;
  color: var(--rw-green);
  font-weight: 900;
  white-space: nowrap;
}

/* =========================================================
   recommend 推荐行动
   ========================================================= */
recommend {
  padding: 0 10px 10px;
}

recommend::before {
  margin: 0 -10px 8px;
  color: var(--rw-gold);
}

recommend::after {
  content: "可回复“选项1 / 选项2 / 选项3”选择下一步行动，也可以直接输入自定义行动意图。";
  display: block;
  margin: 8px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(138, 103, 58, 0.28);
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #f4dfb6;
  color: #6d4d24;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.55;
}

recommend choice {
  position: relative;
  margin: 0 0 7px;
  padding: 10px 12px 10px 13px;
  border: 1px solid rgba(116, 82, 38, 0.28);
  border-left: 4px solid var(--rw-gold);
  border-radius: var(--rw-radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1)),
    #f8e4bb;
  color: var(--rw-text);
  font-size: 13.5px;
  line-height: 1.68;
  word-break: break-word;
}

recommend choice:nth-of-type(2) {
  border-left-color: var(--rw-blue);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1)),
    var(--rw-blue-soft);
}

recommend choice:nth-of-type(3) {
  border-left-color: var(--rw-green);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.1)),
    var(--rw-green-soft);
}

recommend choice:last-child {
  margin-bottom: 0;
}

recommend choice b {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--rw-gold);
  font-size: 13.5px;
  font-weight: 900;
}

recommend choice:nth-of-type(2) b { color: var(--rw-blue); }
recommend choice:nth-of-type(3) b { color: var(--rw-green); }

recommend br {
  display: block;
  content: "";
  margin: 5px 0;
}

/* =========================================================
   通用文本元素
   ========================================================= */
b {
  font-weight: 850;
}

::selection {
  background: rgba(138, 103, 58, 0.18);
}

/* =========================================================
   手机端：完整展示，全部单列，减少阴影
   ========================================================= */
@media (max-width: 768px) {
  body {
    padding: 7px;
    font-size: 13.5px;
    line-height: 1.62;
  }

  settings,
  intent-check,
  scene,
  text,
  hook,
  facts,
  character,
  PHOTO_STATUS,
  RENTAL_STATUS,
  recommend {
    margin-bottom: 7px;
    border-radius: 11px;
    box-shadow: 0 3px 10px rgba(82, 55, 24, 0.055);
  }

  settings::before,
  scene::before,
  text::before,
  hook::before,
  facts::before,
  character::before,
  PHOTO_STATUS > details > summary,
  RENTAL_STATUS > details > summary,
  recommend::before,
  details > summary {
    padding: 7px 10px;
  }

  settings {
    padding: 0 8px 8px;
  }

  settings span {
    width: 100%;
    margin: 6px 0 0;
    white-space: normal;
  }

  scene {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0 8px 8px;
  }

  scene::before {
    margin: 0 -8px;
  }

  scene span {
    min-height: auto;
    padding: 25px 9px 9px;
  }

  text {
    padding: 0 11px 11px;
    font-size: 13.5px;
    line-height: 1.72;
  }

  text::before {
    margin: 0 -11px;
  }

  text p {
    margin-top: 0.7em;
  }

  text p:first-child {
    margin-top: 9px;
  }

  character,
  recommend {
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 8px;
  }

  character::before,
  recommend::before {
    margin-left: -8px;
    margin-right: -8px;
  }

  hook,
  facts {
    padding: 0;
  }

  hook details[open],
  facts details[open] {
    padding: 0 8px 8px;
  }

  hook details[open] > summary,
  facts details[open] > summary {
    margin: 0 -8px 7px;
  }

  PHOTO_STATUS > details[open],
  RENTAL_STATUS > details[open] {
    padding: 0 8px 8px;
  }

  PHOTO_STATUS > details[open] > summary,
  RENTAL_STATUS > details[open] > summary {
    margin: 0 -8px 7px;
  }

  PHOTO_STATUS section,
  RENTAL_STATUS section {
    margin: 7px 8px 8px;
    padding: 9px 10px;
  }

  PHOTO_STATUS item,
  RENTAL_STATUS item {
    padding: 7px 8px 7px 86px;
  }

  PHOTO_STATUS item > b,
  RENTAL_STATUS item > b {
    left: 8px;
    width: 70px;
  }

  intent-check details[open] {
    padding: 0 8px 8px;
  }

  intent-check details[open] > summary {
    margin: 0 -8px 7px;
  }

  recommend::after {
    margin-top: 7px;
    padding: 7px 9px;
  }

  recommend choice {
    padding: 9px 10px;
  }

  character > details {
    margin-bottom: 7px;
    border-radius: 11px;
  }

  character > details[open] {
    padding-bottom: 7px;
  }

  character > details[open] > summary {
    margin-bottom: 7px;
  }

  character > details > summary presence,
  character > details > summary .presence_badge {
    float: none;
    display: inline-block;
    margin: 5px 0 0 18px;
  }

  .two-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0 7px 7px;
  }

  .two-grid > age,
  .two-grid > birth,
  .two-grid > identity,
  .two-grid > job {
    min-height: 56px;
    padding: 24px 9px 8px;
    font-size: 13.5px;
  }

  background,
  activity,
  appearance,
  clothing,
  personality,
  sexual-privacy,
  relationship,
  known,
  mind,
  finance,
  .yulong-status {
    margin: 0 7px 7px;
    padding: 32px 9px 9px;
  }

  .yulong-status::before {
    padding: 7px 9px;
  }

  .yulong-status item {
    padding: 7px 8px 7px 86px;
  }

  .yulong-status item > b {
    left: 8px;
    width: 70px;
  }

  hr,
  finance hr,
  section hr {
    margin: 6px 0;
  }
}

@media (max-width: 420px) {
  .two-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   统一折叠信息卡：玩家意图 / 角色行动 / 既定事实
   保持同一套卡片、按钮、颜色风格
   ========================================================= */
intent-check,
hook,
facts {
  padding: 0 !important;
  border: 1px solid rgba(124, 92, 52, 0.26) !important;
  border-left: 1px solid rgba(124, 92, 52, 0.26) !important;
  border-radius: var(--rw-radius-lg) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.08)),
    #f7e6c9 !important;
  box-shadow:
    0 4px 12px rgba(82, 55, 24, 0.075),
    inset 0 1px 0 rgba(255,255,255,0.72) !important;
  overflow: hidden;
}

intent-check > details,
hook > details,
facts > details {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

intent-check > details > summary,
hook > details > summary,
facts > details > summary {
  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(124, 92, 52, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.08)),
    linear-gradient(180deg, #fff0d4, #e7c28c) !important;
  color: #5f421d !important;
  font-size: 13.5px !important;
  font-weight: 850 !important;
  letter-spacing: 0.02em !important;
}

intent-check > details[open],
hook > details[open],
facts > details[open] {
  padding: 0 10px 10px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.05)),
    #f7e6c9 !important;
}

intent-check > details[open] > summary,
hook > details[open] > summary,
facts > details[open] > summary {
  margin: 0 -10px 8px !important;
}

@media (max-width: 768px) {
  intent-check > details[open],
  hook > details[open],
  facts > details[open] {
    padding: 0 8px 8px !important;
  }

  intent-check > details[open] > summary,
  hook > details[open] > summary,
  facts > details[open] > summary {
    margin: 0 -8px 7px !important;
  }
}

/* =========================================================
   统一人物字段卡片：同一框架，三组背景色
   ========================================================= */
background,
activity,
personality,
appearance,
clothing,
sexual-privacy,
mind,
finance,
relationship,
known {
  position: relative !important;
  margin: 0 8px 8px !important;
  padding: 34px 11px 10px !important;
  border: 1px solid rgba(116, 82, 38, 0.28) !important;
  border-left-width: 4px !important;
  border-left-style: solid !important;
  border-radius: var(--rw-radius-md) !important;
  color: var(--rw-text) !important;
  font-family: var(--rw-font) !important;
  font-size: 13.5px !important;
  line-height: 1.7 !important;
  word-break: break-word !important;
  box-shadow:
    0 2px 7px rgba(82, 55, 24, 0.045),
    inset 0 1px 0 rgba(255,255,255,0.68) !important;
}

background::before,
activity::before,
personality::before,
appearance::before,
clothing::before,
sexual-privacy::before,
mind::before,
finance::before,
relationship::before,
known::before {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  padding: 7px 11px !important;
  border-bottom: 1px solid rgba(116, 82, 38, 0.22) !important;
  border-radius: var(--rw-radius-md) var(--rw-radius-md) 0 0 !important;
  font-size: 13.5px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

/* 第一组：人格基准 / 背景设定 / 当前活动 */
background,
activity,
personality {
  border-left-color: #8a6332 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #fff1d8 !important;
}

background::before,
activity::before,
personality::before {
  color: #5f421d !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.08)),
    #ead0a6 !important;
}

/* 第二组：外貌形象 / 衣着穿搭 / 隐私状态 */
appearance,
clothing,
sexual-privacy {
  border-left-color: #8a5f55 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #f4ded7 !important;
}

appearance::before,
clothing::before,
sexual-privacy::before {
  color: #67463d !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.08)),
    #e7c6bb !important;
}

/* 第三组：内心信息 / 财务信息 / 关系信息 / 已知信息 */
mind,
finance,
relationship,
known {
  border-left-color: #5f7084 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #e7edf2 !important;
}

mind::before,
finance::before,
relationship::before,
known::before {
  color: #3f5166 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.08)),
    #d7e1e8 !important;
}

mind item,
finance item {
  display: block !important;
  position: relative !important;
  margin: 0 0 7px !important;
  padding: 7px 9px 7px 86px !important;
  border: 1px solid rgba(63, 81, 102, 0.22) !important;
  border-radius: var(--rw-radius-sm) !important;
  background: rgba(255,255,255,0.42) !important;
  color: var(--rw-text) !important;
  font-size: 13.5px !important;
  line-height: 1.62 !important;
  word-break: break-word !important;
}

mind item:last-child,
finance item:last-child {
  margin-bottom: 0 !important;
}

mind item > b,
finance item > b {
  position: absolute !important;
  left: 9px !important;
  top: 7px !important;
  width: 68px !important;
  color: #3f5166 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

/* =========================================================
   统一三个选项：同一框架，每个选项一种颜色
   ========================================================= */
recommend choice {
  position: relative !important;
  margin: 0 0 7px !important;
  padding: 10px 12px 10px 13px !important;
  border: 1px solid rgba(116, 82, 38, 0.26) !important;
  border-left-width: 4px !important;
  border-left-style: solid !important;
  border-radius: var(--rw-radius-md) !important;
  color: var(--rw-text) !important;
  font-size: 13.5px !important;
  line-height: 1.68 !important;
  word-break: break-word !important;
  box-shadow:
    0 2px 7px rgba(82, 55, 24, 0.045),
    inset 0 1px 0 rgba(255,255,255,0.68) !important;
}

recommend choice:nth-of-type(1) {
  border-left-color: #936d34 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #fff0d0 !important;
}

recommend choice:nth-of-type(2) {
  border-left-color: #5f7084 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #e6edf2 !important;
}

recommend choice:nth-of-type(3) {
  border-left-color: #687852 !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12)),
    #e8efdc !important;
}

recommend choice b {
  display: inline-block !important;
  margin-bottom: 6px !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
}

recommend choice:nth-of-type(1) b { color: #7a551d !important; }
recommend choice:nth-of-type(2) b { color: #43556c !important; }
recommend choice:nth-of-type(3) b { color: #4f623b !important; }

@media (max-width: 768px) {
  background,
  activity,
  personality,
  appearance,
  clothing,
  sexual-privacy,
  mind,
  finance,
  relationship,
  known {
    margin: 0 7px 7px !important;
    padding: 32px 9px 9px !important;
  }

  background::before,
  activity::before,
  personality::before,
  appearance::before,
  clothing::before,
  sexual-privacy::before,
  mind::before,
  finance::before,
  relationship::before,
  known::before {
    padding: 7px 9px !important;
  }

  recommend choice {
    padding: 9px 10px !important;
  }

  mind item,
  finance item {
    padding: 7px 8px 7px 76px !important;
  }

  mind item > b,
  finance item > b {
    left: 8px !important;
    width: 60px !important;
  }
}
/* =========================================================
   详细介绍页 · 手机端兼容静态版
   ========================================================= */
.rw-app {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 44px;
  background: #ede9df;
  color: #20201d;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
  box-sizing: border-box;
}

.rw-app * {
  box-sizing: border-box;
}

.rw-hero {
  background: #fdfbf4;
  border: 1px solid #20201d;
  box-shadow: 12px 12px 0 rgba(0,0,0,.18);
  padding: 28px;
  margin: 0 0 22px;
}

.rw-kicker {
  font-size: 12px;
  letter-spacing: .22em;
  color: #0f766e;
  font-weight: 900;
}

.rw-title {
  font-size: 42px;
  line-height: 1.12;
  margin: 14px 0 10px;
  font-weight: 900;
}

.rw-title span {
  color: #b45309;
}

.rw-lead {
  margin: 0;
  color: #57534e;
  max-width: 780px;
}

.rw-panel {
  background: #fffaf0;
  border: 1px solid #d7cfbd;
  padding: 22px;
  margin: 0 0 16px;
  box-shadow: 0 8px 24px rgba(67,56,42,.07);
}

.rw-panel.soft {
  background: #f8f4ea;
}

.rw-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #d7cfbd;
  padding-bottom: 12px;
}

.rw-section-title h2 {
  font-size: 26px;
  margin: 0;
  font-weight: 900;
}

.rw-section-title span {
  font-size: 13px;
  color: #78716c;
}

.rw-ribbon {
  display: inline-block;
  background: #0f766e;
  color: #fff;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

.rw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rw-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rw-card {
  border: 1px solid #ddd2bd;
  background: #fff;
  padding: 16px;
  min-height: 128px;
}

.rw-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.rw-card p {
  margin: 0 0 6px;
  color: #57534e;
  font-size: 14px;
}

.rw-card strong {
  color: #0f766e;
}

.rw-note {
  font-size: 13px;
  color: #57534e;
  background: #f4efe4;
  border-left: 4px solid #0f766e;
  padding: 10px 12px;
  margin: 12px 0;
}

.rw-warning {
  background: #fff7ed;
  border-left-color: #b45309;
}

.rw-steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rw-steps li {
  counter-increment: step;
  margin: 0 0 10px;
  padding: 12px 14px 12px 46px;
  background: #fff;
  border: 1px solid #ddd2bd;
  position: relative;
}

.rw-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
}

.rw-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-tag {
  display: inline-block;
  border: 1px solid #cfc6b4;
  background: #fff;
  color: #57534e;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.rw-tag.on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.rw-template {
  white-space: pre-wrap;
  background: #20201d;
  color: #fefce8;
  border: 1px solid #20201d;
  padding: 16px;
  overflow: auto;
  font-family: "Cascadia Code", "Fira Code", Consolas, "Microsoft YaHei", monospace;
  font-size: 13px;
  line-height: 1.65;
}

details.rw-fold {
  border: 1px solid #d7cfbd;
  background: #fff;
  margin: 0 0 12px;
}

details.rw-fold summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 900;
  background: #f4efe4;
  color: #292524;
}

details.rw-fold .rw-fold-body {
  padding: 14px;
}

.rw-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.rw-table th,
.rw-table td {
  border: 1px solid #ddd2bd;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.rw-table th {
  background: #f4efe4;
  color: #292524;
}

.rw-footer {
  font-size: 13px;
  color: #57534e;
  text-align: center;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .rw-app {
    padding: 12px 10px 28px;
  }

  .rw-hero {
    padding: 20px;
    box-shadow: 7px 7px 0 rgba(0,0,0,.16);
  }

  .rw-title {
    font-size: 32px;
  }

  .rw-grid,
  .rw-grid.two {
    grid-template-columns: 1fr;
  }

  .rw-panel {
    padding: 16px;
  }

  .rw-section-title {
    display: block;
  }

  .rw-section-title h2 {
    font-size: 22px;
  }

  .rw-template {
    font-size: 12.5px;
    max-height: none;
  }

  .rw-table {
    font-size: 13px;
  }

  .rw-table th,
  .rw-table td {
    padding: 8px;
  }

  .rw-steps li {
    padding-right: 10px;
  }
}