/* 响应式设计 */
@media (max-width: 1400px) {
    .element-toolbar-container {
        left: 1100px;
    }
}

@media (max-width: 1200px) {
    .element-toolbar-container {
        display: none !important;
    }

    .editor-sidebar {
        width: 240px;
    }

    .right-toolbar {
        width: 50px;
    }

    .toolbar-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 992px) {
    .editor-sidebar {
        width: 200px;
    }

    .canvas-wrapper {
        padding: 1rem;
    }

    .device-mockup {
        width: 300px;
        height: 580px;
    }

    .design-elements {
        width: 276px !important;
        height: 556px !important;
    }
}

@media (max-width: 768px) {
    .editor-header {
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .toolbar-content-btn {
        padding: 0 0.75rem;
        min-width: 45px;
    }

    .toolbar-content-btn span {
        display: none;
    }

    .editor-sidebar {
        width: 180px;
    }

    .elements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .canvas-container {
        padding: 0;
    }

    .canvas-wrapper {
        padding: 0.5rem;
        border-radius: 8px;
    }

    .device-mockup {
        width: 280px;
        height: 540px;
        border-width: 8px;
    }

    .design-elements {
        width: 260px !important;
        height: 524px !important;
    }

    .context-menu {
        min-width: 160px;
        font-size: 13px;
    }

    .context-menu-item {
        padding: 8px 12px;
        min-height: 32px;
    }

    .context-menu-item i {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .wedding-editor {
        height: 100vh;
        overflow: hidden;
    }

    .editor-main {
        flex-direction: column;
    }

    .editor-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .right-toolbar {
        width: 100%;
        height: 50px;
        flex-direction: row;
        padding: 0 1rem;
        gap: 0.8rem;
        border-left: none;
        border-bottom: 1px solid #dee2e6;
    }

    .toolbar-btn::after {
        right: 50%;
        top: calc(100% + 8px);
        transform: translateX(50%);
    }

    .editor-canvas {
        padding: 0.5rem;
    }

    .device-mockup {
        width: 240px;
        height: 460px;
    }

    .design-elements {
        width: 216px !important;
        height: 444px !important;
    }
}

@media (max-width: 360px) {
    .device-mockup {
        width: 220px;
        height: 420px;
    }

    .design-elements {
        width: 196px !important;
        height: 404px !important;
    }
}