/* 浮动栏核心样式 */
.collect-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 2px solid #dc5010;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999; /* 确保在最上层 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}
.collect-count {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
.collect-actions button {
    margin-left: 10px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #dc5010;
    color: #fff;
    font-size: 14px;
    transition: background 0.3s;
}
.collect-actions button:hover {
    background: #1a68e0;
}

/* 弹窗样式 */
.collect-modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000; /* 比浮动栏更高 */
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    width: 80%;
    max-width: 500px;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
#collectList {
    margin-top: 10px;
    padding-left: 20px;
}
#collectList li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: #333;
}

/* 详情页加入备选按钮样式 */
.add-collect-btn {
    margin: 15px 0;
    padding: 10px 20px;
    background: #2c82ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
.add-collect-btn:hover {
    background: #1a68e0;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .collect-bar {
        flex-direction: column;
        padding: 10px;
    }
    .collect-actions {
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
    .collect-actions button {
        margin-left: 0;
        padding: 6px 10px;
        font-size: 13px;
    }
}