#content{ max-width: 1800px; padding-bottom:0}
#content #main{text-align: left; vertical-align: middle; margin-top: 20px; margin-left: 140px; background: none; padding: 20px;}
.item .index-ai-tag-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.item .index-ai-tag-wrap img {
    display: block;
}
.item .index-ai-tag-wrap::after {
    content: attr(data-ai-tag);
    position: absolute;
    right: 8px;
    bottom: 8px;
        color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#bannerTemplates{max-width: 1660px;  margin: 0 auto; padding: 10px 0; padding-left: 140px; }
#bannerTemplates a{ color:#fff; height: 60px; overflow: hidden; opacity: 0.8 }
#bannerTemplates a:hover{ color:#fff; opacity: 1}

#bannerTemplates dl{ display: inline-block; margin: 0; width: 17%;  overflow: hidden;  padding: 5px;}
#bannerTemplates dl img{ border-radius: 5px; width: 50px; height: 50px;}
#bannerTemplates dt{ display: inline-block;}
#bannerTemplates dd{ display: inline-block; padding-left:10px; margin: 3px 0 0 0; position: absolute; line-height: 2 }
#bannerTemplates dd span{font-size: 12px; color: #fff; margin-bottom: 10px;}

#homeNotice{position: relative; display: inline-block; float: right; margin-top: -40px; text-align: right; margin-bottom: 25px; height: 25px; overflow: hidden}
#homeNotice li{ height: 25px; line-height: 25px; font-size: 12px; color: #999; padding-right: 10px;}
#homeNotice li small{   color: #ff6600; }
#homeNotice li a{ color: #ff6600; text-decoration: underline}
#homeNotice li a:hover{ color: #ff9900; text-decoration: underline}

#siteMessageBar{
    margin-left: 140px; display: none;
    animation: siteMessageBarBgBlink 1.2s ease-in-out infinite;
}
#siteMessageBar a{ text-decoration: none; color: #fff}
#siteMessageBar a:hover{ text-decoration: none;  color: #ff9900}
#siteMessageBar a strong{ color:#fff; }
#siteMessageBar .site-message-blink{
    animation: siteMessageBlink 1s ease-in-out infinite;
}
@keyframes siteMessageBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}
@keyframes siteMessageBarBgBlink {
    0%, 100% { background-color: #248046; }
    50% { background-color: #2B2D31; }
}


#promptBox{  padding: 0px 10px; margin: 10px 0px 10px 140px;        }
#scoreHtml{ display: none}

#imgViewBox{
    margin-left: 140px;
    margin-top: 10px;
    margin-right: 10px;
}
#imgViewToolbar{
    color: #fff;
    margin-bottom: 14px;
    background: #1E1F22;
    padding: 10px;
    text-align: right;
}
#imgViewToolbar a{
    color: #ffb347;
    text-decoration: none;
}
#imgViewToolbar a:hover{
    color: #ffd184;
    text-decoration: underline;
}
#imgViewToolbar small{
    color: #339900;
    float: left;
    font-size: 14px;
}
#imgViewSelectedCount{
    color: #ffb347;
    margin-left: 8px;
}
#imgViewGrid{
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
#imgViewGrid .itemPreview{
    position: relative;
    border: 1px solid #3b3d43;
    border-radius: 10px;
    background: #23252a;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
#imgViewGrid .itemPreview:hover{
    border-color: #5a5e66;
    transform: translateY(-1px);
}
#imgViewGrid .itemPreview.selected{
    border-color: #f0b132;
    box-shadow: 0 0 0 2px rgba(240, 177, 50, 0.35), 0 8px 20px rgba(0, 0, 0, 0.35);
    background: #2f2a20;
}
#imgViewGrid .itemPreviewCheck{
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 2px 4px;
    line-height: 1;
}
#imgViewGrid .itemPreviewCheck input{
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
#imgViewGrid .itemPreviewBody{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    pointer-events: none;
}
#imgViewGrid .itemPreviewImg{
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}
#imgViewGrid .itemPreviewDetail{
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
#imgViewGrid .itemPreview:hover .itemPreviewDetail{
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 1680px){
    #imgViewGrid{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1280px){
    #imgViewGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px){
    #imgViewBox{ margin-left: 10px; }
    #imgViewGrid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #imgViewGrid .itemPreviewDetail{
        opacity: 1;
        pointer-events: auto;
    }
}
@media (max-width: 680px){
    #imgViewGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}