/* 折叠内容样式 */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.collapsible.open .collapsible-content {
    max-height: 800px;
}
.collapsible-toggle {
    cursor: pointer;
    user-select: none;
    position: relative;
    /* 恢复为普通文本色和背景 */
    color: inherit;
    background: none;
    border-radius: 6px;
    padding: 2px 12px;
    transition: background 0.2s, color 0.2s;
}
.collapsible-toggle:hover {
    background: #f2f6ff;
    color: inherit;
}
.collapsible-toggle::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 8px;
    transition: transform 0.3s, color 0.2s;
    display: inline-block;
    /* color: #2d6cdf; */
}
.collapsible.open .collapsible-toggle::after {
    transform: rotate(-180deg);
    /* color: #174ea6; */
}

/* 右侧悬浮点赞按钮及动画 */
.like-float-btn {
    position: fixed;
    right: 100px;
    bottom: 120px;
    z-index: 999;
    background: #526dc5a9;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 2em;
    transition: box-shadow 0.2s;
    user-select: none;
}
.like-float-btn:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    background: #ffe6f0;
}
/* 修改点赞数定位方式，始终与按钮居中对齐 */
.like-float-count {
    position: fixed;
    left: 50%;
    /* 56px按钮宽度+16px间距，需与按钮right/bottom保持一致 */
    bottom: 90px;
    transform: translateX(28px); /* 100px right + 28px(按钮半宽) = left:50%+translateX */
    z-index: 999;
    color: #e25555;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 3px #ffffff70, 0 1px 3px #ffffff70;
    pointer-events: none;
    user-select: none;
    min-width: 56px;
    left: auto;
    right: 125px;
    display: flex;
    justify-content: center;
}
/* 点赞表情动画 */
.like-emoji-pop {
    position: fixed;
    right: 120px;
    bottom: 150px;
    z-index: 1000;
    pointer-events: none;
    font-size: 2em;
    animation: pop-float 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0.85;
}
@keyframes pop-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.85;
    }
    60% {
        transform: translateY(-40px) scale(1.3);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) scale(0.7);
        opacity: 0;
    }
}
