/* 画布区域 */
.editor-canvas {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #f1f3f5;
    overflow: hidden;
}

.canvas-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-wrapper {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 设备模拟 */
.device-mockup {
    position: relative;
    width: 344px;
    height: 652px;
    background: white;
    border-radius: 20px;
    border: 12px solid #1a1a1a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 12px #f8f9fa;
    overflow: visible;
    transition: border 0.5s, border-radius 0.5s;
}

.device-mockup.no-border {
    border: 0 solid transparent;
    border-radius: 0;
}

.device-frame {
    width: 100%;
    height: 100%;
    overflow: visible;
    background: white;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: white;
    position: relative;
    overflow: visible;
    justify-content: center;
    align-items: center;
}

/* 画布背景 */
.canvas-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 设计元素容器 */
.design-elements {
    width: 320px !important;
    height: 628px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    border: 1px dashed red;
    overflow: visible;
}

/* 页面指示器 */
.page-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

/* 画布提示 */
.canvas-hint{
    margin-top: 20px;
}

/* 调整大小时的辅助网格 */
.resize-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 9px, rgba(77, 171, 247, 0.1) 9px, rgba(77, 171, 247, 0.1) 10px), repeating-linear-gradient(90deg, transparent, transparent 9px, rgba(77, 171, 247, 0.1) 9px, rgba(77, 171, 247, 0.1) 10px);
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.2s;
}

.resize-grid-overlay.active {
    opacity: 1;
}