/* 浮动开关按钮 */
#element-inspector-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    background: #0073aa;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    user-select: none;
}
#element-inspector-toggle:hover {
    background: #005a87;
    transform: scale(1.02);
}
#element-inspector-toggle.active {
    background: #e14d43;
    box-shadow: 0 0 0 2px rgba(225,77,67,0.3);
}

/* 信息面板 */
#element-inspector-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 380px;
    max-width: calc(100% - 40px);
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #1e1e1e;
    border: 1px solid #ddd;
    user-select: text;
}
#element-inspector-panel .inspector-header {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1;
}
#element-inspector-panel .inspector-close,
#element-inspector-panel .inspector-copy {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    transition: color 0.2s;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f0f0;
}
#element-inspector-panel .inspector-close:hover,
#element-inspector-panel .inspector-copy:hover {
    color: #000;
    background: #e0e0e0;
}
#element-inspector-panel .inspector-content {
    padding: 15px;
}
#element-inspector-panel .inspector-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}
#element-inspector-panel h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
#element-inspector-panel p {
    margin: 8px 0;
    word-break: break-word;
}
#element-inspector-panel code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #d14;
    word-break: break-all;
}
#element-inspector-panel hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #eee;
}
#element-inspector-panel ul {
    margin: 8px 0 12px 20px;
    padding-left: 0;
}
#element-inspector-panel li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}
#element-inspector-panel .inspector-note {
    font-size: 11px;
    color: #888;
    margin-top: 10px;
}
#element-inspector-panel .inspector-path,
#element-inspector-panel .inspector-path-note {
    font-size: 11px;
    color: #555;
    display: inline-block;
    margin-top: 2px;
    word-break: break-all;
}
@media (max-width: 600px) {
    #element-inspector-panel {
        width: 280px;
        bottom: 70px;
        right: 10px;
    }
    #element-inspector-toggle {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}