body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.header {
    text-align: center;
    padding: 20px 0;
    /*background-color: #fff;*/
    border-radius: 10px;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);*/
}

.tabs {
    display: flex;
    justify-content: center; /* 修改为居中 */
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    gap: 80px; /* 增加按钮之间的间距 */
    padding-left: 20px; /* 左侧保留一定距离 */
    padding-top: 10px; /* 增加顶部内边距 */
    padding-bottom: 10px; /* 增加底部内边距 */
}

.tab-button {
    padding: 10px 60px; /* 增加按钮宽度 */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    outline: none;
    /*background-color: #f0f0f0; !* 更柔和的背景颜色 *!*/
    color: #333; /* 字体颜色 */
    border-radius: 20px; /* 圆润的边缘 */
    font-size: 16px; /* 字体大小 */
    text-decoration: none; /* 去掉下划线 */
}

.tab-button.active {
    background-color: #4f8eff; /* 选中状态的背景颜色 */
    color: #fff; /* 选中状态的字体颜色 */
}

.tab-button:hover {
    background-color: rgb(234, 235, 236); /* 悬停状态的背景颜色 */
    /*color: #fff; !* 选中状态的字体颜色 *!*/
}

.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.upload-section {
    width: 45%;
}

.upload-box {
    background-color: #fff;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    position: relative;
}

.upload-box.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed #4f8eff;
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

.step-number {
    background-color: #4f8eff;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
}

.upload-label {
    float: left;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.upload-icon-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.upload-icon {
    width: 100px;
    height: 100px;
    border: 1px dashed #ccc;
    background-color: rgb(249 250 251);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
}

.upload-icon input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.desc {
    font-size: 14px;
    color: grey;
}

.plus-sign {
    width: 30px;
    height: 30px;
    position: relative;
}

.plus-sign::before,
.plus-sign::after {
    content: '';
    position: absolute;
    background-color: #ccc;
}

.plus-sign::before {
    width: 30px;
    height: 5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.plus-sign::after {
    width: 5px;
    height: 30px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.submit-button {
    background-color: #4f8eff;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 100px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #4a7edf;
}
.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed; /* 禁用鼠标样式 */
}
.preview-section {
    width: 50%;
    text-align: center;
}

.video-preview {
    width: 100%;
    height: 450px;
    position: relative;
}

.preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4f8eff;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-button:hover {
    background-color: #4a7edf;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #4c70ff;
    color: #fff;
}

.cndkbeforeafter-theme-light .cndkbeforeafter-item-before-text {
    font-size: .875rem;
    height: 0.25rem;
    line-height: 0.25rem;
    margin-top: 0.25rem;
    background-color: rgb(55 65 81) !important;
    color: white !important;
    border-radius: .125rem;
}

.cndkbeforeafter-theme-light .cndkbeforeafter-item-after-text {
    font-size: .875rem;
    height: 0.25rem;
    line-height: 0.25rem;
    margin-top: 0.25rem;
    background-color: rgb(22 163 74) !important;
    color: white !important;
    border-radius: .125rem;
}

.buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 150px;
}

.round-button {
    background-color: #fff;
    color: rgb(75 85 99);
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.round-button:hover {
    color: #4f8eff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.submit-description {
    text-align: center;
    font-size: 12px;
    color: grey;
    margin-top: 8px;
}

.progress-bar {
    position: relative;
    margin-top: 10px;
    height: 15px;
    background-color: #e0e0e0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #4f8eff;
    width: 0;
    border-radius: 8px;
    transition: width 0.3s;
}

#progress-percentage {
    position: absolute;
    right: 0;
    padding-right: 5px;
    color: #4f8eff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    .upload-section {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
    }
    .preview-section {
        width: 100%;
        box-sizing: border-box;
        margin-top: 20px;
    }
    .submit-button {
        background-color: #4f8eff;
        color: #fff;
        font-size: 16px;
        font-weight: 500;
        padding: 10px 20px;
        border: none;
        border-radius: 30px;
        cursor: pointer;
        transition: background-color 0.3s;
        width: 100%;
        box-sizing: border-box;
    }
    .tabs {
        flex-direction: row; /* 将标签按钮方向改为水平排列 */
        gap: 10px; /* 减少按钮之间的间距 */
        padding: 10px; /* 减少内边距 */
        flex-wrap: wrap; /* 允许换行 */
        justify-content: center; /* 居中对齐 */
    }
    .tab-button {
        padding: 6px 20px; /* 减少按钮宽度 */
        box-sizing: border-box; /* 确保内边距和边框包含在宽度内 */
    }

    .buttons {
        flex-direction: row; /* 将按钮方向改为垂直排列 */
        gap: 10px; /* 减少按钮之间的间距 */
        align-items: center; /* 水平居中对齐 */
        border-radius: 50%; /* 圆形 */
    }
    .round-button {
        width: 70px;
        height: 70px;
        box-sizing: border-box;
        padding: 10px;
    }
    .beforeimagetest {
        background-color: #131313;
        text-align: center;
    }
    .beforeimagetest img {
        width: 800px;
        height: 100%;
        object-fit: contain;
    }
}
.model-container {
    width: 100%;
    display: flex;
    justify-content: left; /* 确保按钮靠左排列 */
    align-items: flex-start;
    flex-wrap: wrap;
}

.model-button {
    display: inline-block;
    width: 150px;
    padding: 5px 5px;
    margin: 5px;
    background-color: #f0f0f0;
    color: rgb(75 85 99);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    box-sizing: border-box; /* 确保内边距和边框包含在宽度内 */
}

.model-button.active {
    background-color: #4f8eff;
    color: white;
    border-color: #007bff;
}

@media (max-width: 768px) {
    .model-container {
        flex-wrap: wrap; /* 确保在小屏幕上按钮可以换行 */
    }
    .model-button {
        width: calc(50% - 10px); /* 设置每个按钮占据50%的宽度减去间距 */
        margin-right: 10px; /* 添加右侧间距 */
        margin-bottom: 10px; /* 添加底部间距 */
    }
    .model-button:nth-child(2n) {
        margin-right: 0; /* 去除每行第二个按钮的右侧间距 */
    }
}