.btn-primary {
    border: none;
}

.module-main .form-group>label {
    width: 92px;
    text-align: center;
}

.module-main .form-group>input,
.module-main .form-group>select {
    margin-top: -34px;
    padding-left: 92px;
}

.module-main .form-group .form-control {
    height: 38px;
}

.main-container form .form-group {
    margin-bottom: 20px;
}

.main-container form {
    padding-top: 10px;
}

.module-main .form-group .info {
    color: #888;
}

.account-module-signIn .form-group>input {
    margin-top: -42px;
    padding-left: 50px;
}

.account-module-signIn .form-group>label {
    width: 50px;
    font-size: 24px;
}

.payment-area {
    text-align: center;
    position: absolute;
    top: 50%;
    margin-top: -65px;
    width: 100%;
}

.payment-area .btn {
    margin: 10px;
}

.common-module-showContent .diy-scrollbar>div:first-child {
    display: inline-block;
}

.common-module-showContent p {
    margin: 1em 0;
}

@media screen and (max-width: 320px) {
    .placeholder-fit .form-group>input::-webkit-input-placeholder {
        font-size: 12px;
    }

    .placeholder-fit .form-group>input:-moz-placeholder {
        font-size: 12px;
    }

    .placeholder-fit .form-group>input::-moz-placeholder {
        font-size: 12px;
    }

    .placeholder-fit .form-group>input:-ms-placeholder {
        font-size: 12px;
    }

    .member-module-register .main-container,
    .member-level-module-add .main-container {
        padding: 10px 9px;
    }
}

@media screen and (max-width: 500px) {
    .common-module-home .menu-btn-area {
        margin-top: 36px;
    }

    .menu-area .fa-universal-access {
        background-color: #2976DF;
        padding-top: 0.4em;
    }
}

.glass-btn {
    /* 基础样式 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: none;

    /* 玻璃质感核心样式 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    /* 光泽效果 */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg,
                transparent,
                rgba(255, 255, 255, 0.2),
                transparent);
        transition: 0.5s;
    }
}

/* 悬停效果 */
.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);

    &::before {
        left: 100%;
    }
}

/* 点击效果 */
.glass-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.1);
}

a:focus,
a:hover {
    text-decoration: none;
}


.user-message>div:first-child {
    display: inline;
    font-size: 1.1em;
    color: #262626;
    padding: 5px;
    margin: 5px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    background-color: rgba(220, 231, 245, 0.9);
    border-radius: 14px;
    max-width: calc(100% - 48px);
    float: right;
    min-width: 50px;
}

.module-main table {
    width: max-content !important;
    max-width: 200vw;
}

.module-main table th {
    padding: 2px;
}

.module-main table td {
    vertical-align: top;
    padding: 2px;
}

.agent-message {
    display: flex;
    min-width: 100%;
}

.agent-message>div,
.user-message>div {
    vertical-align: top;
}

.module-main pre {
    overflow: visible;
    margin-top: 2em;
}

.module-main pre {
    display: flex;
    width: max-content !important;
    position: relative;
}

.sub-container>p,
.sub-container>ul,
.sub-container>ol,
.sub-container>div,
.sub-container>h1,
.sub-container>h2 {
    width: 96%;
    clear: both;
    visibility: visible;
}

.sub-container {
    display: inline-block;
    width: 98%;
    padding-top: 1.5em;
}

.col-xs-11>div>p,
.col-xs-11>div>ul,
.col-xs-11>div>ol,
.col-xs-11>div>div,
.col-xs-11>div>h1,
.col-xs-11>div>h2 {
    width: 98%;
    max-width: 528px;
    clear: both;
    visibility: visible;
}


.pull-down,
.user-message {
    width: 98%;
    max-width: 588px;
}

.chat-subject {
    width: 98%;
    max-width: 588px;
    font-size: 0.9em;
    color: #888;
    text-align: center;
    padding-top: 1em;
    padding-bottom: 2em;
}

.modal-lg {
    max-width: 600px;
}

.search-dialog-main .modal-dialog {
    margin-top: 10px !important;
}

.search-dialog-main .modal-header {
    padding: 3px 9px;
}

.search-dialog-main .modal-title {
    font-size: 1.3em;
}

.agent-dialog-main .modal-title {
    font-size: 1.1em;
}

.dialog-component .module-bottom {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.module-main .favor-btn {
    position: fixed;
    right: 0.3em;
    line-height: 1em;
    padding: 2px;
}

.module-main .favor-btn::after {
    top: 0.05em;
    left: 0.05em;
}

.main-copy-btn {
    padding: 2px;
    transform: scale(0.7);
    display: inline-block;
}

.study-agent-module-index .sub-container {
    padding-top: 3.5em;
}


.search-dialog-main.unmask {
    margin-bottom: 0;
    bottom: unset;
    background: none;
}

.result_item.list-group-item {
    display: inline-block;
    width: 100%;
}

.sub_item.list-group-item {
    display: inline-block;
    width: 100%;
    font-size: 1em;
}

.sub_item.list-group-item .btn {
    float: right;
}

.page-title-container {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    color: #fff;
}

.page-title-container .page-title {
    display: inline;
    width: auto;
}

.study-agent-module-index .module-main .list-group-item {
    line-height: 2em;
}

.study-agent-module-index .module-main .list-group-item a {
    display: inline-block;
    width: 50%;
}

.dropdown-menu {
    padding: 0;
}

.dropdown .list-group {
    margin: 0;
    padding: 0;
    text-align: center;
}


.chat-subject span {
    background-color: #fff;
}

.chat-subject hr {
    margin: 0.5em;
    margin-bottom: -0.7em;
}

.tech-map {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.tech-node-container {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.tech-node {
    display: inline-block;
    padding: 12px 20px;
    margin: 5px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    position: relative;
    /* 新增边框增强拼图效果 */
}

.tech-node:hover {
    transform: translateY(-3px);
}

.tech-node.root-node:hover {
    transform: none;
}

.tech-label,
.tech-label:hover {
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}

.tech-size {
    font-size: 12px;
    opacity: 0.8;
}

.tech-children {
    margin-left: 50px;
    padding-left: 20px;
    display: none;
}

.tech-toggle {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    border-radius: 3px;
    text-align: center;
    transition: all 0.2s;
    background: #2196F3;
    font-family: "Glyphicons Halflings";
}

.tech-toggle.active {
    background: #2196F3;
    border-color: #1565C0;
}

.tech-toggle::after {
    content: "\e080";
    font-size: 12px;
    color: white;
    transition: transform 0.2s;
    vertical-align: text-top;
}

.tech-toggle.active::after {
    content: "\e114";
    color: white;
    transform: rotate(90deg);
    vertical-align: baseline;
}

.test-btn,
.btn.saved {
    padding-left: 1.2em;
    padding-right: 1.2em;
}

.btn.saved,
i.saved,
a.saved {
    position: relative;
}

a.saved::after {
    margin-left: 0.2em;
}

.btn.saved::after,
i.saved::after,
a.saved::after {
    font-family: "Glyphicons Halflings";
    content: "\e173";
    position: absolute;
    bottom: -0.3em;
    color: #ef9f0c;

}

.btn.saved::after,
a.saved::after,
i.saved::after,
.tech-node.saved::after {
    color: #fff;
    bottom: -0.4em;
    right: 0.2em;
    zoom: 0.8;
}

i.saved::after {
    right: 0;
    bottom: -0.2em;
}

i.saved {
    color: #ef9f0c;
    font-style: normal;
}

a.normal {
    cursor: default;
    color: inherit;
    text-decoration: none !important;
}

a.saved {
    padding-right: 1.5em;
}

a.saved::before {
    margin-left: 0.2em;
    right: 0;
}

.btn.saved::before,
i.saved::before,
a.saved::before {
    font-family: "Glyphicons Halflings";
    content: "\e043";
    position: absolute;
    bottom: -0.3em;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5);
}

.btn.saved::before,
a.saved::before,
i.saved::before,
.tech-node.saved::before {
    color: #f56308;
    zoom: 1.3;
}

.btn.saved::before,
i.saved::before {
    right: 0;
    bottom: -0.2em;
}


/* 题目容器样式 */
.study-agent-module-test .question-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.question-container:first-child {
    margin-top: 2em;
}

/* 按钮样式 */
.study-agent-module-test .control-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

/* 答案显示区域 */
.study-agent-module-test .answer-area {
    margin-top: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    position: relative;
}

/* 新增选项容器样式 */
.study-agent-module-test .option-container {
    display: block;
    margin-bottom: 8px;
}

.saved-info {
    text-align: right;
    color: #555;
    margin: 0.5em 4em;
}


.tech-label {
    text-shadow: 0 0 5px #000,
        0 0 3px #00ffff;
    word-break: keep-all;
    white-space: nowrap;
}

.module-main.diy-scrollbar>div:first-child {
    display: inline-block;
    min-width: 100%;
}

.diy-scrollbar>div:nth-child(2)>div,
.diy-scrollbar>div:nth-child(3)>div,
.diy-scrollbar>div:nth-child(4)>div,
.diy-scrollbar>div:nth-child(5)>div,
.diy-scrollbar>div:nth-child(6)>div,
.diy-scrollbar>div:nth-child(7)>div {
    opacity: 0.4;
}

.tech-children {
    margin-left: 8px;
    padding-left: 30px;
    width: auto !important;
}

.questions {
    padding-top: 0.5em;
}

.agent-message .questions .btn-sm {
    padding: 2px;
    margin: 2px;
    font-size: 0.7em;
}

.link-message a {
    display: inline-block;
    width: 100%;
}

.color-wheel {
    background-image: url("../images/color.jpg");
    width: 1em;
    height: 1em;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: super;
}

.color-picker-dialog {
    background: none;
}

.color-picker-dialog .modal-dialog {
    margin-top: 5em;
    max-width: 80%;
    width: 22em;
}

.color-picker-dialog .modal-dialog .modal-header {
    padding: 8px;
}

.color-picker-dialog .modal-dialog .modal-header .close {
    display: none;
}

.answer-area {
    position: relative;
}

.answer-area .main-copy-btn {
    top: 0.5em;
    right: 0.8em;
    position: absolute;
    border: none;
    background: none;
}

.study-agent-module-learn .module-main a {
    text-decoration: underline;
}

.loading-container {
    position: absolute;
    z-index: 10000;
    top: 8em;
    display: inline-block;
    margin-left: -4.5em;
    left: 50%;
    text-align: center;
}

.loading-container img {
    width: 9em;
    height: 9em;
}

.loading-container .info {
    color: #888;
    margin-top: -2.5em;
    background-color: #ddd;
    border-radius: 5px;
    padding: 0.2em 0.5em;
}

.theme-light .btn-primary {
    background-color: #337ab7 !important;
    color: #fff !important;
}

.theme-light .btn-primary:active {
    background-color: #337ab7 !important;
    color: #fff !important;
}

.theme-light .btn-primary:hover {
    background-color: #337ab7 !important;
    color: #fff !important;
}

.theme-light .top-container .left-menu>*:first-child,
.theme-light .top-container .right-menu>*>* {
    color: #2e7abd !important;
}

.theme-light .page-title {
    color: rgb(0, 0, 0);
}


.theme-dark .module-main,
.theme-dark .modal-body,
.theme-dark .module-bottom {
    background-color: #262626;
    color: #fff;
}

.theme-dark .list-group-item {
    background-color: #262626;
    color: #fff;
}

.theme-dark .list-group-item:nth-child(even) {
    background-color: #464444 !important;
}

.theme-dark .list-group-item a {
    color: #fff !important;
}


.theme-dark .modal-dialog {
    color: #fff;
}

.theme-dark .modal-header {
    background-color: #000;
    border-radius: 8px 8px 0 0;
}

.theme-dark .modal-content {
    background-color: #000;
    color: #fff;
    border-color: #e8f5e9;
}

.theme-dark pre {
    color: #fff;
    background-color: #535252;
}

.theme-dark .modal-body .line-info pre {
    background: none;
}

.theme-dark .close,
.theme-dark .close:hover,
.theme-dark .close:focus {
    color: #fff;
    opacity: 0.8;
}

.theme-dark .study-agent-module-test .question-container {
    background: none;
    border: 1px solid #bba620;
}

.theme-dark .study-agent-module-test .answer-area {
    background: #173719;
}

.theme-dark .agent-message {
    background-color: #262626 !important;
}

.theme-dark .modal {
    background-color: rgba(255, 255, 255, 0.3)
}

.theme-dark .modal.color-picker-dialog {
    background: none;
}

.theme-dark .subscription-container {
    color: #333;
}

.theme-dark .subscription-container .terms {
    color: #fff;
}


.module-top {
    border-bottom: 1px solid #888;
}

.module-bottom {
    border-top: 1px solid #888;
}

.star {
    position: absolute;
    right: 3.5em;
    top: 0.3em;
    zoom: 1.2
}

.star .glyphicon-question-sign {
    zoom: 1.5;
    vertical-align: middle;
    color: #2e7abd;
    background-color: #fff;
    border-radius: 50%;
    line-height: 0.7em;
    width: 0.8em;
}

.vote-star {
    line-height: 15px;
    text-align: left;
    display: inline-block;
    /*内联元素转换成块元素，并不换行*/
    margin-right: 6px;
    width: 77px;
    /*5个星星的宽度*/
    height: 15px;
    /*1个星星的高度*/
    overflow: hidden;
    vertical-align: middle;
    position: relative;
}

.vote-star i {
    display: inline-block;
    /*内联元素转换成块元素，并不换行*/
    height: 15px;
    /*1个星星的高度*/
    background: url(../images/jz.svg) repeat-x 0 0;
    position: absolute;
    z-index: 100;
}

.vote-star i.gray {
    background: url(../images/jz_gray.svg) repeat-x 0 0;
    z-index: 1;
}

.vote-number {
    vertical-align: middle;
    font-family: 微软雅黑, Verdana, Geneva, sans-serif;
    font-size: 12px;
}

.study-map-container .delete-map-btn {
    position: absolute;
    right: 0.8em;
    top: 0.6em;
    padding: 0.2em;
    zoom: 1.2;
}

.score {
    background: url(../images/jz.svg) no-repeat;
    width: 3em;
    height: 3em;
    position: absolute;
    top: -1em;
    right: -2em;
    text-align: center;
    padding-top: 0.3em;
    z-index: 1000;
}

.module-main>.star {
    padding: 2px 0;
    position: fixed;
    left: 0.5em;
    right: auto;
    top: 3em;
}

.module-main>.favor-btn {
    top: 4.5em;
    right: 0.8em;
}

.module-main>.main-copy-btn {
    top: 3.4em;
    right: 3.2em;
}

@media screen and (max-width: 500px) {
    .module-main>.star {
        top: 2.5em
    }

    .module-main>.favor-btn {
        top: 3.5em;
        right: 0.5em;
    }

    .module-main>.main-copy-btn {
        top: 2.5em;
        right: 2.9em;
    }
    .answer-area .main-copy-btn {
        right: 0.5em;
    }
}

.progress-area {
    left: 0;
    top: -1.4em;
    width: 100%;
    position: absolute;
}

.toolbtn-area {
    position: fixed;
    left: 1em;
    top: 5em;
    zoom: 0.8;
}

@media screen and (max-width: 500px) {
    .toolbtn-area {
        top: 4em;
    }
}

.progress-area>div {
    opacity: 1 !important;
}

.progress {
    height: 1em;
    background-color: #d2ddeb;
}

.progress-bar {
    line-height: 1em;
}

@media screen and (max-width: 500px) {
    .subscription-dialog .modal-body {
        max-height: 85vh;
    }
}

.test-btn i {
    display: none;
}

.test-btn i.saved {
    display: block;
    color: #f56308;
    font-style: normal;
    position: absolute;
    right: 0.2em;
    bottom: 0.1em;
    zoom: 0.8;
}

.manage-favor-btn i {
    font-size: 1.3em;
    color: #f56308;
}

@media screen and (max-width: 500px) {

    .manage-favor-btn i,
    .library-btn i {
        transform: translateY(-0.1em);
    }

    .study-map-container .delete-map-btn {
        zoom: 1;
    }
}

input[type="radio"] {
    vertical-align: text-top;
}

.agent-dialog-main input[type="radio"] {
    vertical-align: top;
}

.tech-node.root-node {
    background-color: rgb(2, 20, 37);
    padding: 0 20px;
    cursor: default;
    position: relative;
}

.tech-node.root-node img {
    width: 3em;
    height: 3em;
    transform: scale(2) translateX(-0.5em);
    margin-right: -1em;
}

.tech-node.root-node .setting-info {
    position: absolute;
    margin-left: 2em;
    width: min-content;
}

.tech-node.root-node .score {
    right: -1.5em;
}

.badge.success {
    background-color: #04b64b;
}

.terms em {
    color: #F3574B;
}

.terms {
    padding-left: 0.5em;
}

.features {
    zoom: 1.1;
}

.restore-btn {
    padding: 0.2em 0.3em;
    zoom: 0.8;
    position: absolute;
    top: 0.2em;
    right: 1em;
}

.theme-dark .modal-body .module-main,
.theme-dark .modal-body,
.theme-dark .module-bottom {
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.theme-dark .module-top {
    border-bottom: 1px solid #888;
}

.theme-dark .module-bottom {
    border-top: 1px solid #888;
}

.main-menu .subscription-icon::before {
    content: "\e031";
    vertical-align: text-bottom;
    margin-right: 0.5em;
}

.main-menu .subscription-icon::after {
    content: "\e013";
    position: absolute;
    left: 0.3em;
    zoom: 0.6;
    top: 0.4em;
}

.main-menu .help-icon::before {
    content: "\e085";
    vertical-align: text-bottom;
    margin-right: 0.5em;
}

.main-menu .terms-icon::before {
    content: "\e032";
    vertical-align: text-bottom;
    margin-right: 0.5em;
}

.main-menu .terms-icon::after {
    content: "\e013";
    position: absolute;
    right: 0.4em;
    zoom: 0.6;
    bottom: 0.2em;
}

.main-menu .privacy-icon::before {
    content: "\e008";
    vertical-align: text-bottom;
    margin-right: 0.5em;
}

.main-menu .privacy-icon::after {
    content: "\e033";
    position: absolute;
    right: 0.4em;
    zoom: 0.5;
    top: 0;
}

.main-menu .contact-icon::before {
    content: "\2709";
    vertical-align: text-bottom;
    margin-right: 0.5em;
}

.main-menu .about-icon::before {
    content: "\e086";
    vertical-align: text-bottom;
    margin-right: 0.5em;
}

.sub_item.list-group-item a {
    display: inline-block;
    width: calc(100% - 4em);
}

.option-container input[type="radio"] {
    vertical-align: baseline;
}

.main-copy-btn i {
    font-family: 'Glyphicons Halflings';
    color: #2e7abd;
    border: none;
    background: none;
    font-style: normal;
}

.main-copy-btn i {
    position: relative;
    vertical-align: middle;
}

.theme-dark .main-copy-btn i {
    color: #5ea5cb;
}

.main-copy-btn i::before {
    content: "\e032";
    font-size: 2em;
}

.main-copy-btn i::after {
    content: "\e032";
    font-size: 2em;
    position: absolute;
    right: 0.174em;
    margin-top: 0.16em;
}

.favor-btn {
    font-family: 'Glyphicons Halflings';
    color: #2e7abd;
    position: relative;
    line-height: 2em;
}

.favor-btn::before {
    content: "\e006";
    font-size: 2em;
    vertical-align: text-top;
}

.favor-btn::after {
    content: "\e006";
    font-size: 2em;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0.5);
    color: #fff;
}

.theme-dark .favor-btn::before {
    color: #5ea5cb;
}

.theme-dark .favor-btn.done::after {
    color: #5ea5cb;
}

.favor-btn.done::after {
    color: #2e7abd;
}

.glyphicon-search.search-btn {
    position: absolute;
    top: 1.1em;
    right: 3.2em;
    color: #888;
    cursor: pointer
}

.modal-header .close {
    margin-top: -0.2em;
    right: 0.3em;
    position: absolute;
}

.module-main>.main-copy-btn {
    position: fixed;
}

.main-copy-btn,
.favor-btn {
    cursor: pointer;
}

pre .main-copy-btn {
    top: -1em;
    right: -0.1em;
    position: absolute;
    background: none;
    border: none;
    padding: 0;
    line-height: 1em;
}

.study-agent-module-test .main-container {
    padding-top: 1em;
}

.study-agent-module>.module-bottom>.common-container {
    padding-bottom: calc(env(safe-area-inset-bottom, 0)*0.35);
}
.favor-dialog-main .module-bottom{
    border-top: none;
}