:root {
    --primary-color: #1e3799;
    --secondary-color: #4a69bd;
    --bg-color: #f5f6fa;
    --text-color: #2f3542;
    --input-bg: #f8f9fa;
    --border-radius: 20px;
}

.navbar {
    margin-bottom: 2rem;box-shadow: 0px 6px 11px 1px rgba(114, 99, 183, 0.12);
}

.mainleft .content .xjl .xjlpic{
    display: none !important;
}

.mainleft .content .xjl .xjlsj{
    display: none !important;
}

.navbar-brand {
    display: inline-block;
    font-weight: bold;
    font-size: 20px;
    background-color: #007eff;
    color: #fff;
    border-bottom-right-radius: 25px;
    padding: 15px 25px;
    border-top-left-radius: 5px;
}

.navbar-brand::before {
    display: none;
    content: "🏛️";  /* 临时使用emoji替代logo */
    font-size: 1.8rem;
}

.main-container {
    flex: 1;
}

.mainleft{
    float: none !important;
}

.mainleft .content{
    float: none !important;
    overflow-y: auto !important;
    height: auto !important;
    position: inherit !important;
}

.mainleft .content .xjl{
    float: none !important;padding: 10px 0 10px 0 !important;
}

.chat-container {
    background: transparent;
    border-radius: var(--border-radius);
    margin: 0 auto;
    height: 60vh;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
    padding-right: 0.5rem;
}

.message {
    margin-bottom: 1.5rem;
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 85%;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.message.system {
    background-color: #fff;box-shadow: 0px 6px 11px 1px rgba(114, 99, 183, 0.12);
    margin-left: 0;border-top-left-radius: 0;
}

.mainleft .content .kh .khbox .khbox1 p{
    padding: 10px 20px !important;line-height: 1.5;border-top-right-radius: 0;
    animation: fadeIn 0.3s ease-in-out;border-radius: 8px !important;
}

.xjlbox .xjlbox1{
    margin: 0 10px 10px 0 !important;border-radius: 8px !important;box-shadow: 0px 6px 11px 1px rgba(114, 99, 183, 0.12);
    background-color: #fff;border-top-left-radius: 0 !important;
}

.message.user {
    background-color: #fff;box-shadow: 0px 6px 11px 1px rgba(114, 99, 183, 0.12);
    color: #333;
    margin-left: auto;
    border-top-right-radius: 0;
}

.message.assistant {
    background-color: #fff;box-shadow: 0px 6px 11px 1px rgba(114, 99, 183, 0.12);
    margin-right: auto;
    border-top-left-radius: 0;
    white-space: normal;
    word-break: break-word;
}

.message.typing::after {
    content: '';
    width: 6px;
    height: 6px;
    display: inline-block;
    background: currentColor;
    border-radius: 50%;
    animation: typing 1s infinite;
    margin-left: 5px;
}

.chat-input {
    padding: 1.2rem;
    background: transparent;
    border-top: 2px solid #fff;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    gap: 0.5rem;
}

.form-control {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
}

.form-control:focus {
    box-shadow: none;
    background: transparent;
}

.btn-primary {
    background: linear-gradient(90deg, #9D68FF, #646EFF, #54A4FF);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary i {
    font-size: 0.9em;
}

/* Markdown 样式 */
.markdown {
    line-height: 1.5;
}

.markdown h1 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 1em 0 0.5em;
}

.markdown h2 {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0.8em 0 0.4em;
}

.markdown strong {
    font-weight: bold;
    color: var(--primary-color);
}

.markdown p {
    margin: 0.5em 0;
}

.markdown ul {
    margin: 0 !important;
    padding-left: 2em !important;
    list-style-type: disc;
}

.markdown ul.nested {
    margin: 0.25em 0 0.25em 1em;
    padding-left: 1.5em;
    list-style-type: circle;
}

.markdown li {
    margin: 0.25em 0 !important;
    padding-left: 0 !important;
    text-align: left;
}

.markdown li.nested {
    margin: 0.1em 0;
}

.markdown ol {
    margin: 0 !important;
    padding-left: 2em !important;
    list-style-type: decimal;
    counter-reset: none;
}

.markdown ol > li {
    padding-left: 0.2em;
}

.markdown ol > li::marker {
    font-weight: bold;
    color: var(--primary-color);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(0, -6px); }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}

/* 修改打字机效果的样式 */
.typing-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: currentColor;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 确保列表项左对齐 */
.markdown ol, .markdown ul {
    text-align: left;
}

.markdown li > p {
    margin: 0;
    display: inline;
}

/* 免责说明 */
.znwd-bottom{position:relative;background-color: #f0f7ff;}
.m-mask {
    position: fixed;
    bottom: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: .5;
}
.statement{
    position:absolute;top:0;right:100px;z-index:9999;
    margin-top: 10px;cursor:pointer;
    background-color: #fff;
    padding: 4px 12px;color: #333;
    border-radius: 20px;
    font-style: normal;
    display: flex;
    align-items: center;
}
.agreement{
    position:absolute;top:0;right:15px;z-index:9999;
    margin-top: 10px;cursor:pointer;
    background-color: #fff;
    padding: 4px 12px;color: #333;
    border-radius: 20px;
    font-style: normal;
    display: flex;
    align-items: center;                                    
}
.agreement img{
    width: 14px;margin-right: 3px;margin-top: 3px
}
.statement img{
    width: 14px;margin-right: 3px;margin-top: 3px
}
.statement b{
    margin: 0 0px 0 5px;
    border: 1px solid;
    border-radius: 100%;
    width: 15px;
    height: 16px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.statementDetails{
    position: fixed;
    top: 50%;left:50%;width:700px;transform: translate(-50%, -50%);
    z-index: 99999;padding: 30px 50px;background:#fff
}
.agreementDetails{
    position: fixed;display: none;
    top: 50%;left:50%;width:700px;transform: translate(-50%, -50%);
    z-index: 99999;padding: 30px 50px;background:#fff
}
.statementBox{
    width:700px;
}
.statement-title {
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}
.statement-text {
    line-height: 30px;
    margin-top: 10px;
    word-break: break-all;
}
.statement-text b{
    font-weight: bold;
}
.swc-clear,.swc-clears{
    cursor: pointer;
    background: #007BDE;
    border-radius: 6px;
    width: 80px;
    font-size: 15px;
    height: 30px;
    text-align: center;
    color: #fff;
    line-height: 30px;
    margin: 0 auto;
    margin-top: 20px;
}
.agreementDetailsSec{
    height: 350px;overflow-y: auto;margin-top: 20px;
}
.znwdTb{
    background-color: transparent  !important;top: -20px;
}
.znwdTb:hover::after{
    display: none !important;
}
.slide_bar .menu-item.menu-rd{
    font-size: 18px;box-shadow: none !important;
    font-weight: 700;
    color: #007eff;
}