@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('../font/AvenirNextLTPro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PingFang SC';
    src: url('../font/PingFangSC-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PingFangSC-Medium';
    src: url('../font/PingFangSC/PingFangSC-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Medium';
    src: url('../font/Roboto-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('../font/Roboto-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 全局默认字体设置 */
html,
body,
* {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Avenir Next LT Pro', 'PingFangSC-Medium', 'Roboto-Medium', 'Roboto-Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 63%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 1100px;
    height: 600px;
    background: #FFFFFF;
    border-radius: 10px 10px 10px 10px;
}

.custom-modal-content {
    text-align: left;
    height: 92%;
}

.head-content{
    background-color: rgba(246, 246, 246, 0.5);
    display: flex;
    height: 50px;
    line-height: 50px;
    justify-content: space-between;
    padding: 0 25px;
    cursor: move;
    user-select: none;
    border-radius: 10px 10px 10px 10px;
}

.custom-modal .close {
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.text_119{
    color: #E60012;
    font-family: PingFang SC, PingFang SC;
    font-weight: bold;
    font-size: 16px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    display: flex;
    align-items: center;
}

.text_119 img{
    width: 27px;
    height: 27px;
}

.text_119 p{
    margin-left: 10px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: margin-left var(--transition-speed);
}

.chat-container {
    overflow-y: auto;
    display: flex;
    margin-top: 233px;
    flex-direction: column;
}

.welcome {
    margin: 135px 0;
}

.chat-content{
    display: flex;
    height: 100%;
    border-radius: 0 10px;
}

.chat-container.active {
    flex: 1;
    overflow-y: auto;
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    justify-content: start;
    margin-bottom: 0;
}

.message {
    max-width: 800px;
    width: 75%;
    border-radius: 8px;
    line-height: 1.5;
    margin: 10px 0 10px 25px;
}

.assistant-message{
    width: 95%;
    margin: 5px 0 10px 25px;
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 其他原有样式 */
    cursor: default; /* 默认光标 */
}

/* 可选：让按钮颜色切换更平滑 */
.send-button {
    transition: background-color 0.2s;
    background-color: #f2f2f2;
}

.user-message {}

.user-message .message-content{
    font-size: 14px;
    font-weight: 400;
    background: #DEECFF;
    border-radius: 0px 15px 15px 15px;
    display: inline-block;
    min-width: 60px;
    max-width: 80%;
    width: auto;
    word-break: break-all;
    padding: 13px 17px 11px 17px;
    box-sizing: border-box;
    line-height: 1.5;
}

.assistant-message .message-content{
    font-size: 14px;
    font-weight: 400;
}

.message-title {
    font-family: Microsoft YaHei UI, Microsoft YaHei UI;
    font-size: 34px;
    color: #141414;
    text-transform: none;
    text-align: center;
}

.message-title p{
    font-weight: normal;
    font-size: 20px;
}

.input-area {
    padding: 20px;
    background-color: white;
    border-radius: 0 0 0 10px;
}

.input-container {
    max-width: 800px;
    /*margin: 0 auto;*/
    position: relative;
    border-radius: 12px 12px 12px 12px;
    border: 0.5px solid rgba(0, 0, 0, 0.16);
    padding-top: 8px;
    padding-right: 4px;
}

textarea {
    width: 100%;
    padding: 8px 12px 12px 16px;
    resize: none;
    font-family: Microsoft YaHei UI, Microsoft YaHei UI;
    font-weight: 400;
    font-size: 14px;
    font-style: normal;
    text-transform: none;
    border: none;
    border-radius: 12px 12px 12px 12px;
    min-height: 80px;
    max-height: 200px;
    box-sizing: border-box;
    overflow: auto;
}

textarea:disabled {
    background-color: transparent;
}

textarea::placeholder {
    color: #CCCCCC;
    font-size: 14px;
    padding-left: 4px;
}

.button-container {
    padding: 7px;
    padding-left: 11px;
    display: flex;
    justify-content: end;
    align-items: center;
}

.send-button {
    background-color: #e600131e;
    color: white;
    border: none;
    border-radius: 100%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.send-button .active {
    display: none;
}

.send-button.active,
.send-button.has-text {
    background-color: #E60012;
}
.send-button.has-text:hover {
    background-color: #b8000e;
}

.send-button:hover {
    background-color: #E60012;
}

.send-button:not(.has-text):hover {
    background-color: #f2f2f2;
    cursor: not-allowed;
}

.send-button:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

/* 右侧推荐栏 */
.recommendation-sidebar {
    width: 344px;
    background-color: white;
    padding: 8px;
    overflow-y: auto;
    flex-shrink: 0;
    transition: all var(--transition-speed);
    position: relative;
    border-radius: 0 0 10px 0;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Microsoft YaHei UI, Microsoft YaHei UI;
    font-weight: bold;
    font-size: 16px;
    color: #E60012;
    line-height: 24px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-bottom: 12px;
}

.recommendation-item-title p {
    display: flex;
    align-items: center;
    color: #000000;
    font-weight: bold;
    font-size: 13px;

}

.recommendation-item-title .hot {
    width: auto;
    font-family: Roboto, Roboto;
    font-weight: 500;
    font-size: 11px;
    color: #F81A30;
    line-height: 14px;
    text-align: center;
    font-style: normal;
    text-transform: none;
    display: inline-block;
    padding: 1px 4px;
    margin-left: 11px;
    border-radius: 2px 2px 2px 2px;
    border: 1px solid #f81a3026;
    background: #f81a3026;
    max-width: 100%;
    white-space: pre-line;
    word-break: break-all;
    vertical-align: middle;
}

.recommendation-item-desc {
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 11px;
    color: #727272;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin: 8px 0;
}

.recommendation-item-children{
    display: flex;
}

.recommendation-item-children span{
    background: #F2F2F2;
    border-radius: 3px 3px 3px 3px;
    font-size: 10px;
    margin-right: 8px;
    padding: 5px;
}

.recommendation-item-target {
    font-family: Microsoft YaHei UI, Microsoft YaHei UI;
    font-weight: 400;
    font-size: 12px;
    color: #999999;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    display: flex;
    flex-wrap: wrap;
}

.recommendation-item-target .target {
    padding: 4px 9px;
    border-radius: 2px 2px 2px 2px;
    border: 1px solid #D8D8D8;
    margin-right: 17px;
    margin-bottom: 8px;
}

.recommendation-item-target .active {
    border: 1px solid #E60012;
    color: #E60012;
}

.no_data{
    text-align: center;
    margin: 150px 0;
}
.no_data img{
    text-align: center;
    margin: 0 auto;
}

/* 生成中动画样式 */
.generating-dot {
    font-size: 14px;
    font-weight: 500;
    /* 流光渐变色 */
    background: linear-gradient(90deg, #FFAE0E, #F47200, #FFAE0E 80%);
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine-gradient 0.4s linear infinite;
}
@keyframes shine-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.generating-dot .dot1, .generating-dot .dot2, .generating-dot .dot3 {
    transition: opacity 0.2s;
    opacity: 0.2;
}

/* 修复 textarea 获得焦点时黑色边框，改为浅蓝色 */
#messageInput:focus {
    outline: none;
    border-color: none;
    box-shadow: none;
}

/* 若有默认黑色边框，覆盖之 */
#messageInput {
    border: none;
    transition: border-color 0.2s;
}

.error-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.error-head-content{
    display: flex;
    height: 52px;
    line-height: 50px;
    justify-content: space-between;
    padding: 0 18px;
    border-radius: 16px 16px 0 0 ;
    background: radial-gradient(42% 100% at 20% 0%, #FFECE4 0%, rgba(254,238,242,0.48) 52%, rgba(254,239,255,0) 100%), radial-gradient( 43% 100% at 75% 0%, rgba(215,213,255,0.64) 0%, rgba(212,229,255,0) 100%);
}

.error-head-content .error-close {
    font-size: 20px;
    margin-top: 10px;
    cursor: pointer;
}

.text_error_head{
    color: #E60012;
    font-family: PingFang SC, PingFang SC;
    font-weight: bold;
    font-size: 22px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    margin-left: 5px;
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.error-modal-content {
    background: #fff;
    border-radius: 0 0 16px 16px;
    min-width: 260px;
    max-width: 90vw;
    padding: 32px 22px 24px 22px;
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.main_group {
    width: 467px;
}

.block-data {
    width: 100%;
    margin: 0 auto;
    border-radius: 4px 4px 4px 4px;
    background: #FAFAFB;
}

.text-group {
    background-color: rgba(250, 250, 251, 1);
    border-radius: 4px;
    width: 100%;
    padding: 19px 0 15px 18px;
    margin-bottom: 10px;
    height: 83px;
}

.text_first {
    float: left;
    color: #111133;
    font-family: PingFang SC, PingFang SC;
    font-size: 16px;
    font-weight: bold;
    font-style: normal;
    text-align: left;
    text-transform: none;
    height: 16px;
    line-height: 16px;
}

.text-wrapper {
    width: 195px;
    overflow-wrap: break-word;
    font-size: 0;
    font-family: PingFang SC-Medium;
    font-weight: 500;
    height: 18px;
    line-height: 18px;
    margin-top: 28px;
    text-align: left;
}

.text_second {
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    font-size: 12px;
    color: rgba(17,17,51,0.8);
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.text_limit{
    font-family: PingFang SC, PingFang SC;
    font-weight: 500;
    font-size: 12px;
    color: rgba(17,17,51,0.7);
    font-style: normal;
    text-transform: none;
    text-align: center;
}

.open_data{
    margin-top: 12px;
}

.open_data button{
    color: #fff0ff;
    width: 272px;
    height: 37px;
    background: linear-gradient( 89deg, #F6781E 0%, #F81A30 100%);
    border-radius: 4px 4px 4px 4px;
}

.container {
    max-width:800px;
    margin:15px auto;
    background:white;
}

