* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* 加载页面样式 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 14px;
    color: #666;
}

.app-container {
    max-width: 414px;
    height: 100vh;
    margin: 0 auto;
    background-color: #f0f2f5;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 状态栏样式 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f2f5;
}

.time {
    font-weight: bold;
}

.status-icons {
    display: flex;
    gap: 8px;
}

/* 头部区域容器样式 */
.header-container {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    max-width: 414px;
    margin: 0 auto;
}

.header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* 防止空白区域 */
}

.header-left .header-title-area + .datagroup-info {
    margin-top: 8px;
}

/* 当数据分组信息隐藏时，确保不占用空间 */
.datagroup-info[style*="display: none"],
.datagroup-info:not([style*="display: flex"]) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden;
}


.header-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.settings-btn, .history-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.settings-btn:hover, .history-btn:hover {
    background-color: #f5f5f5;
}

.settings-btn:active, .history-btn:active {
    background-color: #e8e8e8;
}

.chat-history-btn {
    background-color: white;
    border: none;
    border-radius: 18px;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 内容区域样式 */
.content-area {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.ai-prompt {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.ai-icon {
    margin-right: 8px;
}

.selection-area {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.selection-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
}

.arrow {
    font-size: 18px;
    color: #999;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.useful-btn, .not-useful-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    color: #666;
}

.tip-text {
    text-align: center;
    font-size: 14px;
    color: #3366cc;
    margin: 20px 0;
}

/* 底部导航栏 */
.bottom-nav-container {
    background-color: transparent;
    border-top: 1px solid #e0e0e0;
    padding: 10px 5px;
    overflow: hidden;
}

.bottom-nav-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 5px 0;
    gap: 10px;
}

.bottom-nav-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-item {
    flex-shrink: 0;
}

.nav-button {
    background-color: white;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.nav-button:hover, .nav-button:active {
    background-color: #f7f7f7;
}

/* 输入框区域 */
.input-area {
    display: flex;
    align-items: flex-end;
    padding: 10px 15px;
    background-color: transparent;
    border-top: 1px solid #e0e0e0;
    gap: 10px;
    position: relative;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.input-area textarea,
.input-area #message-input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 45px 10px 15px; /* 右侧留出空间给语音图标 */
    background-color: white;
    font-size: 14px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    resize: none;
    overflow-y: auto;
    min-height: 40px;
    max-height: 200px;
    line-height: 1.5;
    font-family: inherit;
    width: 100%;
}

.input-area input {
    flex: 1;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    background-color: white;
    font-size: 14px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 录音提示界面（微信风格） */
.recording-tip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.recording-tip-content {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    color: #fff;
    min-width: 200px;
}

.recording-animation {
    margin-bottom: 20px;
}

.recording-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 50px;
}

.recording-wave span {
    display: inline-block;
    width: 4px;
    background-color: #fff;
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.recording-wave span:nth-child(1) { animation-delay: 0s; height: 20px; }
.recording-wave span:nth-child(2) { animation-delay: 0.1s; height: 30px; }
.recording-wave span:nth-child(3) { animation-delay: 0.2s; height: 40px; }
.recording-wave span:nth-child(4) { animation-delay: 0.3s; height: 30px; }
.recording-wave span:nth-child(5) { animation-delay: 0.4s; height: 20px; }

@keyframes wave {
    0%, 100% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.recording-time {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.recording-hint {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.send-btn {
    background: #1890ff;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    padding: 8px;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.1s;
}

.send-btn:hover {
    background: #40a9ff;
}

.send-btn:active {
    background: #096dd9;
    transform: scale(0.95);
}

.send-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    opacity: 0.6;
}

.send-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.voice-input-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    z-index: 10;
    transition: background-color 0.2s;
}

.voice-input-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.voice-input-btn:active {
    background-color: #f0f0f0;
}

.voice-input-btn svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.voice-input-btn.recording {
    background-color: #ff4d4f;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.voice-input-btn.recording svg {
    color: #fff;
}

/* 工具按钮（+号） */
.tools-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    padding: 8px;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.tools-btn:hover {
    background-color: #f0f0f0;
}

.tools-btn:active {
    transform: rotate(45deg);
}

.tools-btn svg {
    width: 24px;
    height: 24px;
    color: #666;
}

.tools-btn.active {
    background-color: #e6f7ff;
}

.tools-btn.active svg {
    color: #1890ff;
}

/* 工具面板 */
.tools-panel {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    max-width: 414px;
    width: calc(100% - 30px);
    z-index: 1000;
}

.tools-panel.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.tool-item:active {
    transform: scale(0.95);
    background-color: #e6f7ff;
}

.tool-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.tool-label {
    font-size: 12px;
    color: #666;
}

/* Whisper 服务错误提示 */
.whisper-service-error-tip {
    background-color: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 15px;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whisper-error-content {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.whisper-error-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.whisper-error-text {
    flex: 1;
    font-size: 13px;
    color: #d46b08;
}

/* 文件列表容器 */
.file-list-container {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #e6e6e6;
    max-height: 200px;
    overflow-y: auto;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 8px;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.file-action-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-action-btn:hover {
    opacity: 0.7;
}

.file-action-btn:active {
    opacity: 0.5;
}

/* 文件预览模态框 */
.file-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.file-preview-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.file-preview-pdf {
    width: 90vw;
    height: 90vh;
}

.file-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e6e6e6;
}

.file-preview-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.file-preview-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.file-preview-close:hover {
    color: #333;
}

.file-preview-body {
    flex: 1;
    overflow: auto;
    padding: 16px;
}

.file-preview-image {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.file-preview-iframe {
    width: 100%;
    height: calc(90vh - 80px);
    border: none;
    border-radius: 4px;
}

.whisper-error-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #d46b08;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.whisper-error-close:hover {
    background-color: rgba(212, 107, 8, 0.1);
}

.message-time {
    text-align: center;
    font-size: 13px;
    color: rgba(153, 153, 153, 0.9);
    margin: 10px auto 15px;
    padding: 4px 12px;
    font-weight: 400;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.chat-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}

.chat-options .message-time {
    font-size: 12px;
    color: #999;
    margin-right: auto;
}

.query-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-image: url('imgs/head.png');
    background-size: cover;
    margin-left: 8px;
}

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

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-app-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.login-app-icon {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
}

.login-app-title {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.login-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: #1890ff;
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

/* 数据分组显示区域 */
.datagroup-info {
    display: none; /* 默认隐藏，有数据时通过JS显示 */
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.datagroup-info[style*="flex"] {
    display: flex !important;
}

.datagroup-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.datagroup-name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.switch-datagroup-btn {
    padding: 4px 12px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.switch-datagroup-btn:hover {
    background-color: #40a9ff;
}

.switch-datagroup-btn:active {
    background-color: #096dd9;
}

/* 历史会话侧边栏样式 */
.history-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.history-overlay.show {
    opacity: 1;
    visibility: visible;
}

.history-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: #fff;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.history-sidebar.show {
    transform: translateX(0);
}

.history-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.history-sidebar-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-history-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-history-btn:hover {
    background-color: #e0e0e0;
}

.history-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.new-chat-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.new-chat-btn:hover {
    background-color: #40a9ff;
}

.new-chat-btn span {
    font-size: 16px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-history {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 2px solid transparent;
}

.history-item:hover {
    background-color: #e6f7ff;
}

.history-item.active {
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.history-item-content {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-preview {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-time {
    font-size: 11px;
    color: #999;
}

.delete-history-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 8px;
    margin-left: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.delete-history-btn:hover {
    opacity: 1;
}

/* 工具调用信息样式 */
.agent-tools-simple {
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #1890ff;
    font-size: 13px;
    color: #333;
}

.agent-tools-simple .tool-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background-color: #e6f7ff;
    color: #1890ff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* 图片识别对话框样式 */
.image-recognition-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-recognition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.image-recognition-content {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.image-recognition-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e6e6e6;
}

.image-recognition-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.image-recognition-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.image-recognition-close:hover {
    color: #333;
}

.image-recognition-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-recognition-file-section,
.image-recognition-prompt-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-recognition-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.image-recognition-file-input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.image-recognition-file-input:hover {
    border-color: #1890ff;
}

.image-recognition-file-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.image-recognition-file-info {
    font-size: 12px;
    color: #666;
    padding: 4px 0;
}

.image-recognition-prompt-input {
    min-height: 100px;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s ease;
}

.image-recognition-prompt-input:hover {
    border-color: #1890ff;
}

.image-recognition-prompt-input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.image-recognition-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e6e6e6;
}

.image-recognition-cancel,
.image-recognition-submit {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.image-recognition-cancel {
    background-color: #f5f5f5;
    color: #666;
}

.image-recognition-cancel:hover {
    background-color: #e6e6e6;
    color: #333;
}

.image-recognition-submit {
    background-color: #1890ff;
    color: #fff;
}

.image-recognition-submit:hover {
    background-color: #40a9ff;
}

.image-recognition-submit:active {
    background-color: #096dd9;
}