﻿.sidebar {
    width: 200px;
    background-color: #fbfbfd;
    height: calc(100vh - 80px);
    padding: 20px 10px;
    position: fixed;
    top: 60px;
    left: 0;
    border-radius: 10px;
    margin: 10px 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 15px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #333333;
    border-radius: 50px;
}

.sidebar-menu li:hover {
    background: linear-gradient(to left , #fefbe8, #ffe8d5);
}

.sidebar-menu li.active {
    background: linear-gradient(to left , #fefbe8, #ffe8d5);
    color: #333333;
}

.sidebar-menu li img {
    margin-right: 10px;
}

.main-content {
    margin-left: 200px;
    padding:70px 20px 20px;
    display: flex;
    gap: 20px;
}

.left-panel {
    width: 400px;
    min-height: calc(100vh - 90px);
    background-color: #fbfbfd;
    padding: 20px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333333;
}
.form-group label > i{
    color: #f44336;
}
.form-group .upload-area {
    border: 2px dashed #999999;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #ffffff;
    position: relative;
}
.form-group .upload-area > img {
    width: 30px;
    height: 30px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-group .upload-area:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.form-group .upload-area > p {
    margin-top: 10px;
    color: #ccc;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.form-group select, .form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #ffffff;
    border-radius: 4px;
    color: #333333;
    font-size: 14px;
}

.form-group select:focus, .form-group input[type="text"]:focus {
    outline: none;
    border: 1px solid #ffd000;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #ffffff;
    border-radius: 4px;
    color: #333333;
    font-size: 14px;
    height: 100px;
    resize: none;
}

.form-group textarea:focus {
    outline: none;
    border: 1px solid #ffd000;
}
.imgto-achieve{
    display: flex;
    justify-content: space-between;
}

.achieve-btn{
    background-color: #ffffff;
    font-size: 14px;
    color: #333333;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.form-group button {
    width: 100%;
    padding: 10px;
    background-color: #ffd000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color: #ffd000;
}

.right-panel {
    flex: 1;
    background-color: #fbfbfd;
    padding: 15px;
    border-radius: 10px;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.tabs button {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
    padding: 10px 0px;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-right: 10px;
}

.tabs button.active {
    color: #ff8a26;
    border-bottom: 2px solid #ff8a26;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1.02);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 14px;
    text-align: center;
}

.image-item:hover .overlay {
    opacity: 1;
}

.btn-download {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-download i{
    font-size: 20px;
}
.image-item:hover .btn-download {
    opacity: 1;
}

.footer {
    margin-top: 20px;
    padding: 20px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.tooltip {
    position: relative;
    display: inline-block;
    color: #999999;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.tag {
    display: inline-block;
    background-color: #ffd000;
    color: #222222;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 14px;
    margin: 5px;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.button-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.button-group button.primary {
    background-color: #ff8a26;
    color: white;
}

.button-group button.primary:hover {
    background-color: #ffd000;
}

.button-group button.secondary {
    background-color: #2d2d2d;
    color: white;
}

.button-group button.secondary:hover {
    background-color: #444;
}

.badge {
    display: inline-block;
    background-color: #f44336;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 5px;
}


.pattern-sel{
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pattern-sla{
    width: 40%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #383838;
    border-radius: 6px;
    border: 1px solid #474747;
}
.slawid25{
    width: 25%;
}
.slawid30{
    width: 30%;
    margin: 0;
    border: 1px solid #474747;
    border-radius: 6px;
}
.pattern-sla p{
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.pattern-sla p span{
    font-size: 8px;
    background-color: #fbd3a0;
    padding: 0 2px;
    border-radius: 2px;
    color: #131313;
    margin-left: 2px;
}
.pattern-sla img{
    width: 15px;
    height: 15px;
}

/* 图片预览样式 */
#preview-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-container1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-container2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
#preview-image1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
#preview-image2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
#remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#remove-image:hover {
    background: #d32f2f;
}

#remove-image1 {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #remove-image1:hover {
        background: #d32f2f;
    }

#remove-image2 {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #remove-image2:hover {
        background: #d32f2f;
    }
/* 上传区域拖拽样式 */
.upload-area.dragover {
    border-color: #ffd000 !important;
    background-color: rgba(255, 208, 0, 0.1) !important;
}

/* 字符计数样式 */
.character-count {
    text-align: right;
    color: #ccc;
    font-size: 12px;
    margin-top: 5px;
}

.character-count.warning {
    color: #ff9800;
}

.character-count.error {
    color: #f44336;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 生成结果区域 */
.generated-result {
    margin-top: 20px;
    padding: 20px;
    background-color: #2d2d2d;
    border-radius: 8px;
    text-align: center;
}

.generated-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-btn {
    margin-top: 15px;
    background-color: #ffd000;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.download-btn:hover {
    background-color: #ffc107;
}




@media only screen and (max-width:1340px) {
	.sidebar-menu li{
		margin-bottom: 10px;
    	padding: 8px 15px;
    	font-size: 12px;
	}

	.left-panel{
		padding: 15px;
	}


}



@media only screen and (max-width:768px) {
    .image-hedbox {
        padding: 10px .3rem !important;
    }
    .image-hedbx-logo img {
        width: 35px !important;
        height: 35px !important;
    }
    .image-hedbx-logo h3 {
        font-size: 22px !important;
    }
    .image-hedbx-ri a {
        padding: 6px 15px !important;
        font-size: 10px !important;
    }
    .image-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .batch-actions {
        display: none;
    }
    .checkmark {
        display:none;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
    }




    .sidebar {
        width: 100%;
        height: auto;
        padding: .2rem 0;
        position: relative;
        top: 0;
        left: 0;
        padding-top: 80px;
    }
   
    .sidebar-menu li {
        margin-bottom: .2rem;
        padding: 8px 15px;
        font-size: 12px;
    }
    .sidebar-menu li img {
        margin-right: 5px;
    }


    .form-group select, .form-group input[type="text"]{
        padding: 15px 10px;
        min-height: 50px;
    }


    .main-content {
        margin-left: 0px;
        padding: .2rem .2rem .2rem;
        gap: .2rem;
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        min-height: auto;
        padding: .4rem .2rem;
    }



    .sidebar-menu li{
        display: none;
    }
    .sidebar-menu li:nth-child(2) , .sidebar-menu li:nth-child(3){
        display: block;
    }
    .sidebar > div{
        display: none;
    }
    .achieve-btn{
        opacity: 0;
        visibility: hidden;
    }

}