body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    /* max-width: 1600px; */
    width: 90%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1,
h2 {
    color: #333;
}

select,
button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #4483c3;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3d76b0;
}

.info {
    margin: 20px 0;
}

.collapsible {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
}

.active,
.collapsible:hover {
    background-color: #ccc;
}

.content {
    padding: 0 10px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
}

.flex-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    font-size: 14px;
}

/* 为按钮组容器添加样式 */
.flex-container>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.response {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    gap: 10px;
}

/* 基础样式 */
.response-container {
    display: flex;
    gap: 5px;
    /* 元素间距 */
    margin: 5px;
}

.splitres {
    display: flex;
    flex: 1;
    /* 新增：使两个.splitres平分可用空间 */
    flex-direction: column;
    /* 如果您希望内部元素垂直排列 */
}

#inputtag,
#outputtag {
    margin: 0px
}

#whisper-response,
#gpt-response {
    /* display: flex; */
    flex: 1;
    /* 使两个框平分可用空间 */
    min-height: 200px;
    max-height: 90vh;
    /* 最大高度，根据需要调整 */
    overflow-y: auto;
    /* 内容超出时显示滚动条 */
    border: 1px solid #a7a7a7;
    /* 边框，可根据需要调整 */
    border-radius: 10px;
    padding: 5px;
    /* 内边距 */
    font-size: 30px;
    position: relative;
    margin-block-start: 0px;
    margin-block-end: 0px;
}

#gpt-response p {
    margin-block-start: 0;
    /* 去掉段落的上边距 */
    margin-block-end: 0;
    /* 去掉段落的下边距 */
}

.fullscreen .response-container {
    flex-direction: row;
}

@media (max-width: 600px) {
    .response-container {
        flex-direction: column;
        gap: 5px;
    }

    #whisper-response,
    #gpt-response {
        margin: 0px;
        max-height: 45vh;
        /* 最大高度，根据需要调整 */
    }

    .fullscreen .response-container {
        flex-direction: column;
        gap: 5px
    }

    .fullscreen #whisper-response,
    .fullscreen #gpt-response {
        width: 100%;
        max-height: 48vh;
        /* 各占高度的一半 */
        padding: 2px;
        margin: 0px;
    }
}

#fullscreenButton,
#cleanMemoryButton {
    width: auto;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin: 5px;
    display: inline-block;
}

#gpt-response:hover #copy-btn {
    display: block;
}

#copy-btn {
    display: none;
    /* 默认不显示，只有在 hover 时显示 */
    position: absolute;
    bottom: 5px;
    /* 调整到合适的位置 */
    right: 10px;
    /* 调整到合适的位置 */
    padding: 5px 10px;
    /* 按钮内边距 */
    font-size: 12px;
    /* 文字大小 */
    max-width: 60px;
    border: 1px solid #ccc;
    /* 示例边框 */
    cursor: pointer;
    /* 鼠标悬停时显示手形图标 */
}

#records {
    max-height: 400px;
    overflow-y: auto;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
}

#downloadButton,
#summaryDownloadButton {
    width: auto;
    padding: 10px 20px;
    margin: 10px 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #4483c3;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    /* 保持子元素在容器中心对齐 */
    justify-content: flex-start;
    /* 按钮从左侧开始排列 */
}

#connectButton {
    width: 75%;
    /* Connect按钮占据75%的宽度 */
    margin-right: 10px;
    /* 为了保持间距美观，添加右边距 */
}

#reConnectButton {
    width: 25%;
    /* Reset按钮占据25%的宽度 */
}

.switch {
    position: relative;
    display: inline-block;
    width: 43px;
    /* 缩小后的宽度 */
    height: 24px;
    /* 缩小后的高度 */
    margin-bottom: 8px;
    /* 调整边距以适应新尺寸 */
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
    /* 调整圆角以适应新高度 */
}

.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    /* 缩小后的高度 */
    width: 19px;
    /* 缩小后的宽度 */
    left: 3px;
    /* 调整位置以适应新尺寸 */
    bottom: 3px;
    /* 调整位置以适应新尺寸 */
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    /* 保持圆形 */
}

input:checked+.slider {
    background-color: #4483c3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #3d76b0;
}

input:checked+.slider:before {
    transform: translateX(19px);
    /* 调整移动距离以适应新尺寸 */
}

#whisper-audio-player {
    display: none;
    /* 初始隐藏 */
}

.query-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #4483c3;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.query-button:hover {
    background-color: #3d76b0;
}

#todo-section {
    margin-top: 20px;
}

#toggle-todo-table {
    width: auto;
    padding: 10px 20px;
    margin-bottom: 10px;
}

#todo-table {
    width: 100%;
    border-collapse: collapse;
}

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

#todo-table th {
    background-color: #f2f2f2;
}

#todo-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#todo-table tr:hover {
    background-color: #f5f5f5;
}

/* Header styles removed since header is hidden to save space */
/*
.header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.company-logo {
    width: 80px;
    height: auto;
}

.title-info {
    text-align: left;
}

.title-info h1 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

.company-info {
    color: #666;
}

.company-info p {
    margin: 5px 0;
    font-size: 14px;
}
*/

/* 模态对话框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
}

.device-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-item:hover {
    background-color: #e0e0e0;
}

.device-item.selected {
    background-color: #d0e8ff;
    border: 1px solid #4483c3;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.button-container button {
    flex: 1 0 auto;
    min-width: 120px;
    max-width: 200px;
    margin: 5px 0;
}

.direct-connect-info {
    margin: 5px 0 15px 0;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

#preferredDeviceDisplay {
    margin-top: 5px;
    color: #4483c3;
}