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;
}
.response {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    font-size: 30px;
    position:relative
}
.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;
    align-items: left;
    font-size: 14px;
}
/* 基础样式 */
.response-container {
    display: flex;
    /* flex-wrap: wrap; */
    gap: 20px; /* 元素间距 */
}

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

.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 {
    display: none;
    position: absolute;
    width: 100px;
    top: 10px;
    right: 10px;
    color: white;
    border: none;
    padding: 5px 5px;
    cursor: pointer;
}

.response:hover #fullscreenButton {
    display: block;
}

#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-direction: row; /* 修改为横向排列 */
    align-items: center; /* 保持子元素在容器中心对齐 */
    justify-content: space-between; /* 在水平方向上分散对齐 */
}

#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); /* 调整移动距离以适应新尺寸 */
}

.switch-button {
    background-color: #4483c3;
    border: none;
    color: white;
    padding: 10px 4px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 4px;
    width: 60px;
}

.switch-button:focus {
    outline: none;
    box-shadow: 0 0 3px #3d76b0;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.product-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 400px;
    min-width: 180px;
    text-align: left;
}

.product-item img {
    max-width: 100%;
    height: auto;
}

.product-name {
    font-weight: bold;
    margin: 10px 0;
}

.product-price, .product-aisle, .product-score, .product-reason {
    margin: 5px 0;
}

.error {
    color: red;
    margin-top: 20px;
}

.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;
}
