
/* ========== 悬浮右侧工具栏样式 (宽度260px，含导航条、工具按钮组) ========== */
.float-toolbar {
    background: var(--surface);
    box-shadow: var(--shadow-card);
    border-radius: 8px;
    overflow: hidden;
    top: 40px;
    position: sticky;
}
.toolbar-inner {
    padding: 18px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 320px;
}
/* 导航条样式 */
.sidebar-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 8px;
    border: 1px solid #edf2f7;
}
.float-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 11px;
    font-weight: 500;
    color: #5b6e8c;
    cursor: pointer;
    padding: 6px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
}
.float-nav-item i { font-size: 15px; font-weight: normal; transition: transform 0.1s; }
.float-nav-item span { font-size: 10px; letter-spacing: 0.3px; }
.float-nav-item.active { background: #6c5ce7; color: white; box-shadow: 0 4px 8px rgba(108, 92, 231, 0.2); }
.float-nav-item.active i { color: white; }
.float-nav-item:hover:not(.active) { background: #eef2ff; color: #4f46e5; }
.float-nav-item .tooltip-text {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1002;
}
.float-nav-item:hover .tooltip-text { opacity: 1; }
/* CPU 型号头部 */
.tb-cpu-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1.5px solid rgba(108, 92, 231, 0.2);
    padding-bottom: 10px;
    margin-bottom: 2px;
}
.tb-cpu-name span { background: linear-gradient(135deg, #6c5ce7, #8b6cf0); background-clip: text; -webkit-background-clip: text; color: transparent; font-size: 0.95rem; }

/* 工具按钮组 (双列或垂直，采用grid) */
.toolbar-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}
.tb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
    border-radius: 60px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #2d3e50;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.tb-btn i { font-size: 16px; }
.tb-btn-primary { background: #6c5ce7; border-color: #6c5ce7; color: white; box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2); }
.tb-btn-primary:hover { background: #5b4bc4; transform: translateY(-2px); }
.tb-btn-outline:hover { background: #f1f5f9; border-color: #cbd5e1; transform: translateY(-1px); }
.tb-fav.active { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.tb-fav.active i { color: #ef4444; }
html { scroll-behavior: smooth; }
section, .specs-grid, .performance-section, #cpuDuibiContainer, .series-compare { scroll-margin-top: 80px; }
