* {
    box-sizing: border-box;
}

/* 基本样式设置 */
html, body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    height: 100%;
    overflow: hidden;
}

/* 布局容器 */
.layout-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 左侧面板 */
.left-panel {
    display: flex;
    flex-direction: column;
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.left-panel h2 {
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0px;
}
/* 左上区域 */
.left-top {
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex: 3;
    background-color: #f9f9f9;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 70%;
    display: flex;
    flex-direction: column;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-family: 'Courier New', Courier, monospace !important;
    white-space: normal;
    word-break: break-all;
    word-wrap: break-word;
}

.left-top p{
    margin: 2px;
}

/* 左下区域 */
.left-bottom {
    padding: 20px;
    flex: 1;
    background-color: #f0f0f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 右侧面板 */
.right-panel {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    height: 100%;
    overflow: auto;
}

/* 右侧标题 */
.right-title {
    text-align: center;
    margin-bottom: 20px;
}

/* 内容容器 */
.content-container {
    flex: 2;
    position: relative;
    margin-bottom: 20px;
    min-width: 576px;
}

/* 内容区域 - 固定尺寸 */
.content-area {
    width: 576px;
    height: 768px;
    /* border: 1px solid #ddd; */
    background-color: #fefefe;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    box-sizing: border-box;
}
.article{
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.2;
    color: #333;
    text-align: justify;
    word-wrap: break-word;
    white-space: pre-wrap;
    padding: 20px;
}

/* 活动内容区域 */
.content-area.active {
    display: block;
}

/* 按钮组 */
.button-group {
    flex:1;
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 32px;
    padding: 15px 0;
    flex-direction: column;
    align-items: flex-start;
}

/* 内容切换按钮 */
.content-btn {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 0px 5px 5px 0px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-btn:hover {
    background-color: #e0e0e0;
}

.content-btn.active {
    background-color: #4a90e2;
    color: white;
    border-color: #3a7bc8;
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

p {
    /* margin-bottom: 15px; */
}

/* 输入容器样式 */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0px;
}

/* 文本输入框样式 */
.text-input {
    width:auto;
    min-height: 80px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.text-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    outline: none;
}

.text-input::placeholder {
    color: #aaa;
}

/* 提交按钮样式 */
.submit-button {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    align-self: flex-end;
}

.submit-button:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.left-top use_mcp_tool, .left-top article, .left-top arttitle {
    display: none;
}
/* .left-top use_mcp_tool::before {
    content: "使用MCP工具";
    font-weight: bold;
    color: red;
} */

.left-top coverimage,
.left-top innerpage {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

.left-top coverimage::before,
.left-top coverimage::after,
.left-top innerpage::before,
.left-top innerpage::after {
  display: none !important;
  content: none !important;
}

.left-top p.process{
    display: block;
}

arttitle {
    font-weight: bold;
}

server_name {
    text-decoration: underline;
}

thinking {
    font-style: italic;
    display: block;
    color: cadetblue;
    margin: 4px 0px;
    border: 1px dashed cadetblue;
    padding: 10px;
    white-space: pre-wrap;
}
thinking::before {
    font-style: normal;
    content: "AI思考过程"; 
    color: red;
    font-weight: bold;
}

#model-info {
    font-size: 10px;
    line-height: 10px;
    background-color: #f0f0f0;
    color: #777;
    white-space: pre-wrap;
    padding: 8px 20px;
}
.chunking {
    display: block;
    background-color: rgba(250, 235, 215, 0.5);
    animation: breath 1s ease-in-out infinite;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    word-break: break-all;
    word-wrap: break-word;
    line-break: anywhere;
}
@keyframes breath {
    0% {
      background-color: rgba(250, 235, 215, 0.2); /* 最透明 */
    }
    50% {
      background-color: rgba(250, 235, 215, 1); /* 完全不透明 */
    }
    100% {
      background-color: rgba(250, 235, 215, 0.2); /* 回到最透明 */
    }
  }