html {
    font-size: 62.5%;
}

body {
    color: #000;
    font-size: 1.6rem;
    background: #f6f6f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: normal;
    margin: 0;
    font-family: "Microsoft JhengHei", "Microsoft YaHei", Tohoma, Arial;
    overflow: hidden;
}

body.smallfontsize {
    font-size: 1.5rem;
}

body.bigfontsize {
    font-size: 1.8rem;
}

body.smallfontsize .libraryTitle {
    font-size: 1.6rem;
}

body.bigfontsize .libraryTitle {
    font-size: 2rem;
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: #4176A6;
}

a,
li,
div,
button {
    outline: none;
    text-decoration: none;
}

body .container {
    padding: 20px 13%;
}

.header {
    background: #4176a6;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.headinner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .mlogo {
    display: inline-block;
}

.header .mlogo {
    color: #fff;
    font-size: 2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.header .mlogo img {
    width: 50%;
    padding-right: 20px;
    max-height: 57px;
}

.mainbody {
    overflow-y: auto;
    top: 72px;
    bottom: 110px;
    position: absolute;
    width: 100%;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #f6f6f6;
    z-index: 10;
}

.member {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.privacy a {
    background: url(images/tips.png) no-repeat left center;
    padding: 7px 0px 7px 45px;
    background-size: 35px 35px;
}

.privacy a span {
    display: none;
    color: #fff;
}

.nologin .historyInfo,
.haslogin .nologinArea,
.nologin .hasloginArea {
    display: none;
    position: relative;
}
.hasloginArea.headlogin{
    position: relative;
}
div.weblang {
    background: #fff;
    border-radius: 20px;
    padding: 6px 9px;
    font-weight: bold;
    font-size: 1.8rem;
    color: #4176A6;
    margin-left: 10px;
    cursor: pointer;
    white-space: nowrap;
}
.AiAnswer {
    display: flex;
    flex-direction: row;
}

.AiPhoto {
    background: url(images/unloginPhoto.png) no-repeat left top;
    text-indent: -9999px;
    background-size: 60px 60px;
    min-width: 60px;
    margin-right: 20px;
}

.haslogin .AiPhoto {
    background: url(images/hasloginPhoto.png) no-repeat left top;
    background-size: 60px 60px;
}

.message {
    background: #fff;
    border-radius: 0 10px 10px 10px;
    padding: 12px 25px;
    margin-bottom: 20px;
    border: 1px solid #DBDBDB;
    line-height: 25px;
    word-wrap: break-word;
    box-shadow: 3px 3px 0px 1px #4277A4;
}
.loadCont .replyTime,
.AiContent .replyTime {
    position: relative;
    top: -10px;
}

.userMessage {
    background: #7DA7C7;
    border-radius: 10px 10px 0 10px;
    padding: 12px 25px;
    margin-bottom: 5px;
    color: #fff;
    word-break: break-word;
}


.slider-container {
    position: relative;
    max-width: 810px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.scrollable-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scrollable-wrapper::-webkit-scrollbar {
    display: none;
}

.scrollable-content {
    display: inline-flex;
    white-space: nowrap;
}




.scrollable-wrapper.no-scroll .next-btn {
    display: none !important;
}

button.navBtn {
    width: 32px;
    height: 32px;
    top: 50%;
    z-index:9;
    background: #fff url(images/arrow.png) no-repeat center center;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, .2);
    border: 1px solid #BCBCBC;
    position: absolute;
    margin-top: -16px;
    font-size: 0;
    background-size: 16px 16px;
}

button.navBtn.leftBtn {
    left: 0;
    transform: rotate(180deg);
}

button.navBtn.rightBtn {
    right: 0;
}

.listBox.message {
    border-radius: 10px;
    padding: 0;
    margin-right: 20px;
    width: 250px;
    display: inline-block;
    flex-shrink: 0;
}

.libraryTitle {
    border-radius: 10px 10px 0 0;
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.libraryTitle span {
    background: #4176A6;
    padding: 4px 10px;
    font-weight: bold;
}
.libraryTitle img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
.QuickReply ul li {
    border-bottom: solid 1px #dedede;
    display: block;
    padding: 10px;
    text-align: center;
}

.QuickReply ul li:last-child {
    border: none;
}
.QuickReply ul li:hover {
    background: #f3f3f3;
}
.QuickReply ul li a {
    display: inline-block;
    position: relative;
    white-space: normal;
    margin: 0 20px;
}

.QuickReply ul li a:before {
    content: "";
    border-top: solid 4px #4176A6;
    border-right: solid 4px #4176A6;
    border-bottom: solid 4px transparent;
    border-left: solid 4px transparent;
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: -20px;
    transform: rotate(45deg);
    top: 7px;
}

.replyTime {
    color: #A1A1A1;
    font-size: 1.3rem !important;
}

.UserQuestion {
    display: flex;
    justify-content: end;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 25px;
}

.userMessage,
.textReply.message {
    max-width: 650px;
    display: inline-block;
}


/* footer */

.footer .question {
    background: #434343;
    padding: 20px 0;
    border-radius: 24px;
    color: #fff;
    position: absolute;
    width: 100%;
    bottom: 100px;
    left: 0;
    z-index: 9;
    display: none;
}

.footer .openQuestion .question {
    display: block;
}

.question ul li a img {
    display: block;
    margin: 0 auto;
    height: 36px;
    width: auto;
    margin-bottom: 10px;
}

.quickTitile {
    font-size: 2rem;
    text-align: center;
    border-bottom: solid 1px #5E5E5E;
    padding-bottom: 20px;
    margin-bottom: 15px;
    margin-left: 20px;
    margin-right: 20px;
}

.question ul li {
    display: inline-block;
    width: 33%;
    position: relative;
}

.question ul li a {
    color: #fff;
    display: block;
    text-align: center;
    margin: 0 60px;
    padding-bottom: 20px;
    padding-top: 20px;
}


.question .close a {
    position: absolute;
    right: 30px;
    top: 20px;
    border: solid 1px #fff;
    width: 24px;
    height: 24px;
    display: block;
    text-indent: 6px;
    line-height: 23px;
    border-radius: 100%;
    color: #fff;
}

.footer .questionBar {
    position: relative;
}

.setfontsize {
    position: absolute;
    left: 180px;
    border-right: solid 1px #ccc;
    padding-right: 15px;
}

a.fontsize {
    font-size: 1.5rem;
    background: #B8B8B8;
    color: #fff;
    width: 28px;
    height: 28px;
    display: inline-block;
    border-radius: 100%;
    text-align: center;
    line-height: 26px;
}

.askQuestion input.msg {
    width: calc(100% - 250px);
    border: solid 1px #939393;
    padding: 13px 100px 13px 139px;
    border-radius: 30px;
    font-size: 1.8rem;
    color: #000;
}

input::placeholder {
    color: #B4B4B4;
}
button.questionBtn {
    z-index: 99;
}
.historyInfo {
    padding: 10px 0;
}
.historyInfo a {
    color: #000;
    font-weight: bold;
    text-align: center;
    display: block;
    text-decoration: underline;
}

.loadCont{
    margin-left: 80px;
    display: none;
}
.historyInfo .i-loading{
    display: none;
}
.histtoryLoading.historyInfo .i-loading{
    display: block;
    text-align: center;
}
/* .historyInfo.histtoryLoading a {
    display: none;
} */
.hasloading .loadCont{
    display: block;
}
.loadCont .i-loading{
    width: 90px;
}
.i-loading .line {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: .5em;
    background-color: #4176a6;
}

.i-loading .line:nth-last-child(1) {
    animation: loadingA 1.5s 1s infinite;
}

.i-loading .line:nth-last-child(2) {
    animation: loadingA 1.5s 0.5s infinite;
}

.i-loading .line:nth-last-child(3) {
    animation: loadingA 1.5s 0s infinite;
}
.hasloginArea ul {
    display: none;
}
.hasloginArea:hover ul {
    display: block;
    position: absolute;
    right: 0;
    background: rgba(0, 0, 0, .8);
    width: 90px;
    top: 30px;
    padding: 10px;
    color: #fff;
    text-align: center;
    border-radius: 5px;
}
li.login-signout {
    cursor: pointer;
}
/* 點贊 */
.retroaction {
    background: rgba(0, 0, 0, .5);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
.retroaction .comment {
    min-width: 500px;
    position: fixed;
    z-index: 99;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.feedback {
    color: #909591;
    margin-bottom: 15px;
}
.checkboxSelect {
    margin: 8px 0;
}
.feedback button {
    text-indent: -9999px;
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.feedback button.likeBtn {
    background: url(images/like.png) no-repeat;
    background-size: 20px 20px;
}

.feedback button.nolikeBtn {
    background: url(images/nolink.png) no-repeat;
    background-size: 20px 20px;
}
.feedback button.likeBtn.active {
    background: url(images/likeH.png) no-repeat;
    background-size: 20px 20px;
}
.feedback button.nolikeBtn.active {
    background: url(images/nolinkH.png) no-repeat;
    background-size: 20px 20px;
}
.comment {
    background: #fff;
    padding: 15px 20px;
    border-radius: 20px;
    margin-top: 10px;
}
.comment .thank {
    font-size: 3rem;
    font-weight: bold;
}
.comment textarea {
    width: 97%;
    border-radius: 3px;
    margin: 10px 0;
    padding: 5px;
}
.submitBtn button{
    border: none;
    border-radius: 25px;
    padding: 6px 18px;
}
.submitBtn button.sendBtn{
background: #7DA7C7;
color: #fff;
}
.submitBtn button.cancelBtn{
background: #b8bcbf;
margin-left: 8px;
}
.commentCloseBtn span {
    font-size: 0;
    cursor: pointer;
    position: absolute;
    right: 40px;
    top: 26px;
}
.commentCloseBtn span:after,
.commentCloseBtn span:before {
    content: "";
    width: 2px;
    height: 18px;
    background: #818181;
    display: block;
    position: absolute;
    right: 0;
    transform: rotate(45deg);
    top: 0px;
    border-radius: 2px;
}
.commentCloseBtn span:after{
    transform: rotate(-45deg);
}
.retroaction.fadeOut{
    display: none;
}

.retroaction.fadeIn {
    display: block;
}
.feedback.answerLike button.nolikeBtn {
    display: none;
}
.feedback.answerNolike button.likeBtn {
    display: none;
}
.feedback.hiddenLike button:not(.active) {
    display: none;
}
.commentTips{
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 15px 20px;
    background: #fff;
    color: #666;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 300px;
    display: none;
    transition: opacity 1s ease;
}
.sendingTips {
    background: #eee;
    display: none;
    color: #999;
    border-radius: 25px;
    padding: 6px 18px;
}
.sending .submitBtn{
    display: none;
}
.sending .sendingTips {
    display: inline-block;
}
@keyframes opacity {
    0 {
        opacity: 1;;
    }

    50% {
        opacity: .5;
    }

    100% {
        opacity: 0;
    }
}
@keyframes loadingA {
    0 {
        width: 15px;
    }

    50% {
        width: 35px;
    }

    100% {
        width: 15px;
    }
}
@media (min-width: 768px) {
    .mainbody {
        background: #E9E9E9 url(images/mainBg.png) no-repeat right bottom;
    }

    .footer .questionBar {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .footer {
        padding: 10px 0;
    }

    .privacy {
        margin-right: 10px;
    }

    .privacy a:hover span {
        display: inline-block;
    }

    .hasloginArea >span,
    .nologinArea >a{
        background: #fff url(images/member.png) no-repeat 18px center;
        border-radius: 20px;
        padding: 6px 20px 6px 40px;
        font-weight: bold;
        font-size: 1.8rem;
        color: #4176A6;
        background-size: 18px 20px;
    }
    .QuickQeustion {
        min-width: 147px;
    }
    .QuickQeustion a.addBtn {
        background: #7DA7C7 url(images/toggleBtn.png) no-repeat 20px center;
        font-size: 1.8rem;
        color: #fff;
        padding: 13px 20px 13px 55px;
        border-radius: 30px;
        display: flex;
        background-size: 32px 32px;
    }

    .askQuestion {
        width: calc(100% - 180px);
        margin-left: 20px;
    }

    .question ul li:before {
        content: "";
        position: absolute;
        left: 0px;
        top: 0;
        background: #5E5E5E;
        width: 1px;
        height: 100%;
    }

    .question ul li:nth-child(1):before,
    .question ul li:nth-child(4):before,
    .question ul li:nth-child(7):before,
    .question ul li:nth-child(10):before,
    .question ul li:nth-child(13):before {
        display: none;
    }

    .question ul li+li+li+li a {
        border-top: solid 1px #5E5E5E;
    }

    button.questionBtn {
        background: #7DA7C7;
        color: #fff;
        font-size: 2rem;
        padding: 11px 35px;
        border-radius: 30px;
        position: absolute;
        right: 0;
        top: 0;
        height: 51px;
        border: none;
    }
    button.questionBtn:disabled{
        background: #ddd;
    }
    .fontsizeBtn {
        display: none;
    }

.feedback button.likeBtn:hover {
    background: url(images/likeH.png) no-repeat;
    background-size: 20px 20px;
}

.feedback button.nolikeBtn:hover {
    background: url(images/nolinkH.png) no-repeat;
    background-size: 20px 20px;
}
}

@media (min-width: 768px) and (max-width:1200px) {
    body .container {
        padding: 20px 3%;
    }

    .slider-container {
        max-width: 600px;
    }

    .question ul li {
        width: 32%;
    }

    .question ul li a {
        margin: 0 20px;
    }
}

@media (max-width: 767px) {
    body .container {
        padding: 20px 3%;
    }

    .header .mlogo {
        font-size: 1.5rem;
    }

    .header .mlogo img {
        width: 62%;
        padding-right: 10px;
    }

    .privacy a {
        background-size: 25px 25px;
        padding: 7px 0px 7px 40px;
    }
    .headlogin >a,
    .headlogin >span {
        background: url(images/memberW.png) no-repeat left center;
        background-size: 21px 23px;
        width: 21px;
        height: 23px;
        display: block;
        text-indent: -9999px;
    }

    .headlogin > a span{
        display: none;
    }

    .headlogin.openloginTxt a span {
        display: block;
        position: absolute;
        background: rgba(67, 67, 67, .9);
        width: 100%;
        top: 68px;
        left: 0;
        padding: 21px 0;
        color: #fff;
        text-align: center;
        font-size: 1.8rem;
    }

    .slider-container {
        max-width: 280px;
    }


    .textReply.message {
        max-width: 250px;
    }

    .message {
        padding: 10px 15px;
    }

    .question ul li {
        width: 32%;
    }

    .question ul li a {
        margin: 0;
    }

    .QuickQeustion a.addBtn {
        background: #7DA7C7;
        color: #fff;
        width: 100%;
        display: inline-block;
        padding: 8px 0;
        text-align: center;
        border-radius: 10px 10px 0 0;
        z-index: 10;
        position: relative;
    }

    .QuickQeustion a.addBtn:before {
        content: "";
        border-top: solid 4px #fff;
        border-right: solid 4px #fff;
        width: 0;
        height: 0;
        display: block;
        position: absolute;
        left: 50%;
        top: 19px;
        border-bottom: solid 4px transparent;
        border-left: solid 4px transparent;
        transform: rotate(-45deg);
        margin-left: -50px;
    }

    body .footerinner.container {
        padding: 0;
    }

    .QuickQeustion {
        width: 100%;
    }

    .askQuestion {
        margin: 20px;
        position: relative;
    }

    .question .close,
    .question .quickTitile {
        display: none;
    }

    .footer .question {
        padding: 0;
        max-height: 215px;
        overflow-y: auto;
        bottom: 95px;
        border-radius: 24px 24px 0 0;
    }

    .setfontsize {
        position: absolute;
        left: 20px;
        top: 57px;
        z-index: 9;
        background: #B8B8B8;
        padding: 11px 5px;
        border-radius: 30px 0 0 30px;
        display: flex;
    }

    button.questionBtn {
        background: #fff url(images/send.png) no-repeat 5px top;
        text-indent: -9999px;
        background-size: 21px 17px;
        position: absolute;
        right: 10px;
        top: 14px;
        display: block;
        width: 24px;
        padding-left: 7px;
        border: none;
    }
    button.questionBtn:disabled{
        filter: grayscale(1);
    }
    .smallfontsize {
        font-size: 1rem;
    }

    span.fontsizeBtn {
        color: #fff;
        margin-right: 5px;
    }

    a.fontsize {
        width: 18px;
        height: 18px;
        line-height: 18px;
        border: solid 1px #fff;
        font-size: 1rem;
    }

    .fontsizeLevel {
        display: none;
    }

    .askQuestion input.msg {
        padding: 12px 18px 12px 45px;
        width: calc(100% - 65px);
        font-size: 1.6rem;
    }

    .setfontsize.openfontsize .fontsizeLevel {
        display: block;
    }

    .setfontsize.openfontsize {
        border-radius: 30px;
        padding: 11px 10px;
    }

    .setfontsize.openfontsize+.askQuestion input.msg {
        padding: 12px 18px 12px 130px;
        width: calc(100% - 145px);
    }
    div.weblang {
        padding: 1px 4px;
    }
    .retroaction .comment {
        min-width: 80%;
    }
}
