/* 在原有样式基础上添加以下内容 */

/* 认证页面样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.captcha-group {
    margin-bottom: 20px;
}

.captcha-input {
    display: flex;
    gap: 10px;
}

.captcha-input input {
    flex: 1;
}

.captcha-image {
    width: 120px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.form-actions {
    margin-top: 30px;
}

.form-actions button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 用户信息样式 */
.user-info {
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.username {
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-email {
    display: block;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    padding: 5px 10px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* 错误提示样式 */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}

/* 成功提示样式 */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}

/* 原有样式保持不变 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧功能栏 */
.sidebar {
    width: 300px;
    background-color: #f5f5f5;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.new-session {
    display: none;
}

.btn-primary {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.session-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.session-item {
    padding: 10px;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-item:hover {
    background-color: #e9ecef;
}

.session-item.active {
    background-color: #007bff;
    color: white;
}

.session-title {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.session-delete {
    color: #dc3545;
    cursor: pointer;
    padding: 0 5px;
    font-size: 16px;
}

.session-item.active .session-delete {
    color: #fff;
}

/* 中间参数栏 */
.params-panel {
    width: 280px;
    background-color: #fafafa;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.params-header {
    padding: 15px;
    height:71px;
    border-bottom: 1px solid #ddd;
}

.params-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.param-group {
    margin-bottom: 20px;
}

.param-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.param-group select,
.param-group input[type="text"],
.param-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.file-input {
    padding: 5px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    width: 100%;
}

/* 右侧对话栏 */
.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.5;
    box-sizing: border-box;
}

.message.user {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.assistant {
    align-self: flex-start;
    background-color: #f1f3f5;
    color: #333;
    border-bottom-left-radius: 4px;
    width: 100%;
}

.message.image,
.message.video {
    align-self: flex-start;
    background-color: #f8f9fa;
    padding: 10px;
}

.message img,
.message video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    display: block;
}

/* 代码块样式 */
.message.assistant pre {
    background-color: #282c34;
    color: #abb2bf;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #3e4451;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.message.assistant pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    white-space: pre;
    display: block;
}

.message.assistant code:not(pre code) {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #d63384;
    border: 1px solid #dee2e6;
}

.message.assistant pre::before {
    content: attr(data-language);
    position: absolute;
    top: 0;
    right: 12px;
    background-color: #4b5263;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 0 0 4px 4px;
    text-transform: uppercase;
}

.message.assistant p {
    margin: 0 0 12px 0;
    width: 100%;
}

.message.assistant p:last-child {
    margin-bottom: 0;
}

.message.assistant ul, 
.message.assistant ol {
    margin: 8px 0 12px 0;
    padding-left: 24px;
    width: 100%;
}

.message.assistant li {
    margin: 4px 0;
}

.message.assistant h1,
.message.assistant h2,
.message.assistant h3,
.message.assistant h4,
.message.assistant h5,
.message.assistant h6 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
    width: 100%;
}

.message.assistant h1 { font-size: 1.8em; }
.message.assistant h2 { font-size: 1.5em; }
.message.assistant h3 { font-size: 1.3em; }
.message.assistant h4 { font-size: 1.1em; }
.message.assistant h5 { font-size: 1em; }
.message.assistant h6 { font-size: 0.9em; }

.message.assistant blockquote {
    border-left: 4px solid #007bff;
    margin: 12px 0;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #495057;
    font-style: italic;
    border-radius: 0 4px 4px 0;
    width: 100%;
    box-sizing: border-box;
}

.message.assistant table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    font-size: 14px;
    border: 1px solid #dee2e6;
}

.message.assistant th,
.message.assistant td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
}

.message.assistant th {
    background-color: #e9ecef;
    font-weight: 600;
}

.message.assistant tr:nth-child(even) {
    background-color: #f8f9fa;
}

.message.assistant a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px dotted #007bff;
}

.message.assistant a:hover {
    border-bottom: 1px solid #007bff;
}

.message.assistant hr {
    border: none;
    border-top: 2px solid #dee2e6;
    margin: 16px 0;
    width: 100%;
}

.message.assistant img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

/* 打字机光标 */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #007bff;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 聊天输入区域 */
.chat-input {
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.input-group textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.3s, height 0.2s ease;
}

.input-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.input-group textarea::placeholder {
    color: #999;
}

.input-group button {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    align-self: flex-end;
    height: 45px;
    min-width: 80px;
}

.input-group button:hover {
    background-color: #0056b3;
}

.input-group button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 中止按钮 */
.btn-stop {
    padding: 12px 24px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    height: 45px;
    min-width: 80px;
}

.btn-stop:hover {
    background-color: #c82333;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 状态信息 */
.status-message {
    padding: 12px;
    margin: 10px 0;
    background-color: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    color: #0056b3;
}

/* 在文件末尾添加空状态样式 */
.empty-message {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 10px 0;
}

/* 错误状态样式 */
.message.assistant.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.message.assistant.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

/* 提示信息样式 */
.hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding: 3px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.hint.warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.hint.error {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

/* 新建会话项样式 */
.new-session-item {
    padding: 12px;
    margin-bottom: 10px;
    background-color: #e3f2fd;
    border: 2px dashed #007bff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.new-session-item:hover {
    background-color: #bbdefb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.new-session-icon {
    font-size: 18px;
}

.new-session-text {
    font-size: 14px;
    font-weight: 500;
    color: #007bff;
}

/* 会话列表滚动条 */
.session-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: calc(100vh - 200px); /* 调整高度 */
}

/* 自定义滚动条 */
.session-list::-webkit-scrollbar {
    width: 6px;
}

.session-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.session-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.session-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 会话操作按钮 */
.session-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.session-item:hover .session-actions {
    opacity: 1;
}

.session-edit {
    color: #28a745;
    cursor: pointer;
    padding: 0 3px;
    font-size: 14px;
}

.session-edit:hover {
    transform: scale(1.1);
}

.session-delete {
    color: #dc3545;
    cursor: pointer;
    padding: 0 3px;
    font-size: 14px;
}

.session-delete:hover {
    transform: scale(1.1);
}

.session-item.active .session-edit,
.session-item.active .session-delete {
    color: white;
}

/* 视频任务状态样式 */
.video-task {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.video-task:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-task-status {
    padding: 10px;
}

.task-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #0056b3;
}

.btn-small:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.processing {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 功能选项卡 */
.feature-tabs {
    display: flex;
    padding: 10px;
    gap: 5px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.feature-tab {
    flex: 1;
    padding: 8px 5px;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    white-space: nowrap;
}

.feature-tab:hover {
    background-color: #e9ecef;
    color: #333;
}

.feature-tab.active {
    background-color: #007bff;
    color: white;
}

/* 视频任务样式 */
.video-task {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.video-task-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.task-icon {
    font-size: 20px;
}

.task-title {
    font-weight: 600;
    color: #495057;
}

.video-task-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-prompt {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    background-color: white;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.task-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0;
}

.task-id {
    font-size: 12px;
    color: #6c757d;
    font-family: monospace;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

.task-progress {
    margin: 10px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
}

/* 通知样式 */
.download-notification,
.video-complete-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px 20px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    border-left: 4px solid #28a745;
}

.video-complete-notification {
    border-left-color: #007bff;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-content button {
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.notification-content button:hover {
    background-color: #0056b3;
}

.notification-time {
    font-size: 11px;
    color: #6c757d;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.processing {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.status-badge.completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 任务操作按钮 */
.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-small {
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-small:hover:not(:disabled) {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.btn-small.check-status {
    color: #007bff;
}

.btn-small.download-video {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-small.download-video:hover:not(:disabled) {
    background-color: #218838;
}

.btn-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 过期警告 */
.expiry-warning {
    color: #dc3545;
    font-size: 12px;
    margin-top: 8px;
    padding: 5px 10px;
    background-color: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

/* 模型提示样式 */
.model-hint {
    font-size: 12px;
    color: #856404;
    margin-top: 5px;
    padding: 4px 8px;
    background-color: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

/* 用户消息中的小提示 */
.message.user small {
    font-size: 11px;
    opacity: 0.8;
    display: block;
    margin-top: 3px;
}

/* 禁用下拉框样式 */
select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.8;
}

select:disabled:hover {
    border-color: #ced4da;
}

/* 模型提示样式 */
.model-hint {
    font-size: 12px;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 4px;
}

.model-hint.warning {
    color: #856404;
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
}

.model-hint.info {
    color: #004085;
    background-color: #cce5ff;
    border-left: 3px solid #007bff;
}

/* 禁用下拉框样式 */
select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.8;
}

select:disabled:hover {
    border-color: #ced4da;
}

/* 新建会话时模型可选样式 */
select:not(:disabled) {
    background-color: white;
    cursor: pointer;
    border-color: #007bff;
    box-shadow: 0 0 0 1px rgba(0,123,255,0.25);
}

select:not(:disabled):hover {
    border-color: #0056b3;
}

/* 手动刷新提示 */
.manual-refresh-hint {
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manual-refresh-hint .hint-icon {
    font-size: 20px;
}

.manual-refresh-hint .hint-text {
    flex: 1;
    font-size: 13px;
    color: #004085;
}

.manual-refresh-hint button {
    padding: 4px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.manual-refresh-hint button:hover {
    background-color: #0056b3;
}

/* 过期提示 */
.expiry-note {
    font-size: 11px;
    color: #856404;
    margin-top: 5px;
    padding: 2px 8px;
    background-color: #fff3cd;
    border-radius: 3px;
}

/* 图片消息样式增强 */
.message.image {
    background-color: transparent;
    padding: 5px;
    max-width: 100%;
}

.message.image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.message.image img:hover {
    transform: scale(1.02);
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 视频容器样式 */
.video-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.video-container video {
    width: 100%;
    border-radius: 8px;
    background-color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 图片容器样式 */
.image-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.image-container img:hover {
    transform: scale(1.02);
}

/* 下载按钮样式 */
.download-btn {
    align-self: flex-start;
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    margin-top: 5px;
}

.download-btn:hover {
    background-color: #218838;
}

/* 视频链接样式 */
.video-link {
    margin: 5px 0;
    font-size: 13px;
}

.video-link a {
    color: #007bff;
    text-decoration: none;
}

.video-link a:hover {
    text-decoration: underline;
}

/* 视频消息样式 */
.message.video {
    background-color: transparent;
    padding: 10px;
    max-width: 100%;
}

.message.video .expiry-note {
    font-size: 12px;
    color: #856404;
    margin-top: 8px;
    padding: 4px 8px;
    background-color: #fff3cd;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
}

/* 错误消息样式 */
.message.video .error-message {
    color: #dc3545;
    font-size: 13px;
    padding: 8px;
    background-color: #f8d7da;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    margin: 5px 0;
}

.error-message a {
    color: #dc3545;
    font-weight: bold;
}


/* 视频任务容器样式 */
.video-task-container {
    margin-top: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.task-pending {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-status-text {
    margin: 0;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.task-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
}

.task-hint {
    font-size: 11px;
    color: #adb5bd;
    margin: 5px 0 0 0;
}

.task-completed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-completed p {
    margin: 0;
    color: #28a745;
    font-weight: 500;
}

/* 按钮样式 */
.check-video-status {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.check-video-status:hover {
    background-color: #0056b3;
}

.check-video-status:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.download-video, .view-video {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    margin-right: 8px;
}

.download-video {
    background-color: #28a745;
    color: white;
}

.download-video:hover {
    background-color: #218838;
}

.view-video {
    background-color: #17a2b8;
    color: white;
}

.view-video:hover {
    background-color: #138496;
}

/* 视频预览模态框 */
.video-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.video-preview-modal video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f8f9fa;
}

/* 通知样式 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.info {
    background-color: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 图片容器样式 */
.image-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: contain;
    background-color: #f1f3f5;
}

.image-container img:hover {
    transform: scale(1.02);
}

/* 图片链接样式 */
.image-link {
    margin: 5px 0;
    font-size: 13px;
}

.image-link a {
    color: #007bff;
    text-decoration: none;
}

.image-link a:hover {
    text-decoration: underline;
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

/* 消息中的图片样式 */
.message.image {
    background-color: transparent;
    padding: 0;
    max-width: 100%;
}

/* 错误消息样式 */
.error-message {
    color: #dc3545;
    font-size: 13px;
    padding: 8px;
    background-color: #f8d7da;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    margin: 5px 0;
}

.error-message a {
    color: #dc3545;
    font-weight: bold;
    text-decoration: underline;
}