body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f5f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

/* 手机容器 */
.phone-container {
    width: 100%;
    max-width: 420px;
    height: 100vh;
    max-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    margin: 0 auto;
    transform-origin: center center;
}

.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 375px;
    max-height: 800px;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 12px solid #111;
    display: flex;
    flex-direction: column;
    aspect-ratio: 9/19;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 30px;
    background-color: #111;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.phone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 30px;
    padding-bottom: 5px;
    overflow: hidden;
}

.phone-status-bar {
    padding: 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    height: 24px;
    border-bottom: 1px solid #efefef;
}

.system-status {
    font-weight: 500;
}

.system-id {
    font-size: 10px;
    color: #777;
}

.phone-button {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background-color: #ddd;
    border-radius: 3px;
}

/* 主应用区域 */
.main-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-color: #f8f8f8;
}

/* 应用头部 */
.app-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 4px 10px;
    border-bottom: 1px solid #eee;
    background-color: white;
}

.app-logo {
    height: 30px;
    width: auto;
}

.app-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-select {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 12px;
    background-color: #f5f5f5;
    color: #333;
    max-width: 100px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath fill='%23777' d='M0 0l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 25px;
}

.connect-btn, .settings-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.connect-btn:hover, .settings-btn:hover {
    background-color: #e0e0e0;
}

/* 响应区域 */
.response {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    overflow-y: auto;
    background-color: #f1f5f9;
}

.language-indicator {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    padding-left: 5px;
}

.response-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-bubble {
    border-radius: 18px;
    padding: 12px 16px;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin: 4px 0;
}

.input-bubble {
    align-self: flex-start;
    background-color: #e9ecef;
    border-bottom-left-radius: 5px;
}

.output-bubble {
    align-self: flex-end;
    background-color: #e3f2fd;
    border-bottom-right-radius: 5px;
}

#whisper-response {
    font-size: 16px;
    line-height: 1.4 !important;
    overflow-y: auto;
    word-break: break-word;
    margin: 0 !important;
    padding: 8px 0 !important;
    width: 100%;
    flex: 1;
    text-indent: 0;
    display: block;
    border: none;
    outline: none;
    min-height: 0 !important;
    vertical-align: top !important;
}

#gpt-response {
    font-size: 18px;
    line-height: 1.4 !important;
    overflow-y: auto;
    word-break: break-word;
    margin: 0 !important;
    padding: 8px 0 !important;
    width: 100%;
    flex: 1;
    text-indent: 0;
    display: block;
    border: none;
    outline: none;
    min-height: 0 !important;
    vertical-align: top !important;
}

#whisper-audio-player, #tts-audio-container audio, #gpt-audio-player {
    width: 100%;
    margin-top: 10px;
    height: 30px;
}

/* 放大按钮样式 */
#expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #0d6efd;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    z-index: 5;
}

#expand-btn:hover {
    opacity: 1;
}

/* 底部工具栏 */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background-color: white;
    border-top: 1px solid #eee;
    height: 56px;
    margin-bottom: 5px;
}

.footer-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 16px;
}

.footer-btn:hover {
    background-color: #e0e0e0;
}

/* 录音按钮样式 */
.record-btn {
    height: 42px;
    width: 180px;
    border-radius: 22px;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    position: relative;
    transition: all 0.2s ease;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: normal;
    gap: 10px;
    padding: 0 16px;
}

.record-btn:hover {
    background-color: #e9e9e9;
}

.record-btn.recording {
    animation: pulse 1.5s infinite;
    background-color: #e73d3e; /* 录音时为红色 */
    color: white;
}

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

.record-btn .fa-microphone {
    font-size: 16px;
}

/* 设置面板 */
.settings-panel {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 100;
    padding: 0;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.settings-panel.show {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.settings-logo {
    height: 25px;
    width: auto;
    position: absolute;
    left: 15px;
}

.settings-title {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-settings, .close-panel {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.settings-section h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #4483c3;
    font-weight: 500;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.settings-item label {
    font-size: 14px;
}

.settings-item select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    font-size: 14px;
    width: 150px;
}

.settings-info {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.settings-info p {
    margin: 5px 0;
    font-size: 12px;
}

#custom-prompt {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-top: 10px;
    resize: vertical;
}

/* 历史记录面板 */
.history-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.history-panel.show {
    transform: translateX(0);
}

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

.panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* 模式过滤器样式 */
.mode-filter {
    margin: 0 15px;
}

#historyModeFilter {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 12px;
    background-color: #f5f5f5;
}

/* 没有记录时的提示样式 */
.no-records {
    text-align: center;
    padding: 20px;
    color: #888;
    font-style: italic;
}

#records {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.record {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

/* 添加模式标签样式 */
.mode-tag {
    display: inline-block;
    font-size: 11px;
    background-color: #4483c3;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: capitalize;
}

/* 根据不同模式设置不同的标签颜色 */
.record[data-mode="translation"] .mode-tag {
    background-color: #4483c3;
}

.record[data-mode="conversation"] .mode-tag {
    background-color: #28a745;
}

.record[data-mode="todo"] .mode-tag {
    background-color: #ffc107;
    color: #333;
}

.record[data-mode="custom"] .mode-tag {
    background-color: #6c757d;
}

.record[data-mode="meeting"] .mode-tag {
    background-color: #dc3545;
}

.record p {
    margin: 5px 0;
    font-size: 14px;
}

.record audio {
    width: 100%;
    margin-top: 5px;
    height: 30px;
}

.panel-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#downloadButton, #summaryDownloadButton {
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #4483c3;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

#downloadButton:hover, #summaryDownloadButton:hover {
    background-color: #3d76b0;
}

/* 待办事项区域 */
#todo-section {
    margin-top: 15px;
}

#toggle-todo-table {
    width: 100%;
    padding: 8px 0;
    background-color: #4483c3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#todo-table-container {
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#todo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: white;
}

#todo-table th, #todo-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#todo-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

/* 修改输入输出区域的比例，移除折叠功能 */
.split-response-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    min-height: 300px;
    margin-bottom: 8px;
    gap: 8px;
    width: 100%;
}

.split-bubble {
    position: relative;
    flex: 1;
    min-height: 60px;
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Add reprocess button styling */
#reprocess-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background-color: transparent;
    color: #555;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    z-index: 10;
}

#reprocess-btn:hover {
    color: #333;
}

#reprocess-btn:active {
    transform: scale(0.95);
}

.input-side {
    background-color: #e9ecef;
    order: 2;
    flex: 1;
    min-height: 100px;
    max-height: none;
    margin: 0;
    border-radius: 12px;
    padding: 8px;
}

.output-side {
    background-color: #e3f2fd;
    order: 1;
    flex: 2;
    min-height: 200px;
    margin: 0;
    border-radius: 12px;
    padding: 8px;
}

/* 移除输入输出标签样式 */
.input-label, .output-label {
    display: none;
}

/* 调整音频播放器样式 */
#whisper-audio-player, #tts-audio-container audio {
    width: 100%;
    margin-top: 5px;
    height: 30px;
}

/* 移动端适配优化 */
@media (max-width: 480px) {
    .phone-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        padding: 0;
        max-height: none;
        transform: none !important;
    }
    
    .phone-frame {
        border-radius: 0;
        max-width: 100%;
        border: none;
        height: 100vh;
        max-height: none;
        aspect-ratio: auto;
    }
    
    .phone-notch {
        display: none;
    }
    
    .phone-content {
        padding-top: 0;
    }
    
    .phone-button {
        display: none;
    }
    
    .split-response-container {
        flex-direction: column;
        height: calc(100vh - 160px);
        min-height: 300px;
        gap: 8px;
        padding: 0 2px;
    }
    
    .split-bubble {
        padding: 10px !important;
        padding-bottom: 40px !important;
    }
    
    .output-side {
        flex: 2;
        min-height: 180px;
    }
    
    .input-side {
        flex: 1;
        min-height: 80px;
    }
    
    /* 调整移动端字体大小 - 增加字体大小 */
    #gpt-response {
        font-size: 18px; /* 从16px增加到18px */
        line-height: 1.5; /* 增加行间距提高可读性 */
    }
    
    #whisper-response {
        font-size: 16px; /* 从12px增加到16px */
        line-height: 1.4;
    }
    
    /* 调整其他文本元素的字体大小 */
    .chat-bubble {
        font-size: 17px; /* 增加聊天气泡的字体大小 */
    }
    
    .language-indicator {
        font-size: 14px; /* 增加语言指示器的字体大小 */
    }
    
    .app-header, .app-footer {
        font-size: 16px; /* 增加头部和底部文本大小 */
    }
    
    .record-btn {
        font-size: 16px; /* 增加按钮文本大小 */
    }
    
    .main-app {
        height: 100vh;
    }
    
    /* 历史记录和设置面板中的文字 */
    .record p, .settings-section label, .settings-item label {
        font-size: 16px; /* 增加历史记录项目字体大小 */
    }
    
    #todo-table {
        font-size: 16px; /* 增加待办事项表格的字体大小 */
    }
    
    .presentation-btn {
        width: 50px;
        height: 50px;
    }
    
    /* 超长文本的字体也要保持较大，确保可读性 */
    #presentation-text.very-long-text {
        font-size: calc(min(10vw, 8vh)) !important; /* 使用与长文本相同的字体大小 */
        line-height: 1.5 !important; /* 与长文本保持相同的行高 */
    }
}

/* 添加针对移动设备的额外媒体查询 */
@media (max-width: 480px) {
    .presentation-container {
        padding: 0 !important;
        justify-content: flex-start !important; /* 确保从顶部开始 */
        align-items: center !important;
    }
    
    .presentation-content {
        justify-content: flex-start !important; /* 确保从顶部开始 */
        align-items: center !important;
        height: calc(100% - 120px) !important; /* 为控制按钮预留空间 */
        width: 100% !important;
        display: flex !important;
        margin: 0 !important;
        padding: 2rem 1rem 1rem 1rem !important; /* 增加顶部padding确保内容完全可见 */
        overflow-y: auto !important; /* 确保可以滚动 */
        box-sizing: border-box !important;
    }
    
    #presentation-text {
        font-size: calc(min(15vw, 12vh)) !important; /* 增大基础字体大小 */
        font-weight: bold !important; /* 加粗字体 */
        padding: 0 !important; /* 移除内部padding，让外部container控制间距 */
        text-align: center !important; /* 确保文本居中对齐 */
        width: 100% !important;
        height: auto !important;
        display: block !important; /* 改为block以避免flex布局问题 */
        align-self: flex-start !important; /* 确保从顶部开始 */
        max-height: none !important; /* 移除高度限制 */
        overflow-y: visible !important; /* 确保内容可见 */
        line-height: 1.3 !important;
        max-width: 100% !important; /* 充分利用宽度 */
        box-sizing: border-box !important;
    }
    
    /* 超长文本的字体也要保持较大，确保可读性 */
    #presentation-text.very-long-text {
        font-size: calc(min(16vw, 14vh)) !important; /* 大幅增大超长文本字体 */
        font-weight: bold !important; /* 加粗字体 */
        line-height: 1.5 !important; /* 与长文本保持相同的行高 */
    }
    
    /* 超短文本（少于30个字符）使用超大字体 */
    #presentation-text.short-text {
        font-size: calc(min(30vw, 25vh)) !important; /* 超大字体 */
        font-weight: bold !important; /* 加粗字体 */
        line-height: 1.3 !important;
    }
    
    /* 中等长度文本（30-100个字符）使用大字体 */
    #presentation-text.medium-text {
        font-size: calc(min(22vw, 18vh)) !important; /* 大幅增大字体 */
        font-weight: bold !important; /* 加粗字体 */
        line-height: 1.4 !important;
    }
    
    /* 长文本（超过100个字符）使用标准大字体 */
    #presentation-text.long-text {
        font-size: calc(min(18vw, 15vh)) !important; /* 大幅增大字体 */
        font-weight: bold !important; /* 加粗字体 */
        line-height: 1.5 !important;
    }
    
    .presentation-controls {
        position: fixed !important; /* 固定在底部 */
        bottom: 10px !important;
        width: 100% !important;
        justify-content: center !important;
        gap: 0.8rem !important; /* 减少间距以适应三个按钮 */
        z-index: 1010 !important; /* 确保在最上层 */
        background-color: rgba(227, 242, 253, 0.7) !important; /* 半透明背景 */
        padding: 0.5rem 0 !important;
    }
    
    .presentation-btn {
        width: 60px !important; /* 稍微减小按钮宽度 */
        height: 60px !important;
        font-size: 18px !important; /* 稍微减小图标大小 */
    }
}

/* 调整响应式设计，确保在不同窗口大小下的适配 */
@media (max-height: 800px) and (min-width: 481px) {
    .phone-container {
        transform: scale(0.9);
        max-height: 700px;
    }
    
    .phone-frame {
        max-height: 700px;
    }
    
    .split-response-container {
        height: calc(100vh - 230px);
    }
}

@media (max-height: 700px) and (min-width: 481px) {
    .phone-container {
        transform: scale(0.85);
        max-height: 650px;
    }
    
    .phone-frame {
        max-height: 650px;
    }
    
    .split-response-container {
        height: calc(100vh - 210px);
    }
}

/* 适配大屏幕 */
@media (min-width: 1200px) and (min-height: 800px) {
    .phone-container {
        transform: scale(1.1);
    }
}

/* 添加样式用于支持原项目的功能 */
.settings-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.settings-switch {
    position: relative;
    width: 40px;
    height: 20px;
    appearance: none;
    background-color: #ccc;
    border-radius: 10px;
    outline: none;
    transition: 0.4s;
    cursor: pointer;
}

.settings-switch::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.settings-switch:checked {
    background-color: #4483c3;
}

.settings-switch:checked::before {
    transform: translateX(20px);
}

/* 调整内容区域 */
.input-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.split-bubble #gpt-response::first-line,
.split-bubble #whisper-response::first-line {
    margin-top: 0;
    padding-top: 0;
}

/* 尝试用伪元素覆盖掉可能的空白 */
.split-bubble::before {
    content: '';
    display: block;
    height: 0;
}

/* 修复Markdown渲染导致的顶部空白 */
#gpt-response p, #whisper-response p {
    margin: 0 !important;
    padding: 0 !important;
}

#gpt-response p:first-child, #whisper-response p:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#gpt-response > *:first-child, #whisper-response > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 设置marked库渲染的所有顶级元素 */
#gpt-response > *,
#whisper-response > * {
    margin-top: 0.5em !important; 
    margin-bottom: 0.5em !important;
}

/* 第一个子元素不要顶部边距 */
#gpt-response > *:first-child,
#whisper-response > *:first-child {
    margin-top: 0 !important;
}

/* 确保容器内的内容紧贴顶部 */
.split-bubble {
    padding: 0 !important; 
    padding-bottom: 40px !important;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column; 
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
}

/* 展示模式容器 */
.presentation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e3f2fd;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: flex-start; /* 默认从顶部开始，适合移动端 */
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    overflow: hidden;
}

.presentation-container.active {
    display: flex;
}

.presentation-content {
    width: 100%;
    height: 85%;
    display: flex;
    justify-content: flex-start; /* 默认从顶部开始，适合移动端 */
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

#presentation-text {
    font-size: 2.5rem;
    font-weight: bold; /* 加粗字体 */
    line-height: 1.4;
    color: #333;
    text-align: center;
    padding: 0.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
    align-self: flex-start; /* 默认从顶部开始，适合移动端 */
}

.presentation-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
}

.presentation-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    color: #0d6efd;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.presentation-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

/* 自动滚动按钮的样式 */
#auto-scroll-presentation {
    transition: all 0.3s ease;
}

#auto-scroll-presentation.scrolling {
    background-color: #4483c3;
    color: white;
    animation: scrollingPulse 2s infinite;
}

@keyframes scrollingPulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 横屏媒体查询，针对展示模式 */
@media (orientation: landscape) {
    .presentation-container.active {
        flex-direction: row;
        padding: 0.5rem 1.5rem;
        justify-content: space-between;
    }
    
    .presentation-content {
        height: 100%;
        width: 80%;
        margin-bottom: 0;
    }
    
    .presentation-controls {
        flex-direction: column;
        height: 100%;
        justify-content: center;
        gap: 2rem;
        margin-top: 0;
        margin-left: 1rem;
        width: auto;
    }
    
    #presentation-text {
        font-size: 2.5rem;
        padding: 0.5rem;
    }
}

/* 电脑端的展示模式样式 */
@media (min-width: 481px) {
    .presentation-container {
        justify-content: center !important; /* 电脑端上下居中 */
        padding: 1rem;
    }
    
    .presentation-content {
        justify-content: center !important; /* 电脑端上下居中 */
        align-items: center !important;
        height: 80% !important;
        overflow-y: auto;
    }
    
    #presentation-text {
        align-self: center !important; /* 电脑端居中显示 */
        padding: 1rem;
        max-height: none !important;
        display: block !important;
    }
}

/* 实时识别区域 */
.realtime-section {
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.realtime-recognition {
    min-height: 40px;
    padding: 10px;
    background-color: rgba(0,123,255,0.05);
    border-left: 3px solid #007bff;
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    word-break: break-word;
    transition: all 0.3s ease;
}

.realtime-recognition:empty {
    display: block;
    border-color: #ccc;
    background-color: #f8f8f8;
    color: #888;
}

.realtime-recognition:empty::before {
    content: "正在等待语音输入...";
    font-style: italic;
    color: #999;
}