/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 46px;
}

/* 添加导航栏背景样式 */
header {
    background-color: #121212;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

/* 顶部导航栏展开样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    transition: all 0.3s ease;
}

.navbar.expanded {
    height: auto;
    padding: 15px 20px;
}

.navbar-dropdown {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #121212;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.navbar-dropdown.show {
    max-height: 500px;
    padding: 20px;
}

.navbar-dropdown-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.navbar-dropdown-section {
    padding: 10px;
}

.navbar-dropdown-section h3 {
    color: #4285f4;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(66, 133, 244, 0.3);
    padding-bottom: 8px;
}

.navbar-dropdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-dropdown-section li {
    margin-bottom: 10px;
}

.navbar-dropdown-section a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-dropdown-section a:hover {
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.navbar-dropdown-section a svg {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.navbar-dropdown-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.navbar-dropdown-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* 侧边栏收缩样式 */
.sidebar {
    width: 280px;
    background-color: #121212;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0px;
    z-index: 900;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sidebar-collapsed .sidebar {
    width: 60px;
    overflow: hidden;
}

.sidebar-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-collapsed .sidebar-header {
    padding: 15px 0;
    justify-content: center;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
    transition: opacity 0.2s ease;
}

.sidebar-collapsed .sidebar-title {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    padding-bottom: 100px;
}

.sidebar-collapsed .sidebar-content {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 8px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-collapsed .sidebar-menu-link {
    padding: 10px;
    justify-content: center;
}

.sidebar-menu-link:hover {
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.sidebar-menu-link.active {
    background-color: rgba(66, 133, 244, 0.2);
    color: #4285f4;
}

.sidebar-menu-icon {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-collapsed .sidebar-menu-icon {
    margin-right: 0;
}

.sidebar-menu-text {
    transition: opacity 0.2s ease, width 0.2s ease;
}

.sidebar-collapsed .sidebar-menu-text {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed .sidebar-footer {
    padding: 15px 0;
    align-items: center;
}

/* 侧边栏底部登录按钮展开样式 */
.sidebar-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #4285f4;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.sidebar-login-button:hover {
    background-color: #3367d6;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
}

.sidebar-collapsed .sidebar-login-button {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

.sidebar-login-icon {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-collapsed .sidebar-login-icon {
    margin-right: 0;
}

.sidebar-login-text {
    transition: opacity 0.2s ease, width 0.2s ease;
}

.sidebar-collapsed .sidebar-login-text {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sidebar-collapsed .sidebar-login-button:hover {
    width: auto;
    padding: 10px 15px;
    border-radius: 8px;
}

.sidebar-collapsed .sidebar-login-button:hover .sidebar-login-text {
    opacity: 1;
    width: auto;
    height: auto;
    margin-left: 8px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.logo:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.3);
    background-color: #ffffff;
}

.logo img {
    height: 50px;
    max-height: 50px;
    width: auto;
    margin-right: 10px;
}

.logo span {
    display: none; /* 隐藏LOGO文本 */
}

.nav-menu li {
    margin-left: 25px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #4285f4; /* 蓝色文字 */
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    border: 2px solid #4285f4; /* 蓝色边框 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #121212; /* 黑色背景 */
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
    transition: all 0.4s;
    z-index: -1;
}

.nav-menu a svg {
    margin-right: 6px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-menu a svg path {
    fill: #34a853; /* 绿色SVG */
}

.nav-menu a:hover {
    color: #4285f4; /* 保持蓝色文字 */
    background-color: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.4), inset 0 0 10px rgba(66, 133, 244, 0.1);
    text-shadow: 0 0 2px rgba(66, 133, 244, 0.2);
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover svg {
    transform: scale(1.1);
}

.nav-menu a:hover svg path {
    fill: #34a853; /* 保持绿色SVG */
}

.nav-menu a.active {
    color: #4285f4;
    font-weight: 700;
    position: relative;
    border-color: #4285f4;
    background: linear-gradient(145deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.05));
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.3);
}

.nav-menu a.active svg path {
    fill: #34a853;
}

/* 登录和注册按钮样式 */
.nav-menu .btn-login,
.nav-menu .btn-register {
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: #121212; /* 黑色背景 */
    position: relative;
    overflow: hidden;
}

.nav-menu .btn-login {
    border: 2px solid #4285f4; /* 蓝色边框 */
    color: #4285f4; /* 蓝色文字 */
    background-color: #121212; /* 黑色背景 */
}

.nav-menu .btn-register {
    border: 2px solid #4285f4; /* 蓝色边框 */
    color: #4285f4; /* 蓝色文字 */
    background-color: #121212; /* 黑色背景 */
}

.nav-menu .btn-login::after,
.nav-menu .btn-register::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(66, 133, 244, 0.1), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.nav-menu .btn-login svg,
.nav-menu .btn-register svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.nav-menu .btn-login {
    color: #4285f4; /* 蓝色文字 */
    background-color: #121212; /* 黑色背景 */
}

.nav-menu .btn-register {
    color: #4285f4; /* 蓝色文字 */
    background-color: #121212; /* 黑色背景 */
}

.nav-menu .btn-login:hover {
    color: #4285f4;
    background-color: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.4), inset 0 0 10px rgba(66, 133, 244, 0.1);
}

.nav-menu .btn-login:hover::after {
    opacity: 1;
    background: conic-gradient(transparent, rgba(66, 133, 244, 0.2), transparent 30%);
}

.nav-menu .btn-register:hover {
    color: #4285f4;
    background-color: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.4), inset 0 0 10px rgba(66, 133, 244, 0.1);
}

.nav-menu .btn-register:hover::after {
    opacity: 1;
    background: conic-gradient(transparent, rgba(66, 133, 244, 0.1), transparent 30%);
}

.nav-menu .btn-login svg path,
.nav-menu .btn-register svg path {
    fill: #34a853; /* 绿色SVG */
    transition: fill 0.3s ease;
}

.nav-menu .btn-login svg path {
    fill: #34a853 !important; /* 绿色SVG */
}

.nav-menu .btn-login:hover svg {
    transform: scale(1.1) rotate(-5deg);
}

.nav-menu .btn-login:hover svg path {
    fill: #34a853 !important; /* 绿色SVG */
}

.nav-menu .btn-register:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.nav-menu .btn-register:hover svg path {
    fill: #34a853; /* 绿色SVG */
}

/* 收缩侧边栏时的展开按钮样式 */
.show-sidebar-btn {
    position: fixed;
    left: 10px;
    top: 90px;
    width: 40px;
    height: 40px;
    background-color: #121212;
    border: 2px solid #4285f4;
    border-radius: 50%;
    color: #4285f4;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 800;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.4);
}

.show-sidebar-btn:hover {
    background-color: rgba(66, 133, 244, 0.1);
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.6);
}

.sidebar-collapsed .show-sidebar-btn {
    display: flex;
}

/* 主内容区域样式 */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 20px;
}

.sidebar-collapsed .main-content {
    margin-left: 60px;
}

/* 聊天容器样式 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-input-container {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #121212;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #4285f4;
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(66, 133, 244, 0.05);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 16px;
    resize: none;
    padding: 5px;
    min-height: 40px;
    max-height: 150px;
    outline: none;
}

.chat-input::placeholder {
    color: #888;
}

.send-button {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.send-button:hover {
    background-color: #3367d6;
}

.send-button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.input-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.option-button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.option-button:hover {
    color: #4285f4;
}

.model-selector {
    display: flex;
    align-items: center;
}

.model-selector select {
    background-color: transparent;
    border: 1px solid #555;
    color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 5px;
    outline: none;
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 800;
    display: none;
}

.overlay.show {
    display: block;
}

/* 用户信息弹出框 */
.user-info-popup {
    position: absolute;
    bottom: 70px;
    left: 15px;
    width: 250px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.user-info-popup.show {
    display: block;
}

.user-info-header {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.user-name-large {
    font-size: 18px;
    margin: 0;
    color: #e0e0e0;
}

.user-info-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-info-menu li {
    padding: 0;
}

.user-info-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.user-info-menu a:hover {
    background-color: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.user-info-menu a span {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

/* 新建对话按钮 */
.new-chat-button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    width: 100%;
}

.new-chat-button:hover {
    background-color: #3367d6;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
}

.sidebar-collapsed .new-chat-button {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* 侧边栏分区样式 */
.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
    padding-left: 15px;
}

.sidebar-collapsed .sidebar-section-title {
    display: none;
}

/* 主容器样式 */
.main-container {
    display: flex;
    height: calc(100vh - 80px);
    position: relative;
}

/* 修复用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-collapsed .user-avatar {
    margin-right: 0;
}

.user-name {
    font-size: 14px;
    color: #e0e0e0;
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }
    
    .show-sidebar-btn {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-collapsed .main-content {
        margin-left: 0;
    }
    
    .navbar-dropdown {
        width: 100%;
    }
}

/* 基础样式 */
:root {
    /* GitHub Copilot深色主题调色板 */
    --primary-bg: #0d1117;
    --secondary-bg: #161b22;
    --third-bg: #21262d;
    --border-color: #30363d;
    --text-color: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --hover-bg: #1f2937;
    --active-bg: #2d3748;
    --input-bg: #0d1117;
    --button-bg: #21262d;
    --button-border: #30363d;
    --button-hover: #30363d;
    --dropdown-bg: #161b22;
    --dropdown-border: #30363d;
    --dropdown-item-hover: #21262d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

/* 顶部导航栏 */
.top-nav {
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg);
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    height: 50px;
    position: relative;
    z-index: 999; /* 确保导航栏在正确的层级 */
}

.nav-section {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-left {
    flex: 1;
}

.nav-right {
    margin-left: auto;
}

/* 顶部导航标签样式 */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.top-nav-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav-tab {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #4285f4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.top-nav-tab .tab-text {
    white-space: nowrap;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-center {
        display: none;
    }
    
    .nav-actions {
        gap: 5px;
        padding: 0 10px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .nav-search {
        width: 200px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nav-search {
        width: 150px;
    }
    
    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}





.nav-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    position: relative;
    z-index: 1002; /* 确保按钮在最上层 */
}

.nav-toggle:hover {
    background-color: var(--hover-bg);
}

/* 导航菜单下拉 */
.nav-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #0d1117;
    border-right: 1px solid var(--dropdown-border);
    height: 100vh;
    width: 260px;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* 大幅提高层级，确保在最上层 */
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-100%);
    display: block;
    visibility: hidden; /* 初始状态隐藏 */
}

.nav-dropdown.show {
    transform: translateX(0);
    visibility: visible; /* 显示状态 */
}

/* 导航下拉菜单项 */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer; /* 确保鼠标显示为可点击状态 */
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
}

.dropdown-item-icon {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航栏头部 */
.nav-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--dropdown-border);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-btn:hover {
    background-color: var(--hover-bg);
}

/* 下拉菜单分隔线 */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.dropdown-section {
    padding: 8px 0;
}

.github-logo {
    width: 32px;
    height: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    align-items: center;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-btn:hover {
    background-color: rgba(66, 133, 244, 0.1);
    border-color: #4285f4;
    color: #4285f4;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.nav-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-search {
    background-color: var(--third-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 5px 10px;
    color: var(--text-color);
    font-size: 14px;
    width: 300px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* 主容器 */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧菜单 */
.sidebar {
    width: 260px;
    background-color: var(--secondary-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 998; /* 确保侧边栏在正确的层级 */
    position: relative;
}

/* 侧边栏折叠 */
body.sidebar-collapsed .sidebar {
    transform: translateX(-260px);
}

/* 侧边栏切换按钮 */
.sidebar-toggle-button {
    position: fixed;
    left: 0;
    top: 70px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-left: none;
    color: var(--text-color);
    width: 24px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000; /* 确保按钮在最上层 */
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

body.sidebar-collapsed .sidebar-toggle-button {
    display: flex;
}

.sidebar-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100; /* 确保按钮可点击 */
}

.sidebar-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-btn:hover {
    background-color: var(--hover-bg);
}

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

/* 聊天历史部分 */
.history-section {
    margin-top: 10px;
}

.history-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.history-header .toggle-icon {
    margin-right: 8px;
    transition: transform 0.2s;
}

.history-header:hover {
    color: var(--text-color);
}

.history-header.active .toggle-icon {
    transform: rotate(90deg);
}

.chat-history {
    list-style: none;
    display: none;
    margin-left: 10px;
}

.chat-history.expanded {
    display: block;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin: 2px 0;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background-color 0.2s;
}

.chat-item:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.chat-item.active {
    background-color: var(--active-bg);
    color: var(--text-color);
}

.chat-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* 侧边栏底部 */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    position: absolute;
    bottom: 44px;
    left: 0;
    right: 0;
    background-color: var(--primary-bg);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin: 4px;
}

.user-info:hover {
    background-color: var(--hover-bg);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 用户信息弹出框 */
.user-info-popup {
    position: absolute;
    bottom: 90px;
    left: 10px;
    width: 240px;
    background-color: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

.popup-header {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--dropdown-border);
}

.popup-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 12px;
}

.popup-user-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-username {
    font-weight: 600;
    font-size: 14px;
}

.popup-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.popup-status {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
    margin-right: 8px;
}

.popup-divider {
    height: 1px;
    background-color: var(--dropdown-border);
}

.popup-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-item:hover {
    background-color: var(--hover-bg);
}

.popup-item-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-footer {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--dropdown-border);
}

.popup-arrow {
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    transform: rotate(45deg);
    background-color: var(--dropdown-bg);
    border-right: 1px solid var(--dropdown-border);
    border-bottom: 1px solid var(--dropdown-border);
}

/* 主内容区域 */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    margin-left: 260px;
    transition: margin-left 0.3s ease;
    width: calc(100vw - 260px);
    position: relative;
}

body.sidebar-collapsed .content {
    margin-left: 0;
    width: 100vw;
}

/* 聊天容器 */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 200px;
    display: flex;
    flex-direction: column;
}

/* 欢迎屏幕 */
.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 20px;
}

.copilot-icon {
    font-size: 48px;
    background: transparent;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #8b949e;
}

.welcome-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.welcome-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
}

/* 消息区域 */
.message-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    margin-bottom: 16px;
}

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

.message.assistant {
    align-self: flex-start;
}

/* AI消息容器 */
.assistant-message-container {
    position: relative;
}

/* AI消息头部（带图标） */
.message-header-ai {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.ai-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 14px;
    color: white;
    font-weight: bold;
}

.ai-model-info {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.message-content {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.user .message-content {
    background-color: #1f6feb;
    color: white;
    border-radius: 8px 2px 8px 8px;
}

.assistant .message-content {
    background-color: var(--third-bg);
    color: var(--text-color);
    border-radius: 2px 8px 8px 8px;
    padding-bottom: 40px; /* 为底部按钮留出空间 */
}

/* AI消息底部操作区域 */
.message-actions {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.assistant .message-content:hover .message-actions {
    opacity: 1;
}

.message-action-btn {
    background: var(--button-bg);
    border: 1px solid var(--button-border);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-color);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.message-action-btn:hover {
    background-color: var(--button-hover);
}

.copy-btn {
    min-width: 60px;
}

.model-selector-btn {
    min-width: 80px;
    position: relative;
}

/* 模型选择下拉菜单 */
.model-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dropdown-bg);
    border: 1px solid var(--dropdown-border);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 120px;
    display: none;
}

.model-dropdown.show {
    display: block;
}

.model-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 1px solid var(--dropdown-border);
    transition: background-color 0.2s;
}

.model-option:last-child {
    border-bottom: none;
}

.model-option:hover {
    background-color: var(--hover-bg);
}

.model-option.selected {
    background-color: var(--accent-color);
    color: white;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.message-sender {
    font-weight: 500;
    font-size: 14px;
}

.message-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* 输入区域 */
.message-input-container {
    /* border-top: 1px solid var(--border-color); */
    padding: 16px;
    background-color: transparent !important;
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    z-index: 100;
    transition: left 0.3s ease;
    width: calc(100vw - 260px);
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.sidebar-collapsed .message-input-container {
    left: 0;
    width: 100vw;
}

.message-input-wrapper {
    position: relative;
    margin-bottom: 8px;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.message-input {
    width: 100%;
    padding: 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 14px;
    resize: none;
    max-height: 200px;
    min-height: 44px;
    transition: border-color 0.2s;
    font-family: inherit;
    line-height: 1.4;
    overflow-y: auto;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.message-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.1);
}

.message-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.message-input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    margin-top: auto;
}

.input-notice {
    font-size: 12px;
    color: var(--text-secondary);
}



/* 底部操作按钮 */
.action-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: center;
}

.action-button {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: var(--button-bg);
    border: 1px solid var(--button-border);
    border-radius: 4px;
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: var(--button-hover);
}

.button-icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 思考中状态样式 */
.typing-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing-dots 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 消息样式补充 */
.message.typing .message-content {
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 正在输入指示器增强样式 */
.typing-indicator {
    opacity: 0.8;
}

.typing-indicator .ai-avatar {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* 底部按钮栏样式 */
.bottom-action-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    /* border-top: 1px solid var(--border-color); */
    background-color: transparent !important;
    flex-wrap: wrap;
    position: fixed;
    bottom: 90px;
    left: 260px;
    right: 0;
    z-index: 99;
    transition: left 0.3s ease;
    width: calc(100vw - 260px);
}

body.sidebar-collapsed .bottom-action-bar {
    left: 0;
    width: 100vw;
}

.bottom-action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
}

.bottom-action-button:hover {
    background-color: var(--hover-bg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-search {
        width: 200px;
    }
    
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    body:not(.sidebar-collapsed) .sidebar {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        width: 100vw;
        padding: 10px;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .message-input-container {
        left: 0;
        width: 100vw;
        background-color: transparent !important;
        border-top: none !important;
        padding: 10px;
    }
    
    .bottom-action-bar {
        left: 0;
        width: 100vw;
        background-color: transparent !important;
        border-top: none !important;
        padding: 10px;
    }
    
    .sidebar-toggle-button {
        display: flex;
    }
    
    /* 移动端触摸优化 */
    .nav-toggle, .dropdown-item, .action-button, .send-button {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* 确保按钮可点击 */
    button, a, .dropdown-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    }
    
    /* 移动端导航优化 */
    .top-nav {
        height: 60px;
        padding: 0 10px;
    }
    
    .nav-toggle {
        padding: 8px;
        margin-right: 10px;
    }
    
    /* 移动端输入框优化 */
    .message-input {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 12px;
        border-radius: 8px;
    }
    
    /* 移动端消息区域优化 */
    .message-area {
        padding: 10px;
        margin-bottom: 80px; /* 为底部输入框留空间 */
    }
    
    /* 移动端欢迎消息优化 */
    .welcome-message {
        padding: 20px;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .welcome-description {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .nav-search {
        display: none;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-button {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* 小屏幕优化 */
    .content {
        padding: 5px;
    }
    
    .message-input-container {
        padding: 5px;
    }
    
    .message-input {
        padding: 10px;
    }
    
    /* 确保所有交互元素足够大 */
    .nav-toggle, .dropdown-item, .action-button, .send-button, .sidebar-btn {
        min-height: 48px;
        min-width: 48px;
    }
}

/* SVG图标通用样式 */
.dropdown-item-icon svg,
.popup-item-icon svg,
.button-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    display: block;
}

.copilot-icon svg {
    width: 48px;
    height: 48px;
    color: #8b949e;
    stroke: currentColor;
    fill: none;
}

.message-action-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

/* 确保SVG图标继承父元素颜色 */
svg {
    color: inherit;
}

/* AI消息格式化样式 */
.message-content h1 {
    font-size: 1.8em;
    margin: 0.8em 0 0.4em 0;
    color: #1a73e8;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.2em;
}

.message-content h2 {
    font-size: 1.5em;
    margin: 0.7em 0 0.35em 0;
    color: #1a73e8;
}

.message-content h3 {
    font-size: 1.3em;
    margin: 0.6em 0 0.3em 0;
    color: #1a73e8;
}

.message-content h4 {
    font-size: 1.1em;
    margin: 0.5em 0 0.25em 0;
    color: #1a73e8;
}

.message-content strong {
    font-weight: bold;
    color: #333;
}

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

.message-content ul, .message-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.message-content ul {
    list-style-type: disc;
}

.message-content ol {
    list-style-type: decimal;
}

.message-content li {
    margin: 0.3em 0;
    line-height: 1.5;
}

.message-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    color: #d63384;
}

.message-content pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 0.7em 0;
}

.message-content pre code {
    background-color: transparent;
    padding: 0;
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
    display: block;
}

.message-content blockquote {
    border-left: 4px solid #1a73e8;
    padding-left: 1em;
    margin: 0.7em 0;
    color: #555;
    font-style: italic;
}

.message-content hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 1em 0;
}

/* 美化AI消息容器 */
.assistant-message-container {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    border-left: 4px solid #1a73e8;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message-header-ai {
    background-color: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 15px;
    border-radius: 0 8px 0 0;
}

.ai-avatar {
    background-color: #1a73e8;
    color: white;
    font-weight: bold;
}

.message-content {
    padding: 15px;
    line-height: 1.6;
}

/* 数字样式 */
.message-content .number {
    font-weight: bold;
    color: #1a73e8;
}

/* 特殊符号样式 */
.message-content .symbol {
    color: #d63384;
    font-weight: bold;
}

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

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

.message-content th {
    background-color: #f5f5f5;
    font-weight: bold;
}

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

/* 链接样式 */
.message-content a {
    color: #1a73e8;
    text-decoration: none;
}

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

/* 图片样式 */
.message-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0.5em 0;
}

/* 输入指示器样式 */
.typing-indicator-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

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

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1a73e8;
    display: inline-block;
    animation: typing-dot 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-dot {
    0%, 80%, 100% { 
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

.typing-status {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 取消请求按钮 */
.cancel-request-btn {
    margin-top: 15px;
    padding: 6px 12px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-request-btn:hover {
    background-color: #d32f2f;
}

.cancel-request-btn:active {
    background-color: #b71c1c;
}

/* 禁用状态的输入框 */
.message-input:disabled {
    background-color: #f5f5f5 !important;
    color: #999;
    cursor: not-allowed;
} 