/* 底部工具栏样式 */
body {
    --bwb-theme-color: #f04494;
    --bwb-minor: #777;
    padding-bottom: 60px;
}

/* 增强的波浪动画 */
@keyframes bwb-waves-r2l {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

.bwb-footwavewave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, 
        rgba(240,68,148,0.3) 0%, 
        rgba(240,68,148,0.15) 25%, 
        rgba(240,68,148,0.3) 50%, 
        rgba(240,68,148,0.15) 75%, 
        rgba(240,68,148,0.3) 100%
    );
    background-size: 200px 100%;
    z-index: 96;
    animation: bwb-waves-r2l 20s linear infinite;
}

/* 左边图片浮动效果 */
.bwb-float-image {
    display: inline-block;
    width: 210px;
    height: 120px;
    position: fixed;
    bottom: 0;
    z-index: 110;
    background-size: 100%;
    animation: bwb-float 3s ease-in-out infinite;
}

@keyframes bwb-float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 左边文字跳动效果 */
.bwb-shi {
    position: fixed;
    bottom: 0;
    margin-left: 200px;
    z-index: 99;
}

.bwb-shi h4 {
    font-size: 13px;
    margin: 0 5px 2px 5px;
    color: #797979;
    margin-bottom: 10px;
    animation: bwb-heartbeat 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes bwb-heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 底部工具栏主体 */
.bwb-bottom-bar {
    width: 100%;
    height: 40px;
    position: fixed;
    bottom: 0;
    z-index: 97;
    box-shadow: 0 -2px 10px rgb(0 0 0 / 10%);
    background: #fff;
}

/* 右边布局精确对齐 */
.bwb-wz-color {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 40px;
    padding-right: 50px;
    gap: 20px;
}

/* 文章直接切换效果 */
.bwb-wz {
    width: 200px;
    height: 40px;
    overflow: hidden;
    position: relative;
}

.bwb-wz ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.bwb-wz li {
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: bwb-flash-switch 12s linear infinite;
}

/* 文章闪现切换动画 */
.bwb-wz li:nth-child(1) { animation-delay: 0s; }
.bwb-wz li:nth-child(2) { animation-delay: 2s; }
.bwb-wz li:nth-child(3) { animation-delay: 4s; }
.bwb-wz li:nth-child(4) { animation-delay: 6s; }
.bwb-wz li:nth-child(5) { animation-delay: 8s; }
.bwb-wz li:nth-child(6) { animation-delay: 10s; }

@keyframes bwb-flash-switch {
    0% { opacity: 1; }
    16.66% { opacity: 1; }
    16.67% { opacity: 0; }
    100% { opacity: 0; }
}

.bwb-item-foot {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.bwb-item-foot:hover {
    color: var(--bwb-theme-color);
    transform: translateY(-1px);
}

.bwb-icon {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.bwb-item-foot:hover .bwb-icon {
    transform: scale(1.2);
}

/* 按钮样式统一 */
.bwb-wz-color > span,
.bwb-wz-color > a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bwb-wz-color > span:hover,
.bwb-wz-color > a:hover {
    color: var(--bwb-theme-color);
    transform: translateY(-1px);
}

.bwb-like-btn.liked {
    color: var(--bwb-theme-color) !important;
}

count {
    color: var(--bwb-minor);
}

/* 百分比平滑过渡 */
#bwbPercentage {
    transition: all 0.2s ease;
    min-width: 64px;
    text-align: center;
}

/* 右边动态弹窗样式 */
.bwb-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.bwb-notification {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid var(--bwb-theme-color);
    transform: translateX(100%);
    opacity: 0;
    animation: bwb-slideIn 0.3s ease forwards;
    font-size: 13px;
    line-height: 1.4;
}

.bwb-notification.hide {
    animation: bwb-slideOut 0.3s ease forwards;
}

@keyframes bwb-slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bwb-slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.bwb-notification-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

.bwb-notification-success {
    border-left-color: #52c41a;
}

.bwb-notification-info {
    border-left-color: #1890ff;
}

.bwb-notification-warning {
    border-left-color: #faad14;
}

/* 点赞和收藏动画效果 */
.bwb-like-btn.bwb-liked {
    transform: scale(1.2);
    color: #ff4d4f !important;
    transition: all 0.3s ease;
}

.bwb-favorite-btn.bwb-favorited {
    transform: scale(1.2);
    color: #faad14 !important;
    transition: all 0.3s ease;
}

.bwb-like-btn:hover,
.bwb-favorite-btn:hover {
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* 响应式 */
@media (max-width: 1200px) {
    .bwb-shi {
        display: none;
    }
}

/* 手机端隐藏底部工具栏 */
@media (max-width: 768px) {
    .bwb-footwaveline[data-hide-mobile="1"] {
        display: none !important;
    }
    body {
        padding-bottom: 0 !important;
    }
} 