﻿.pui-flex {
    display: flex;
}

.pui-flex > div {
    width: 50%;
}

.pui-flex > div:not(:first-child) {
    margin-left: 10px;
}

.gen-item.selected {
    background-color: #e6f7ff;
    border: 2px solid #1890ff;
}

.container {
    display: flex;
    margin: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.left-panel, .right-panel {
    position: relative;
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    margin: 10px;
    border-radius: 5px;
}

.left-panel {
    max-width: 280px;
    width: 280px;
}

.img-item {
    border: solid 1px #ccc;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.img-item img {
    max-height: 320px;
    object-fit: contain;
}

.img-item .time {
    font-size: 12px;
    color: #999;
    padding: 6px;
    text-align: right;
    line-height: 1.2;
}

.right-panel {
    max-width: 80%;
}

.layui-upload-img {
    position: relative;
    width: 280px;
    max-width: 100%;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.layui-upload-img img {
    width: 100%;
}
/* 半透明条子样式 */
.overlay {
    position: absolute;
    top: 0;
    left: -30px; /* 初始位置在图片左侧 */
    width: 30px;
    height: 100%;
    background: linear-gradient( to right, rgba(255, 255, 255, 0), /* 左侧完全透明 */
    rgb(189, 189, 189, 0.50), /* 中间半透明白色 */
    rgba(255, 255, 255, 0) /* 右侧完全透明 */
    );
    animation: sweep 3s infinite linear;
}

.ai-mess {
    position: absolute;
}

.ai-tips {
    position: relative;
    max-height: 80px;
    font-size: 12px;
    color: #ccc;
    overflow: hidden;
}
/* 动画定义 */
@keyframes sweep {
    0% {
        left: -50px; /* 从左侧开始 */
    }

    50% {
        left: 100%; /* 移动到右侧 */
    }

    100% {
        left: -50px; /* 回到左侧 */
    }
}

.layui-tab-content {
    position: relative;
}

.code-output {
    width: 100%;
    height: calc(100% + 60px);
    font-family: monospace;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    resize: none;
    box-sizing: border-box;
}

.copy-btn {
    margin-top: 10px;
}

.ai-model {
    position: absolute;
    right: 8px;
    top: 8px;
}

.gen-list::after {
    content: " ";
    display: block;
    clear: both;
}

.cap-shot {
    position: relative;
    border: solid 1px #ccc;
    border-radius: 8px;
    float: left;
    overflow: hidden;
    margin: 2px;
}

.cap-shot img {
    width: 80px;
    height: 120px;
    object-fit: contain;
}

.cap-shot .tips {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    text-align: center;
}

.cap-shot .tips img {
    width: 60px;
    height: 60px;
    position: absolute;
    top: -20px;
}

.cap-shot .gen-info {
    text-align: center;
}

.preview-page {
    box-shadow: 0 0 3px #ccc;
    min-height: 60px;
    position: relative;
    z-index: 9;
    display: block !important;
}

.preview-code {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block !important;
}

.preview-ifm {
    border: none;
    width: 100%;
    height: 60px;
    background: #fff;
}

.desc {
    box-shadow: 0 0 3px #ccc;
    border-radius: 8px;
    padding: 6px;
}

.desc p {
    color: #888;
    text-indent: 20px;
    padding: 8px;
}

.top-win-tips {
    padding: 16px 28px !important;
    background: #f90;
    color: #fff;
    border-radius: 50px;
}

/* 推特分享按钮样式 */
.share-btn {
    margin-left: 10px;
    background-color: #1DA1F2; /* 推特蓝色 */
    color: white;
}

.share-btn:hover {
    background-color: #0c85d0;
    color: white;
}
