@import url("nav-box.css");
@import url("search-content.css");

.detail {
    width: 100%;
    background-color: #F9FAFF;

    & .detail-container {
        width: 1200px;
        margin: 0 auto;
        padding: 50px 0;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row;

        & .content {
            width: 100%;
            margin: 0 0 0 30px;

            & .search input {
                border: none !important;
            }
        }

        & .detail-box {
            width: 100%;
            margin: 20px 0 0;

            & .detail-tit {
                font-size: 22px;
                color: #000;
                padding: 20px 0;
                border-bottom: 1px solid #ccc;
            }

            & .form-box {
                width: 100%;
                margin: 30px 0 0;
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                flex-direction: row;

                & .form-img {
                    width: 311px;
                    flex: 0 0 auto;

                    & .img {
                        width: 100%;
                        height: 416px;
                        display: flex;
                        overflow: hidden;;
                    }

                    & .img img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        margin: auto;
                    }

                    & .btn-box {
                        width: 100%;
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        flex-direction: row;
                        margin: 22px 0 0;

                        & .btn {
                            width: 141px;
                            height: 55px;
                            line-height: 55px;
                            border-radius: 8px;
                            cursor: pointer;
                            font-size: 20px;
                            color: var(--btn-bg);
                            background-color: #fff;
                            text-align: center;
                            border: 1px solid var(--btn-bg);
                        }

                        & .btn.full {
                            color: #fff;
                            background-color: var(--btn-bg);
                        }
                    }
                }

                & .form-option {
                    width: 100%;
                    margin-left: 50px;
                    padding-right: 60px;

                    & .form-item {
                        width: 100%;
                        padding: 0 0 15px;
                    }

                    & .form-item .form-label {
                        width: 100%;
                        font-size: 18px;
                        color: #303133;

                        & span::after {
                            content: '*';
                            color: #F56C6C;
                            margin-left: 4px;
                        }

                        & span.nostar::after {
                            display: none;
                        }
                    }

                    & .form-item .form-input {
                        width: 100%;
                        margin: 8px 0 0;

                        & .datetime {
                            width: 100%;
                            height: 42px;
                        }

                        & input {
                            height: 50px;
                            line-height: 50px;
                        }
                    }

                    & .form-item .upload-box {
                        width: 100%;
                        position: relative;
                        padding: 0;

                        & .upload-demo {
                            width: 287px;
                        }

                        & .el-upload-list__item-info {
                            width: auto;
                            margin: 0;
                            padding: 0;
                        }

                        & .el-upload-list__item-name {
                            padding: 0;
                        }

                        & .el-upload-list__item-status-label {
                            position: relative;
                            right: 0;
                            left: 2px;
                            top: 2px;
                        }

                        & .el-icon--close {
                            position: relative;
                            right: 0;
                            left: 2px;
                            top: 9px;
                        }

                        & .upload-btn {
                            width: 88px;
                            font-size: 14px;
                            color: #fff;
                            text-align: center;
                            background-color: var(--btn-bg);
                            padding: 6px 0;
                            border-radius: 2px;
                            cursor: pointer;
                        }

                        & .upload-tips, & .upload-file {
                            width: 287px;
                            margin: 8px 0 0;
                            color: #606266;
                            font-size: 15px;
                        }

                        & .upload-file {
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            gap: 2px;
                            flex-direction: row;
                        }

                        & .upload-file i, & .upload-file i svg {
                            width: 14px;
                            height: 14px;
                        }

                        & .upload-file i.res-icon svg {
                            width: 16px;
                            height: 16px;
                        }
                    }
                }
            }

            & .info-list {
                width: 100%;
                /* display: flex;
                justify-content: flex-start;
                align-items: flex-start;
                flex-direction: row;
                flex-wrap: wrap; */
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 15px;
                padding: 20px 0;

                & .info-item {
                    display: flex;
                    justify-content: flex-start;
                    align-items: flex-start;
                    flex-direction: row;
                    padding: 0;

                    & .info-lab {
                        font-size: 18px;
                        color: #646D7F;
                    }

                    & .info-val {
                        width: 200px;
                        font-size: 18px;
                        font-weight: 600;
                        color: #3E4955;
                        flex: 0 0 auto;
                    }
                }
            }

            & .article-list {
                width: 100%;
                padding: 20px 0;

                & .art-item {
                    padding: 0;

                    & .art-title {
                        width: 100%;
                        font-size: 20px;
                        font-weight: 600;
                        color: #000;
                        padding: 20px 0;
                        border-bottom: 1px solid #ccc;
                    }

                    & .art-content {
                        font-size: 14px;
                        color: #2B3845;
                        padding: 20px 0;
                    }
                }
            }

            & .comment {
                width: 100%;
                padding: 20px 0;

                & .comm-tit {
                    font-size: 22px;
                    font-weight: 600;
                    padding: 20px 0;
                    border-bottom: 1px solid #ccc;
                }

                & .comm-login {
                    width: 100%;
                    padding: 4px 15px;
                    background-color: #fff;
                    margin: 20px 0 0;
                    border-radius: 2px;

                    & span {
                        font-size: 14px;
                        color: #666;
                    }

                    & .comm-box {
                        width: 100%;
                        height: 222px;
                        position: relative;
                        background-color: #fff;
                        border-radius: 2px;

                        & textarea {
                            width: 100%;
                            height: 100%;
                            border: none;
                            outline: none;
                            resize: none;
                            font-size: 14px;
                            color: #666;
                            font-family: Arial, Helvetica, sans-serif;
                            padding: 10px 0;
                            box-sizing: border-box;
                        }

                        & .str-length {
                            font-size: 14px;
                            color: #373737;
                            display: inline-block;
                            position: absolute;
                            left: 0px;
                            bottom: 10px;
                        }

                        & .btn {
                            width: 113px;
                            font-size: 14px;
                            border: 1px solid var(--btn-bg);
                            border-radius: 50px;
                            padding: 6px 0 8px;
                            position: absolute;
                            right: 0px;
                            bottom: 10px;
                            cursor: pointer;
                            text-align: center;

                            &.cancel {
                                background-color: #fff;
                                border-color: var(--btn-bg);
                                color: var(--btn-bg);
                                right: 128px;
                            }

                            &.ok {
                                background-color: var(--btn-bg);
                                color: #fff;
                            }
                        }
                    }
                }

                & .comm-list {
                    width: 100%;
                    margin: 30px 0 0;

                    & .comm-item {
                        width: 100%;
                        padding: 15px 35px 15px 20px;
                        border-radius: 2px;
                        background-color: #fff;
                        display: flex;
                        justify-content: flex-start;
                        align-items: flex-start;
                        flex-direction: row;
                        margin: 0 0 20px 0;
                        border-bottom: 2px dotted #E4E4E4;

                        & .comm-user {
                            width: 53px;
                            flex: 0 0 auto;
                            margin: 0;

                            & .img {
                                width: 43px;
                                height: 43px;
                                overflow: hidden;
                                border-radius: 50%;
                                display: flex;
                            }

                            & .img img {
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                                margin: auto;
                            }
                        }

                        & .comm-content {
                            width: 100%;

                            & .comm-username {
                                width: 100%;
                                font-size: 15px;
                                font-weight: 600;
                            }

                            & .comm-cont {
                                width: 100%;
                                font-size: 14px;
                                color: #2B3845;
                                line-height: 1.5;
                                margin: 8px 0;
                            }

                            & .comm-bottom {
                                width: 100%;
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                flex-direction: row;
                                margin: 15px 0 0;

                                & .comm-time {
                                    font-size: 12px;
                                    color: #999;
                                }

                                & .comm-favor,
                                & .comm-oppose {
                                    font-size: 12px;
                                    color: #000;
                                    cursor: pointer;
                                    display: flex;
                                    justify-content: flex-start;
                                    align-items: center;
                                    flex-direction: row;

                                    & i {
                                        width: 16px;
                                        height: 16px;
                                        background-image: url(../images/favor.png);
                                        background-position: center;
                                        background-repeat: no-repeat;
                                        background-size: cover;
                                        display: block;
                                    }
                                }

                                & .comm-favor {
                                    margin: 0 33px 0 auto;
                                }

                                & .comm-favor.on,
                                & .comm-oppose.on {
                                    & i {
                                        background-image: url(../images/favor-on.png);
                                    }

                                    & span {
                                        color: #dc0707;
                                    }
                                }

                                & .comm-oppose i {
                                    transform: rotateX(180deg);
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

@media only screen and (min-width: 750px) and (max-width: 1190px) {
    .detail .detail-container {
        width: 100%;
        margin: 0;

        & .content {
            margin: 0 0 0 20px;
            padding: 0 15px 0 0;
        }

        & .detail-box .info-list .info-val {
            width: 130px !important;
        }

        & .detail-box .comment {
            padding: 0;
        }

        & .detail-box .form-box {
            & .form-option {
                margin-left: 20px;

                & .form-item .form-input input {
                    height: 25px;
                    line-height: 25px;
                }
            }

            & .form-img {
                width: 248px;

                & .img {
                    height: 332px;
                }
            }
        }
    }
}

@media only screen and (max-width: 700px) {
    .detail .detail-container {
        width: 100%;
        padding: 1rem 0 1.5rem;

        & .content {
            margin: 0;
            padding: 0 0.4rem;
        }

        & .detail-box {
            margin: 1rem 0 0;

            & .detail-tit {
                font-size: 1.2rem;
                padding: 0.3rem 0;
            }

            & .form-box {
                margin: 1rem 0 0;

                & .form-img {
                    width: 15rem;
                }

                & .form-img .img {
                    width: 94%;
                    height: 18rem;
                }

                & .form-img .btn-box {
                    width: 94%;
                    margin: 0.5rem 0 0;

                    & .btn {
                        width: 7rem;
                        height: 2.5rem;
                        line-height: 2.5rem;
                        font-size: 1rem;
                    }
                }

                & .form-option {
                    margin-left: 0;
                    padding-right: 0;

                    & .form-item {
                        padding: 0 0 0.3rem;
                    }

                    & .form-item .form-label {
                        font-size: 0.8rem;
                    }

                    & .form-item .form-input .el-input__wrapper {
                        padding: 0 0.4rem;
                    }

                    & .form-item .form-input input {
                        height: 1.6rem;
                        line-height: 1.6rem;
                        font-size: 0.7rem;
                    }
                }
            }

            & .info-list {
                padding: 0.6rem 0;
                gap: 0.4rem;

                & .info-item .info-lab {
                    font-size: 0.8rem;
                }

                & .info-item .info-val {
                    width: 5rem;
                    font-size: 0.8rem;
                }
            }

            & .article-list {
                padding: 0.6rem 0;

                & .art-item .art-title {
                    font-size: 1rem;
                    padding: 0.6rem 0;
                }

                & .art-item .art-content {
                    font-size: 0.8rem;
                    padding: 0.6rem 0;
                }
            }

            & .comment {
                padding: 0.6rem 0;

                & .comm-tit {
                    font-size: 1rem;
                    padding: 0.6rem 0;
                }

                & .comm-login {
                    padding: 0.2rem 0.6rem;
                    margin: 0.6rem 0 0;
                }

                & .comm-login .comm-box {
                    height: 10rem;

                    & .btn {
                        width: 5rem;
                        border-radius: 2rem;
                        padding: 0.3rem 0 0.4rem;
                    }

                    & .btn.cancel {
                        right: 6rem;
                    }
                }

                & .comm-list {
                    margin: 1rem 0 0;

                    & .comm-item {
                        padding: 0.6rem 1rem;
                        margin: 0 0 1rem 0;

                        & .comm-user {
                            width: 2.6rem;
                        }

                        & .comm-user .img {
                            width: 2.1rem;
                            height: 2.1rem;
                        }

                        & .comm-content .comm-username {
                            font-size: 0.8rem;
                        }

                        & .comm-content .comm-cont {
                            font-size: 0.7rem;
                        }

                        & .comm-content .comm-bottom {
                            margin: 0.6rem 0 0;
                        }
                    }
                }
            }
        }
    }
}