/* ============================================
   《地下星光》回复格式 CSS 美化 v3.3
   修复：正文背景不显示——.text-body 优先
   ============================================ */

.think {
    display: none !important;
}

/* ===== 顶部状态栏 ===== */
.status-bar-top {
    background: linear-gradient(180deg, #0d0d0d 0%, #141414 100%);
    border: 1px solid #2a1f1f;
    border-top: 2px solid #5c2a2a;
    border-radius: 6px;
    padding: 18px 24px;
    margin-bottom: 24px;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.9rem;
    color: #b0a095;
    letter-spacing: 0.06em;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.5), 0 0 0 1px rgba(60,30,25,0.2);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 6px 0;
    flex-wrap: wrap;
}

.status-row:first-child { margin-bottom: 4px; }

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.status-item .icon { font-size: 1rem; }

.status-bar-top .highlight {
    color: #d4b8a8;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ===== 正文区域 ===== */
.text-body {
    display: block;
    background: #0f0f0f;
    border: 1px solid #1f1818;
    border-radius: 6px;
    padding: 28px 24px;
    margin: 0 0 24px;
}

.text-body p {
    font-family: "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
    font-size: 1rem;
    line-height: 2;
    color: #d4c8bc;
    margin-bottom: 18px;
    text-indent: 2em;
    letter-spacing: 0.04em;
}

.text-body p span[style*="color:#A9A9A9"] {
    color: #e0c8b8 !important;
    font-weight: 600;
    letter-spacing: 0.07em;
    animation: dialogue-tremble 0.4s infinite steps(3);
}

@keyframes dialogue-tremble {
    0%,100%{transform:translate(0,0)} 25%{transform:translate(-0.5px,0.3px)} 50%{transform:translate(0.4px,-0.3px)} 75%{transform:translate(-0.3px,-0.4px)}
}

.text-body p span[style*="color:#808080"] {
    color: #8a7568 !important;
    font-style: italic;
    font-size: 0.9rem;
}

/* ===== 底部状态栏 ===== */
.status-bar-bottom {
    margin-top: 24px;
    border: 1px solid #2a1f1f;
    border-radius: 6px;
    background: #0f0f0f;
    overflow: hidden;
}

.status-card {
    border-bottom: 1px solid rgba(42,31,31,0.5);
    background: #111;
}

.status-card:last-child { border-bottom: none; }
.status-card[open] { background: #141414; }

.status-card summary {
    padding: 16px 22px;
    font-family: "Noto Sans SC", sans-serif;
    font-size: 0.9rem;
    color: #a09085;
    letter-spacing: 0.12em;
    cursor: pointer;
    list-style: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.status-card summary::-webkit-details-marker { display: none; }

.status-card summary::before {
    content: '▶';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: #5c2a2a;
    transition: transform 0.25s;
}

.status-card[open] summary::before { transform: translateY(-50%) rotate(90deg); }
.status-card summary:hover { color: #c0a898; border-left-color: #5c2a2a; background: #161616; }
.status-card[open] summary { border-left-color: #8b3a3a; color: #d4b8a8; background: #181818; }

.profile-content {
    padding: 20px 24px;
    font-size: 0.9rem;
    color: #c0b0a0;
    line-height: 1.8;
}

.profile-content p { margin-bottom: 8px; }

.profile-content .label {
    color: #8a7a6e;
    font-family: "Noto Sans SC", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.profile-content .value { color: #d4b8a8; font-weight: 700; }
.profile-content .highlight { color: #d4b8a8; font-weight: 600; }

/* 关键信息框 */
.profile-content p:first-child,
.profile-content p:nth-child(2) {
    background: #0a0a0a;
    border: 1px solid #2a1f1f;
    border-left: 3px solid #5c2a2a;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.profile-content p:has(.value) {
    background: #0f0f0f;
    border: 1px solid #221a1a;
    border-radius: 4px;
    padding: 8px 14px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg,transparent,rgba(92,42,42,0.5),transparent);
    margin: 14px 0;
}

.profile-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,transparent,rgba(92,42,42,0.4),transparent);
    margin: 14px 0;
}

/* PTSD进度条 */
.progress-container { margin: 10px 0 14px; }

.progress-label {
    font-size: 0.8rem;
    color: #a09085;
    font-family: "Noto Sans SC", sans-serif;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: #0a0a0a;
    border: 1px solid #2a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#3a1515,#5c1a1a 30%,#8b2020 60%,#a02020);
    border-radius: 3px;
    transition: width 0.5s;
    animation: progress-pulse 1.5s infinite;
}

@keyframes progress-pulse { 0%,100%{opacity:1} 50%{opacity:0.85} }

/* 列表 */
.clothing-list,
.body-state-list {
    list-style: none;
    padding-left: 0;
    margin: 6px 0;
}

.clothing-list li,
.body-state-list li {
    padding: 5px 0 5px 18px;
    font-size: 0.88rem;
    color: #b0a090;
    background: #0a0a0a;
    border-radius: 3px;
    margin-bottom: 3px;
}

.clothing-list li::before,
.body-state-list li::before {
    content: '—';
    position: absolute;
    left: 4px;
    color: #5c2a2a;
}

/* 记忆卡片 */
.memory-card { background: #0d0d0d !important; }

.memory-card p {
    font-size: 0.85rem !important;
    color: #c0b0a0 !important;
    line-height: 1.7 !important;
    padding: 5px 20px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.memory-card p b {
    color: #a09085 !important;
    font-family: "Noto Sans SC", sans-serif !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
}

.memory-card hr {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(90deg,transparent,rgba(92,42,42,0.4),transparent) !important;
    margin: 10px 20px !important;
}

.memory-card p:first-of-type {
    border-bottom: 1px solid rgba(92,42,42,0.3) !important;
    padding-bottom: 10px !important;
}

/* 行动抉择 */
.status-card:last-child .profile-content p {
    padding: 10px 16px;
    margin: 8px 0;
    border-left: 4px solid #2a1f1f;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #b0a090;
    background: #0f0f0f;
    font-size: 0.9rem;
}

.status-card:last-child .profile-content p:hover {
    border-left-color: #5c2a2a;
    background: #141414;
    color: #d4c8bc;
    padding-left: 20px;
}

.status-card:last-child .profile-content p[data-option="A"] { border-left-color: #4a1010; }
.status-card:last-child .profile-content p[data-option="B"] { border-left-color: #1a3a1a; }
.status-card:last-child .profile-content p[data-option="C"] { border-left-color: #1a1a4a; }
.status-card:last-child .profile-content p[data-option="D"] { border-left-color: #4a1a0a; }

.status-card:last-child .profile-content p[data-option="A"]:hover { border-left-color:#8b2020; box-shadow:inset 0 0 12px rgba(100,20,20,0.2); }
.status-card:last-child .profile-content p[data-option="B"]:hover { border-left-color:#3a6a3a; box-shadow:inset 0 0 12px rgba(20,60,20,0.15); }
.status-card:last-child .profile-content p[data-option="C"]:hover { border-left-color:#3a3a8a; box-shadow:inset 0 0 12px rgba(20,20,80,0.15); }
.status-card:last-child .profile-content p[data-option="D"]:hover { border-left-color:#8b3a1a; box-shadow:inset 0 0 12px rgba(100,30,10,0.25); }

@media (max-width: 640px) {
    .status-row { gap: 14px; }
    .status-bar-top { padding: 14px 16px; font-size: 0.82rem; }
    .text-body { padding: 20px 16px; }
    .text-body p { font-size: 0.9rem; text-indent: 1.5em; }
    .profile-content { padding: 14px 16px; font-size: 0.82rem; }
    .status-card summary { padding: 14px 16px; font-size: 0.82rem; }
    .memory-card p { padding: 5px 14px !important; }
}