
/* 对话框样式 */
#dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50rem;
    height: 40rem;
    padding: 0.6rem;
    background-color: rgb(255, 248, 248);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none; /* 初始状态下隐藏对话框 */
    z-index:9999999;
    border-radius: 0.5rem;
}
#dialog .close{
    position: absolute;
    right: 1rem;
    top: 1.4rem;
    width: 20px;
    height: 20px;
    background: url(../images/close.png) no-repeat center center/100% 100%;
    content: "";
    cursor: pointer;
}
@media (max-width:800px){
    #dialog{
        width: 80%;
    }
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
    width: 99%;
    margin: 0 auto;
    background: #f8fafc;
}

.app-header {
    padding: 1rem;
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem;
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.logo h1 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: black;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.message.user {
    flex-direction: row-reverse;
}

.avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message.user .avatar {
    background: #bfdbfe;
}

.message-content {
    max-width: 70%;
    min-width: 200px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.bubble {
    padding: 1rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
    position: relative;
}

.message.user .bubble {
    background: #3b82f6;
    color: white;
    border-radius: 1rem 1rem 0 1rem;
}

.text-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

@keyframes bounce {
    0%, 80%, 100% {
    transform: translateY(0);
    }
    40% {
    transform: translateY(-6px);
    }
}

.input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.input-wrapper {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
}

input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.send-button {
    background: #3b82f6;
    color: white;
}

.send-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.stop-button {
    background: #ef4444;
    color: white;
}

.error-actions {
    margin-top: 0.5rem;
}

.error-actions button {
    padding: 0.5rem 1rem;
    background: #f8d7da;
    color: #721c24;
    font-size: 0.875rem;
}

.swiper{
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.centerBig img{
    -webkit-animation-name:centerBig;
    animation-name:centerBig;
}
@-webkit-keyframes centerBig{
    100%{
        transform:scale(1.2,1.2);
    }
}
@keyframes centerBig{
    100%{
        transform:scale(1.2,1.2);
    }
}


.banner-box img{
	animation-duration:4s;
	animation-timing-function:linear;
	animation-fill-mode: both;
	-webkit-animation-duration:4s;
	-webkit-animation-timing-function:linear;
	-webkit-animation-fill-mode: both;
}	
.swiper-pagination{
	bottom:35px;
	right:250px;
}
.swiper-button-next{
    right:30px;
}
.swiper-pagination-bullet{
	width:20px;
	height:20px;
	background:#fff;
	margin:0 5px;
}

@media (max-width: 768px) {
    .chat-container {
        max-width: 100%;
    }

    .message-content {
        max-width: 85%;
    }

    .input-wrapper {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}