* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
    /* 主色调 */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;

    /* 辅助色 */
    --secondary-color: #ec4899;
    --accent-color-1: #f59e0b;
    --accent-color-2: #10b981;
    --accent-color-3: #06b6d4;

    /* 中性色 */
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #111827;

    /* 边框和分割线 */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-warm: linear-gradient(135deg, var(--accent-color-1), var(--secondary-color));
    --gradient-cool: linear-gradient(135deg, var(--primary-color), var(--accent-color-3));

    /* 布局尺寸 */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 60px;
    --top-bar-height: 60px;
    --input-area-height: 80px;

    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* 深色模式变量 */
[data-theme="dark"] {
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    --bg-dark: #000000;
    --border-color: #374151;
    --border-light: #4b5563;
}

body {
    background: var(--bg-secondary);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 动态背景 */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-warm);
    top: 50%;
    right: -200px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-cool);
    bottom: -125px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* 主布局 */
.app-layout {
    display: flex;
    height: 100vh;
    position: relative;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

/* 侧边栏隐藏状态 */
.sidebar.hidden {
    width: 0;
    min-width: 0;
    overflow: hidden;
    border-right: none;
    box-shadow: none;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--top-bar-height);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 0.5px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-color);
}

.sidebar-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.sidebar-section {
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    font-size: 0.75rem;
}

/* 清除所有历史记录按钮 */
.clear-all-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
    opacity: 0.7;
}

.clear-all-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--error-color);
    opacity: 1;
    transform: scale(1.1);
}

.clear-all-btn:active {
    transform: scale(0.95);
}



/* 模型选择器 */
.model-selector-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.model-select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
}

.model-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.model-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* 选择器选项样式 */
.model-select option {
    font-size: inherit; /* 继承父元素字体大小 */
    padding: 8px 12px;
    background: var(--bg-primary);
    color: var(--text-color);
}

/* 移动端选择器通用优化 */
@media (max-width: 767px) {
    .model-select {
        /* 确保在所有移动设备上都使用原生外观 */
        -webkit-appearance: menulist !important;
        -moz-appearance: menulist !important;
        appearance: menulist !important;
        background-image: none !important;
        /* 优化移动端交互 */
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    min-width: 0;
    flex-shrink: 0;
}

.api-status-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.api-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color-1);
    transition: background-color var(--transition-fast);
}

.api-status-indicator.connected {
    background: var(--accent-color-2);
}

.api-status-indicator.disconnected {
    background: #ef4444;
}

/* 侧边栏历史记录模块 */

.history-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    color: var(--text-light);
    font-size: 0.875rem;
    gap: 8px;
}

.history-empty i {
    font-size: 1.5rem;
    opacity: 0.5;
}

.history-item-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    min-height: 36px;
}

.history-item-sidebar:hover {
    background: var(--bg-tertiary);
}

.history-item-title {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6px;
    line-height: 1.3;
}

.history-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-action-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.7rem;
    opacity: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-item-sidebar:hover .history-action-btn {
    opacity: 1;
}

.history-action-btn:hover {
    background: var(--bg-primary);
    color: var(--text-color);
}

/* 操作菜单 */
.action-menu {
    position: fixed;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all var(--transition-fast);
    backdrop-filter: blur(20px);
    padding: 4px 0;
}

.action-menu.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.8rem;
    color: var(--text-color);
    line-height: 1.2;
}

.action-menu-item:hover {
    background: var(--bg-secondary);
}

.action-menu-item.danger {
    color: #ef4444;
}

.action-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* 移除分隔线样式 */

.action-menu-item i {
    width: 12px;
    text-align: center;
    font-size: 0.75rem;
}

.action-menu-item span {
    font-weight: 500;
}

/* 设置控件 */
.settings-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    align-items: center;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
    width: 100%;
    position: relative;
}

.setting-label i {
    width: 16px;
    color: var(--text-light);
}

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

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    margin-left: auto;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-switch:checked + .toggle-slider {
    background: var(--primary-color);
}

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

/* 侧边栏底部 */
.sidebar-footer {
    padding: 20px;
    margin-top: auto;
}

.developer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    justify-content: center;
}

.developer-info i {
    color: var(--primary-color);
}

/* 微信按钮样式 */
.wechat-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-btn:hover {
    background-color: rgba(7, 193, 96, 0.1);
    transform: scale(1.1);
}

.wechat-btn i {
    color: #07C160;
    font-size: 16px;
    transition: color 0.3s ease;
}

.wechat-btn:hover i {
    color: #06a84f;
}

/* 微信模态窗口样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-backdrop {
    display: none;
}

.modal-content {
    position: relative;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 240px;
    max-height: 400px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid var(--border-color);
}

/* 模型警告弹窗样式 */
.warning-modal-content {
    width: 280px;
    max-height: 420px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
}

.warning-modal-body {
    padding: 20px;
}

.warning-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.warning-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0;
    text-align: left;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.warning-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 0 2px 2px 0;
}

.wechat-modal-content {
    width: 240px;
    max-height: 380px;
}

/* 警告弹窗专用头部样式 */
.warning-modal-content .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0;
    background: transparent;
}

.warning-modal-content .modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-modal-content .modal-title h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #f8fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.warning-modal-content .modal-title i {
    font-size: 1.25rem;
    color: #fbbf24;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.warning-modal-content .close-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: #cbd5e1;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.warning-modal-content .close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 通用模态框头部样式 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.close-button:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 16px;
}

/* 警告弹窗专用底部样式 */
.warning-modal-content .modal-footer {
    padding: 16px 20px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: transparent;
    border-top: none;
}

.warning-modal-content .primary-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.warning-modal-content .primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.warning-modal-content .primary-button:hover::before {
    left: 100%;
}

.warning-modal-content .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.warning-modal-content .secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.warning-modal-content .secondary-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 通用模态框底部样式 */
.modal-footer {
    padding: 8px 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* 通用按钮样式 */
.primary-button, .secondary-button {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    min-width: 60px;
    justify-content: center;
}

.primary-button {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.secondary-button {
    background: var(--bg-primary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.secondary-button:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.wechat-modal-body {
    text-align: center;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-code-image {
    width: 160px;
    height: auto;
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.qr-code-tips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tip-primary {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.tip-secondary {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* 模态窗口动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal {
        width: 100%;
        left: 0;
    }

    .modal-content {
        width: 280px;
        margin: 0 auto;
    }

    .warning-modal-content {
        width: 320px;
        max-height: 450px;
    }

    .wechat-modal-content {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 260px;
    }

    .warning-modal-content {
        width: 300px;
        max-height: 400px;
    }

    .wechat-modal-content {
        width: 260px;
    }

    .modal-header {
        padding: 10px 14px 6px;
    }

    .modal-body {
        padding: 14px;
    }

    .warning-modal-content .modal-header {
        padding: 16px 16px 0;
    }

    .warning-modal-content .modal-body {
        padding: 16px;
    }

    .warning-modal-content .modal-footer {
        padding: 12px 16px 16px;
    }

    .qr-code-image {
        width: 140px;
    }

    .modal-title h3 {
        font-size: 0.95rem;
    }

    .warning-modal-content .modal-title h3 {
        font-size: 1rem;
    }

    .modal-footer {
        padding: 6px 10px;
    }

    .primary-button, .secondary-button {
        padding: 5px 12px;
        font-size: 0.7rem;
        min-width: 50px;
    }

    .warning-modal-content .primary-button,
    .warning-modal-content .secondary-button {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 70px;
    }
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* 当侧边栏隐藏时，主内容区域占满全宽 */
.app-layout:has(.sidebar.hidden) .main-content {
    width: 100%;
}

/* 顶部状态栏 */
.top-bar {
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-color);
}

/* 侧边栏展开按钮 */
.sidebar-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 1.125rem;
}

.sidebar-expand-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-color);
}

/* 当侧边栏隐藏时，显示展开按钮 */
.app-layout:has(.sidebar.hidden) .sidebar-expand-toggle {
    color: var(--primary-color);
}

/* 当侧边栏显示时，隐藏展开按钮 */
.sidebar-expand-toggle {
    display: none;
}

.app-layout:has(.sidebar.hidden) .sidebar-expand-toggle {
    display: flex;
}

.page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.status-indicator {
    color: var(--accent-color-2);
    font-size: 0.5rem;
}

/* 聊天区域 */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
    position: relative;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

/* 欢迎消息 - 重新设计 */
.welcome-message-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 520px;
}

.welcome-card {
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* 欢迎头部 */
.welcome-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}

.welcome-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.welcome-text {
    text-align: left;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* 功能标签 */
.welcome-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.feature-tag i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* 提示区域 */
.welcome-prompt {
    padding-top: 24px;
}

.welcome-prompt p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 16px 0;
    line-height: 1.5;
}



/* 消息样式 */
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    animation: messageSlideIn 0.3s ease-out;
    max-width: 100%;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-items: flex-end;
}

.ai-message {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 16px 20px;
    border-radius: var(--radius-xl);
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 0.9rem;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.ai-message .message-content {
    background: var(--bg-primary);
    color: var(--text-color);
    border-bottom-left-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* AI模型指示器 */
.ai-model-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-model-indicator i {
    font-size: 0.625rem;
}

/* 消息操作按钮 */
.message-actions {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.ai-message:hover .message-actions {
    opacity: 1;
}

.action-button {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition-fast);
    font-size: 0.75rem;
}

.action-button:hover {
    background: var(--bg-tertiary);
    color: var(--text-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* 输入区域 */
.input-area {
    padding: 20px 24px;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
}

.input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 1000px;
    margin: 0 auto;
}

.input-wrapper {
    flex: 1;
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#userInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    max-height: 120px;
    min-height: 24px;
    color: var(--text-color);
    font-family: inherit;
}

#userInput::placeholder {
    color: var(--text-muted);
}

/* 新会话按钮样式 */
.new-session-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.new-session-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.new-session-btn:active {
    transform: translateY(0);
}

/* 优化提示词按钮样式 - 输入框内右下角极简图标 */
.optimize-prompt-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.75rem;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
}

.optimize-prompt-btn:hover {
    opacity: 1;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.optimize-prompt-btn:active {
    transform: scale(0.95);
}

.optimize-prompt-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.send-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.send-button:active {
    transform: translateY(0);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 打字指示器 */
.typing-indicator {
    display: flex;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    border-bottom-left-radius: var(--radius-md);
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-8px); opacity: 1; }
}

/* 酒馆模型专用思考动画 */
.thinking-indicator {
    display: flex;
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    border-bottom-left-radius: var(--radius-md);
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.thinking-text {
    margin-right: 4px;
    font-weight: 500;
    color: var(--primary-color);
}

.thinking-ellipsis {
    display: inline-block;
    min-width: 20px;
    text-align: left;
    font-family: monospace;
    color: var(--text-muted);
}

/* 重复的模态框样式已删除，使用上方的左侧栏弹窗样式 */

/* 重复的按钮样式已删除，使用上方定义的样式 */

/* 历史记录列表 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.history-item {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
}

.history-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.history-item-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.history-item-main-text {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.history-item .time {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.empty-history {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

/* 通知消息 */
.notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark);
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    z-index: 2000;
    font-size: 0.875rem;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification.fade-out {
    animation: slideDown 0.5s ease forwards;
}

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

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* 侧边栏遮罩层 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }

    .welcome-features {
        gap: 16px;
    }

    .feature-item {
        min-width: 80px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 200;
        transition: left var(--transition-normal);
        width: var(--sidebar-width);
    }

    /* 移动端时，忽略hidden类，使用active类控制 */
    .sidebar.hidden {
        width: var(--sidebar-width);
        overflow: visible;
        border-right: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        left: -100%;
    }

    .sidebar.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* 移动端隐藏桌面端的侧边栏展开按钮 */
    .sidebar-expand-toggle {
        display: none !important;
    }

    .page-title {
        font-size: 1rem;
    }

    .top-bar {
        padding: 0 16px;
    }

    .chat-container {
        padding: 16px;
    }

    .input-area {
        padding: 16px;
    }

    .welcome-card {
        padding: 32px 24px;
    }

    .welcome-header {
        flex-direction: column;
        gap: 16px;
    }

    .welcome-text {
        text-align: center;
    }

    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-features {
        gap: 10px;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .history-container {
        max-height: 250px;
    }

    .history-item-sidebar {
        padding: 6px 10px;
        min-height: 32px;
    }

    .history-item-title {
        font-size: 0.75rem;
    }

    .action-menu {
        min-width: 110px;
    }

    .action-menu-item {
        padding: 6px 10px;
        font-size: 0.75rem;
    }



    .message-content {
        max-width: 90%;
    }

    /* 模态框响应式样式已在上方定义 */
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }

    .welcome-card {
        padding: 24px 16px;
    }

    .welcome-header {
        gap: 12px;
    }

    .welcome-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .welcome-title {
        font-size: 1.25rem;
    }

    .welcome-subtitle {
        font-size: 0.8rem;
    }

    .feature-tag {
        font-size: 0.7rem;
        padding: 5px 10px;
    }



    .history-container {
        max-height: 200px;
    }

    .history-item-sidebar {
        padding: 6px 10px;
        min-height: 30px;
    }

    .history-item-title {
        font-size: 0.7rem;
    }

    .history-action-btn {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .action-menu {
        min-width: 100px;
    }

    .action-menu-item {
        padding: 6px 8px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .action-menu-item i {
        width: 10px;
        font-size: 0.7rem;
    }



    .input-container {
        gap: 8px;
    }

    .input-wrapper {
        padding: 10px 12px;
    }

    .send-button {
        width: 40px;
        height: 40px;
    }

    .new-session-btn {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .chat-container {
        padding: 12px;
    }

    .message-content {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
}

/* 深色模式切换动画 */
* {
    transition: background-color var(--transition-normal),
                border-color var(--transition-normal),
                color var(--transition-normal);
}

/* 滚动条样式优化 */
.history-list::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.history-list::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}





/* 消息内容格式化样式 */
.message-content p {
    margin-bottom: 12px;
    text-indent: 2em;
}

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

/* 有序列表样式 - 移除数字标记 */
.message-content ol {
    padding-left: 0;
    margin: 12px 0 12px 0;
    list-style: none;
}

.message-content ol li {
    display: block;
    position: relative;
    margin-bottom: 8px;
    padding-left: 0;
}

/* 移除数字标记 */
.message-content ol li:before {
    display: none;
}

/* 无序列表样式 */
.message-content ul {
    padding-left: 10px;
    margin: 12px 0 12px 0;
}

.message-content ul li {
    display: block;
    position: relative;
    margin-bottom: 8px;
    padding-left: 28px;
}

.message-content ul li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.user-message .message-content ul li:before {
    color: white;
}

/* 标题样式 */
.message-content h1, 
.message-content h2, 
.message-content h3 {
    margin-top: 18px;
    margin-bottom: 10px;
    color: inherit;
    font-weight: 600;
}

.message-content h1 {
    font-size: 1.25rem;
    padding-bottom: 8px;
}

.message-content h2 {
    font-size: 1.1rem;
}

.message-content h3 {
    font-size: 1.0rem;
}

/* 强调内容 */
.message-content strong {
    font-weight: 600;
}

.message-content em {
    font-style: italic;
}

/* 代码样式优化 */
.message-content pre {
    margin: 12px 0;
    padding: 12px;
    border-radius: 6px;
    background-color: #282c34;
    color: #abb2bf;
    overflow-x: auto;
}

.message-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.06);
}

.user-message .message-content code {
    background-color: rgba(255, 255, 255, 0.2);
}

.message-content pre code {
    padding: 0;
    background-color: transparent;
}

/* 链接样式 */
.message-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.user-message .message-content a {
    color: #e0e7ff;
}

.message-content a:hover {
    text-decoration: underline;
}

/* 搜索结果容器样式 */
.message-content .search-results-container {
    margin: 12px 0;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.message-content .search-results-container .search-result-link {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.3;
    padding: 6px 12px 6px 28px;
    margin: 1px 0;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    font-weight: 500;
}

.message-content .search-results-container .search-result-link::before {
    content: '•';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.message-content .search-results-container .search-result-link:hover {
    color: var(--primary-dark);
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

/* 纯文本搜索结果样式 */
.message-content .search-results-container .search-result-text {
    display: block;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.3;
    padding: 6px 12px 6px 28px;
    margin: 1px 0;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid transparent;
    position: relative;
    font-weight: 500;
    cursor: default;
}

.message-content .search-results-container .search-result-text::before {
    content: '•';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: bold;
}

/* 普通链接样式（非搜索结果） */
.message-content a:not(.search-result-link) {
    color: var(--primary-color);
    text-decoration: none;
}

.message-content a:not(.search-result-link):hover {
    text-decoration: underline;
}

/* 搜索结果链接在深色模式下的样式 */
[data-theme="dark"] .message-content .search-results-container {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .message-content .search-results-container .search-result-link {
    color: var(--primary-light);
    background: var(--bg-secondary);
    border-color: transparent;
}

[data-theme="dark"] .message-content .search-results-container .search-result-link::before {
    color: var(--primary-light);
}

[data-theme="dark"] .message-content .search-results-container .search-result-link:hover {
    color: #ffffff;
    background: var(--bg-primary);
    border-color: var(--primary-light);
    box-shadow: 0 2px 4px rgba(129, 140, 248, 0.2);
}

/* 深色模式下的纯文本搜索结果样式 */
[data-theme="dark"] .message-content .search-results-container .search-result-text {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

[data-theme="dark"] .message-content .search-results-container .search-result-text::before {
    color: var(--text-secondary);
}

/* 深色模式下的历史记录样式 */
[data-theme="dark"] .history-container {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .history-item-sidebar:hover {
    background: var(--bg-primary);
}

[data-theme="dark"] .action-menu {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .action-menu-item:hover {
    background: var(--bg-tertiary);
}

/* 表格样式 */
.message-content table {
    border-collapse: collapse;
    margin: 10px 0;
    width: 100%;
}

.message-content th, .message-content td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: left;
}

.message-content th {
    background-color: var(--hover-bg);
}



/* 打字指示器 */
.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: var(--ai-msg-bg);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--light-text);
    border-radius: 50%;
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 加载中动画 */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 模态窗口 - 使用左侧栏样式 */

/* 重复的模态框样式已在上方定义，此处删除避免冲突 */

#presetContent {
    width: 100%;
    min-height: 150px;
    border: 1px solid var(--border-color);
    border-radius: 10px; /* 增大圆角 */
    padding: 12px 15px; /* 调整内边距 */
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--card-bg);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); /* 轻微内阴影 */
}

#presetContent:focus {
    border-color: var(--primary-color);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05), 0 0 0 3px rgba(37, 99, 235, 0.15); /* 增强焦点效果 */
}

/* 重复的按钮样式已在上方定义，此处删除避免冲突 */

/* 历史记录列表 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* 调整项间距 */
    max-height: 50vh;
    overflow-y: auto;
}

.history-item {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px; /* 卡片圆角 */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 轻微卡片阴影 */
}

.history-item:hover {
    background-color: var(--hover-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px); /* 悬浮效果 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.08); /* 悬浮时阴影增强 */
}

.history-item-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.history-item-main-text {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    min-width: 0;
    opacity: 0.9;
}

.history-item .time {
    color: var(--light-text);
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* 通知消息 */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

.notification.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

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

/* 空历史记录提示 */
.empty-history {
    padding: 40px 20px; /* 增大内边距 */
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
    background-color: var(--hover-bg);
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .logo-image {
        width: 44px;
        height: 44px;
    }

    .header-center {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .app-header {
        padding: 0 12px;
    }

    /* 移动端触摸优化 */
    .model-select {
        /* 确保触摸区域足够大 */
        min-height: 44px;
        /* 优化触摸体验 */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* 移动端API状态优化 */
    .api-status {
        font-size: 0.7rem;
        padding: 6px 10px;
        gap: 6px;
        flex-shrink: 0;
    }

    .api-status-text {
        max-width: 120px;
        font-weight: 500;
    }

    /* 移动端模型选择器优化 */
    .model-selector-container {
        gap: 10px;
    }

    .model-select {
        padding: 10px 14px;
        font-size: 0.75rem; /* 从0.8rem调整为0.75rem，更精致 */
        line-height: 1.4; /* 优化行高，提升可读性 */
        /* 移动端恢复原生外观以确保下拉功能正常 */
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
        background-image: none; /* 移除自定义箭头 */
        padding-right: 14px; /* 调整右边距 */
    }

    .model-select option {
        font-size: 0.75rem; /* 确保选项字体与选择器一致 */
        line-height: 1.4;
    }
}

/* 中等屏幕优化 (平板横屏等) */
@media (max-width: 600px) and (min-width: 481px) {
    .model-select {
        font-size: 0.72rem; /* 介于移动端和超小屏幕之间 */
        padding: 9px 13px;
        /* 恢复原生外观 */
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
        background-image: none;
        padding-right: 13px;
    }

    .model-select option {
        font-size: 0.72rem; /* 确保选项字体与选择器一致 */
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .api-status {
        font-size: 0.65rem;
        padding: 5px 8px;
        gap: 5px;
    }

    .api-status-text {
        max-width: 100px;
    }

    .api-status-indicator {
        width: 5px;
        height: 5px;
    }

    /* 超小屏幕模型选择器优化 */
    .model-select {
        font-size: 0.7rem; /* 进一步缩小字体 */
        padding: 9px 12px; /* 稍微减少内边距 */
        /* 恢复原生外观 */
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
        background-image: none;
        padding-right: 12px;
    }

    .model-select option {
        font-size: 0.7rem; /* 确保选项字体与选择器一致 */
    }

    .model-selector-container {
        gap: 8px; /* 减少间距 */
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 800px;
        height: 100vh;
        border-radius: 0;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        margin: 0 auto;
    }
    
    .message {
        max-width: 100%;
    }
}

/* AI消息下方操作按钮样式 */
.message-actions {
    display: flex;
    gap: 4px; /* 从8px调整为4px，缩小间距 */
    margin-top: 8px;
}

.action-button {
    background: none;
    /* border: 1px solid var(--accent-color-3); */ /* 移除边框 */
    border: none; /* 确保无边框 */
    /* border-radius: 50%; */ /* 移除圆角 */
    border-radius: 4px; /* 可以给一个非常小的圆角，或者完全移除 */
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--light-text); /* 默认图标颜色改为灰色 */
    transition: all 0.2s ease;
    padding: 4px; /* 轻微调整内边距以适应无边框的情况 */
}

.action-button:hover {
    background-color: var(--hover-bg); /* 悬停背景保持 */
    color: var(--text-color); /* 悬停图标颜色改为深灰色/黑色 */
    /* border-color: var(--accent-color-1); */ /* 由于移除了边框，此行不再需要 */
}

.action-button i {
    font-size: 0.8rem;
}

/* AI模型指示器样式 */
.ai-model-indicator {
    font-size: 0.75rem; 
    color: var(--accent-color-3); /* 使用青色 */
    margin-bottom: 6px; 
    padding-left: 2px; 
}



/* #wechatIcon {
    color: #07C160; 
    cursor: pointer;
    margin-left: 8px;
    font-size: 1.3em; 
    transition: transform 0.2s ease-in-out;
}

#wechatIcon:hover {
    transform: scale(1.2); 
} */

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 20px;
}

@keyframes messageSent {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.message {
    animation: messageSent 0.3s ease-out;
}

/* ==================== 智能体快捷栏样式 ==================== */

.agents-bar {
    padding: 0 16px 12px;
    overflow: hidden;
}

.agents-scroll {
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.agents-scroll::-webkit-scrollbar {
    display: none;
}

.agent-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.agent-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.agent-chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.agent-chip i {
    font-size: 0.85rem;
}

/* 不同智能体的图标颜色 */
.agent-chip[data-agent="writer"]:hover i { color: #8b5cf6; }
.agent-chip[data-agent="lawyer"]:hover i { color: #f59e0b; }
.agent-chip[data-agent="doctor"]:hover i { color: #ef4444; }
.agent-chip[data-agent="translator"]:hover i { color: #06b6d4; }
.agent-chip[data-agent="coder"]:hover i { color: #10b981; }
.agent-chip[data-agent="teacher"]:hover i { color: #3b82f6; }
.agent-chip[data-agent="psychologist"]:hover i { color: #ec4899; }
.agent-chip[data-agent="chef"]:hover i { color: #f97316; }

.agent-chip.active i {
    color: white !important;
}

/* 绘图示例按钮特殊样式 */
.image-example-chip:hover {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.05) !important;
}

.image-example-chip:hover i {
    color: #f59e0b !important;
}

.image-example-chip.active {
    background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
}

/* ==================== 图片尺寸选择器样式 ==================== */

.aspect-ratio-selector {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.aspect-ratio-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.aspect-ratio-btn:hover {
    border-color: var(--border-color);
    background: var(--bg-tertiary);
}

.aspect-ratio-btn.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.aspect-ratio-btn.active .ratio-icon {
    border-color: var(--primary-color);
}

.aspect-ratio-btn.active span {
    color: var(--primary-color);
    font-weight: 600;
}

.ratio-icon {
    border: 2px solid var(--text-muted);
    border-radius: 3px;
    background: transparent;
    transition: all var(--transition-fast);
}

/* 不同比例的图标尺寸 */
.ratio-2-1 {
    width: 24px;
    height: 12px;
}

.ratio-16-9 {
    width: 24px;
    height: 14px;
}

.ratio-1-1 {
    width: 18px;
    height: 18px;
}

.ratio-3-4 {
    width: 15px;
    height: 20px;
}

.ratio-9-16 {
    width: 12px;
    height: 22px;
}

.aspect-ratio-btn span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 智能体欢迎消息样式 */
.agent-welcome {
    animation: fadeInUp 0.4s ease-out;
}

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

.agent-avatar {
    background: var(--gradient-primary) !important;
}

.agent-avatar i {
    color: white !important;
}

/* ==================== 绘图模式欢迎页样式 ==================== */

.image-welcome-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), rgba(236, 72, 153, 0.03)), var(--bg-primary);
}

.image-welcome-card::before {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
}

.image-welcome-card .welcome-title {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
}

.image-avatar {
    background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3) !important;
}

.image-avatar .avatar-glow {
    background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
}

/* 示例提示词区域 */
.image-prompt-examples {
    margin-top: 24px;
    text-align: center;
}

.examples-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.example-prompts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.example-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.example-prompt-btn:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.example-prompt-btn i {
    font-size: 0.9rem;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .example-prompts {
        flex-direction: column;
        align-items: stretch;
    }
    
    .example-prompt-btn {
        justify-content: center;
    }
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .agents-bar {
        padding: 0 12px 10px;
    }
    
    .agent-chip {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .agent-chip span {
        display: none;
    }
    
    .agent-chip i {
        font-size: 1rem;
    }
}

/* ==================== 文生图功能样式 ==================== */

/* 模式切换按钮 */
.mode-toggle-container {
    display: flex;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mode-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-color);
}

.mode-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.mode-btn i {
    font-size: 0.9rem;
}

/* 绘图设置样式 */
.image-settings-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* 参数提示符号样式 */
.param-hint {
    color: #a855f7;
    font-size: 0.65rem;
    margin-left: 2px;
    cursor: help;
    position: relative;
    vertical-align: super;
}

.param-hint:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 100;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.steps-slider {
    flex: 1;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.steps-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
    transition: all var(--transition-fast);
}

.steps-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.5);
}

.steps-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.steps-value {
    min-width: 28px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* 生成的图片展示 */
.generated-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.generated-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-tertiary);
    transition: all var(--transition-fast);
}

.generated-image-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.generated-image {
    max-width: 100%;
    width: 300px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.generated-image:hover {
    filter: brightness(1.05);
}

.image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.generated-image-wrapper:hover .image-actions {
    opacity: 1;
}

.image-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.image-action-btn:hover {
    background: white;
    transform: scale(1.05);
}

.image-action-btn i {
    font-size: 0.75rem;
}

/* 图片生成中动画 */
.image-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    min-width: 280px;
    min-height: 280px;
}

.generating-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.generating-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.generating-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 图片预览模态框 */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.image-preview-modal.show {
    opacity: 1;
    visibility: visible;
}

.preview-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 绘图模式输入框样式调整 */
.input-area.image-mode .input-wrapper textarea {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.input-area.image-mode .send-button {
    background: var(--gradient-warm);
}

.input-area.image-mode .send-button:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .generated-image {
        width: 100%;
        max-width: none;
    }
    
    .generated-images-container {
        flex-direction: column;
    }
    
    .image-actions {
        opacity: 1;
    }
    
    .mode-btn span {
        display: none;
    }
    
    .mode-btn {
        padding: 10px 16px;
    }
    
    .mode-btn i {
        font-size: 1rem;
    }
}

