/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-user {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid #667eea;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-icon {
    background: none;
    border: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 主内容区域 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.section {
    display: none;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 首页样式 */
.hero-section {
    text-align: center;
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-features {
    margin-top: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 聊天界面样式 */
.chat-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    height: calc(100vh - 120px); /* 增加高度，减少边距 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 700px; /* 增加最小高度 */
}

.chat-sidebar {
    background: #f8f9fa;
    padding: 1rem; /* 减少内边距 */
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* 添加滚动条 */
}

.chat-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.model-selector,
.role-selector,
.language-selector {
    margin-bottom: 1.5rem; /* 减少间距 */
}

.model-description,
.role-description {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.api-test-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.api-test-result {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: none;
}

.api-test-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.api-test-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.select-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
}

.role-options,
.lang-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-btn,
.lang-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.role-btn:hover,
.role-btn.active,
.lang-btn:hover,
.lang-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.chat-main {
    display: flex;
    flex-direction: column;
    height: 100%; /* 确保占满容器高度 */
    position: relative; /* 为绝对定位的子元素提供参考 */
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    min-height: 400px; /* 增加消息区域最小高度 */
    max-height: calc(100vh - 200px); /* 调整最大高度，底部距离输入框顶部20px */
    margin-bottom: 20px; /* 确保底部有20px间距 */
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    /* 确保消息内容不会被输入框遮挡 */
    position: relative;
    z-index: 1;
}

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

.message-content {
    background: #f1f3f4;
    padding: 1rem;
    border-radius: 12px;
    max-width: 70%;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.message.user .message-content {
    background: #667eea;
    color: white;
}

.message.thinking .message-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.message.thinking .message-text {
    color: #6c757d;
    font-style: italic;
}

.message.system .message-content {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.message i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.message-text {
    flex: 1;
    line-height: 1.5;
}

.chat-input-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: calc(80vw - 300px - 4rem); /* 80%的视窗宽度减去左侧边栏300px和右边距4rem */
    max-width: 800px; /* 设置最大宽度，避免在大屏幕上过宽 */
    min-width: 400px; /* 设置最小宽度，确保在小屏幕上可用 */
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* 确保输入框不会遮挡消息内容 */
    pointer-events: auto;
}

.input-wrapper {
    position: relative;
}

.chat-input {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
}

.input-actions {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.file-preview {
    margin-top: 0.5rem;
    display: none;
}

.file-preview.active {
    display: block;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.file-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.file-item .file-info {
    flex: 1;
    min-width: 0;
}

.file-item .file-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item .file-size {
    font-size: 0.75rem;
    color: #666;
}

.file-item .remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.file-item .remove-file:hover {
    background: rgba(220, 53, 69, 0.1);
}

.file-upload-tips {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.file-upload-tips.show {
    opacity: 1;
    transform: translateX(0);
}

.file-upload-tips p {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.file-upload-tips ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #666;
}

.file-upload-tips li {
    margin-bottom: 0.25rem;
}

/* 文献搜索样式 */
.medical-search-container {
    height: calc(100vh - 80px); /* 增加高度，减去导航栏高度 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 0; /* 移除顶部边距 */
}

.medical-search-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 文献管理样式 */
.literature-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    height: calc(100vh - 120px); /* 增加高度，减少边距 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 700px; /* 增加最小高度 */
}

.literature-sidebar {
    background: #f8f9fa;
    padding: 1rem; /* 减少内边距 */
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.search-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

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

.library-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: white;
    transition: all 0.3s ease;
}

.library-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.library-item i {
    font-size: 1.5rem;
    color: #667eea;
}

.item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-info p {
    font-size: 0.8rem;
    color: #666;
}

.literature-main {
    display: flex;
    flex-direction: column;
}

.literature-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

.summary-card,
.mindmap-container,
.qa-container,
.compare-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mindmap-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.mindmap-placeholder i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.qa-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.qa-input-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* 数据分析样式 */
.analysis-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    height: calc(100vh - 120px); /* 增加高度，减少边距 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 700px; /* 增加最小高度 */
}

.analysis-sidebar {
    background: #f8f9fa;
    padding: 1rem; /* 减少内边距 */
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tool-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.analysis-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    overflow-y: auto;
}

.data-preview,
.chart-container,
.analysis-report {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.chart-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.chart-placeholder i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* 写作助手样式 */
.writing-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    height: calc(100vh - 120px); /* 增加高度，减少边距 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 910px; /* 增加30%: 700 * 1.3 = 910 */
}

.writing-sidebar {
    background: #f8f9fa;
    padding: 1.3rem; /* 增加30%: 1rem * 1.3 = 1.3rem */
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.writing-main {
    display: flex;
    flex-direction: column;
    gap: 1.95rem; /* 增加30%: 1.5rem * 1.3 = 1.95rem */
    padding: 1.95rem; /* 增加30%: 1.5rem * 1.3 = 1.95rem */
}

.editor-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-toolbar {
    padding: 1.3rem; /* 增加30%: 1rem * 1.3 = 1.3rem */
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

.toolbar-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.editor-content {
    flex: 1;
    padding: 1.95rem; /* 增加30%: 1.5rem * 1.3 = 1.95rem */
    outline: none;
    min-height: 390px; /* 增加30%: 300 * 1.3 = 1.3 = 390 */
    line-height: 1.6;
}



/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.notification-error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.notification-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

.notification i {
    font-size: 1.2rem;
}



/* 文件上传分析样式 */
.file-upload-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.file-upload-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2.6rem; /* 增加30%: 2rem * 1.3 = 2.6rem */
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #e8f0ff;
    transform: scale(1.02);
}

.upload-content i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-content p {
    margin: 0.5rem 0;
    color: #666;
}

.upload-hint {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

.file-list {
    margin-top: 1rem;
}

.file-list h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.file-items {
    margin-bottom: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.04rem; /* 增加30%: 0.8rem * 1.3 = 1.04rem */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    margin-bottom: 1.04rem; /* 增加30%: 0.8rem * 1.3 = 1.04rem */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.file-item-info i {
    font-size: 1.2rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.file-item-size {
    font-size: 0.8rem;
    color: #7f8c8d;
    background: rgba(127, 140, 141, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
}

.file-item-name {
    font-weight: 500;
    color: #333;
}

.file-item-size {
    font-size: 0.8rem;
    color: #666;
}

.file-item-remove {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.file-item-remove:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
    background: linear-gradient(135deg, #ff3742 0%, #ff4757 100%);
}

.btn-analyze {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    min-width: auto;
    height: auto;
}

.file-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: #c82333;
    transform: scale(1.05);
}

.btn-remove {
    min-width: auto;
    height: auto;
}







.analysis-progress {
    margin-top: 1rem;
    padding: 1.3rem; /* 增加30%: 1rem * 1.3 = 1.3rem */
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* 分析结果展示区域样式 */
.analysis-results {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    max-width: 100%; /* 限制最大宽度不超过父容器 */
    overflow: hidden; /* 隐藏溢出内容 */
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.results-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.results-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

.results-content {
    padding: 1.95rem; /* 增加30%: 1.5rem * 1.3 = 1.95rem */
    min-height: 390px; /* 增加30%: 300 * 1.3 = 390 */
    max-height: 780px; /* 增加30%: 600 * 1.3 = 780 */
    background: #f8f9fa;
    overflow-y: auto; /* 垂直滚动 */
    overflow-x: auto; /* 水平滚动 */
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.analysis-result {
    margin-bottom: 2.6rem; /* 增加30%: 2rem * 1.3 = 2.6rem */
    background: white; /* 确保背景色 */
    padding: 1.3rem; /* 增加30%: 1rem * 1.3 = 1.3rem */
    border-radius: 8px; /* 添加圆角 */
    border: 1px solid #e9ecef; /* 添加边框 */
    word-wrap: break-word; /* 长单词换行 */
    overflow-wrap: break-word; /* 现代浏览器的长单词换行 */
}

.analysis-result h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.analysis-content {
    background: #f8f9fa;
    padding: 1.3rem; /* 增加30%: 1rem * 1.3 = 1.3rem */
    border-radius: 8px;
    border-left: 4px solid #667eea;
    line-height: 1.6;
    word-wrap: break-word; /* 长单词换行 */
    overflow-wrap: break-word; /* 现代浏览器的长单词换行 */
}

.analysis-content pre {
    white-space: pre-wrap; /* 保留换行和空格，但允许换行 */
    word-wrap: break-word;
    overflow-x: auto; /* 水平滚动 */
    max-width: 100%;
    background: #f1f3f4;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
}

.analysis-content p {
    margin: 0.5rem 0;
    word-wrap: break-word;
}

.analysis-content h5 {
    margin: 1rem 0 0.5rem 0;
    color: #495057;
    font-weight: 600;
}

/* 文件标题列表样式 */
.file-titles {
    margin-bottom: 1rem;
}

.file-title-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-title-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.file-title-item.active {
    background: #e8f0ff;
    border-color: #667eea;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.2);
}

.file-title-item.expanded {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    margin-bottom: 0;
}

.file-title-item.expanded + .file-content {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: 1px solid #e9ecef;
    margin-top: 0;
}

.title-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.title-content i {
    color: #667eea;
    font-size: 1.1rem;
}

.title-text {
    font-weight: 500;
    color: #333;
}

.title-status {
    font-size: 0.85rem;
    color: #28a745;
    background: #d4edda;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.btn-expand {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-expand:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

/* 文件内容区域样式 */
.file-content {
    margin: 0.5rem 0 1rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
    position: relative;
    left: 0;
    right: 0;
}

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

.file-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 智能对话样式 */
.chat-container {
    display: flex;
    gap: 2rem;
    height: 840px; /* 增加40%: 600 * 1.4 = 840 */
}

.chat-sidebar {
    width: 300px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 560px; /* 增加40%: 400 * 1.4 = 560 */
}

.message {
    margin-bottom: 0.8rem; /* 减少消息间距从1rem到0.8rem */
    display: flex;
    align-items: flex-start;
    gap: 0.8rem; /* 减少图标和文本间距从1rem到0.8rem */
}

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

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem; /* 减少间距从0.75rem到0.6rem */
    max-width: 80%;
}

.message.user .message-content {
    flex-direction: row-reverse;
}

.message i {
    font-size: 1.2rem;
    padding: 0.4rem; /* 减少内边距从0.5rem到0.4rem，与文本内边距协调 */
    border-radius: 50%;
    min-width: 36px; /* 相应减少最小宽度从40px到36px */
    text-align: center;
}

.user-icon {
    background: #667eea;
    color: white;
}

.ai-icon {
    background: #28a745;
    color: white;
}

.message-text {
    background: #f8f9fa;
    padding: 0.5rem 1rem; /* 减少上下内边距从0.75rem到0.5rem */
    border-radius: 12px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message.user .message-text {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem; /* 与普通消息文本保持一致的内边距 */
}

.typing-indicator {
    color: #666;
    font-style: italic;
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.input-wrapper {
    position: relative;
}

.chat-input {
    width: 100%;
    min-height: 60px;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-actions {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: #666;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

#sendBtn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#sendBtn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.model-selector, .role-selector, .language-selector, .api-test-section {
    margin-bottom: 1.5rem;
}

.model-selector h3, .role-selector h3, .language-selector h3, .api-test-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.select-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.role-options, .lang-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-btn, .lang-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.role-btn:hover, .lang-btn:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.role-btn.active, .lang-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.role-description, .model-description {
    margin-top: 0.5rem;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.api-test-result {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 12px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

/* 自定义滚动条样式 */
.results-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.results-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.results-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.results-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox滚动条样式 */
.results-content {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .analysis-results {
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .results-content {
        padding: 1rem;
        max-height: 400px;
    }
    
    .analysis-content pre {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .results-header h3 {
        font-size: 1rem;
    }
    
    .file-title-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .title-content {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-expand {
        align-self: flex-end;
    }
}

/* 全局进度条样式 */
.global-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 450px;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px 20px 0 0;
}

.progress-modal .progress-header {
    margin-bottom: 2rem;
    position: relative;
}

.progress-modal .progress-header h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-modal .progress-bar {
    width: 100%;
    height: 16px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-modal .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-modal .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-modal .progress-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-modal .progress-status {
    color: #5a6c7d;
    font-size: 1rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.progress-modal .progress-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* 进度条动画效果 */
.progress-modal {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 进度完成时的庆祝效果 */
.progress-complete .progress-fill {
    animation: celebrate 0.6s ease-in-out;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.progress-complete .progress-status {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(139, 195, 74, 0.1) 100%);
    border-color: rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .progress-modal {
        min-width: 90vw;
        max-width: 90vw;
        padding: 2rem;
        margin: 1rem;
    }
    
    .progress-modal .progress-header h4 {
        font-size: 1.1rem;
    }
    
    .progress-modal .progress-text {
        font-size: 1rem;
    }
    
    .progress-modal .progress-status {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* 关闭按钮 */
.progress-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    transform: rotate(90deg);
}

/* 编程工具样式 */
.coding-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    height: calc(100vh - 120px); /* 增加高度，减少边距 */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 700px; /* 增加最小高度 */
}

.coding-sidebar {
    background: #f8f9fa;
    padding: 1rem; /* 减少内边距 */
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.coding-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

.code-editor {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

.code-area {
    flex: 1;
    padding: 1.5rem;
}

#codeEditor {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
}

.code-output {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
}

.output-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.output-content {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 150px;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.setting-item input,
.setting-item select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #555;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .chat-container,
    .literature-container,
    .analysis-container,
    .writing-container,
    .coding-container {
        grid-template-columns: 1fr;
    }
    
    .chat-sidebar,
    .literature-sidebar,
    .analysis-sidebar,
    .writing-sidebar,
    .coding-sidebar {
        order: 2;
        border-right: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .chat-main,
    .literature-main,
    .analysis-main,
    .writing-main,
    .coding-main {
        order: 1;
    }
    
    /* 在平板设备上调整聊天输入窗口宽度 */
    .chat-input-container {
        width: calc(80vw - 2rem); /* 80%视窗宽度减去左右边距 */
        right: 1rem;
        left: 1rem;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    /* 在移动设备上调整聊天输入窗口 */
    .chat-input-container {
        width: calc(100vw - 2rem); /* 全屏宽度减去左右边距 */
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
        max-width: none;
        min-width: auto;
        padding: 0.75rem;
    }
    
    /* 在移动设备上调整消息区域高度 */
    .chat-messages {
        max-height: calc(100vh - 150px); /* 移动设备上调整高度 */
        margin-bottom: 15px; /* 移动设备上减少底部间距 */
    }
    
    .chat-input {
        min-height: 40px;
        font-size: 0.85rem;
    }
    
    .input-actions {
        right: 0.5rem;
        bottom: 0.5rem;
        gap: 0.25rem;
    }
    
    .action-btn {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 