/* Global Styles */
* {
    /* transition: all 0.3s ease; */
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

/* 定义滚动条的宽度和高度 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* 定义滚动条的轨道 */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* 定义滚动条的滑块 */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

/* 当鼠标悬停在滑块上时 */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    /* 新增：确保html元素充满整个屏幕高度 */
    font-family: 'Open Sans', "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Tahoma, Arial;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f3f5fc;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

/* a:hover {
    color: inherit;
} */

img {
    pointer-events: none;
}

p,
h2 {
    padding: 0;
    margin: 0;
}

/* Header Styles */
/* header {
    color: #31333F;
    padding: 10px 0;
    text-align: center;
} */

/* Main Content Styles */

.header {
    display: block;
    width: 100%;
    padding: 0 16px;
}

.header svg {
    display: none;
}

.container {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 48px;
}

.image-container {
    display: flex;
    justify-content: center;
    /* 水平居中图片 */
    align-items: center;
    /* 垂直居中图片 */
    flex-direction: column;
    gap: 24px;
    width: 90%;
}

.banner {
    height: auto;
    /* 保持图片的原始宽高比 */
    border: 1px solid #fff;
    max-width: 840px;
    width: 100%;
    border-radius: 32px;
    min-height: 100px;
    object-fit: cover;
}

h1 {
    font-size: 24px;
    line-height: 100%;
    font-weight: 600;
    color: #31333F;
    text-align: center;
    margin: 0;
}

.typing {
    width: 23ch;
    animation: typing 2s steps(23), blink .5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    font-family: monospace;
    font-size: 22px;
}

@keyframes typing {
    from {
        width: 0
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

.centered-content {
    max-width: 840px;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 24px;
}

.btnGroup {
    max-width: 840px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.btnBig {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 0;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0px 8px 24px 0px #0000000D;
    border-radius: 32px;
    border: 1px solid rgb(255 255 255 / 70%);
    outline: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease-in-out;
}

.btnBig:hover {
    border: 1px solid #fff;
    transform: scale(1.05);
    box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.1);
}

.btnMin {
    padding: 8px 24px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease-in-out;
}

.btnMin:hover {
    background: rgba(81, 86, 105, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.48);
    transform: scale(1.024) translate3d(0px, 0px, 0px) perspective(1px);
}

.primary-text {
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 8px;
    text-align: center;
    color: #31333F;
}

.secondary-text {
    font-size: 14px;
    color: #31333F;
    opacity: .6;
    text-align: center;
    padding: 0 16px;
    /* position: absolute;
    bottom: 5px; */
}


/* Footer Styles */
footer {
    color: #31333F;
    opacity: .6;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
    /* 关键：自动将页脚推到底部 */
}

/* .animation-wrapper {
    width: 50%;
    padding-bottom: 50%;
  } */

.sphere-animation {
    position: fixed;
    z-index: -1000;
    top: 100%;
    left: 50%;
    width: 580px;
    height: 580px;
    margin: -290px 0 0 -290px;
    overflow: hidden;
}

.sphere path {
    fill: #becae324;
    /* fill: url(#sphereGradient); */
    stroke-width: 1px;
    stroke: rgba(215, 215, 215, 0.35);
    backface-visibility: hidden;
}

/* Chat Content Styles */


/* 隐藏弹窗 */
.modal-overlay {
    /* display: none; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 半透明背景 */
    z-index: 1000;
    /* 确保在其他元素之上 */
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-radius: 32px;
    background: #FFF;
    box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.16);

    h2 {
        color: #060607;
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 0;
    }
}

.info {
    display: flex;
    width: 400px;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;

    border-radius: 8px;
    border: 1px solid #C4CBFD;
    background: #E3ECFB;
    font-size: 14px;
}

.ask-info {
    display: flex;
    padding: 16px;
    align-items: center;
    gap: 8px;

    border-radius: 8px;
    border: 1px solid #C4CBFD;
    background: #E3ECFB;
    font-size: 14px;
}

.dropdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

input,
select {
    display: flex;
    width: 400px;
    height: 40px;
    padding-left: 16px;
    justify-content: space-between;
    align-items: center;

    border-radius: 8px;
    background: #F1F2F6;
    border: none;

    color: #060607;
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    /* 100% */
}

.dropdown select {
    -webkit-appearance: none;
    /* 对于WebKit浏览器 */
    -moz-appearance: none;
    /* 对于Mozilla浏览器 */
    appearance: none;
    padding-right: 30px;
    /* 留出空间给自定义箭头 */
    background-image: url('/public/arrowdown.svg');
    /* 假设这是你的自定义箭头图标 */
    background-repeat: no-repeat;
    background-position: right 10px center;
    /* 控制右边距是10px */
}

.dropdown input {
    padding-left: 16px;
    padding-right: 16px;
}

input {
    width: 400px;
    padding: 0;
    outline-style: none;
}

/* input::placeholder {
    padding-left: 16px;
} */

label {
    color: #060607;
    font-size: 14px;
    font-weight: 500;
}

.upload {
    height: 140px;
    /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px; */
    display: block;
    align-content: center;
    align-self: stretch;

    border-radius: 8px;
    background: #F1F2F6;
    color: #060607;
    text-align: center;
    text-align: -webkit-center;
    font-size: 14px;
    cursor: pointer;
}

.upload:hover {
    border-radius: 8px;
    border: 1px solid #C4CBFD;
    background: #E3E6F0;
}

.uploaded {
    border: 1px solid #C4CBFD;
}

.reupload {
    width: fit-content;
    margin-top: 8px;
    display: flex;
    padding: 4px 8px 4px 2px;
    align-items: center;
    gap: 4px;
    border-radius: 4px;

    color: #06F;
    font-size: 14px;
    justify-content: center;
}

/* .reupload:hover {
    border-radius: 8px;
    background: #FFFFFF;
} */

.text-button {
    font-size: 14px;
    color:#0066FF;
}

#close-modal {
    display: flex;
    padding: 12px 24px;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    background: #060607;
    color: #FFF;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

#close-modal:hover {
    background: #31333F;
}

/* Chat */
.docker {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    border-radius: 16px;
    background: #FFF;
    box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.16);
    z-index: 100;
}

.docker-button {
    display: flex;
    padding: 2px;
    padding-right: 4px;
    align-items: center;
    gap: 4px;

    color: #060607;
    font-size: 12px;
    cursor: pointer;
}

.docker-button:hover {
    border-radius: 8px;
    background: #E5E7EB;
}

.docker-divider {
    width: 88px;
    height: 1px;
    background: #EEE;
}

.qrcode {
    display: none;
    padding: 8px;
    border-radius: 12px;
    background: #FFF;
    box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.16);
    position: absolute;
    left: -14px;
    bottom: -161px;
    animation: all 0.3s ease;
    font-size: 10px;
    text-align: center;
    animation: fade .3s ease 1;
}

.specialist:hover .qrcode {
    display: block;
}

@keyframes fade {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.chat-container {
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
    min-height: 460px;
}

.input-group {
    width: min-content;
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.chat-title {
    color: #060607;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.chat-group {
    width: 704px;
    position: relative;
    flex: 1 1 0%;
    height: 100%;
    overflow: auto;
    scrollbar-width: none;
}

.chatbox {
    display: flex;
    padding: 16px;
    align-items: flex-start;
    gap: 12px;
}

.chat-avatar {
    display: flex;
    padding: 12px 0px;
    align-items: flex-start;
    gap: 8px;
}

.chat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
}

.chat-log {
    display: flex;
    width: fit-content;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 12px;
    background: #FFF;

    align-self: stretch;
    color: #060607;
    font-size: 14px;
    font-style: normal;
    line-height: 160%;
    /* 21px */
}

.chat-log h1,
h2,
h3,
h4,
h5,
h6 {
    /* font-family: "TimesNewRomanPS-ItalicMT", "PingFang SC", "Lantinghei SC", "Microsoft Yahei", "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans; */
    /*font-family: "PingFang SC", "Lantinghei SC", "Microsoft Yahei", "Hiragino Sans GB", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans;*/
    -webkit-font-smoothing: initial;
    font-weight: 600;
    line-height: 1.35;
    font-variant-numeric: lining-nums;
    margin-bottom: 8px;
}

.chat-log p {
    margin-bottom: 16px;
    white-space: normal;
    word-wrap: break-word;
}

.chat-log p:last-child {
    margin-bottom: 0;
}

.chat-log ul {
    padding-left: 16px;
    margin-bottom: 16px;
    margin-left: 16px;
}

.chat-log ol {
    padding-inline-start: 32px;
}

.chat-log li {
    margin-bottom: 8px;
}

/* 去掉各Table cell 的边距并让其边重合 */
.chat-log table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 16px;
}

.chat-log table th {
    font-weight: 600;
}

.chat-log table th,
td {
    padding: 8px 8px;
    border: 1px solid #d0d7de;

}

.chat-log table tr {
    background-color: #ffffff;
    border-top: 1px solid hsla(210, 18%, 87%, 1);
}

.chat-log table tr:nth-child(2n) {
    background-color: #f6f8fa;
}

.chat-log table img {
    background-color: transparent;
}

.chat-log table:last-child {
    margin-bottom: 0;
}

.chat-log a {
    background-color: transparent;
    color: #06F;
    text-decoration: none;
}

/* 去除默认边框 */
.chat-log fieldset,
img {
    border: 0;
}

/* 块/段落引用 */
.chat-log blockquote {
    position: relative;
    color: #999;
    font-weight: 400;
    border-left: 1px solid #1abc9c;
    padding-left: 16px;
    margin: 16px 32px 16px 32px;
}



.chat-actions {
    /* display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; */
    align-self: stretch;

    p {
        color: rgba(6, 6, 7, 0.4);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin-bottom: 8px;
    }
}

.chat-button-group {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    gap: 8px;
    align-self: stretch;
    flex-wrap: wrap;
}

.chat-button {
    display: flex;
    padding: 12px 24px;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    background: #060607;

    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.chat-button:hover {
    background: #31333F;
}

/* input */
.chat-input {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
}

.input-button-group {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    gap: 8px;
    align-self: stretch;
    flex-wrap: wrap;
}

.input-box {
    display: flex;
    width: 720px;
    gap: 8px;
    padding: 6px 8px 6px 16px;
    justify-content: space-between;
    align-items: center;

    border-radius: 51px;
    border: 2px solid rgba(0, 0, 0, 0.16);
    background: #FFF;

    input {
        width: 100%;
        padding: 0;
        background: none;
        height: auto;
        border-radius: 0;
    }
}

.send-button {
    display: flex;
    padding: 4px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
}

.send-button:hover {
    background-color: #E5E7EB;
}

.send-button-disabled {
    display: flex;
    padding: 4px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
}

/* loading */
.spinner-box {
    width: 21px;
    height: 21px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.leo-border-1 {
    position: absolute;
    width: 32px;
    height: 32px;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgb(63, 249, 220);
    background: linear-gradient(0deg, rgba(63, 249, 220, 0.1) 33%, rgba(63, 249, 220, 1) 100%);
    animation: spin3D 1.8s linear 0s infinite;
}

.leo-core-1 {
    width: 100%;
    height: 100%;
    background-color: #37474faa;
    border-radius: 50%;
}

.leo-border-2 {
    position: absolute;
    width: 32px;
    height: 32px;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgb(251, 91, 83);
    background: linear-gradient(0deg, rgba(251, 91, 83, 0.1) 33%, rgba(251, 91, 83, 1) 100%);
    animation: spin3D 2.2s linear 0s infinite;
}

.leo-core-2 {
    width: 100%;
    height: 100%;
    background-color: #1d2630aa;
    border-radius: 50%;
}

@keyframes spin3D {
    from {
        transform: rotate3d(.5, .5, .5, 360deg);
    }

    to {
        transform: rotate3d(0deg);
    }
}

.spinner {
    position: absolute;
}

/* multiply select  */
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-radius: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: none;
    outline: 0;
}

.select2-container--default .select2-selection--multiple {
    background: #F1F2F6;
    border: none;
    border-radius: 8px;
    padding-bottom: 4px;
    padding-right: 4px;
    min-height: 40px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #FFFFFF;
    margin-left: 4px;
    margin-top: 4px;
    padding-left: 4px;
    border-radius: 6px;
    font-size: 14px;
    height: 32px;
    align-content: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: relative;
    left: auto;
    top: auto;
    border-right: none;
}

.select2-container--open .select2-dropdown--below {
    border-radius: 8px;
}

.select2-container .select2-search--inline .select2-search__field {
    height: 25px;
    font-size: 14px;
    vertical-align: middle;
}

.select2-dropdown {
    width: 400px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0px 12px 32px 0px rgba(0, 0, 0, 0.16);
}

.select2-results__option--selectable {
    cursor: pointer;
    margin-bottom: 4px;
    padding: 8px;
    margin-right: 8px;
}

.select2-container--default .select2-results__option--selected {
    background-color: #E5E7EB;
    border-radius: 8px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #31333F;
    color: white;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .container {
        margin: 10px;
    }

    .chat-group{
        width: auto;
    }

    .docker {
        display: none;
    }

    .input-group {
        width: 100%;
    }

    .input-box{
        width: 100%;
    }
}

@media (max-width: 480px) {

    .header {
        display: flex;
        justify-content: space-between;
    }

    .header svg {
        display: block;
    }

    .container {
        margin: 5px;
        justify-content: flex-start;
        padding-top: 32px;
    }

    .centered-content {
        flex-direction: column;
    }

    .btnBig {
        padding: 32px 0;
    }

    .docker {
        display: none;
        top: 48px;
        transform: none;
    }

    .info {
        width: 294px;
    }

    .input, select {
        width: 294px; 
    }

    .dropdown input {
        width: 294px;
    }

    .select2-dropdown {
        width: 294px;
    }


}