/* 备案号样式 */
.copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #e0e0e0;
    z-index: 1000;
}

.copyright a {
    color: #666;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* 滑块开关样式 */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: .4s;
    margin: 0 8px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .toggle-slider {
    background-color: #4CAF50;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    font-size: 14px;
    color: #333;
}

/* 思考过程展示区域 */
.chat-thinking {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.thinking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
}

.thinking-header span {
    font-weight: bold;
    color: #333;
}

.toggle-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.toggle-btn:hover {
    background-color: #45a049;
}

.thinking-content {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

.thinking-content.show {
    display: block;
}

.thinking-step {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.thinking-step::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

/* 消息中的思考过程容器 */
.thinking-container {
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.thinking-container .thinking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.thinking-container .thinking-header span {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.thinking-time {
    font-size: 10px !important;
    color: #666;
    font-weight: normal !important;
}

.toggle-thinking-btn {
    background: none;
    border: none;
    color: #4CAF50;
    font-size: 10px;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.2s;
}

.toggle-thinking-btn:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.thinking-container .thinking-content {
    padding: 6px 8px;
    background-color: #fafafa;
    font-size: 11px;
    line-height: 1.3;
    max-height: 150px;
    overflow-y: auto;
    display: none;
    font-family: monospace;
    color: #333;
}

.thinking-container .thinking-step {
    margin-bottom: 3px;
    padding-left: 12px;
    position: relative;
    font-size: 10px;
}

.thinking-container .thinking-step::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-size: 8px;
}

/* 语音切换按钮样式 */
.voice-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.voice-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.voice-toggle.active {
    background-color: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.voice-toggle.muted {
    opacity: 0.5;
}