html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    background-color:#f6f7fb;
}
img {
    max-width: 100%;
    height: auto;
}
p {margin:0;}
.message { max-width: 90%; padding: 10px; border-radius: 10px; margin: 5px; }
.sent {
    align-self: flex-end;
    background: #eff6ff;
    color: #262626;
    max-width: calc(100% - 48px);
    border-radius:14px;
    box-sizing: border-box;
}
.received {
    align-self: flex-start;
    color: #222222;
    background-color: #FFFFFF;
}
.split {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.gutter {
    background-color: #ccc;
    cursor: row-resize;
    height: 2px;
    flex-shrink: 0;
}
.chat-box {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f6f7fb;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.bottom-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    background-color: #f6f7fb;
}
.content {
    background: white;
    flex-grow: 1;
    display: flex;
    padding: 0;
    overflow: hidden;
}
textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none; /* 禁止用户手动调整 */
    padding: 10px;
    font-size: 16px;
    outline: none;
}
.toolbar {
    height: 60px;
    background-color: #f6f7fb;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px;
    flex-shrink: 0;
}
.code-block {
    position: relative;
    background: #585a73;
    color: #fafafc;
}
pre {
    margin-top: 12px;
    border: 1px solid #CCC;
    border-radius: 5px;
}
.copy-btn {
    color:#FFFFFF;
}
.btn{
    margin-top: 5px;
    margin-bottom: 5px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 25px;
    border-radius: 4px;
}
.btn-primary{
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}
.btn-primary:hover {
    color: #fff;
    background-color: #286090;
    border-color: #204d74;
}
.code-block:hover .copy-btn { display: block; }
.copy-btn:hover { }
.quote {
    margin-top:1em;
    margin-bottom:1em;
    padding:8px 12px;
    background-color:#cfe1ff;
    border-radius:8px;
}
.quote p{
    font-weight:bold;
}
.quote-files {
    display: block;
    unicode-bidi: isolate;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-top: 1em;
    background-color: #f1f7ff;;
    border-radius: 8px;
    padding: 8px 12px;
}
.sr-only {
    display: block;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
ol {
    display: block;
    list-style-type: decimal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}
.modal img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
    display: block;
    object-fit: contain;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #ccc;
}