body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
}

html {
    height: 100%;
}

#user-input::placeholder {
    /* font-size: 1.5em;  */
    color: gray; /* 可选：调整颜色 */
    opacity: 1; /* 确保占位符清晰 */
}

#chat-container {
    position: relative; 
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 0px;
    overflow-y: auto;
    height: 100%;
}
#bgVideo {
    position: relative;
    top: 0px;
    /* left: 10px; */
    width: calc(100%); /* 让视频宽度等于 #chat-container */
    /* max-height: 100%; 让视频高度等于 #chat-container */
    /* height: calc(100% - 60px); */
    object-fit: cover; /* 让视频填充整个容器，不变形 */
    border-radius: 5px; /* 保持和 #chat-container 一样的圆角 */
    z-index: -1; /* 让视频在最底层 */
}
#chat-messages {
    position: relative;
    z-index: 1; /* 确保聊天内容在视频上方 */
    padding: 10px;
    color: black; /* 确保文字可见 */
}
.recognize-start{
    display:flex;
    justify-content: space-between;
}
#start {
    /* bottom: 15%; /* 距离底部 20px */
    flex-grow: 1;
    font-size: 1em; /* 文字大小 */
    border-radius: 15px; 
    background: linear-gradient(to bottom, #3399ff, #80b3ff); 
}
#stop {
flex-grow: 1;
font-size: 1em;
border-radius: 15px;
background: linear-gradient(to bottom, #ff3333, #ff6666); /* 红色渐变 */
margin-left: 10px;
cursor: pointer;
border: none;
color: white;
}

#stop:disabled {
background: #ccc !important;
cursor: not-allowed;
}
#send-btn{
    border-radius: 10px; 
    background: linear-gradient(to bottom, #3399ff, #80b3ff);
    width:24%;
    float:right;
    /* height:2em; */
    padding:10px;
    font-size: 1em;
}
.input-group
{
    width:100px;
    display: flex;
    justify-content: space-between;
}

.message {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 70%;
    display: flex;
    align-items: flex-start;
    align-items: center;
    font-size: x-large;
    line-height: 1.5em;
}
.user-message {
    background-color: rgba(0, 0, 0, 0.5);
    margin-left: auto;
    max-width: 60vw;
    height: auto;
    align-items: center;
    flex-direction: row-reverse;
    display: flex;
    flex-direction: column; 
    padding: 8px 12px; 
    color: white;
    border-radius: 10px;
    position: relative; 
    top: 30px;
}
.ai-message {
    background-color: rgba(0, 0, 0, 0.5);
    flex-direction: column;
    display: flex;
    height: auto;
    border-radius: 10px;
    overflow-y: auto;
    /* max-height: 400px; */
    position: relative;
    top: 20px;
    --xcut: 8px;
    --ycut: 8px;
    padding: 1ch;
    color: white;
    /* border: 1px solid red; */
    max-width: 60vw;
    @media (width < 700px) {
        max-width: 70vw;
    }
/* 设置 clip-path */
clip-path: polygon(
0% 0%, 
calc(100% - var(--xcut)) 0%, 
100% var(--ycut), 
100% calc(100% - var(--ycut)), 
calc(100% - var(--xcut)) 100%, 
0% 100%, 
0% 0%
);

/* 动画效果 */
transition: clip-path 0.3s ease;
}
.user-avatar {
    width: 8vw;
    height: 8vw;
    max-width: 90px;
    max-height: 90px;
    border-radius: 50%; /* 使头像成为圆形 */
    margin: 5px;
    display:flex;
    right: 0%;
}       
.ai-avatar {
    width: 8vw;
    height: 8vw;
    max-width: 90px;
    max-height: 90px;
    border-radius: 50%; /* 使头像成为圆形 */
    margin: 5px;
}
.message-wrapper-user {
display: flex;
height: auto;
align-items: start;
}

.message-wrapper-ai {
display: flex;
margin: 10px 0px;
align-items: start;
/* max-height:400px ; */
}
.seperator-10{
    width:100%;
    height:10px;
}
.seperator-30{
    width:100%;
    height:30px;
}
#input-container {
    width: 100%;
  
}
.input-group{
    width:100%;
}
#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    /* height: 2em; */
    width: 70%;
}
button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:disabled {
    background-color: #cccccc;
}

/* 隐藏音频控件 */
#audioPlayer {
    display: none; /* 不显示控制按钮 */
}
/* Markdown 表格样式 */
.ai-message table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.ai-message table, 
.ai-message th, 
.ai-message td {
    border: 1px solid #ddd;
}

.ai-message th, 
.ai-message td {
    padding: 8px;
    text-align: left;
}

.ai-message th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.ai-message p {
    margin: 0.5em 0;
}

.ai-message tr:nth-child(even) {
    background-color: #f9f9f9;
}

.question-suggestion-box {
    color: #25E7F5;
    /* border-radius: 20px 20px 20px 20px; */
    border: 2px solid;
    border-image: linear-gradient(90deg, rgba(96, 207, 217, 1), rgba(242, 186, 174, 1), rgba(82, 76, 244, 1)) 4 4;
    margin: 0.5em 1em 0.5em 0;
    padding: 0.5em;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.suggestion-text {
    text-wrap: nowrap;
}

.voice-textbox {
    color: white;
    background-color: #4FB5CC;
    min-height: 3ch;
    padding: 1ch;
    border: 0px solid transparent;
    border-radius: 6px;
    text-align: center;
    text-wrap: wrap;
    margin: 0 1ch;
}

.input-textbox {
    color: #4FB5CCCC;
    border: 1px solid #00CAFC;
    border-radius: 5px;
    background-color: #4FB5CCCC;
    position: absolute;
    top: 20%;
    left: 4ch;
    right: 14ch;
    font-size: 18px;
}

.input-textbox input {
    border: 0;
    margin: 0;
    padding: 0;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    padding: 2ch 5ch 2ch 1ch;
    color: white;
    font-size: inherit;
}

.input-textbox input::placeholder {
    color: #ffffff99;
}

.question-suggestion-icon {
    height: 1em;
    position: relative;
    top: 1px;
    margin-right: 0.5em;
}

.float-button {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1em;
}

.no-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scrollbar-color: transparent transparent;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.suggestion-btn {
    background-color: white;
    color: #4FB5CC;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease; /* 添加过渡效果 */
}

.suggestion-btn:hover {
    background-color: #4FB5CC; /* 悬浮时背景颜色变化 */
    color: white; /* 悬浮时文字颜色变化 */
}

.float-button-icon {
    width: 8vw;
    height: 8vw;
    max-width: 4em;
    max-height: 4em;
}




#more-suggestions{
    position: fixed; 
    inset: 35px; 
    z-index: 100; 
    height: 80%;
    background-image: url(/res/更多建议背景.png); 
    background-repeat: no-repeat; 
    background-size: cover;
    background-color: #cccccc;
    opacity: 1;
    padding: 20px 20px 20px 20px;
}
#more-suggestions.active{
    display: block;
}
#more-suggestions.inactive{
    display: none;
}

#settings {
    position: fixed; 
    inset: 35px; 
    z-index: 100; 
    height: 80%;
    background-image: url(/res/更多建议背景.png); 
    background-repeat: no-repeat; 
    background-size: cover;
    opacity: 1;
    padding: 20px 20px 20px 20px;
}
#settings.active {
    display: block;
}
#settings.inactive{
    display: none;
}

.suggestion-btn{
    padding: 10px 20px; 
    border-radius: 20px; 
    border: none; 
    cursor: pointer;
    color: #696A6A;
    background-color: #FFFFFF;
}
.suggestion-btn.selected{
    color: #000000;
    background-color: #3CCDED;
}
.suggestion-btn:hover {
    background-color: #3CCDED;; /* 悬浮时背景颜色变化 */
    color: white; /* 悬浮时文字颜色变化 */
}
.suggestion-list {
    overflow-y: scroll;
}
.suggestion-list .inactive{
    display: none;
}

.suggestion-list ul{
    padding-inline-start:0px;
}
.suggestion-list li{
    list-style-type: none;
    padding: 5px 10px 5px 10px;
    cursor: pointer;
    margin: 10px 0px;
    border-radius: 8px;
}
.suggestion-list li:hover {
    background-color: #3CCDED;
}
.suggestion-list li:hover .qu{
    color: #ffffff;
}
.suggestion-list li:hover span{
    color: #ffffff;
}

.suggestion-list .qu{
    color: #333333 ;
    font-weight: normal;
}
.suggestion-list li span{
    padding-right: 1em;
    color: #4FB5CC;
    font-weight: bold;
}

/* safari 禁用播放按钮 */
#backgroundVideo::-webkit-media-controls {
    display: none;
}
