/* 侧边悬浮功能栏样式 */

/* 1. 容器定位 */
.side-toolbar-fixed {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 2. 单个按钮样式 */
.toolbar-btn {
    position: relative;
    width: 52px;
    height: 52px;
    background: #0b0f15; /* 深色底色 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateZ(0); /* 开启硬件加速，防抖防模糊 */
}

/* 3. 图标样式 */
.toolbar-btn .icon-svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* 4. 悬浮交互：变蓝并微移 */
.toolbar-btn:hover {
    background: #3b82f6; /* 品牌蓝 */
    border-color: #3b82f6;
    transform: translateX(-5px) translateZ(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 5. 弹出面板基础 */
.toolbar-popover {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10000; /* 确保面板在最上层 */
}

/* 6. 悬浮显示面板 */
.toolbar-btn:hover .toolbar-popover,
.toolbar-btn.active .toolbar-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* 7. 面板内部排版（去模糊，确保清晰） */
.popover-inner {
    background: #1e293b; /* 纯色高对比背景 */
    border: 1px solid #3b82f6;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
}

/* 8. 二维码专用 */
.qr-box img {
    width: 130px;
    height: 130px;
    background: white;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 8px;
    image-rendering: -webkit-optimize-contrast; /* 提高图像清晰度 */
     pointer-events: auto;
}

.qr-box p {
    color: white;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

/* --- 行业文章面板专用样式 --- */

/* 面板整体宽度增加，以容纳标题 */
.article-panel {
    width: 280px;
    padding: 0 !important; /* 取消内部填充，改用各部分自定 padding */
    overflow: hidden;
    pointer-events: auto; /* 确保面板可以接收鼠标事件 */
}

/* 顶部标题栏 */
.article-header {
    width: 100%;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

/* 列表容器 */
.article-list {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* 单个文章项 */
.article-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    pointer-events: auto; /* 确保链接可以点击 */
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.article-item .title {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 超出部分显示省略号 */
    transition: color 0.2s ease;
}

.article-item:hover .title {
    color: #ffffff;
}

/* HOT标签 */
.hot-tag {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0; /* 防止标签被压缩 */
    line-height: 1;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* 针对带有热门标识的文章做微调 */
.article-item.hot .title {
    font-weight: 600;
    color: #ffffff;
}

/* 9. 文本信息专用（电话/邮箱） */
.text-box {
    padding: 12px 20px;
    align-items: flex-start;
     pointer-events: auto;
}

.popover-label {
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.popover-value {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* 10. 回到顶部特殊颜色 */
.scroll-top {
    background: rgba(255, 255, 255, 0.05);
}

/* 11. 回到顶部按钮始终显示 */
.scroll-top {
    display: flex !important;
}

/* 11. 移动端自动隐藏 */
@media (max-width: 1024px) {
    .side-toolbar-fixed {
        display: none;
    }
}