/* 该文件在assets目录下 */

[dir] textarea {
    padding: calc(12px / 2) 12px;
    background-color: #fff;
    background-image: none;
    border: 1px solid #bdc2c5;
    border-radius: 4px;
}

textarea {
    display: block;
    width: 100%;
    height: auto;
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    height: 102px;
    resize: vertical;
}

[dir] input[type="submit"] {
    padding: 6px calc(12px + 12px / 2);
    margin-bottom: 0;
    text-align: center;
    cursor: pointer;
    background-image: none;
    border: 0;
    border-radius: 4px;
}

[dir] input[type="submit"],
[dir] .btn--primary {
    border-color: #ffa15a;
    border-radius: 5px;
}

[dir=ltr] input[type="submit"],
[dir=ltr] .btn--primary {
    background: linear-gradient(104deg, #ffa15a, #ff8427);
}

input[type="submit"] {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: none;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

input[type="submit"],
.btn--primary {
    color: #fff;
}

.dropdown {
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    [dir=ltr] .comment-sorter__col--filters {
        text-align: right;
    }
}

[dir=ltr] .dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-menu[aria-expanded="true"] {
    display: block;
}

[dir=ltr] .dropdown-menu {
    left: 0;
    text-align: left;
}

[dir] .dropdown-menu {
    padding: 10px 0;
    margin-top: 1px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgb(0 0 0 / 10%);
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 170px;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
}

[dir] .dropdown-menu [role="menuitem"][aria-selected="true"] {
    cursor: default;
}

[dir=ltr] .dropdown-menu [role="menuitem"] {
    padding: 7px 40px 7px 20px;
}

[dir] .dropdown-menu [role="menuitem"] {
    text-align: start;
    cursor: pointer;
    background-color: transparent;
    border: 0;
}

.dropdown-menu [role="menuitem"] {
    display: block;
    width: 100%;
    line-height: inherit;
    color: #333;
    white-space: nowrap;
    -webkit-appearance: none;
}

[dir] .dropdown-toggle {
    padding: 0;
    text-align: initial;
    cursor: pointer;
    background: none;
    border: 0;
}

[dir] .btn {
    padding: 6px calc(12px + 12px / 2);
    margin-bottom: 0;
    text-align: center;
    cursor: pointer;
    background-image: none;
    border: 0;
    border-radius: 4px;
}

[dir] button,
[dir] input,
[dir] optgroup,
[dir] select,
[dir] textarea {
    margin: 0;
}

.btn--default,
.section-subscribe button,
.article-subscribe button,
.community-follow button,
.requests-table-toolbar .organization-subscribe button,
.subscriptions-subscribe button,
.edit-profile-button a,
.pagination-next-link,
.pagination-prev-link,
.pagination-first-link,
.pagination-last-link {
    color: #fff;
}

.btn {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: none;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.vote {
    width: 100%;
    max-width: 60px;
}

[dir] .vote-control {
    background-color: transparent;
    border: 1px solid #504d7f;
}

[dir] .vote-sum {
    padding-top: calc(16px * 1.5 / 4);
    padding-bottom: calc(16px * 1.5 / 4);
    text-align: center;
}

.vote-sum {
    display: block;
    font-weight: 600;
}

[dir] .vote-control {
    background-color: transparent;
    border: 1px solid #504d7f;
}

[dir] .comment__actions {
    padding-top: 8px;
}

[dir=ltr] .comment__actions button {
    margin-right: auto;
    margin-left: auto;
}

[dir] .comment__actions button {
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.comment__actions button {
    display: flex;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    align-items: center;
    justify-content: center;
}

[dir] .user-avatar {
    border-radius: 100%;
}

.user-avatar--default {
    width: 60px;
    height: 60px;
}

.comment-sorter__col .btn--default {
    background-color: #ffa15a;
    border-color: #ffa15a;
}

.fa-angle-up:before {
    content: "\f106";
}

.fa-angle-down:before {
    content: "\f107";
}

.vote-control {
    position: relative;
    z-index: 1;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #111;
}

.software-banner .btn {
    width: 126px;
    height: 40px;
    line-height: 40px;
    background: linear-gradient(0deg, #52BF3B, #59CD41);
    border-radius: 6px;
    color: white;
    font-size: 20px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    padding: 0;
}

.need-help .btn {
    width: 223px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(0deg, #52BF3B, #59CD41);
    border-radius: 10px;
    color: white;
    font-size: 20px;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    padding: 0;
}

/* 二级页 */
.category-container {
    display: flex;
    margin-top: 80px;
}

.category-container .sidebar {
    margin-left: 70px;
}

.category-container .sidebar ul {
    list-style-type: none;
    border-left: 1px solid;
    width: 206px;
    padding: 0;
}

.category-container .sidebar ul li {
    line-height: 40px;
    cursor: pointer;
    border-radius: 0px 7px 7px 0px;
    padding-left: 25px;
    font-size: 16px;
    font-family: Acumin Variable Concept;
    font-weight: 400;
}

.category-container .sidebar ul li.active {
    background: #00C800;
    color: white;
    border-left: 2px solid #006F00;
    position: relative;
    right: 2px;
    font-weight: bold;
}

.category-container .category-content {
    margin-left: 100px;
}

.category-container .category-content a.category-content-item-link {
    color: #272727;
    border-bottom: 1px solid #EBEBEB;
}

.category-container .category-content .category-content-item {
    display: none;
}

h2.category-content-item-title {
    margin: 0;
}

.article-content header h1 {
    text-align: center;
}

@media screen and (max-width:767px) {
    .category-container {
        margin-top: 30px;
        flex-direction: column;
    }

    .category-container .sidebar {
        margin-left: 0;
    }

    .category-container .category-content {
        margin-left: 0;
    }

    .article-content header h1 {
        margin-left: 0 !important;
    }

    .article-content header .avatar {
        margin-left: 0 !important;
    }

    .article-content section.content {
        margin-left: 0 !important;
    }
}