/* 容器：奶昔渐变背景 */
ai {
    display: block;
    background: linear-gradient(135deg, #fff9f5 0%, #fff0f3 100%);
    padding: 12px;
    border-radius: 24px;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    border: 2px solid #ffdde1;
    box-shadow: 0 10px 30px rgba(255, 182, 193, 0.2);
    margin: 10px 0;
    box-sizing: border-box;
}

/* ======================
   正文：已修复美化版
======================= */
ai article {
    display: block !important;
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 22px 24px !important;
    margin: 18px 0 !important;
    border-radius: 22px !important;
    color: #000 !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    letter-spacing: 0.02em !important;
    border: 1px solid rgba(255, 182, 193, 0.3) !important;
    border-left: 6px solid #ffb6c1 !important;
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.8),
        0 6px 20px rgba(255, 182, 193, 0.12) !important;
    transition: all 0.3s ease !important;
}

ai article:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.85),
        0 10px 25px rgba(255, 182, 193, 0.18) !important;
}

/* 状态栏通用样式：圆滑边框 */
ai details.st {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #ffdae0;
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

ai details.st[open] {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 192, 203, 0.15);
}

/* 折叠标题栏：樱花粉页签 */
ai summary {
    padding: 10px 15px;
    background: linear-gradient(90deg, #ffc0cb 0%, #ffdae0 100%);
    color: #d81b60;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
}

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

ai summary::before {
    content: '🍼';
    margin-right: 8px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.8));
}

/* 内部内容布局 */
ai section {
    padding: 12px;
}

/* 字段标签样式 */
ai f {
    font-weight: bold;
    color: #ec407a;
    background: rgba(236, 64, 122, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 4px;
    display: inline-block;
}

/* 数据行 */
ai d {
    display: block;
    margin: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed #ffe4e8;
    padding-bottom: 4px;
}

/* 人物内心独白：私密耳语感 */
ai q {
    display: block;
    margin: 10px 0;
    padding: 12px;
    background: #fff0f5;
    border-radius: 12px;
    font-style: italic;
    color: #c2185b;
    position: relative;
    quotes: none;
}

ai q::before {
    content: '“';
    font-size: 24px;
    color: #ffb6c1;
    position: absolute;
    left: 4px;
    top: -5px;
}

/* 进度条：好感度 */
ai progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 8px;
    vertical-align: middle;
}

ai progress::-webkit-progress-bar {
    background: #eee;
    border-radius: 4px;
}

ai progress::-webkit-progress-value {
    background: linear-gradient(90deg, #ff80ab, #ff4081);
    border-radius: 4px;
}

/* 表格：名录与记忆区 */
ai table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 8px 0;
    font-size: 13px;
}

ai th {
    background: #ffebf0;
    color: #ad1457;
    padding: 6px;
    text-align: left;
}

ai td {
    padding: 8px 6px;
    border-bottom: 1px solid #fff0f3;
}

/* 记忆区标题 */
ai h5 {
    margin: 10px 0 5px 0;
    color: #d81b60;
    border-left: 3px solid #ff4081;
    padding-left: 8px;
}

/* 行动推荐列表 */
ai ul {
    list-style: none;
    padding: 8px 12px;
    margin: 0;
}

ai li {
    background: #ffffff;
    border: 1px solid #ffdde1;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

ai li span {
    color: #ff4081;
    font-weight: bold;
    margin-right: 8px;
}

ai li:hover {
    transform: translateX(5px);
    background: #fff5f7;
}

/* 分隔线 */
ai hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffc0cb, transparent);
    margin: 10px 0;
}