/* 糖心Vlog 欲望终端 UI V5.0 - 深度开发版 */
details {
    margin: 10px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.12);
    overflow: hidden;
    border: 1px solid #fff0f3;
}

summary {
    padding: 15px 20px;
    background: linear-gradient(90deg, #ff758c 0%, #ff7eb3 100%);
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 标签样式 */
.tx-tag {
    display: inline-block;
    background: #ffe5ec;
    color: #ff4d6d;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    margin-right: 5px;
    font-weight: bold;
}

/* 列表与条目通用样式 */
.tx-row { display: flex; padding: 8px 20px; border-bottom: 1px solid #fff5f7; align-items: center; }
.tx-label { color: #ff4d6d; font-weight: bold; width: 90px; flex-shrink: 0; font-size: 0.9em; }
.tx-value { color: #444; flex-grow: 1; font-size: 0.9em; }

/* 广场卡片 */
.tx-feed-card { background: #fffafa; border-radius: 15px; margin: 12px; border: 1px solid #ffe4e1; overflow: hidden; }
.tx-feed-media { background: #ffe5ec; height: 160px; display: flex; align-items: center; justify-content: center; color: #ff4d6d; font-style: italic; border-bottom: 1px solid #ffd1dc; }
.tx-feed-info { padding: 12px; }
.tx-feed-user { color: #ff4d6d; font-weight: 900; margin-bottom: 5px; display: block; }

/* 正文区域 */
.tx-article { background: #ffffff; padding: 25px; border-radius: 20px; border: 2px solid #ffccd5; margin: 15px 0; font-size: 1.1em; line-height: 1.8; color: #222; }
/* 糖心直播间实时渲染引擎 */
.live-container {
    width: 100%;
    max-width: 350px;
    margin: 15px auto;
    background: #000;
    border-radius: 30px;
    border: 4px solid #333;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/16;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    font-family: sans-serif;
}

/* 模拟视频背景 */
.live-video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.6) 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2); font-style: italic;
}

/* 顶部信息栏 */
.live-header {
    position: absolute; top: 15px; left: 10px; right: 10px;
    display: flex; justify-content: space-between; align-items: center; z-index: 2;
}
.live-user {
    background: rgba(0,0,0,0.4); padding: 5px 12px 5px 5px;
    border-radius: 20px; display: flex; align-items: center; color: white;
}
.live-avatar { width: 30px; height: 30px; background: #ff4d6d; border-radius: 50%; margin-right: 8px; }
.live-stats { font-size: 10px; opacity: 0.9; }

/* 弹幕区 */
.live-chat {
    position: absolute; bottom: 70px; left: 10px; right: 40px;
    max-height: 150px; overflow: hidden; display: flex; flex-direction: column; gap: 5px; z-index: 2;
}
.chat-msg {
    background: rgba(0,0,0,0.3); padding: 4px 10px; border-radius: 10px;
    color: white; font-size: 12px; line-height: 1.4; width: fit-content;
}
.chat-name { color: #ffeb3b; font-weight: bold; margin-right: 5px; }

/* 礼物特效 */
.gift-pop {
    position: absolute; top: 40%; left: 10px;
    background: linear-gradient(90deg, #ff4d6d, transparent);
    padding: 5px 20px; border-radius: 20px 0 0 20px;
    color: white; font-weight: bold; font-style: italic;
    animation: giftSlide 2s infinite; z-index: 3;
}
@keyframes giftSlide { 0% { transform: translateX(-100%); opacity: 0; } 20% { transform: translateX(0); opacity: 1; } 80% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(50%); opacity: 0; } }
/* 糖心私密通讯引擎 V1.0 */
.chat-frame {
    width: 100%;
    max-width: 360px;
    margin: 15px auto;
    background: #f4f4f4;
    border-radius: 25px;
    border: 6px solid #333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    font-family: "PingFang SC", sans-serif;
}

/* 顶部联系人栏 */
.chat-top {
    background: #ffffff;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

/* 聊天内容区 */
.chat-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
}

/* 气泡通用 */
.msg { max-width: 80%; padding: 10px 14px; border-radius: 15px; font-size: 14px; line-height: 1.5; position: relative; }

/* 左侧气泡 (对方) */
.msg-left {
    align-self: flex-start;
    background: #ffffff;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

/* 右侧气泡 (主角) */
.msg-right {
    align-self: flex-end;
    background: #ff4d6d;
    color: #ffffff;
    border-bottom-right-radius: 2px;
    box-shadow: -2px 2px 5px rgba(255, 77, 109, 0.2);
}

/* 时间戳 */
.chat-time {
    font-size: 11px;
    color: #bbb;
    text-align: center;
    margin: 5px 0;
}

/* 底部输入框占位 */
.chat-input {
    background: #ffffff;
    padding: 10px 20px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
}