/* 精准隐藏AI的思维链标签，确保玩家视觉美观 */
think {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

/* ==========================================================================
   【A市风云·豪门黑金主题】内置CSS美化
   ========================================================================== */

/* 1. 隐藏AI的内部思维链，确保玩家视觉纯净 */
think {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

/* 2. 顶部状态栏美化（时间、地点、天气） */
status {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #8c7b6e; /* 优雅的古铜灰 */
    background: rgba(184, 151, 90, 0.05); /* 极淡的金箔色背景 */
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(184, 151, 90, 0.15); /* 细金边 */
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 3. 小说正文排版美化 */
text {
    display: block;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2c3e50; /* 深邃石墨蓝，比纯黑更具高级感 */
    letter-spacing: 0.8px;
    margin-bottom: 24px;
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 限制在text标签内的段落，实现小说式的首行缩进，且不污染平台其他P标签 */
text p {
    margin-bottom: 14px;
    text-indent: 2em; /* 首行缩进两格 */
    text-align: justify; /* 两端对齐，排版更整齐 */
}

/* 4. 底部NPC/玩家折叠状态栏美化 */
details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #b8975a; /* 傅家标志性的香槟金立柱 */
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 当折叠框被玩家点击展开时的状态 */
details[open] {
    box-shadow: 0 6px 16px rgba(184, 151, 90, 0.12); /* 散发淡淡的金金色光芒 */
    border-color: #b8975a;
    background: #fcfbfa; /* 稍微变暖的背景色 */
}

/* 折叠框标题栏（Summary） */
summary {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a365d; /* 沉稳的深海蓝 */
    cursor: pointer;
    outline: none;
    user-select: none;
    padding: 2px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 兼容不同浏览器的折叠箭头颜色 */
summary::-webkit-details-marker {
    color: #b8975a; /* 箭头变金色 */
}

/* 5. 折叠框内部详细条目美化 */
details ul, details p, details li {
    margin: 8px 0 0 0;
    font-size: 0.88rem;
    color: #4a5568; /* 柔和的深灰 */
    line-height: 1.6;
    list-style-type: none; /* 去掉丑陋的默认圆点 */
    padding-left: 4px;
    border-bottom: 1px dashed #edf2f7; /* 条目间虚线分割 */
    padding-bottom: 6px;
}

/* 去掉最后一个条目的虚线 */
details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* 6. 特殊数值高亮（数值系统中的好感、愧疚、敌意等） */
details li strong, 
details li em {
    color: #b8975a; /* 数值统一使用香槟金高亮 */
    font-weight: bold;
    font-style: normal;
}

/* 7. 角色对话/台词专属美化 */
speech {
    color: #9c7c5d !important; /* 优雅的暮色古铜金，与旁白完美区分 */
    font-weight: 550; /* 稍微加粗，让台词更具存在感 */
    font-style: normal;
    transition: color 0.3s ease;
}

/* 鼠标悬停在台词上时会有微弱的亮化效果（PC端友好） */
speech:hover {
    color: #b8975a !important; /* 悬停时变为亮香槟金 */
}