/*可用字数不足+二次创作引导样式*/
.write-guide .wg-text {
    margin-top: 5px;
    background: rgb(216 101 100);
    width: auto;
    padding: 12px 15px;
    border-radius: 8px;
    position: relative;
    font-size: 15px;
    width: 190px;
    margin-bottom: 15px;
    animation: shake 3s infinite;
}
.write-guide .wg-text2 {
    width: 340px;
    margin-top: 20px;
    margin-bottom: 0;
}

.write-guide .wg-text-item {
    margin-bottom: 7px;
}

.write-guide .wg-text-item:last-child {
    margin-bottom: 0;
}

.write-guide .wg-text .wg-seq {
    margin-right: 7px;
    border: 1px solid #fff;
    height: 16px;
    width: 16px;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.write-guide .wg-btn {
    background: #d86564;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 10%;
    bottom: 40px;
    width: 170px;
    text-align: center;
}

.write-guide-triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid rgb(216 101 100);
    position: absolute;
    left: 19px;
    top: -8px;
}

.write-guide-triangle-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid rgb(216 101 100);
    position: absolute;
    left: 19px;
    bottom: -8px;
}

.write-guide {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    /* background: rgba(0, 0, 0, 0.6); */
    color: #fff;
    z-index: 99;
    box-sizing: border-box;
    padding: 10% 10%;
}
.justify-center {
    /* 标准语法 */
    justify-content: center;

    /* 老版本 WebKit 浏览器 (Safari, iOS, Android) */
    -webkit-box-pack: center;

    /* 老版本 Firefox */
    -moz-box-pack: center;

    /* IE 10 */
    -ms-flex-pack: center;
}

.flex {
    display: -webkit-box; /* 老版本 Safari, iOS, Android */
    display: -moz-box; /* 老版本 Firefox */
    display: -ms-flexbox; /* IE 10 */
    display: -webkit-flex; /* Chrome < 21, Safari 6.1+, iOS Safari 7+ */
    display: flex; /* 标准语法 */
}

.items-center {
    /* 老版本 WebKit 浏览器 (Safari, iOS, Android) */
    -webkit-box-align: center;

    /* 老版本 Firefox */
    -moz-box-align: center;

    /* IE 10 */
    -ms-flex-align: center;

    /* 现代浏览器 */
    align-items: center;
}
.flex-column {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
}
.available-word-tips .layer-mask,
.write-guide .layer-mask {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.available-word-tips {
    position: absolute;
    width: 100%;
    height: 240px;
    left: 0;
    bottom: 40px;
    /* background: rgba(0, 0, 0, 0.6); */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    color: #fff;
    z-index: 99;
    display: none;
}

.available-word-tips .awt-btn {
    background: #4262d7;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.available-word-tips .awt-btn img {
    margin-right: 10px;
}

.available-word-tips .awt-text {
    margin-top: 10px;
}
/*结束可用字数不足+二次创作引导样式*/
.headerBox {
    border-bottom: 1px solid #f2f2f2; /* 底部边框，颜色使用 #d96565 */
    box-shadow: 0 1px 4px #f2f2f2; /* 阴影效果 */
    position: relative;
    z-index: 99;
    padding: 0 48px 0 35px !important;
}

.header-logo-box img.logo {
    height: 43px;
}
.n-buttuon-danger:hover {
    background: rgba(217, 101, 101, 0.9) !important;
}

.header-logo-box img.favorite {
    display: none;
    position: absolute;
    top: 36px;
    left: 134px;
    width: 200px;
}

.header-logo-box:hover img.favorite {
    display: block;
}

img.gezi-icon {
    height: 43px;
}

.categoryInfoBox {
    width: 360px;
    background: #fff;
    padding: 20px 15px 0;
    box-sizing: border-box;
    overflow-y: auto;
}

.bodyTextarea .rightInfoBox {
    margin-top: 0 !important;
}

.searchRootBox {
    height: 35px;
    margin: 0 0 20px;
}

#searchResult {
    position: absolute;
    left: 0px;
    top: 35px;
    box-sizing: border-box;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.07),
        -1px -1px 3px rgba(0, 0, 0, 0.07);
}

.categoryBox {
}

.categoryItem {
    height: 40px;
    cursor: pointer;
    border-radius: 20px;
    background: #fce9e9;
    text-align: center;
    padding: 0 10px;
    margin: 0 5px 10px 0;
    color: #484343;
    width: 103px;
    box-sizing: border-box;
}

.categoryItem.active {
    color: #d96565;
    font-weight: bold;
}

.categoryItem span {
    line-height: 16px;
}

.categoryItem:nth-child(3n) {
    margin-right: 0;
}

.functionBox {
    margin-top: 10px;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 2px;
}

.functionItem {
    background: #fff;
    color: #484343;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08),
        -1px -1px 4px rgba(0, 0, 0, 0.08);
    height: 55px;
    width: calc(50% - 8px);
    cursor: pointer;
    margin: 0 16px 16px 0;
}

.functionItem:nth-child(2n) {
    margin-right: 0;
}

.functionItem img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius:50%;
}

.functionItem.active {
    background: #d96565;
    color: #fff;
}

.bodyTextarea .leftInfoBox {
    background: linear-gradient(to bottom, #fff3f3, #f6d7d7);
    position: relative;
    padding: 35px 0 35px 35px !important;
}

.formTemplate {
    padding-right: 35px !important;
}

#submitChat {
    width: calc(100% - 70px) !important;
}

.network-btn {
    width: 115px;
    height: 30px;
    position: absolute;
    font-size:12px;
    bottom: 82px;
    background-color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    justify-content: center;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.07),
        -1px -1px 3px rgba(0, 0, 0, 0.07);
}

.network-btn-text {
    margin-left: 5px;
}

.network-btn-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: gray;
    margin-left: 5px;
}

.network-btn.active .network-btn-status,
.network-btn-status.on {
    background-color: green;
}

.network-btn.insert-example {
    left: 160px;
}

.network-btn-hover {
    height: 40px;
    border-radius: 20px;
    background: rgba(51, 51, 61);
    color: #fff;
    position: absolute;
    line-height: 40px;
    padding: 0 10px;
    display: none;
    width: 140px;
    box-sizing: border-box;
    text-align: center;
}

.open-network-tip {
    width: 170px;
    bottom: 132px;
    left: 5px;
}

.insert-example-tip {
    bottom: 132px;
    left: 145px;
}

.submit-chat-guide {
    width: 140px;
    position: absolute;
    right: 25px;
    bottom: 80px;
    animation: shake 3s infinite;
}

.n-form-item-label__text {
    margin: 0 0 5px;
}

.n-form-item-label__text.required {
    color: red;
}

.undo-polish {
    color: red;
    margin-left: 5px;
    cursor: pointer;
}

.n-input.n-input-polish .n-input-wrapper {
    overflow: visible;
}

.n-input.n-input-polish .n-input-word-count {
    position: absolute;
    /*top: -16px;*/
    right: 5px;
}

.n-input.n-input--textarea .n-input__placeholder {
    white-space: inherit;
}

.formTemplate .n-alert .n-alert-body {
    padding-left: 0 !important;
    display: flex;
    justify-content: center;
}

.polish-btn {
    /*background: #d96565;*/
    border: 1px solid #d86564;
    color: #d76463;
    font-size: 12px;
    cursor: pointer;
    height: 30px;
    position: absolute;
    right: -4px;
    /*bottom: 5px;*/
    top:-32px;
    border-radius: 15px;
    padding: 0 12px;
}

.formTemplate {
    /*margin-top: 40px;*/
    overflow: visible !important;
}

.formItem {
    position: relative;
}

.formItem img.input-required-tip {
    position: absolute;
    left: 40%;
    top: -40px;
    animation: shake 3s infinite;
}

.example-text {
    flex: 1;
    height: 100%;
    user-select: none; /* 标准语法 */
    -webkit-user-select: none; /* Safari浏览器 */
    -moz-user-select: none; /* Firefox浏览器 */
    -ms-user-select: none; /* IE/Edge浏览器 */
}
.example-text table {
    border-collapse: collapse; /* 合并边框 */
    border: 1px solid #000; /* 表格整体边框 */
}
/* 给表头和表格内容添加边框 */
.example-text th,
.example-text td {
    border: 1px solid #000; /* 单元格边框 */
    padding: 8px; /* 内边距，提升美观度 */
}

/* 可选：给表头添加背景色 */
.example-text th {
    background-color: #f0f0f0;
}

.example-text-tip {
    position: absolute;
    bottom: 20%;
    width: 80%;
    left: 10%;
    height: 60px;
    border-radius: 30px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2),
        -2px -2px 8px rgba(0, 0, 0, 0.2);
        color:#d96565;
        font-weight: bold;
        background: #fff;
        font-size: 18px;
        padding: 0 18px;
        box-sizing: border-box;
}

.example-text-tip img {
    width: 20px;
    margin-right: 18px;
}

.example-text-content {
    height: 100%;
    overflow: auto;
    padding-bottom: 50px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
}
/* 序号样式 */
.example-text-content ol {
    counter-reset: item;
    padding-left: 2em;
}

.example-text-content ol > li {
    counter-increment: item;
    margin-bottom: 0.5em;
    position: relative;
    list-style-type: none;
}

.example-text-content ol > li:before {
    content: counter(item) ".";
    position: absolute;
    left: -2em;
    color: #333;
    /* font-weight: bold; */
}

/* 无序列表样式 */
.example-text-content ul {
    padding-left: 2em;
}

.example-text-content ul > li {
    margin-bottom: 0.5em;
    position: relative;
    list-style-type: none;
}

.example-text-content ul > li:before {
    content: "•";
    position: absolute;
    left: -1.5em;
    color: #333;
}

@keyframes shake {
    0%,
    100% {
        transform: translateY(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateY(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateY(5px);
    }
}

@media screen and (max-width: 1560px) {
    .submit-chat-guide {
        width: 140px;
        position: absolute;
        right: 0px;
        bottom: 80px;
    }
}

@media screen and (max-width: 1480px) {
    .categoryInfoBox {
        width: 312px;
        background: #fff;
        padding: 20px 15px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    .categoryItem {
        width: 136px;
    }

    .categoryItem:nth-child(3n) {
        margin-right: 10px;
    }

    .categoryItem:nth-child(2n),
    .categoryItem:nth-child(6n) {
        margin-right: 0px;
    }

    .functionItem img {
        width: 25px;
        height: 25px;
        margin-right: 7px;
    }

    /*.functionItem {*/
    /*    width: 100%;*/
    /*    margin: 0 0 15px 0;*/
    /*}*/
}
