

/* 测试按钮区域 */
._task-preview-modal-demo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

._task-preview-modal-demo-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

._task-preview-modal-demo-btn:hover {
    background: #f0f0f0;
    border-color: #2f80ed;
}

._task-preview-modal-demo-btn._task-preview-modal-active {
    background: #2f80ed;
    color: white;
    border-color: #2f80ed;
}

/* 弹窗遮罩层 */
._task-preview-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s ease-out;
}

/* 弹窗主体 */
._task-preview-modal-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /*position: relative;*/
}

/* 关闭按钮 */
._task-preview-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    color: #666;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

._task-preview-modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 弹窗激活状态（显示） */
._task-preview-modal-mask._task-preview-modal-active {
    display: flex;
    opacity: 1;
}

._task-preview-modal-mask._task-preview-modal-active ._task-preview-modal-container {
    transform: translateY(0) scale(1);
}

/* 左侧图片展示区域（大屏） */
._task-preview-modal-image-area {
    flex: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

/* 图片容器 - 桌面端 */
._task-preview-modal-image-container {
    width: 100%;
    height: calc(100% - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    position: relative;
}

/* 当前显示的主图片 - 桌面端 */
._task-preview-modal-main-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.15s ease-out;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: zoom-in;
}

/* 缩略图列表 */
._task-preview-modal-thumbnail-list {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /*width: 100%;*/
    width: fit-content;
    margin-top: 24px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 缩略图样式 */
._task-preview-modal-thumbnail-item {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: #f8f9fa;
}

._task-preview-modal-thumbnail-item:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* 当前激活的缩略图 */
._task-preview-modal-thumbnail-item._task-preview-modal-active {
    opacity: 1;
    border-color: var(--theme-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px var(--theme-color-0-2);
}

/* 右侧信息区域（大屏） */
._task-preview-modal-info-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

/* 信息内容区域 */
._task-preview-modal-info-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
}

._task-preview-modal-info-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

._task-preview-modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

._task-preview-modal-info-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

._task-preview-modal-info-value {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    word-break: break-word;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

#_taskPreviewPrompt, #_taskPreviewArtId {
    cursor: pointer;
}



._task-preview-modal-info-value i {
    opacity: 0.5;
    margin-left: 4px;
    font-size: 12px;
}

/* 按钮区域 - 桌面端 */
._task-preview-modal-btn-group {
    display: flex;
    gap: 16px;
    padding: 24px 40px;
    border-top: 1px solid #f0f0f0;
    background: white;
}

._task-preview-modal-btn i {
    font-size: inherit;
}

._task-preview-modal-btn {
    flex: 1;
    height: 48px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

._task-preview-modal-btn-download {
    /*background-color: var();*/
    /*color: var(--danger-color);*/
    /*border: 1px solid var(--danger-color);*/
    background: var(--sub-btn-bg);
    color: var(--sub-btn-text-color);
}

._task-preview-modal-btn-download * {
    color: inherit;
}

._task-preview-modal-btn-unpublish {
    display: none;
}

._task-preview-modal-btn-download:hover, ._task-preview-modal-btn-unpublish:hover {
    transform: translateY(-2px);
}

._task-preview-modal-btn-publish {
    background-color: var(--primary-btn-bg);
    color: var(--primary-btn-text-color);
}

._task-preview-modal-btn-publish:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--theme-color-0-2);
}

._task-preview-modal-btn-group-mobile {
    display: none;
}

/* 移动端适配（屏幕宽度 ≤ 768px） */
@media (max-width: 768px) {
    ._task-preview-modal-btn-group-pc {
        display: none;
    }

    ._task-preview-modal-btn-group-mobile {
        display: flex;
    }

    ._task-preview-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        flex-direction: column;
        max-width: none;
        overflow-y: auto;
        /*position: relative;*/
    }

    ._task-preview-modal-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    ._task-preview-modal-image-area {
        flex: none;
        padding: 20px;
        padding-bottom: 16px;
        background: linear-gradient(135deg, #fafafa 0%, #f0f2f5 100%);
        min-height: 40vh;
    }

    /* 移动端图片容器 - 宽度100%，高度自适应 */
    ._task-preview-modal-image-container {

        width: 100%;
        height: auto;
        /*padding: 16px;*/
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border-radius: 12px;
        position: relative;
        margin-bottom: 16px;
    }

    /* 移动端主图片 - 宽度100%，高度自适应 */
    ._task-preview-modal-main-image {
        width: 100%;
        height: auto;
        max-width: 100%;
        /*max-height: 60vh;*/
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        background: white;
        padding: 4px;
    }

    ._task-preview-modal-thumbnail-list {
        margin-top: 8px;
        padding: 10px;
        gap: 12px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    ._task-preview-modal-thumbnail-item {
        width: 56px;
        height: 56px;
    }

    /* 移动端信息区域 - 增加底部内边距给固定按钮区域留空间 */
    ._task-preview-modal-info-content {
        padding: 24px 20px 120px; /* 底部留出按钮区域高度+边距 */
        gap: 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    ._task-preview-modal-info-title {
        font-size: 18px;
        padding-bottom: 16px;
    }

    /* 移动端按钮区域固定底部 */
    ._task-preview-modal-btn-group {

        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 16px 20px;
        background: white;
        border-top: 1px solid #f0f0f0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        z-index: 100;
        gap: 12px;
        position: fixed;
    }


    ._task-preview-modal-btn {
        height: 44px;
        font-size: 14px;
    }
}

/*!* 小屏幕手机适配 *!*/
/*@media (max-width: 480px) {*/
/*    ._task-preview-modal-image-area {*/
/*        padding: 16px;*/
/*        padding-bottom: 12px;*/
/*    }*/

/*    ._task-preview-modal-image-container {*/
/*        padding: 12px;*/
/*        margin-bottom: 12px;*/
/*    }*/

/*    ._task-preview-modal-main-image {*/
/*        max-height: 50vh;*/
/*        padding: 3px;*/
/*    }*/

/*    ._task-preview-modal-thumbnail-list {*/
/*        gap: 8px;*/
/*        padding: 8px;*/
/*    }*/

/*    ._task-preview-modal-thumbnail-item {*/
/*        width: 48px;*/
/*        height: 48px;*/
/*    }*/

/*    ._task-preview-modal-info-content {*/
/*        padding: 20px 16px 100px;*/
/*    }*/

/*    ._task-preview-modal-btn-group {*/
/*        padding: 12px 16px;*/
/*    }*/

/*    !* 测试按钮区域适配 *!*/
/*    ._task-preview-modal-demo-controls {*/
/*        padding: 16px;*/
/*        gap: 8px;*/
/*    }*/

/*    ._task-preview-modal-demo-btn {*/
/*        padding: 8px 16px;*/
/*        font-size: 13px;*/
/*        flex: 1;*/
/*        min-width: calc(50% - 8px);*/
/*    }*/
/*}*/

/*!* 超小屏幕适配 *!*/
/*@media (max-width: 360px) {*/
/*    ._task-preview-modal-image-container {*/
/*        padding: 10px;*/
/*    }*/

/*    ._task-preview-modal-main-image {*/
/*        max-height: 45vh;*/
/*    }*/

/*    ._task-preview-modal-thumbnail-item {*/
/*        width: 40px;*/
/*        height: 40px;*/
/*    }*/

/*    ._task-preview-modal-info-content {*/
/*        padding: 16px 12px 100px;*/
/*    }*/
/*}*/

/*!* 平板横屏适配 *!*/
/*@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {*/
/*    ._task-preview-modal-container {*/
/*        height: 90vh;*/
/*    }*/

/*    ._task-preview-modal-image-container {*/
/*        height: calc(100% - 100px);*/
/*    }*/

/*    ._task-preview-modal-thumbnail-item {*/
/*        width: 64px;*/
/*        height: 64px;*/
/*    }*/
/*}*/

/* 预加载隐藏元素 */
._task-preview-modal-preload-images {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}