/**
 * 右侧悬浮按钮样式
 */

/* 悬浮按钮容器 */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 120px;
    height: 360px;
    padding: 40px 16px 16px;
    background: transparent;
}

/* 悬浮按钮背景图 */
.floating-buttons-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    max-width: 100%;
    z-index: -1;
}

/* 悬浮按钮项 */
.floating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    background: transparent;
    gap: 4px;
    position: relative;
}

.floating-btn a.floating-btn-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

/* 电子教参按钮特殊调整 */
.floating-btn:nth-child(3) {
    position: relative;
    top: -15px;
}

/* 洽谈合作按钮特殊调整 */
.floating-btn:nth-child(4) {
    position: relative;
    top: -23px;
}

/* 课件售后按钮特殊调整 */
.floating-btn:nth-child(5) {
    position: relative;
    top: -15px;
}

.floating-btn:hover {
    transform: translateY(-2px);
}

/* 按钮图标 */
.btn-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 按钮文字 */
.btn-text {
    font-size: 11px;
    color: #666666;
    text-align: center;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap;
}

/* 电话显示框 */
.btn-phone {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 6px;
    border-radius: 3px;
    z-index: 1001;
}

.floating-btn:hover .btn-phone {
    opacity: 1;
    visibility: visible;
}

/* 售后按钮特殊样式 */
.floating-btn.after-sales {
    position: relative;
}

.floating-btn .btn-bg-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    z-index: -1;
}

/* 移动端隐藏悬浮按钮 */
@media (max-width: 768px) {
    .floating-buttons {
        display: none !important;
    }
}
