/* ==========================================================================
   AmzTrends 帮助中心 - 站点公共样式（从各页面内联样式抽取合并）
   ========================================================================== */

/* 基础：固定白底，避免浏览器深色模式下页面背景变黑 */
html {
    color-scheme: light;
}

body {
    background-color: #fff;
}

/* 基础：HTML5 语义元素按块级渲染 */
article,
aside,
dialog,
footer,
header,
section,
nav,
figure,
menu {
    display: block;
}

/* ==========================================================================
   文章页样式
   ========================================================================== */
.article-header h2 {
    padding-right: 0;
}

.article-header .subscribe {
    float: right;
    position: relative;
    top: 0;
}

.article-header .edit {
    float: right;
    margin-right: 10px;
    height: 26px;
    line-height: 26px;
    padding: 0 10px;
    background: #f3f3f3;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
    color: #4e4e4e;
    text-decoration: none;
}

.article-header .edit:hover {
    border-color: #ced6d8;
    text-decoration: none;
}

.article-header .edit:active {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) inset;
}

.next_prev_wrap {
    overflow: hidden;
}

.next_prev_wrap .next,
.next_prev_wrap .prev {
    display: inline-block;
    word-break: break-all;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   社区问题/评论样式
   ========================================================================== */
.question-comment-item-content p {
    margin-bottom: 0;
}

.replay-comment-textarea {
    margin-bottom: 10px;
}

/* ==========================================================================
   社区移动端响应式样式
   ========================================================================== */
.new-question-mobile {
    display: none;
}

.pc-hide {
    display: none;
}

@media only screen and (max-width: 479px) {
    body {
        min-width: 100% !important;
    }

    .header {
        background-color: rgba(0, 166, 171, 1);
    }

    .header a {
        color: #fff;
    }

    .wrap {
        width: 100%;
    }

    .main-header .wrap {
        height: 52px;
    }

    .logo {
        width: 30%;
        padding-left: 10px;
    }

    .logo img {
        width: 120px;
        max-width: 120px;
        max-height: 24px;
    }

    .language-selector {
        display: none;
    }

    .mobile-hide {
        display: none;
    }

    .mobile-show {
        display: inline-block;
    }

    .header-nav {
        width: 68%;
        text-align: right;
        padding-right: 5px;
        margin: 0;
    }

    .hader-inner {
        height: 52px;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .header-nav-list {
        margin-top: 0;
    }

    .header-nav-list li {
        padding-left: 0;
        margin-left: 5px;
        border: none;
    }

    .user-info {
        margin-left: 0;
        padding-bottom: 0;
    }

    .user-info .dropdown-toggle {
        padding: 0;
        border: none;
        background: none;
    }

    .user-info-name {
        display: inline-block;
        max-width: 100px;
        height: 20px;
        overflow: hidden;
    }

    /* 搜索栏 */
    .main-header {
        height: 52px;
        background: none;
    }

    .main-header .wrap {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-header form {
        margin-right: 10px;
    }

    .main-header .main-header-search input {
        height: 31px;
        border: 1px solid rgba(215, 215, 215, 1);
    }

    .main-header .main-header-search input::-webkit-input-placeholder {
        color: gray;
    }

    .main-header .main-header-search .icon-search {
        color: gray;
        right: 10px;
        left: inherit;
        top: -3px;
    }

    .community-title {
        display: none;
    }

    .main-header .main-header-search {
        float: none;
        margin: 0;
    }

    .new-question-mobile {
        display: inline-block;
        width: 60px;
        height: 30px;
        line-height: 30px;
        font-size: 15px;
        margin-left: 5px;
    }

    .content {
        padding: 10px;
        display: flow-root;
    }

    .content-main {
        float: none;
        width: 100%;
    }

    .content-main .info {
        line-height: 20px;
    }

    .content-main .pagination {
        display: flex;
        justify-content: center;
        float: none;
    }

    .question-bbs-item-title {
        width: 100%;
        white-space: normal;
        text-overflow: revert;
        overflow: auto;
    }

    .question-bbs-top-nav a {
        margin-right: 0;
        margin-bottom: 5px;
        padding: 3px 5px;
        height: auto;
        line-height: 1;
    }

    .question-bbs-top-nav {
        margin-bottom: 5px;
    }

    .content .content-sidebar {
        display: none;
    }

    .question-content-info .created-info {
        display: none;
    }

    .question-comment-form {
        padding-left: 30px;
        padding-right: 0;
    }

    .question-comments-form-pic {
        height: 22px;
        width: 22px;
    }

    .popup-box {
        min-width: 100%;
    }

    #CommunityQuestion_title {
        width: 100%;
    }

    .question-comment-item-bottom {
        padding-right: 0;
    }

    .upvote-btn {
        display: inline-block;
        width: 20px;
        height: 20px;
        background: url(/images/upvote.png) no-repeat;
        background-size: 100% 100%;
        position: relative;
        top: 5px;
    }
}
