.painting-page {
    padding: 10px;
    border-radius: 10px;
    width: 80%;
    margin: auto;
}

.painting-page-aside {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 20%;
}

.painting-aside-wrapper {
    background-color: #fff;
    border-radius: 24px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    padding: 20px 16px;
    position: relative;
    z-index: 6;
    flex-direction: column;
    justify-content: space-between;
}

.painting-aside-header-text {
    color: #2c2c36;
    flex: 1;
    font-size: 16px;
    font-weight: bold;
}

.painting-aside-header-title {
    align-items: center;
    border-bottom: 1px solid #e8eaf2;
    box-sizing: border-box;
    display: flex;
    height: 44px;
    padding: 8px 0 12px 12px;
}

.painting-ai-model {
    align-items: center;
    display: flex;
    margin-top: 16px;
}

.painting-ai-model-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    width: 100%;
}

.painting-ai-model-document {
    cursor: pointer;
    font-family: "PingFang SC";
    font-size: 11px;
    font-weight: normal;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.4px;
    color: rgb(88, 90, 115);
    display: flex;
}

.painting-ai-model-button {
    display: flex;
    border-radius: 314px;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(237, 239, 245);
    box-sizing: border-box;
    padding: 2px 8px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: x-small;
}

.painting-promptCou {
    background: #f7f8fc;
    border: 1px solid #f7f8fc;
    border-radius: 16px;
    margin-top: 8px;
    overflow: hidden;
    padding: 14px 14px 8px;
    transition: all .3s;
}

.painting-ant-input {
    background: #f7f8fc !important;
    border: none !important;
    caret-color: #585a73;
    color: #585a73;
    font-size: 13px;
    width: 100%;
    padding: 5px;
}

.painting-couLine {
    align-items: center;
    display: flex;
    margin-top: 8px;
    font-size: x-small;
}

.painting-lineCursesBtn {
    align-items: center;
    background: #fff;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    margin-right: 8px;
    padding: 2px 8px;
}

.painting-lineCount {
    color: #c8cad9;
}

.painting-recommend {
    align-items: center;
    display: flex;
    height: 20px;
    margin-top: 8px;
}

.painting-recommendText {
    color: #8f91a8;
    cursor: pointer;
    flex: 1;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.painting-formLine {
    height: 16px;
    width: 100%;
}

.painting-generation-text,
.painting-ration-title,
.painting-referenceImage-title,
.painting-createModel-title {
    color: #2c2c36;
    font-size: 13px;
    font-weight: bold;
}

.painting-referenceImage-body,
.painting-createModel-body {
    align-items: center;
    background-color: #f7f8fc;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    margin-top: 4px;
    padding: 4px 0 4px 4px;
}

.painting-createModel-icon {
    align-items: center;
    background: #edeff5;
    border-radius: 8px;
    display: flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.painting-createModel-bodyText {
    color: #8f91a8;
    flex: 1;
    font-size: 13px;
    margin-left: 12px;
}

.reference-upload-empty,
.painting-referenceImage-empty {
    color: #8f91a8;
    flex: 1;
    font-size: 13px;
    height: 52px;
    line-height: 52px;
    text-align: center;
    position: relative;
}

.painting-ration-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.painting-ration-item {
    align-items: center;
    background: #ffedfb;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    padding: 11px 0;
    width: calc(33.33333% - 5.33333px);
}

.painting-ration-itemValue {
    font-size: 13px;
    letter-spacing: 2px;
    margin-left: 3px;
}

.painting-generation {
    align-items: center;
    display: flex;
}

.painting-generation-name {
    align-items: center;
    display: flex;
    flex: 1;
}

/* 开关基础样式 */
.ant-switch {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    height: 20px;
    line-height: 20px;
    padding: 0;
    vertical-align: middle;
    background-color: #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    border: 1px solid #d9d9d9;
    outline: none;
    user-select: none;
}

/* 小尺寸开关 */
.ant-switch-small {
    width: 36px;
    height: 20px;
    border-radius: 10px;
}

/* 开关滑块 */
.ant-switch-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 开启状态样式 */
.ant-switch-checked {
    background-color: #fb7299;
    /* 你提供的背景色 */
    border: none;
}

.ant-switch-checked .ant-switch-handle {
    left: calc(100% - 18px);
    /* 向右移动 */
}

/* 文字容器（可自定义） */
.ant-switch-inner {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #fff;
    padding: 0 6px;
}

/* 禁用状态样式（可选） */
.ant-switch-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.painting-submitBtn {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: hsla(0, 0%, 100%, .7);
    padding: 24px 10px 8px;
}

.painting-btnInner {
    align-items: center;
    background: #fb7299;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    height: 52px;
    justify-content: center;
    transition: all .3s;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.painting-btnInner-text {
    color: #fff;
    font-size: 17px;
    font-weight: bold;
}

.painting-btnInner-innerIcon {
    color: #fff;
    font-size: 16px;
    margin-left: 16px;
}

.painting-btnInner-count {
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    margin-left: 2px;
}

.painting-page-main {
    flex: 1;
    height: calc(100% + 32px);
    margin-left: 16px;
    margin-top: -16px;
    min-width: 400px;
    overflow-y: auto;
    padding: 0px;
}

.painting-main-wrapper {
    background-color: #fff;
    border-radius: 24px;
    max-height: calc(100vh - 32px);
    padding: 18px 16px 0;
    width: 0;
    width: 100%;
}



.painting-main-wrapper {
    padding: 20px;
    background: #f9faff;
}

.painting-group {
    display: flex;
    margin-bottom: 40px;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.painting-image-row {
    margin-bottom: 16px;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    overflow: hidden;
    width: 80%;
}

.painting-image-item {
    width: calc((100% / 4) - 20px);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.painting-image-item:hover img {
    transform: scale(1.05);
}

.image-hover-overlay {
    position: absolute;
    height: 25%;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(7px);
    background: linear-gradient(180deg, hsla(0, 0%, 100%, .22), hsla(0, 0%, 100%, .65));
    box-shadow: inset 0 0 6px 0 hsla(0, 0%, 100%, .3);
    display: flex;
    flex-direction: row;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 12px;
    pointer-events: none;
    justify-content: space-around;
}

.painting-image-item:hover .image-hover-overlay {
    opacity: 1;
    pointer-events: auto;
}

.hover-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    padding: 4px 10px;
    margin: 4px;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.painting-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.painting-info {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    width: 20%;
    flex-direction: column;
    position: relative;
}

.painting-info-model {
    font-weight: bold;
    color: #fb7299;
}

.painting-info-desc {
    flex: 1;
    color: #666;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6em;
    max-height: 4.8em;
}

.painting-info-actions {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 5px;
}

.painting-main-wrapper .btn {
    background: #f2f3fb;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: black;
}

.painting-main-wrapper .btn:hover {
    background: #e0e0f5;
}

.image-hover-overlay span {
    width: 34px;
    height: 34px;
    align-items: center;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: all .3s;
    user-select: none;
    background-color: rgb(255, 255, 255);
}

/* 触发器容器 */
.popover-trigger {
    position: relative;
    display: inline-block;
}

/* popover 提示框 */
.popover {
    position: absolute;
    bottom: 90%;
    left: 0%;
    transform: translateX(-50%);
    background: white;
    font-size: 12px;
    padding: 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 99;
}

/* 子项样式 */
.painting-popover-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.painting-popover-item:hover {
    background: #f0f0f5;
}

/* 关键：hover 包含 popover 本体 */
.popover-trigger:hover .popover,
.popover:hover {
    opacity: 1;
    pointer-events: auto;
}

.redraw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.redraw-dialog {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 960px;
    height: 50%;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.redraw-left {
    flex: 1;
    position: relative;
    background: #f2f3f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.redraw-image {
    width: 100%;
    height: auto;
    display: block;
}

.redraw-overlay-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
}

.redraw-right {
    width: 320px;
    padding: 20px;
    background: #fafafa;
}

.redraw-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

.redraw-textarea {
    width: 100%;
    height: 180px;
    padding: 10px;
    font-size: 14px;
    resize: none;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.redraw-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.redraw-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.redraw-actions .btn.confirm {
    background: #5564f2;
    color: #fff;
}

.redraw-actions .btn.cancel {
    background: #eee;
}

.redraw-toolbar {
    position: absolute;
    top: 16px;
    display: flex;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.canvas-container {
    position: relative;
    touch-action: none;
}


.lower-img,
.mask-canvas {
    position: absolute;
    inset: 0;
    /* = top/left/right/bottom 0 */
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 自动保持宽高比 */
    touch-action: none;
}


.mask-canvas {
    cursor: crosshair;
    z-index: 2;
}

.redraw-toolbar {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    z-index: 5;
}

.toolbar-item {
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}

.toolbar-item:hover {
    background: #f0f0f0;
}

.brush-slider {
    width: 110px;
    margin: 0 4px;
    cursor: pointer;
}

.alpha-slider {
    width: 80px;
    margin-left: 4px;
}

.color-input {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    cursor: pointer;
}

.drawer-aside {
    background: #f7f8fc;
    border-radius: 24px;
    display: flex;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: all .3s;
    width: 100%;
    z-index: 5;

}

.drawer-aside.drawer-open {
    width: 140%;
    box-shadow: 0 4px 10px 0 rgba(163, 146, 238, .302);
    transform: translateX(calc(322px - var(--slide-modal-left-width, 58px)));
}

.drawer-aside-blcok {
    padding: 15px;
    width: 100%;
    padding-left: 70px;
}


.drawer-aside-header-title {
    color: #2c2c36;
    flex: 1;
    font-size: 15px;
    font-weight: bold;
}

.model-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.model-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 0 0 1px #e5e6eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.model-item:hover {
    box-shadow: 0 0 0 1px #8a8cf0;
}

.model-item.active {
    border: 1px solid #7b66f4;
    background-color: #f6f6ff;
}

.model-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.model-name {
    font-weight: 600;
    color: #2c2c2c;
}

.model-tag {
    background: #ffefe1;
    color: #f60;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 8px;
}

.model-check {
    margin-left: auto;
    font-size: 18px;
    color: #7b66f4;
}

.model-desc {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

.painting-lineCursesBtn.disabled {
    background: #e0e2eb;
    pointer-events: none;
    color: #929396;
}


.drawer-aside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.drawer-aside-header-title {
    font-size: 18px;
    font-weight: bold;
}

/* 分类滚动区域 */
.category-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.scroll-arrow {
    width: 24px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.arrow-left {
    margin-right: 4px;
}

.arrow-right {
    margin-left: 4px;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    flex: 1;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: inline-block;
    padding: 4px 12px;
    margin-right: 8px;
    background: #fff;
    border-radius: 9999px;
    font-size: 14px;
    color: #333;
    border: 1px solid #eee;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.category-item.active {
    background-color: #fb7299;
    color: #fff;
    border-color: #fb7299;
}


/* 标签内容区 */
.drawer-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 14px;
    background: #fff;
    border-radius: 9999px;
    font-size: 14px;
    color: #333;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-item:hover {
    background-color: #e0e6ff;
    color: #3f51b5;
}

.tag-item.selected {
    background-color: #3f51b5;
    color: #fff;
    border-color: #3f51b5;
}

/* —— 抽屉基础 —— */
.template-drawer {
    overflow-y: auto;
}

/* —— 分组条 —— */
.tpl-group-bar {
    display: flex;
    gap: 12px;
    padding: 4px 4px 12px 4px;
    overflow-x: auto;
    white-space: nowrap;
}

.tpl-group-bar::-webkit-scrollbar {
    display: none
}

.group-item {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    padding: 2px 10px;
    border-radius: 16px;
    transition: .2s;
    position: relative;
}

.group-item.active {
    color: #5b4bff;
    background: rgba(91, 75, 255, .07);
}

.badge {
    position: absolute;
    top: -6px;
    right: -20px;
    font-size: 10px;
    color: #ff4d4f;
    font-weight: 600;
}

/* —— 模版网格 —— */
.tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    grid-gap: 20px 16px;
    padding-bottom: 24px;
}

.tpl-card {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: #fafafa;
    transition: border .2s;
    border: 2px solid transparent;
    position: relative;
}

.tpl-card.selected {
    border-color: #5b4bff;
}

.thumb-wrapper {
    position: relative;
}

.thumb-wrapper img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.check-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 18px;
    color: #5b4bff;
}

/* 文字信息 */
.tpl-info {
    padding: 8px
}

.tpl-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.tpl-tags {
    font-size: 11px;
    color: #8f91a8;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* —— 强度滑杆 —— */
.create-strength {
    display: flex;
    align-items: center;
    margin-top: 8px
}

.strength-label {
    font-size: 12px;
    color: #666;
    margin-right: 8px
}

.strength-slider {
    flex: 1;
    margin: 0 8px
}

.strength-val {
    font-size: 12px;
    color: #666;
    width: 30px;
    text-align: right
}

/* ======= 已选中状态 ======= */
.create-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 12px;
}

.create-info {
    flex: 1;
    overflow: hidden;
    display: flex;
}

.create-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 20px;
}

.create-tags {
    background: #fb7299;
    border-radius: 100px;
    color: #fff;
    font-size: 11px;
    margin-left: 4px;
    padding: 2px 0;
    text-align: center;
    width: 40px;
}

.painting-ration-item-svg {
    color: #fb7299;
    font-size: 20px;
    margin-left: 18px;
    margin-right: 3px;
    line-height: 0;
}

.painting-ration-item-svg-icon {
    width: 1em;
    height: 1em;
}


.reference-popover {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 280px;
    background: #fff;
    color: #333;
    font-size: 13px;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: normal;
    z-index: 10;
    text-align: left;
    line-height: 1.5;
}

.reference-popover .model-link {
    color: #5b4bff;
    cursor: pointer;
    font-weight: 500;
    margin-left: 4px;
}


.reference-upload-empty:hover {
    background: #f0f1f7;
}

.reference-image-preview {
    display: flex;
    align-items: center;
    background: #f7f8fc;
    border-radius: 12px;
    position: relative;
}

.reference-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.reference-filename {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.reference-delete {
    font-size: 16px;
    color: #999;
    cursor: pointer;
    margin-left: 8px;
}

.reference-options {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    flex-direction: column;
    align-content: stretch;
}

.reference-mode {
    display: flex;
    gap: 8px;
}

.reference-mode span {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f0f0f5;
    cursor: pointer;
    color: #666;
}

.reference-mode span.active {
    background: #fb7299;
    color: #fff;
}

.reference-strength {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-strength input[type="range"] {
    width: 100px;
}

.reference-strength-title,
.reference-mode-title {
    color: #8f91a8;
    font-size: 13px;
}

.reference-mode-blcok,
.reference-strength-blcok {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.painting-ration-item.active {
    background: #fb7299;
    color: #fff;
}

.painting-btnInner.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* —— 动画 —— */
.fade-enter-active,
.fade-leave-active {
    transition: .2s ease
}

.fade-enter,
.fade-leave-to {
    opacity: 0
}

/* —— 整体蒙层 —— */
.pv-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* —— 对话框 —— */
.pv-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 50vw;
    max-width: 1200px;
    height: 50vh;
    display: flex;
    overflow: hidden
}

/* 左侧缩略 */
.pv-thumbs {
    width: 84px;
    padding: 16px;
    overflow-y: auto;
    background: #f7f8fc
}

.pv-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    margin: 8px auto;
    cursor: pointer;
    overflow: hidden
}

.pv-thumb.active {
    box-shadow: 0 0 0 2px #5b4bff
}

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

/* 中间大图 */
.pv-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.pv-big {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px
}

.pv-count {
    position: absolute;
    top: 12px;
    right: 12px;
    font-weight: 600;
    color: #666
}

/* 右侧信息 */
.pv-info {
    width: 320px;
    padding: 24px 28px;
    border-left: 1px solid #eee;
    overflow-y: auto
}

.pv-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px
}

.copy {
    font-size: 12px;
    margin-left: 8px;
    color: #5b4bff
}

.pv-prompt {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 18px
}

.pv-meta li {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    padding: 4px 0
}

.pv-meta span {
    color: #999
}

.pv-actions {
    display: flex;
    position: absolute;
    bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px
}

.pv-btn {
    flex: 1 1 45%;
    background: #fb7299;
    border: none;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer
}

.pv-btn i {
    margin-right: 4px
}

/* 顶部操作 */
.pv-topbar {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 16px;
    font-size: 20px;
    color: #666
}

.pv-topbar i {
    cursor: pointer
}

.painting-createModel-body.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.image-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #f0f0f0 25%, #f9f9f9 25%, #f9f9f9 50%, #f0f0f0 50%, #f0f0f0 75%, #f9f9f9 75%, #f9f9f9);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

.pending {
    opacity: 0.6;
}

.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.compare-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.compare-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.compare-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    cursor: pointer;
    box-shadow: 0 0 0 1px #ccc;
}

.compare-wrapper {
    position: relative;
}

.compare-container {
    position: relative;
    width: 512px;
    height: 640px;
    overflow: hidden;
    background: #f2f2f2;
}

.compare-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    z-index: 3;
}

.slider-icon {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    background: #fff;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 0 1px #ccc;
}

.compare-labels .label {
    position: absolute;
    top: -24px;
    background: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #ccc;
}

.compare-labels .left {
    transform: translateX(-100%);
}

.compare-labels .right {
    transform: translateX(0%);
}

.slider-input {
    width: 100%;
    margin-top: 20px;
    appearance: none;
    height: 4px;
    background: #ccc;
    outline: none;
    cursor: pointer;
}

.painting-ant-input {
    overflow-y: auto;
    height: 100px;
    resize: none;
    min-height: 100px;
    max-height: 100px;
}

@media (max-width: 768px) {
    .painting-page {
        width: 100%;
        padding: 4px;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .painting-page-main {
        min-width: 0;
        margin-left: 0;
        margin-top: 0;
        padding: 0;
        height: auto;
        width: 100% !important;
    }

    .painting-main-wrapper {
        border-radius: 0;
        padding: 8px 2px 0 2px;
        max-height: none;
    }

    .painting-group {
        flex-direction: column;
        padding: 8px;
        margin-bottom: 16px;
        border-radius: 0;
    }

    .painting-image-row {
        width: 100%;
        gap: 8px;
        margin-bottom: 8px;
    }

    .painting-image-item {
        width: 48%;
        min-width: 120px;
        margin-bottom: 8px;
    }

    .painting-info {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        margin-top: 8px;
        position: static;
        align-items: center;
    }

    .painting-info-actions {
        position: static;
        margin-top: 8px;
        gap: 4px;
    }

    .painting-aside-wrapper,
    .drawer-aside,
    .drawer-aside-blcok {
        border-radius: 0;
        padding: 8px 4px;
    }

    .painting-page-aside {
        width: 100% !important;
        max-width: 100% !important;
    }

    .drawer-aside.drawer-open {
        width: 100%;
        left: 0;
        transform: none;
        box-shadow: none;
        z-index: 9;
    }

    .drawer-aside-blcok {
        padding-left: 0;
    }

    .model-list {
        padding: 4px;
        gap: 8px;
    }

    .model-item {
        padding: 8px 6px;
    }

    .tpl-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 8px 6px;
        padding-bottom: 12px;
    }

    .tpl-card {
        border-radius: 8px;
    }

    .pv-dialog,
    .redraw-dialog,
    .compare-content {
        flex-direction: column;
        width: 98vw;
        height: auto;
        min-width: 0;
        max-width: 100vw;
        max-height: 98vh;
        border-radius: 8px;
        padding: 0;
    }

    .pv-thumbs {
        display: flex;
    }

    .pv-thumbs,
    .pv-info,
    .redraw-right {
        width: 100%;
        padding: 8px;
        border-left: none;
        border-top: 1px solid #eee;
    }

    .pv-main,
    .redraw-left {
        min-height: 180px;
        height: auto;
        padding: 0;
    }

    .pv-title,
    .redraw-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .pv-meta li,
    .pv-prompt {
        font-size: 12px;
    }

    .pv-actions,
    .redraw-actions {
        flex-direction: column;
        gap: 8px;
        position: static;
        margin-top: 8px;
    }

    .pv-btn,
    .redraw-actions .btn {
        width: 100%;
        font-size: 14px;
        padding: 8px 0;
    }

    .compare-container {
        width: 100vw;
        height: 60vw;
        min-height: 180px;
        max-width: 100vw;
        max-height: 60vw;
    }

    .compare-labels .label {
        font-size: 11px;
        top: -18px;
    }

    .category-scroll-wrapper {
        margin-bottom: 6px;
    }

    .category-item,
    .tag-item {
        font-size: 12px;
        padding: 2px 8px;
        margin-right: 4px;
    }

    .painting-btnInner {
        height: 44px;
        font-size: 15px;
    }

    .painting-btnInner-text,
    .painting-btnInner-count {
        font-size: 15px;
    }

    .painting-aside-header-title,
    .drawer-aside-header-title {
        font-size: 15px;
        padding: 4px 0 8px 4px;
    }

    .painting-referenceImage-body,
    .painting-createModel-body {
        padding: 4px 0 4px 4px;
        margin-top: 2px;
    }

    .painting-createModel-icon {
        width: 36px;
        height: 36px;
    }

    .create-thumb {
        width: 36px;
        height: 36px;
        margin-right: 6px;
    }

    .painting-ant-input {
        font-size: 12px;
        padding: 4px;
        min-height: 60px;
        max-height: 60px;
        height: 60px;
    }

    .painting-promptCou {
        padding: 8px 8px 4px;
        border-radius: 8px;
    }

    .painting-ration-list {
        gap: 4px;
    }

    .painting-ration-item {
        padding: 6px 0;
        font-size: 12px;
        width: calc(50% - 2px);
    }

    .painting-ration-item-svg {
        font-size: 16px;
        margin-left: 8px;
        margin-right: 2px;
    }

    .image-placeholder {
        height: 80px;
        font-size: 12px;
    }

    .popover {
        font-size: 11px;
        padding: 8px;
        border-radius: 6px;
    }

    .reference-popover {
        max-width: 90vw;
        font-size: 12px;
        padding: 8px;
        border-radius: 8px;
    }

    .reference-thumb {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .reference-filename {
        font-size: 12px;
    }

    .reference-delete {
        font-size: 14px;
        margin-left: 4px;
    }

    .reference-options {
        margin-top: 6px;
    }

    .reference-mode span {
        font-size: 12px;
        padding: 2px 6px;
        border-radius: 6px;
    }

    .reference-strength input[type="range"] {
        width: 70px;
    }

    .strength-label,
    .strength-val {
        font-size: 11px;
    }

    .redraw-textarea {
        height: 100px;
        font-size: 12px;
        padding: 6px;
    }

    .toolbar-item {
        padding: 2px 4px;
        font-size: 12px;
    }

    .brush-slider,
    .alpha-slider {
        width: 70px;
    }

    .color-input {
        width: 18px;
        height: 18px;
    }

    .slider-input {
        margin-top: 10px;
        height: 3px;
    }
}