@charset "utf-8";

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.check-main {
    background: #fff;
    padding-top: 0;
}

.main-content {
    width: 1180px;
    margin: 0 auto;
}

.title {
    color: #573E3E;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    margin: 40px 0 13px 0;
}

.title span {
    color: #FF614F;
}

.sub-title {
    color: #6E727F;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* ==========================================================================
   Reduce Content Area
   ========================================================================== */

.reduce-content {
    padding: 30px 0 110px 0;
    border-radius: 100px 100px 0px 0px;
    background: #FFF;
}

.reduce-layout {
    display: flex;
}

/* Instruction Left Side */
.reduce-instruction {
    width: 330px;
    height: 410px;
    padding: 15px 20px;
    box-sizing: border-box;
    border-radius: 30px;
    background: #F9F9F9;
    margin-right: 20px;
    overflow: auto;
}

.reduce-instruction::-webkit-scrollbar {
    width: 3px;
}

.reduce-instruction::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: #ebebeb;
}

.reduce-instruction h2 {
    color: #836F6F;
    font-size: 14px;
    margin: 0;
}

.reduce-instruction .instruction-list {
    color: #836F6F;
    text-align: justify;
    font-size: 14px;
    line-height: 180%;
    padding: 0;
    margin: 10px 0;
}

.reduce-instruction .instruction-list li {
    list-style: none;
    margin-bottom: 10px;
}

.reduce-instruction .instruction-list li:last-child {
    margin-bottom: 0;
}

/* Input Right Side */
.reduce-input {
    width: 830px;
    position: relative;
    background: #F9F9F9;
    height: 410px;
    border-radius: 30px;
    padding: 30px 9px 30px 30px;
    box-sizing: border-box;
}

/* Textarea styling */
.reduce-input textarea {
    background: #F9F9F9;
    border: none;
    padding: 0 55px 0 0;
    width: 100%;
    height: 100%;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: inherit;
}

.reduce-input textarea::-webkit-scrollbar {
    width: 3px;
}

.reduce-input textarea::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: #ebebeb;
}

/* Task Demand */
.task-demand {
    display: flex;
    color: #666;
    font-size: 16px;
    line-height: 16px;
    position: relative;
}

.task-demand>div:first-child {
    width: 130px;
}

.task-demand>div:last-child {
    width: 100%;
}

.task-demand::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 16px;
    border-radius: 9px;
    background: #666;
    vertical-align: bottom;
    margin-right: 10px;
    position: absolute;
    left: -15px;
    /* Adjust based on relative positioning, or rely on flex if it was a child? Scoped css used ::before on .task-demand */
    top: 0;
}

/* Re-reading scoped css: .task-demand::before is a pseudo element of the container. 
   If container is flex, before is a flex item. 
   Scoped CSS:
   .task-demand::before { display: inline-block; vertical-align: bottom; }
   So it is a flex item. I should NOT position absolute it if I want to match Vue.
   Remove absolute positioning.
*/
.task-demand::before {
    position: static;
    margin-right: 10px;
}


.task-demand .sub-title {
    color: #666;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    margin: 0;
}

.require-color {
    color: #e52b2b;
    font-weight: bold;
    padding: 0 5px;
}

/* Upload Area */
.upload-type {
    display: flex;
}

.upload-file-info {
    display: flex;
    align-items: center;
}

.upload-file-info>div {
    display: inline-block;
}

.upload-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #666;
    background-color: #fff;
    border: none;
    margin-top: -10px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
}

.upload-btn .upload-btn-icon {
    margin-right: 4px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../images/write-upload-icon.png) no-repeat center;
    background-size: 15px 15px;
    vertical-align: sub;
}

.upload-btn:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), #fff;
    color: #666;
}

.upload-btn:hover .upload-btn-icon {
    background: url(../images/write-upload-icon.png) no-repeat center;
    background-size: 15px 15px;
}

.upload-tips {
    color: #909090;
    font-size: 12px;
    margin-left: 10px;
}

.col-ff6 {
    color: #FF614F;
}

/* File List */
.file-list {
    color: #666;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
    margin-top: 10px;
}

.file-list.successStyle {
    color: #6bc839;
}

.file-list .fileIcon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(../images/file-icon.png) no-repeat center;
    background-size: 18px 18px;
    vertical-align: bottom;
    margin-right: 5px;
}

.file-list.successStyle .fileIcon {
    background: url(../images/file-success-icon.png) no-repeat center;
    background-size: 18px 18px;
}

.file-list .error-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../images/wirte-error-icon.png);
    background-size: 16px 16px;
    margin-right: 10px;
}

.file-list .success-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../images/write-success-icon.png);
    background-size: 16px 16px;
    margin-right: 10px;
}

.file-list .loading-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../images/wating-icon.png);
    background-size: 16px 16px;
    margin-right: 10px;
}

.file-list .preview-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../images/eye-icon.png);
    background-size: 16px 16px;
    margin-right: 10px;
    cursor: pointer;
}

.file-list .del-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../images/delete.png) no-repeat center;
    background-size: 16px 16px;
    cursor: pointer;
}

/* Bottom Tool Box */
.tool-bottom-box {
    padding: 0 20px;
    width: 100%;
    display: flex;
    height: 43px;
    justify-content: space-between;
    align-items: center;
    left: 0;
    box-sizing: border-box;
    margin-top: 100px;
}

.tool-bottom-left {
    display: flex;
    align-items: center;
}

/* Checkbox Styling */
.check-type {
    display: flex;
}

.checkbox-label.is-checked {
    color: #FF614F;
    background: #fff;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 0;
    height: 34px;
    line-height: 34px;
    width: 80px;
    margin: 0;
    border-radius: 6px 0px 0px 6px;
    text-align: center;
    background: #ECECEC;
    justify-content: center;
    position: relative;
    font-size: 14px;
    color: #666;
    font-family: 'HarmonyOS_Sans_SC_Medium', sans-serif;
    font-weight: 500;
}

.checkbox-label:last-child {
    border-radius: 0px 6px 6px 0px;
}

.checkbox-label input {
    display: none;
}

/* Custom checkbox indicator */
.checkbox-label::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1px solid #666;
    border-radius: 5px;
    margin-right: 5px;
    box-sizing: border-box;
    background: #fff;
}

/* Checked state */
.checkbox-label.is-checked {
    color: #FF614F;
    background: #fff;
}

.checkbox-label.is-checked::before {
    border: none;
    background: url(../images/is-checked.png) no-repeat center;
    background-size: 18px 18px;
}

/* Buttons */
.buy-btn {
    font-family: 'HarmonyOS_Sans_SC_Bold', sans-serif;
    border-radius: 50px;
    background: linear-gradient(90deg, #FF4D51 0%, #F658BF 53%, #7A5AF6 100%);
    width: 106px;
    height: 34px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.buy-btn:hover {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.30) 100%), linear-gradient(90deg, #FF4D51 0%, #F658BF 53%, #7A5AF6 100%);
}

.buy-btn span {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(../images/buy-icon.png) no-repeat center;
    background-size: cover;
    vertical-align: middle;
    margin-right: 5px;
}

.confirm-submit {
    font-family: 'HarmonyOS_Sans_SC_Bold', sans-serif;
    width: 125px;
    height: 34px;
    border-radius: 50px;
    background: #FF614F;
    border: none;
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.confirm-submit:hover {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.30) 100%), #FF614F;
}

.rights-info {
    display: inline-block;
    padding: 0 10px;
    min-width: 120px;
    text-align: center;
    color: #4F5468;
    font-size: 16px;
    font-weight: 500;
}

.rights-info .fb {
    font-weight: 700;
    font-family: 'HarmonyOS_Sans_SC_Bold', sans-serif;
    font-style: normal;
}

.rights-info .word-num {
    color: #E52B2B;
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
   Reduce Diff (Bottom Area)
   ========================================================================== */

.reduce-diff {
    margin-top: 60px;
}

.reduce-diff-title {
    margin: 0;
    height: 42px;
    line-height: 42px;
    color: #573E3E;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.reduce-diff-title span {
    display: inline-block;
    width: 6px;
    height: 13px;
    border-radius: 16px;
    background: #573E3E;
    margin-right: 6px;
}

.detection-bottom-layout {
    display: flex;
}

/* User Comments */
.user-comments {
    width: 330px;
    margin-right: 20px;
}

.reduce-comments-list {
    padding: 0;
    height: 520px;
    overflow: hidden;
    margin: 0;
}

.reduce-comments-list::-webkit-scrollbar {
    width: 3px;
}

.reduce-comments-list::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background-color: #ebebeb;
}

.reduce-comments-list li {
    list-style: none;
    padding: 23px 15px 20px;
    border-radius: 12px;
    background: #F4FAFF;
    margin-bottom: 20px;
}

.reduce-comments-list li:last-child {
    margin-bottom: 0px;
}

.reduce-comments-list li .user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reduce-comments-list li .user-email {
    color: #666;
    font-size: 12px;
    font-weight: 700;
    padding-right: 10px;
}

.reduce-comments-list li .user-country {
    color: #666;
    font-size: 12px;
}

.reduce-comments-list li .comments-title {
    color: #999;
    font-size: 12px;
    font-weight: 400;
}

.reduce-comments-list li .comments-content {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
    text-align: justify;
    line-height: 150%;
}

/* Detection Image Box */
.detection-image-box {
    flex: 1;
}

.reduce-diff-content {
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.reduce-diff-content img {
    width: auto;
    height: 520px;
}

/* ==========================================================================
   Mobile Adaptation
   ========================================================================== */

@media only screen and (min-width: 1140px) {
    .check-main {
        padding-top: 55px;
    }

    .reduce-diff {
        margin-top: 30px;
    }
}

@media only screen and (max-width: 769px) {
    .check-main .reduce-diff {
        margin-top: 30px;
    }

    .reduce-main .reduce-diff .reduce-diff-title {
        margin: 30px 0 0 0;
    }

    /* Reduce Layout */
    .reduce-layout {
        flex-direction: column-reverse;
    }

    .reduce-layout-diff {
        gap: 40px;
    }

    .reduce-diff {
        margin-top: 0;
    }

    .reduce-instruction {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 20px;
        max-height: none;
    }

    .reduce-input {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    /* Task Demand */
    .task-demand {
        flex-direction: column;
        align-items: center;
    }

    .task-demand::before {
        display: none;
    }

    .task-demand>div:first-child {
        width: 100%;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

    .task-demand .sub-title {
        text-align: left;
    }

    /* Upload Area */
    .upload-file-info {
        margin-top: 20px;
        display: block;
    }

    .upload-tips {
        display: block;
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }

    /* Tool Bottom Box */
    .tool-bottom-box {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        margin-top: 30px;
        padding: 0;
    }

    .tool-bottom-left {
        width: 100%;
        margin-bottom: 20px;
        justify-content: flex-start;
    }

    .tool-bottom-right {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .confirm-submit {
        width: 100%;
        max-width: 300px;
    }

    /* Bottom Diff Layout */
    .detection-bottom-layout {
        flex-direction: column-reverse;
    }

    .user-comments {
        width: 100%;
        margin-right: 0;
        margin-top: 30px;
    }

    .detection-image-box {
        width: 100%;
    }

    .reduce-diff-content img {
        width: 100%;
        height: auto;
    }

    /* File List */
    .file-list {
        flex-wrap: wrap;
    }
}