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

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

.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

h1 {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    font-size: 2.5em;
    font-weight: 300;
    margin: 0;
    position: relative;
    overflow: hidden;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4fc3f7, #2196f3);
    border-radius: 2px;
}

h2 {
    color: #2a5298;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1.6em;
    padding-bottom: 10px;
    display: inline-block;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2196f3, transparent);
    border-radius: 2px;
}

.recording-section,
.model-selection,
.transcription-section,
.summary-section,
.chat-section,
.history-section {
    padding: 30px;
    position: relative;
    background: white;
}

.recording-section:not(:last-child),
.model-selection:not(:last-child),
.transcription-section:not(:last-child),
.summary-section:not(:last-child),
.chat-section:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* 添加区域卡片效果 */
.recording-section,
.model-selection,
.transcription-section,
.summary-section,
.chat-section,
.history-section {
    border-radius: 15px;
    margin: 0 20px 20px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
}

.history-section {
    margin-bottom: 30px;
}

/* 控制按钮样式 */
.control-panel {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-btn,
.action-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* 按钮点击波纹效果 */
.control-btn::before,
.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.control-btn:active::before,
.action-btn:active::before {
    width: 300px;
    height: 300px;
}

#start-recording {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

#start-recording:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

#stop-recording {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

#stop-recording:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

#play-recording {
    background: linear-gradient(135deg, #2196F3, #0b7dda);
    color: white;
}

#play-recording:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

#upload-audio {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

#upload-audio:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
}

.action-btn {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
    margin-right: 10px;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}

/* 录音状态显示 */
.recording-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
    position: relative;
}

.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.recording .indicator {
    background: #f44336;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.timer-display {
    font-size: 28px;
    font-weight: 700;
    color: #2a5298;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f8fa, #e8f4fd);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.timer-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2196f3, #90caf9);
}

/* 模型选择样式 */
.model-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.model-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.model-options label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 82, 152, 0.1), transparent);
    transition: left 0.5s;
}

.model-options label:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #2a5298;
}

.model-options label:hover::before {
    left: 100%;
}

.model-options input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: #2a5298;
    cursor: pointer;
}

/* 自定义单选按钮样式 */
.model-options input[type="radio"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.model-options input[type="radio"]:checked {
    border-color: #2a5298;
    background-color: white;
}

.model-options input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2a5298;
    animation: radioPulse 0.3s ease;
}

@keyframes radioPulse {
    0% { transform: translate(-50%, -50%) scale(0); }
    70% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* API Key 区域 */
.api-key-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.api-key-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

#api-key {
    width: calc(100% - 120px);
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-right: 10px;
    transition: all 0.3s ease;
    background-color: white;
}

#api-key:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

#save-api-key {
    padding: 14px 28px;
    background: linear-gradient(135deg, #2196F3, #0b7dda);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.3);
}

#save-api-key:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

/* 文本区域样式 */
.transcription-content,
.summary-content {
    margin-top: 20px;
    position: relative;
}

#transcription-text,
#summary-text {
    width: 100%;
    min-height: 250px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    line-height: 1.7;
    resize: vertical;
    font-family: inherit;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

#transcription-text:focus,
#summary-text:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(42, 82, 152, 0.1);
    background: white;
}

/* 进度条样式 */
.progress-container,
.playback-progress-container {
    height: 12px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 6px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.playback-progress-container {
    position: relative;
    margin-top: 10px;
    cursor: pointer;
    user-select: none;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #2a5298);
    width: 0;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShine 2s infinite;
}

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

/* 对话区域样式 */
.chat-messages {
    min-height: 350px;
    max-height: 600px;
    overflow-y: auto;
    padding: 25px;
    background: linear-gradient(135deg, #f5f8fa, #e9ecef);
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* 消息气泡样式 */
.message {
    padding: 18px 22px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    animation: messageSlideIn 0.3s ease-out;
}

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

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 3px 10px rgba(30, 136, 229, 0.3);
}

.ai-message {
    align-self: flex-start;
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* 输入区域样式 */
.chat-input {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#chat-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    background: transparent;
    transition: all 0.3s ease;
}

#chat-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

#send-chat {
    padding: 16px 32px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

#send-chat:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

#send-chat::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#send-chat:active::before {
    width: 300px;
    height: 300px;
}

/* 区域标题栏样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 警告按钮样式 */
.warning-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f) !important;
    position: relative;
    overflow: hidden;
}

.warning-btn:hover {
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4) !important;
    transform: translateY(-3px) !important;
}

.warning-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.warning-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 确认对话框样式 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: dialogFadeIn 0.3s ease-out;
}

@keyframes dialogFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-dialog-content {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 90%;
    position: relative;
    animation: dialogSlideIn 0.3s ease-out;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

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

.confirm-dialog h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 600;
    text-align: center;
}

.confirm-dialog p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
    font-size: 1.1em;
}

.confirm-dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cancel-btn {
    padding: 14px 28px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #bdbdbd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.confirm-btn {
    padding: 14px 28px;
    border: none;
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(244, 67, 54, 0.3);
    position: relative;
    overflow: hidden;
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.confirm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.confirm-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 历史记录样式 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.history-item {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    border-left: 5px solid #2a5298;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 82, 152, 0.05), transparent);
    transition: left 0.6s;
}

.history-item:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(10px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: #1565c0;
}

.history-item:hover::before {
    left: 100%;
}

.history-item h4 {
    color: #2a5298;
    margin-bottom: 12px;
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.history-item h4::before {
    content: '📝';
    margin-right: 8px;
    font-size: 1.1em;
}

.history-item p {
    color: #666;
    margin-bottom: 10px;
    font-size: 1em;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item .timestamp {
    font-size: 0.9em;
    color: #999;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.history-item .timestamp::before {
    content: '🕒';
    margin-right: 5px;
    font-size: 0.8em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 5px auto;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2em;
        padding: 25px 20px;
    }
    
    .recording-section,
    .model-selection,
    .transcription-section,
    .summary-section,
    .chat-section,
    .history-section {
        padding: 20px;
        margin: 0 15px 15px 15px;
    }
    
    .control-panel {
        flex-direction: column;
        gap: 12px;
    }
    
    .control-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    #api-key {
        width: 100%;
        margin-bottom: 12px;
    }
    
    #save-api-key {
        width: 100%;
    }
    
    .message {
        max-width: 90%;
        padding: 15px 18px;
        font-size: 15px;
    }
    
    .chat-input {
        padding: 8px;
    }
    
    #chat-input {
        padding: 14px 18px;
    }
    
    #send-chat {
        padding: 14px 24px;
    }
    
    .confirm-dialog-content {
        padding: 25px;
        margin: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .section-header .action-btn {
        margin-right: 0;
        margin-top: 10px;
    }
}

/* 动画效果优化 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加交错动画效果 */
.recording-section {
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.model-selection {
    animation: fadeIn 0.5s ease-out 0.2s both;
}

.transcription-section {
    animation: fadeIn 0.5s ease-out 0.3s both;
}

.summary-section {
    animation: fadeIn 0.5s ease-out 0.4s both;
}

.chat-section {
    animation: fadeIn 0.5s ease-out 0.5s both;
}

.history-section {
    animation: fadeIn 0.5s ease-out 0.6s both;
}

/* 错误消息样式优化 */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
    border-left: 4px solid #f44336;
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.error-message::before {
    content: '⚠️';
    font-size: 1.2em;
}

/* 警告消息样式优化 */
.warning-message {
    background-color: #fff3e0;
    color: #e65100;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
    border-left: 4px solid #ff9800;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.warning-message::before {
    content: '💡';
    font-size: 1.2em;
}

/* 成功消息样式 */
.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in-out;
    border-left: 4px solid #4caf50;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.success-message::before {
    content: '✅';
    font-size: 1.2em;
}

/* 思考状态样式优化 */
.message.thinking {
    opacity: 0.7;
    font-style: italic;
    position: relative;
}

.message.thinking::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #2a5298;
    animation: spin 1s linear infinite;
}

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

/* 模拟数据提示样式优化 */
.mock-data-notice {
    font-style: italic;
    color: #666;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
}

/* 滚动条样式美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f1f1, #e8e8e8);
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c1c1c1, #a1a1a1);
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a1a1a1, #888888);
    transform: scale(1.1);
}

/* 滚动条角落样式 */
::-webkit-scrollbar-corner {
    background: #f1f1f1;
    border-radius: 6px;
}