/* 按钮基础样式 */
.link-button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-default {
    background: #07c160;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.btn-primary {
    /* 基础定位 */
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 9999;
    
    /* 圆角方形样式 */
    width: 50px;
    height: 35px;
    border-radius: 8px;  /* 修改为圆弧角 */
    
    /* 视觉样式 */
    background: #07c160;
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(255,165,0,0.3); /* 调整阴影颜色匹配橙色 */
    cursor: pointer;
    
    /* 文字布局 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    font-size: 16px;
    padding: 8px;
    
    /* 过渡动画 */
    transition: all 0.3s ease;
}

/* 悬停效果 */
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255,165,0,0.4); /* 同步调整悬停阴影 */
    background: #ff8c00; /* 改为深橙色保持协调 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    .btn-primary {
        width: 50px;
        height: 35px;
        font-size: 16px;
        top: 15px;
        right: 15px;
        border-radius: 6px; /* 移动端稍小的圆角 */
    }
}


.btn-secondary {
    background: #6c757d;
    color: white;
}

/* 滑动面板样式 - 修复版 */
.slideout-panel {
    position: fixed;
    top: 0;
    right: -400px; /* 使用px单位，更可靠 */
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    transition: right 0.3s ease; /* 与定位方式保持一致 */
    z-index: 9998;
}

.slideout-panel.active {
    right: 0; /* 直接移动到右侧边缘 */
}

.panel-content {
    height: calc(100% - 60px);
    overflow-y: auto;
}

/* 收起按钮 */
.slideout-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 加载指示器 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
