:root {
    --primary-color: #6366f1;
    --primary-hover: #5856eb;
    --primary-light: #f0f0ff;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --sidebar-width: 320px;
    --sidebar-collapsed-width: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
    background-color: var(--bg-secondary);
    height: 100vh;
    overflow: hidden;
    color: var(--text-primary);
    line-height: 1.6;
}

.app-container {
    display: flex;
    height: 100vh;
    position: relative;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
    will-change: width;
    position: relative;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}


/*精确模式*/

.Precisemode {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(88, 88, 88, 0.815);
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.one {
    background-color: #bbbb;
}

.Precisemode .box {
    width: 450px;
    height: 600px;
    background-color: #e5e7eb;
    z-index: 999;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

.Precisemode .BoxLogo {
    width: 100%;
    height: 90px;
    background-color: #B886F8;
    border-radius: 10px;
    display: flex;
}

.Precisemode .ann {
    width: 150px;
    height: 50px;
    border: none;
    background-color: #7F83F7;
    border-radius: 8px;
}

.Precisemode .biaodan {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px;
    margin: 15px 0px;
}

.Precisemode .biaodan label {
    margin: 20px;
    font-size:16px;
}

.Precisemode .biaodan input {
    outline: none;
    border: none;
    background-color: #e5e7eb;
    border-bottom: 1px solid #BBBBBB;
    font-size:16px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 88px;
    position: relative;
    overflow: hidden;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.sidebar.collapsed .user-details {
    opacity: 0;
    transform: translateX(-20px);
    visibility: hidden;
}

.username {
    font-weight: 600;
    font-size: 16px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.menu-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.sidebar.collapsed .menu-toggle i {
    transform: rotate(180deg);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
    transition: padding 0.3s ease;
}

.sidebar.collapsed .sidebar-content {
    padding: 16px 8px;
}

.menu-section {
    padding: 0 20px 24px;
    transition: padding 0.3s ease;
}

.sidebar.collapsed .menu-section {
    padding: 0 12px 24px;
}

.section-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.collapsed .section-title {
    opacity: 0;
    transform: translateX(-20px);
    visibility: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.sidebar.collapsed .menu-item {
    padding: 12px;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}

.menu-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: translateX(2px);
}

.menu-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
    font-size: 14px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    transform: translateX(-20px);
    visibility: hidden;
}

.menu-badge {
    font-size: 8px;
    color: var(--primary-color);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .menu-badge {
    opacity: 0;
    transform: translateX(20px);
    visibility: hidden;
}

.sidebar.collapsed .menu-item::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: 8px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.sidebar.collapsed .menu-item:hover::after {
    opacity: 1;
    visibility: visible;
}

.chat-history {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .chat-history {
    opacity: 0;
    transform: translateY(-20px);
    visibility: hidden;
}

.clear-history-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 12px;
}

.clear-history-btn:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

.history-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.history-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.history-text {
    font-size: 14px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-time {
    font-size: 11px;
    color: var(--text-muted);
}

.delete-chat-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 12px;
}

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

.delete-chat-btn:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    min-width: 0;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

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

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.chat-title-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 18px;
    margin: 0;
}

.chat-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

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

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.new-chat-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.new-chat-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.chat-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

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

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

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

.welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.welcome-avatar {
    position: relative;
    margin-bottom: 32px;
}

.welcome-img {
    width: 120px;
    height: 120px;
}

.welcome-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

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

.welcome-text {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.welcome-question {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.welcome-suggestions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    max-width: 400px;
}

.suggestion-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.suggestion-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.suggestion-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.chat-messages {
    flex: 1;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.message-avatar.user {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 16px;
}

.message-bubble {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
}

.message-content {
    padding: 16px 20px;
    border-radius: var(--radius-xl);
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
}

.message.ai .message-content {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    padding: 0 4px;
}

.message.user .message-time {
    text-align: right;
}

.typing-message {
    max-width: none;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.typing-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.input-area {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-primary);
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    max-width: 100%;
}

.input-wrapper {
    flex: 1;
    position: relative;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

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

.message-input {
    width: 100%;
    min-height: 50px;
    max-height: 120px;
    padding: 14px 80px 14px 20px;
    border: none;
    border-radius: var(--radius-xl);
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.message-input::placeholder {
    color: var(--text-muted);
}

.input-actions {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.input-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.emoji-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.emoji-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

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

.send-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.send-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

/* 中止按钮样式 */
.send-btn .fa-stop {
    color: var(--danger-color);
}

.send-btn:hover .fa-stop {
    color: #dc2626;
    transform: scale(1.1);
}

.char-count {
    position: absolute;
    bottom: -24px;
    right: 0;
    font-size: 11px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.char-count.warning {
    color: var(--warning-color);
}

/* 推荐回复样式 */
.recommendations-area {
    margin-top: 16px;
}

.recommendations-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recommendation-item {
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.recommendation-item:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.recommendation-item:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 280px;
        --sidebar-collapsed-width: 70px;
    }

    .sidebar {
        position: fixed;
        height: 100vh;
        z-index: 1000;
    }

    .main-content {
        margin-left: var(--sidebar-width);
        transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.collapsed+.main-content {
        margin-left: var(--sidebar-collapsed-width);
    }

    .chat-header {
        padding: 16px 20px;
    }

    .header-actions {
        gap: 8px;
    }

    .new-chat-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .action-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    :root {
        --sidebar-width: 100vw;
        --sidebar-collapsed-width: 60px;
    }

    .sidebar {
        transform: translateX(0);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
    }

    .main-content {
        margin-left: 0;
        width: 100vw;
    }

    .sidebar.collapsed+.main-content {
        margin-left: var(--sidebar-collapsed-width);
    }

    .chat-title {
        font-size: 16px;
    }

    .welcome-img {
        width: 100px;
        height: 100px;
    }

    .welcome-text {
        font-size: 22px;
    }

    .suggestion-btn {
        padding: 14px 16px;
        font-size: 13px;
    }

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

    .input-area {
        padding: 12px 16px;
    }

    .message-input {
        padding: 12px 70px 12px 16px;
        font-size: 13px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --bg-tertiary: #374151;
        --border-color: #374151;
        --border-light: #4b5563;
    }

    .message.ai .message-content {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
    }

    .input-wrapper {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
    }

    .suggestion-btn {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
    }

    .typing-indicator {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
    }
}

.sidebar,
.sidebar-content,
.user-details,
.menu-text,
.section-title,
.chat-history {
    will-change: transform, opacity;
}

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

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

.sidebar-content::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 推荐回复样式 */
.recommendations-area {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.recommendations-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.recommendations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recommendation-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: calc(50% - 4px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommendation-item:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.recommendation-item:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .recommendation-item {
        max-width: 100%;
    }
}