/* 基础样式 - 强制夜间模式 */
body {
    background: linear-gradient(120deg, #121212, #1a1a1a) !important;
    margin: 0;
    padding: 0;
    color: #e0e0e0 !important;
}

/* 容器样式 - 深色背景 */
#deepseek-chat-container {
    display: flex;
    height: 80vh;
    max-width: 80%;
    margin: 20px auto;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 5px #101010 !important;
    background-color: #1e1e1e !important;
}

/* 历史对话框样式 - 深色渐变 */
#deepseek-chat-history {
    width: 220px;
    max-width: 220px;
    background: linear-gradient(180deg, #1a1a2e, #2a0f42, #2a1a17) !important;
    border-right: 1px solid #333 !important;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

#deepseek-chat-history ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

#deepseek-chat-history li {
    padding: 8px 5px;
    cursor: pointer;
    list-style: none !important;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #e0e0e0 !important;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#deepseek-chat-history li:hover {
    background: #2d2d2d !important;
    transform: scale(1.02);
}

#deepseek-chat-history li.active {
    background: #0a4b69 !important;
    color: #fff !important;
}

#deepseek-chat-history li .deepseek-chat-title {
    font-weight: 600;
}

/* 新对话按钮 - 深色渐变 */
#deepseek-new-chat {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #0a6e0f, #2a1a1a) !important;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%) !important;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#deepseek-new-chat:hover {
    background: linear-gradient(90deg, #1d8d22, #153f18) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

/* 主对话框 */
#deepseek-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 消息框 - 深色背景 */
#deepseek-chat-messages {
    flex: 1;
    padding: 20px;
    padding-bottom: 60px;
    overflow-y: auto;
    background: #252525 !important;
    display: flex;
    flex-direction: column;
    position: relative;
    scroll-behavior: smooth;
}

/* 消息气泡 - 深色系渐变 */
.message-bubble {
    padding: 5px 15px;
    border-radius: 16px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 2px 6px rgb(0 0 0 / 20%) !important;
    max-width: 80%;
    color: #e0e0e0 !important;
}

.message-bubble:last-child {
    margin-bottom: 20px;
}

/* 用户消息气泡 - 深色渐变 */
.message-bubble.user {
    background: linear-gradient(90deg, #3a2a2a, #0a5c8c) !important;
    color: #e0e0e0 !important;
    align-self: flex-end;
    border-bottom-right-radius: 8px;
}

/* 机器人消息气泡 - 深色渐变 */
.message-bubble.bot {
    background: linear-gradient(90deg, #2a1a2c, #0a6e5c) !important;
    color: #e0e0e0 !important;
    align-self: flex-start;
    border-bottom-left-radius: 8px;
}

/* 代码块样式 - 夜间模式适配 */
.message-bubble pre {
    background: #121212 !important;
    color: #e0e0e0 !important;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #333 !important;
}

.message-bubble pre code {
    background: none !important;
    color: inherit !important;
    padding: 0;
    border: none;
}

/* 表格样式 - 夜间模式 */
.message-bubble table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    font-size: 14px;
}

.message-bubble table th {
    background: #333 !important;
    font-weight: bold;
    padding: 8px;
    border: 1px solid #444 !important;
    text-align: left;
    color: #e0e0e0 !important;
}

.message-bubble table td {
    padding: 8px;
    border: 1px solid #444 !important;
    color: #e0e0e0 !important;
}

/* 代码行高亮 - 夜间模式 */
.message-bubble pre .hljs {
    background: #121212 !important;
    color: #e0e0e0 !important;
}

/* 对话框图片 - 阴影适配 */
.message-bubble.bot img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3) !important;
    margin-top: 10px;
    display: block;
}

/* 输入框容器 - 深色背景 */
#deepseek-chat-input-container {
    display: flex;
    position: relative;
    min-height: 100px;
    padding: 15px 20px;
    border-top: 1px solid #333 !important;
    background: #1e1e1e !important;
    align-items: center;
    gap: 12px;
}

/* 输入框 - 深色模式 */
#deepseek-chat-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #444 !important;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
}

#deepseek-chat-input:focus {
    border-color: #1a6e9e !important;
    box-shadow: 0 0 4px rgba(0, 115, 170, 0.5) !important;
    outline: none;
}

/* 发送按钮 - 深色渐变 */
#deepseek-chat-send {
    padding: 14px 24px;
    background: linear-gradient(90deg, #5a2a4a, #9a5a0a) !important;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#deepseek-chat-send:hover {
    background: linear-gradient(90deg, #9a5a0a, #8a4a0a) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

/* 删除按钮样式 - 夜间模式 */
.deepseek-delete-log {
    background-color: #5a1a1a !important;
    float: right;
    color: #e0e0e0 !important;
    border: none;
    padding: 2px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.deepseek-delete-log:hover {
    background-color: #8a0a0a !important;
}

/* 登录提示样式 - 夜间模式 */
.deepseek-login-prompt {
    text-align: center;
    font-size: 18px;
    color: #1a8ecc !important;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    transition: all 0.3s ease;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: #252525 !important;
    border-radius: 8px;
}

#deepseek-chat-messages {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#deepseek-thinking-message {
    color: #aaa !important;
    font-style: italic;
}

/* 自定义提示词板块 - 夜间模式 */
#deepseek-custom-prompts {
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    text-align: center;
    background: #252525 !important;
    border: 1px solid #333 !important;
}

#deepseek-custom-prompts .deepseek-prompt {
    display: inline-block;
    background: #2a4a7a !important;
    color: #e0e0e0 !important;
    padding: 8px 16px;
    margin: 6px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

#deepseek-custom-prompts .deepseek-prompt:hover {
    background: #2a5a8a !important;
    transform: translateY(-2px);
}

/* 语音朗读按钮 - 夜间模式 */
.ai-tts-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 25px;
    background-color: #1a5a8a !important;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.1s ease;
    position: relative;
    bottom: 2.2px;
}

.ai-tts-play:hover {
    background-color: #1a4a7a !important;
    transform: scale(1.1);
}

.ai-tts-play:active {
    transform: scale(0.95);
}

/* 复制普通内容按钮 - 夜间模式 */
.bot-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 25px;
    margin-left: 10px;
    background-color: #2a5a8a !important;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    position: relative;
    bottom: 2.3px;
}

.bot-copy-button:hover {
    background-color: #1a4a7a !important;
    transform: scale(1.1);
}

.bot-copy-button:active {
    transform: scale(0.95);
}

.bot-copy-button.clicked {
    width: 80px;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #2a5a8a !important;
}

/* 气泡提示 - 夜间模式 */
.tooltip {
    position: absolute;
    background: #2a1a1a !important;
    color: #e0e0e0 !important;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #444 !important;
}

/* pre复制按钮 - 夜间模式 */
.pre-copy-button {
    display: inline-block;
    background: linear-gradient(90deg, #0a5a8a, #0a3a5a) !important;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin-top: 2px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    min-width: 80px;
    text-align: center;
}

.pre-copy-button:hover {
    background: linear-gradient(90deg, #0a3a5a, #0a2a4a) !important;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.pre-copy-button:active {
    transform: translateX(-50%) scale(0.98);
}

/* 底部选项栏容器 - 夜间模式 */
#deepseek-options-bar {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 8px 0;
    flex-wrap: wrap;
    background: #252525 !important;
    border-radius: 8px;
    padding: 8px;
}

/* 单个选项通用样式 - 夜间模式 */
.deepseek-option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #2d2d2d, #1d1d1d) !important;
    border: 1px solid #444 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    color: #e0e0e0 !important;
}

.deepseek-option-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px);
}

/* 前台接口选择 - 夜间模式 */
.deepseek-interface-select {
    display: flex;
    align-items: flex-start; /* 避免垂直拥挤 */
    gap: 8px;
    margin-left: 10px;
    padding: 8px 12px; /* 增大内边距，避免内容挤边 */
    background: linear-gradient(90deg, #5a3a1a, #3a7a1a) !important;
    border: 1px solid #555 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    flex-wrap: wrap;
}

.deepseek-interface-select:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px);
}

.deepseek-interface-select label {
    margin-right: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0 !important;
    letter-spacing: 0.025em;
}

.deepseek-interface-select select {
    padding: 2px 1px;
    border: 1px solid #444 !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0 !important;
    background: #2d2d2d !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
}

.deepseek-interface-select select:focus {
    border-color: #1a6e9e !important;
    box-shadow: 0 0 4px rgba(0, 115, 170, 0.5) !important;
    outline: none;
}

/* 联网搜索开关 - 夜间模式 */
.deepseek-search-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #2d2d2d, #1d1d1d) !important;
    border: 1px solid #444 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    color: #e0e0e0 !important;
}

.deepseek-search-toggle .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

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

.deepseek-search-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444 !important;
    transition: background-color 0.4s ease;
    border-radius: 20px;
    border: 1px solid #555 !important;
}

.deepseek-search-toggle .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #e0e0e0 !important;
    transition: transform 0.4s ease;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.deepseek-search-toggle input:checked + .slider {
    background-color: #2a7a2a !important;
}

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

.deepseek-search-toggle span {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0 !important;
    letter-spacing: 0.025em;
}

/* 教程链接 - 夜间模式 */
.deepseek-tutorial-link a {
    font-size: 13px;
    font-weight: 500;
    color: #1a8ecc !important;
    text-decoration: none !important;
    letter-spacing: 0.025em;
    transition: color 0.3s ease;
}

.deepseek-tutorial-link a:hover {
    color: #1a6e9e !important;
    text-decoration: none !important;
}

/* 智能体应用标题 - 夜间模式 */
.deepseek-agent-title {
    display: block;
    background: linear-gradient(135deg, #2a7a2a, #1a5a3a) !important;
    color: #e0e0e0 !important;
    padding: 2px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    margin: 10px auto;
    width: 160px;
    box-sizing: border-box;
}

.deepseek-agent-title:hover {
    background: linear-gradient(135deg, #2a8a2a, #1a4a3a) !important;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

/* 智能体应用列表 - 夜间模式 */
.agent-list {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    background: #252525 !important;
    border-radius: 8px;
    margin: 10px 0;
}

.agent-item {
    width: calc(32%);
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #2d2d2d, #0a5a7a, #0a9a5a) !important;
    border: 1px solid #555 !important;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    color: #e0e0e0 !important;
}

.agent-item:hover {
    background: linear-gradient(180deg, #3d3d3d, #8a0a0a) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.agent-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444 !important;
}

.agent-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin-left: 10px;
}

.agent-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0 !important;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-description {
    font-size: 12px;
    color: #d0d0d0 !important;
    margin: 4px 0 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 智能体应用对话页面 - 夜间模式 */
.agent-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
    align-self: center;
    background: #252525 !important;
    border-radius: 8px;
    width: 90%;
    margin: 10px auto;
}

.agent-header .agent-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    border: 1px solid #444 !important;
}

.agent-header .agent-name {
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0 !important;
}

/* 开场问题提示 - 夜间模式 */
.message-bubble.bot.prompt-hint {
    font-style: italic;
    color: #aaa !important;
    margin-top: 10px;
    background: #2d2d2d !important;
}

.opening-questions {
    margin-top: 15px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    background: #252525 !important;
    border-radius: 8px;
}

.opening-question {
    padding: 10px 16px;
    background: linear-gradient(90deg, #3a5a8a, #2a5a7a) !important;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(33.33% - 8px);
}

.opening-question:hover {
    background: linear-gradient(90deg, #2a5a7a, #1a4a6a) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 未登录提示遮罩层 - 夜间模式 */
.deepseek-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 18, 0.9) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #ff4a4a !important;
    cursor: not-allowed;
    z-index: 999;
    border-radius: 16px;
}

/* 自定义错误提示框 - 夜间模式 */
.custom-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px 25px;
    border-radius: 10px;
    color: #e0e0e0 !important;
    font-size: 16px;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    max-width: 90%;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    border: 1px solid #444 !important;
}

/* 成功提示框 - 深色渐变 */
.custom-notification.success {
    background: linear-gradient(90deg, #2a7a2a, #1a5a2a) !important;
}

/* 错误提示框 - 深色渐变 */
.custom-notification.error {
    background: linear-gradient(90deg, #7a1a1a, #5a0a0a) !important;
}

.close-notification {
    margin-left: 15px;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    color: #e0e0e0 !important;
}

.close-notification:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
}

/* 智能体应用清除对话 - 夜间模式 */
#clear-conversation-container {
    text-align: center;
    padding: 10px 0;
    margin-left: 20px;
    margin-right: 20px;
    background: #252525 !important;
    border-radius: 8px;
    margin: 10px 20px;
}

#clear-conversation-button {
    background: #444 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
    width: 100px;
    text-align: center;
}

#clear-conversation-button:hover {
    background: #8a0a0a !important;
}

.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7) !important;
    z-index: 999;
}

.confirmation-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2d2d2d !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000;
    max-width: 90%;
    width: 350px;
    border: 1px solid #444 !important;
}

.dialog-content {
    text-align: center;
}

.dialog-content p {
    margin-bottom: 20px;
    color: #e0e0e0 !important;
    font-size: 16px;
}

.dialog-content .confirm-clear,
.dialog-content .cancel-clear {
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.dialog-content .confirm-clear {
    background: #0a5a8a !important;
    color: #e0e0e0 !important;
}

.dialog-content .confirm-clear:hover {
    background: #0a4a7a !important;
}

.dialog-content .cancel-clear {
    background: #444 !important;
    color: #e0e0e0 !important;
    border: 1px solid #555 !important;
}

.dialog-content .cancel-clear:hover {
    background: #555 !important;
}

/* 自定义入口标题 - 夜间模式 */
.deepseek-custom-entry-title {
    display: block;
    background: linear-gradient(135deg, #2a7a2a, #1a5a3a) !important;
    color: #e0e0e0 !important;
    padding: 2px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    margin: 10px auto;
    width: 160px;
    box-sizing: border-box;
    text-decoration: none !important;
}

.deepseek-custom-entry-title:hover {
    background: linear-gradient(135deg, #2a8a2a, #1a4a3a) !important;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
    color: #e0e0e0 !important;
}

/* 推理过程 - 夜间模式 */
.reasoning-content {
    margin-bottom: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2d2d2d, #5a4a2a) !important;
    border-radius: 12px;
    border-left: 4px solid #2a5a8a !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    color: #e0e0e0 !important;
    font-size: 15px;
    line-height: 1.6;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.reasoning-content strong {
    color: #4a8aab !important;
    font-weight: 600;
}

.reasoning-content:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* 最终回答 - 夜间模式 */
.final-content {
    color: #d0d0d0 !important;
    font-size: 15px;
    line-height: 1.6;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.final-content strong {
    color: #3a9a5a !important;
    font-weight: 600;
}

/* 上传文件板块 - 夜间模式 */
.deepseek-option-item.upload-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #2d2d2d, #1d1d1d) !important;
    border: 1px solid #444 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

#deepseek-upload-file-btn {
    padding: 3px 10px;
    background: linear-gradient(90deg, #2a5a8a, #1a4a7a) !important;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    white-space: nowrap;
    min-width: 80px;
}

#deepseek-upload-file-btn:hover {
    background: linear-gradient(90deg, #1a4a7a, #0a3a6a) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

#deepseek-file-input {
    display: none;
}

/* 已上传文件列表 - 夜间模式 */
#uploaded-files-list {
    display: none;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 2px 6px;
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    border-radius: 6px;
    max-width: 300px;
    min-width: 100px;
    height: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    align-items: center;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #555 #2d2d2d !important;
}

#uploaded-files-list.visible {
    display: flex;
}

#uploaded-files-list::-webkit-scrollbar {
    height: 8px;
}

#uploaded-files-list::-webkit-scrollbar-track {
    background: #2d2d2d !important;
    border-radius: 4px;
}

#uploaded-files-list::-webkit-scrollbar-thumb {
    background: #555 !important;
    border-radius: 4px;
}

#uploaded-files-list div {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 12px;
    color: #e0e0e0 !important;
    background: #3d3d3d !important;
    border-radius: 4px;
    white-space: nowrap;
    margin-right: 4px;
    border: 1px solid #444 !important;
}

#uploaded-files-list div button {
    background: linear-gradient(90deg, #7a1a1a, #5a0a0a) !important;
    color: #e0e0e0 !important;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-left: 6px;
    white-space: nowrap;
}

#uploaded-files-list div button:hover {
    background: linear-gradient(90deg, #5a0a0a, #4a0a0a) !important;
    transform: translateY(-1px);
}

/* 智能体文件上传 - 夜间模式 */
.agent-upload-section {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    padding: 4px 12px;
    background: linear-gradient(90deg, #2d2d2d, #1d1d1d) !important;
    border: 1px solid #444 !important;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

#deepseek-agent-upload-btn {
    padding: 6px 12px;
    background: linear-gradient(90deg, #2a5a8a, #1a4a7a) !important;
    color: #e0e0e0 !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    white-space: nowrap;
    min-width: 80px;
    line-height: 1;
}

#deepseek-agent-upload-btn:hover {
    background: linear-gradient(90deg, #1a4a7a, #0a3a6a) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

#deepseek-agent-file-input {
    display: none;
}

/* 已上传文件显示 - 夜间模式 */
#agent-uploaded-file {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 1px 12px;
    background: #3d3d3d !important;
    border: 1px solid #444 !important;
    border-radius: 4px;
    max-width: 300px;
}

#agent-uploaded-file.visible {
    display: flex;
}

#agent-uploaded-file .file-name {
    font-size: 13px;
    color: #e0e0e0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

#agent-uploaded-file .remove-file-btn {
    background: linear-gradient(90deg, #7a1a1a, #5a0a0a) !important;
    color: #e0e0e0 !important;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

#agent-uploaded-file .remove-file-btn:hover {
    background: linear-gradient(90deg, #5a0a0a, #4a0a0a) !important;
    transform: translateY(-1px);
}

/* 视频生成图片预览 - 夜间模式 */
#qwen-video-image-preview {
    display: flex;
    align-items: center;
    margin-left: 10px;
    background: #252525 !important;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #444 !important;
}

#uploaded-image-container img {
    border: 1px solid #444 !important;
    border-radius: 4px;
    max-width: 200px;
    max-height: 200px;
}

#remove-uploaded-image {
    background-color: #7a1a1a !important;
    color: #e0e0e0 !important;
    border: none;
    padding: 1px 10px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #8a2a2a !important;
}

#remove-uploaded-image:hover {
    background-color: #5a0a0a !important;
}

.message-bubble.bot.video-message {
    width: 60%;
    max-width: 80%;
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
}

.video-preview {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #444 !important;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* 公告样式 - 夜间模式 */
#deepseek-announcement {
    border-radius: 10px;
    padding: 5px 20px;
    margin: 15px auto;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    color: #d0d0d0 !important;
    font-size: 15px;
    line-height: 1.6;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    background: #252525 !important;
    border: 1px solid #444 !important;
}

#deepseek-announcement a {
    color: #d98a0a !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#deepseek-announcement a:hover {
    color: #b97a0a !important;
    text-decoration: underline;
}

/* 响应式优化 - 夜间模式（合并所有768px以下样式） */
@media (max-width: 768px) {
    /* 智能体应用响应式基础 */
    .agent-list {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .agent-item {
        width: 100%;
        padding: 12px;
    }

    .agent-icon {
        width: 36px;
        height: 36px;
        margin-right: 10px;
    }

    .agent-name {
        font-size: 15px;
    }

    .agent-description {
        font-size: 13px;
    }

    .opening-questions {
        padding: 10px;
        gap: 6px;
    }

    .opening-question {
        max-width: 100%;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* 聊天容器响应式 */
    .message-bubble.bot {
        max-width: 100%;
    }

    #deepseek-chat-container {
        flex-direction: column-reverse;
        height: 100vh;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        background-color: #181818 !important;
    }

    #deepseek-chat-history {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-top: 1px solid #444 !important;
        max-height: 40vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: linear-gradient(180deg, #1a1a2e, #2a0f42, #2a1a17) !important;
    }

    #deepseek-chat-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #deepseek-chat-messages {
        flex: 1;
        padding: 15px;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #202020 !important;
    }

    #deepseek-chat-input-container {
        padding: 10px;
        background: #1a1a1a !important;
        border-top: 1px solid #444 !important;
    }

    #deepseek-options-bar {
        gap: 10px;
        padding: 6px 0;
        background: #202020 !important;
    }

  /* 手机端终极优化：双列并排，最小化占用空间 */
    /* 1. 选项栏改为横向排列，禁止换行，紧凑布局 */
    #deepseek-options-bar {
        display: flex !important;
        flex-direction: row !important; /* 强制横向 */
        flex-wrap: nowrap !important; /* 禁止换行，保持一行 */
        gap: 8px !important; /* 两个选择框之间的间距 */
        padding: 6px 8px !important; /* 极窄的内边距 */
        background: #202020 !important;
        margin: 5px 0 !important; /* 上下只留一点点间距 */
    }

    /* 2. 容器平分宽度，高度极小化 */
    .deepseek-interface-select {
        flex: 1 !important; /* 两个框各占50%宽度 */
        width: 50% !important;
        padding: 3px 5px !important; /* 极致压缩内边距 */
        height: auto !important;
        display: flex !important;
        flex-direction: row !important; /* 标签和下拉框在同一行 */
        align-items: center !important;
        gap: 3px !important; /* 标签和框的间距缩到最小 */
        background: #2d2d2d !important;
        border: 1px solid #555 !important;
        border-radius: 5px !important;
    }

    /* 3. 隐藏文字标签（关键！大幅节省宽度），只留下拉框 */
    .deepseek-interface-select label {
        display: none !important; 
        /* 如果想保留标签，把上面的 none 改成 inline-block，并用下面的样式：
        font-size: 11px !important;
        white-space: nowrap !important;
        */
    }

    /* 4. 下拉框填满容器，高度缩到最小 */
    .deepseek-interface-select select {
        width: 100% !important;
        min-width: unset !important;
        padding: 6px 8px !important; /* 手机端易点击的最小高度 */
        font-size: 12px !important; /* 小字体 */
        background: #333 !important;
        color: #e0e0e0 !important;
        border: 1px solid #666 !important;
        border-radius: 4px !important;
    }

    #deepseek-agent-title {
        text-align: center;
        width: 90%;
        max-width: 160px;
        box-sizing: border-box;
        background: #2a7a2a !important;
        color: #e0e0e0 !important;
    }

    .deepseek-custom-entry-title {
        text-align: center;
        width: 60%;
        max-width: 200px;
        box-sizing: border-box;
        background: #2a7a2a !important;
        color: #e0e0e0 !important;
    }

    .reasoning-content, .final-content {
        padding: 10px 12px;
        font-size: 12px;
        margin-bottom: 8px;
        background: #2d2d2d !important;
        color: #e0e0e0 !important;
    }

    .ai-tts-play {
        width: 28px;
        height: 20px;
        font-size: 13px;
        margin-left: 5px;
        background: #1a5a8a !important;
    }

    .bot-copy-button {
        width: 20px;
        height: 15px;
        font-size: 8px;
        margin-left: 3px;
        position: relative;
        bottom: 2px;
        background: #1a5a8a !important;
    }

    .tooltip {
        display: none;
    }

    .message-bubble.bot.video-message {
        width: 60%;
        background: #2d2d2d !important;
    }

    #uploaded-image-container img {
        max-width: 80px;
        max-height: 70px;
        border: 1px solid #444 !important;
    }

    #deepseek-announcement {
        max-width: 80%;
        padding: 10px 15px;
        font-size: 14px;
        margin: 10px auto;
        background: #252525 !important;
        border: 1px solid #444 !important;
        color: #d0d0d0 !important;
    }
}
