@charset "utf-8";
/* CSS Document */
html,body{min-height: 100%;width:100%;min-width:100vw;}
*{padding:0;margin:0;box-sizing: border-box;}
body{word-break:break-all;word-wrap:break-word; margin:0 auto;padding:0;overflow-x: hidden; font-family:'Microsoft Yahei'; box-sizing:border-box; -moz-box-sizing:border-box; -o-box-sizing:border-box; -webkit-box-sizing:border-box;}
img{border:none;display:block;max-width: 100%;}
ul,ul li,dl,dl dt,dl dd{display:block;list-style-type: none;}
ul,ol,input{margin:0;padding:0;}
li{ list-style:none;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
body,h1,h2,h3,h4,h5,h6,p,dl,dd{margin:0; padding:0;}
a{color:#333;text-decoration:none;}
table{border-collapse:collapse;border-spacing:0;width: 100%;}
em,i{font-style:normal}
b,strong,th{font-weight:normal;}
button,input,textarea{font-family:"Microsoft Yahei",Tahoma,Arial,Helvetica,sans-serif;vertical-align:middle;outline: none;}
textarea{resize:none;} 
a,button,input,optgroup,select,textarea {-webkit-tap-highlight-color:rgba(0,0,0,0);outline: none; border:0
}
input[type=”button”], input[type=”submit”], input[type=”reset”] {
	-webkit-appearance: none;
}
i, cite, em, var, address, dfn {
    font-style: italic;
}
/* === 保留原有样式 === */
#float-btn { position: fixed; bottom: 30px; right: 30px; width: 80px; height: 100px; background: none; color: #fff; border: none; display: none !important; align-items: center; justify-content: center; cursor: pointer; animation: popIn 0.3s ease-out; z-index: 9999; }
#float-btn img { width: 80px; }
#float-tooltip { position: fixed; bottom: 100px; right: 105px; background: rgba(0,0,0,0.8); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 13px; display: none; animation: fadeIn 0.3s ease-out; z-index: 9999; }
@keyframes popIn {from {transform: scale(0.5);opacity: 0;}to {transform: scale(1);opacity: 1;}}
@keyframes fadeIn {from {opacity: 0;transform: translateY(10px);}to {opacity: 1;transform: translateY(0);}}
.chat-small { font-size: 14px; }
.chat-medium { font-size: 16px; }
.chat-large { font-size: 18px; }
.fixed-bottom-right { position: fixed; bottom: 0; right: 0; margin: 0 auto; height: 100vh; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.tooltip { position: absolute; background: rgba(0,0,0,0.8); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s; z-index: 999; }
.zchat-box-t-h { position: relative; display: flex; justify-content: flex-end; gap: 10px; padding: 5px; }
#font-size-menu { position: absolute; top: 35px; right: 120px; background: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); padding: 8px 12px; display: none; z-index: 999; }
#font-size-menu span { display: inline-block; margin: 0 6px; padding: 3px 8px; border-radius: 5px; cursor: pointer; transition: all 0.2s; }
#font-size-menu span:hover { background: #007bff; color: white; }
#font-size-menu span.active { background: #007bff; color: #fff; }
#send-btn.disabled { opacity: 0.5; cursor: not-allowed; }
#stop-btn { margin-left: 8px; }
#stop-btn.disabled { opacity: 0.5; cursor: not-allowed; }
#guide-tooltip { position:absolute; display:none; padding:6px 12px; background:#007bff; color:#fff; border-radius:5px; cursor:pointer; z-index:9999; }
/* === 新增智能导读按钮样式 === */
#smart-summary-btn {
  background: #007bff;margin-left: 20px;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
#smart-summary-btn img{
  display: inline-block;vertical-align: -9px;margin-right: 10px;
}
#smart-summary-btn:hover {
  background: #0056b3;
}
.zchat-box-t-d{
    font-size: 14px;position: absolute;left: 20px;bottom: 20px;
    color: #999;
    text-align: center;
    margin-top: 10px;
}
.zchat-box-t-d i{
    font-style: normal;
    display: inline-block;
    border: 1px solid #ff6f00;
    border-radius: 100%;
    width: 15px;
    height: 15px;
    text-align: center;
    line-height: 15px;
    color: #ff6f00;
    margin-right: 6px;
    font-size: 14px;
    vertical-align: -1px;
}
.zchat-b{
    position: fixed;right: 10px;z-index: 999999999;top: 100px;
}
.zchat-box{
    width: 450px;border: 1px solid #ddd;margin: 50px 0;border-radius: 10px;height: 80vh;background-color: #fff;
    background: linear-gradient(to right, #619ff1, #47c3ec);
}
.zchat-title {
    color: #1e90ff;
    margin-bottom: 15px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}
.zchat-box-t{
    width: 100%;height: 40px;display: flex;justify-content: flex-end;padding: 0 10px;align-items: center;
    background-color: transparent;border-top-left-radius: 10px;border-top-right-radius: 10px;
}
.zchat-box-t-h{
    display: flex;align-items: center;justify-content: flex-end;
}
.zchat-box-t-h span{
    padding: 5px;cursor: pointer;display: flex;height: 35px;border-radius: 5px;
}
.zchat-box-t-h span:hover{
    background-color: #fff;
}
.zchat-robot-msg{
    display: flex;
    align-items: center;
    background: #deeff5a1;
    margin: 10px 20px 0;
    border-radius: 10px;
    padding: 10px ;
}
.zchat-robot-msg img{
    height: 100px;
    margin-right: 10px;
}
.zchat-robot-msg h2{
    font-size: 18px;
    color: #4784da;
    margin-bottom: 5px;
}
.zchat-robot-msg h2 p{
    font-size: 18px;color: #999;
}

#chat-container {
    width: 100%;
    max-width: 720px;
    height: calc(100% - 316px);
    padding: 0 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

#input-area {
    width: 100%;position: relative;
    max-width: 720px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    transition: all 0.3s;
    background-color: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#input-area textarea#question {
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    backdrop-filter: blur(6px);
    width: 100%;
}

#input-area textarea#question::placeholder {
    color: #999;
    opacity: 1;
}

#input-area .btn-group {
    display: flex;
    gap: 10px;
}

#input-area button {
    border: 0;
    background: none;
}

#input-area button:active {
    transform: scale(0.95);
}

.message-container {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.3s forwards;
}

.message-container.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-container.bot {
    align-self: flex-start;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    display: none;
}

.message {
    padding: 10px 18px;
    border-radius: 5px;
    word-wrap: break-word;
    position: relative;
    max-width: 100%;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.message p b{
    font-weight: 700;
}

.user .message {
    background: #ebf6fa;
    color: #333;
}

.timestamp {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.date-divider {
    text-align: center;
    color: #333;
    margin: 15px 0;
    font-size: 12px;
    position: relative;
    display: none;
}

.date-divider::before,
.date-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #ddd;
}

.date-divider::before {
    left: 0;
}

.date-divider::after {
    right: 0;
}

.date-divider span {
    padding: 0 10px;
    position: relative;
    border-radius: 5px;
    color: #999;
}

.typing-cursor {
    display: inline-block;
    width: 1px;
    background: #ffffff;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.thinking-dots::after {
    content: '.';
    animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: "";
    }

    40% {
        content: ".";
    }

    60% {
        content: "..";
    }

    80%,
    100% {
        content: "...";
    }
}

pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 10px;
    overflow: auto;
    color: #99ccff;
    position: relative;
}

code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 5px;
    border-radius: 4px;
    color: #99ccff;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    padding: 2px 5px;
    background: #1e90ff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: none;
}

pre:hover .copy-btn {
    display: inline-block;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #1e90ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00bfff;
}