css
/* Kakegurui - Royal Flush UI Engine */
ai {
    display: block;
    font-family: 'PingFang SC', 'Microsoft YaHei', serif;
    background: #1a1a1a; /* 外部底色：玄漆 */
    color: #eee;
    padding: 8px;
    border: 3px double #d4af37; /* 金色双边框 */
    border-radius: 4px;
    margin: 10px 0;
}

/* 正文区域包裹 */
ai article {
    display: block;
    background: #fffcf5; /* 象牙白：阅读区 */
    color: #1a1a1a !important; /* 纯黑正文 */
    padding: 15px;
    margin: 10px 0;
    border-left: 5px solid #d40000;
    line-height: 1.8;
    font-size: 16px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
    border-radius: 2px;
}

/* 折叠容器通用样式 */
ai details {
    margin-bottom: 6px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

ai details[open] {
    border-color: #d40000;
    box-shadow: 0 0 10px rgba(212, 0, 0, 0.3);
}

/* 标题栏样式 */
ai summary {
    padding: 10px 15px;
    background: linear-gradient(90deg, #8b0000, #d40000); /* 绯红渐变 */
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    outline: none;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d4af37;
}

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

/* 各板块花色前缀 */
ai details[t="info"] summary::before { content: "🎲 "; margin-right: 8px; }
ai details[t="player"] summary::before { content: "♠ "; margin-right: 8px; color: #fff; }
ai details[t="target"] summary::before { content: "♥ "; margin-right: 8px; color: #fff; }
ai details[t="memory"] summary::before { content: "♣ "; margin-right: 8px; color: #fff; }
ai details[t="action"] summary::before { content: "♦ "; margin-right: 8px; color: #fff; }

/* 内部行布局 */
ai row {
    display: flex;
    flex-wrap: wrap;
    padding: 6px 12px;
    border-bottom: 1px solid #333;
    align-items: center;
    font-size: 14px;
    gap: 8px;
}

ai row[t="sub"] {
    background: #333;
    color: #d4af37;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 标签与数值 */
ai f { color: #ff4d4d; font-weight: bold; margin-right: 4px; }
ai v { color: #fff; }

/* 赌术筹码样式 */
ai row[t="skill"] v {
    background: #444;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #d4af37;
    font-size: 12px;
    color: #d4af37;
    margin: 2px 0;
}

/* 心声样式 */
ai row[t="thought"] v {
    font-style: italic;
    color: #ff9999;
    line-height: 1.5;
}

/* 记忆区表格美化 */
ai details[t="memory"] table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 12px;
    background: #1a1a1a;
}

ai details[t="memory"] th {
    background: #d40000;
    color: white;
    padding: 6px;
    border: 1px solid #444;
}

ai details[t="memory"] td {
    border: 1px solid #444;
    padding: 6px;
    color: #ccc;
}

/* 行动推荐美化 */
ai details[t="action"] row {
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid #333;
    padding: 10px 15px;
}

ai details[t="action"] row:hover {
    background: rgba(212, 0, 0, 0.2);
    color: #fff;
    padding-left: 20px;
}

/* 响应式优化 */
@media (max-width: 600px) {
    ai article { font-size: 15px; padding: 12px; }
    ai row { gap: 4px; }
}