body {
            margin: 0;
            padding: 0;
        }

        /* Vue 挂载前隐藏模板，避免插值表达式闪烁 */
        [v-cloak] {
            display: none !important;
        }

        #scratch-gui-container {
            width: 100vw;
            height: 100vh;
        }

        .form-item {
            margin-bottom: 15px;
        }

        .cover-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .cover-preview {
            width: 300px;
            height: 225px;
            border: 1px solid #e4e7ed;
            border-radius: 4px;
            overflow: hidden;
        }

        .cover-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .cover-placeholder {
            width: 300px;
            height: 225px;
            border: 1px dashed #d9d9d9;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
        }

        .scratch-loading {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
        }

        .scratch-loading-icon {
            width: 80px;
            height: 80px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .scratch-loading-text {
            font-size: 18px;
            margin-bottom: 15px;
            font-weight: 500;
        }

        .scratch-loading-progress-bar {
            width: 240px;
            height: 6px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .scratch-loading-progress-fill {
            height: 100%;
            background: #fff;
            border-radius: 3px;
            width: 0%;
            transition: width 0.1s ease-out;
        }

        .scratch-loading-percentage {
            font-size: 14px;
            opacity: 0.9;
        }

/* ===== 我的项目弹窗 ===== */
.my-projects-dialog {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.my-projects-dialog .el-dialog__header {
    margin-right: 0;
    padding: 20px 24px 8px;
}

.my-projects-dialog .el-dialog__body {
    padding: 8px 24px 16px;
}

.my-projects-dialog .el-dialog__footer {
    padding: 8px 24px 20px;
}

.mp-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.4;
}

.mp-header-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #8a94a6;
}

.mp-body {
    min-height: 120px;
}

/* 网格布局 */
.my-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .my-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .my-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .my-projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 作品卡片 */
.project-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    border-color: #4C97FF;
}

.project-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f7fa;
}

.project-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.project-card:hover .project-cover img {
    transform: scale(1.03);
}

.project-title {
    margin-top: 10px;
    font-weight: 600;
    color: #1f2d3d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-time {
    margin-top: 4px;
    font-size: 12px;
    color: #8a94a6;
}

.project-open-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-card:hover .project-open-mask {
    opacity: 1;
}

/* 空态 */
.mp-empty {
    padding: 48px 0;
    text-align: center;
    color: #8a94a6;
}

.mp-empty-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 12px;
}

.mp-empty-text {
    font-size: 15px;
    color: #4a5568;
}

.mp-empty-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #8a94a6;
}

/* 加载态 */
.mp-loading {
    padding: 8px 0;
}

/* 菜单栏 logo 尺寸 */
#logo_img {
    height: 30px;
    width: auto;
    max-width: 180px;
    cursor: pointer;
}

/* ===== 分享弹窗 ===== */
.share-dialog {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.share-dialog .el-dialog__header {
    margin-right: 0;
    padding: 20px 24px 12px;
    border-bottom: 1px solid #f0f4f9;
}

.share-dialog .el-dialog__title {
    font-size: 17px;
    font-weight: 700;
    color: #1f2d3d;
}

.share-dialog .el-dialog__body {
    padding: 16px 24px 8px;
}

.share-dialog .el-dialog__footer {
    padding: 8px 24px 20px;
}

.share-unsaved-tip {
    padding: 12px 0 4px;
    font-size: 14px;
    color: #8a94a6;
    text-align: center;
}

.share-loading-row {
    padding: 8px 0;
}

.share-block {
    margin-bottom: 16px;
}

.share-desc {
    font-size: 13px;
    color: #6b7688;
    line-height: 1.7;
    margin-bottom: 12px;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2d3d;
    margin-bottom: 8px;
}

.share-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-link-input {
    flex: 1 1 auto;
}

.share-origin-block {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f9fbfe;
}

.share-origin-text {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.7;
}

.share-origin-author {
    color: #4C97FF;
    font-weight: 600;
}

.share-disclose-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e4e9f2;
}

.share-disclose-label {
    font-size: 13px;
    color: #4a5568;
}

.share-remix-block {
    margin: 16px 0;
}

.share-remix-empty {
    font-size: 13px;
    color: #8a94a6;
    padding: 6px 0;
}

.share-remix-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow: auto;
}

.share-remix-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    background: #ffffff;
}

.share-remix-item:last-child {
    margin-bottom: 0;
}

.share-remix-nick {
    flex: 0 0 auto;
    font-weight: 600;
    color: #1f2d3d;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-remix-title {
    flex: 1 1 auto;
    min-width: 0;
    color: #6b7688;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-remix-time {
    flex: 0 0 auto;
    font-size: 12px;
    color: #a6b0c0;
}

.share-unshare-row {
    margin-top: 16px;
    text-align: right;
}
