* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    background-color: #000;
}

.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left bottom;
}

.logo-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    padding: 15px 40px; /* 与右侧容器对齐 */
}

.logo-text {
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.buttons-container {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center; /* 确保所有元素在水平中心线上对齐 */
    gap: 25px;
    padding: 15px 40px; /* 稍微减小上下内边距使布局更紧凑 */
    border: 1.5px solid #ffffff;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 25px;
    border-top-left-radius: 25px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.nav-button {
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-button:hover {
    opacity: 0.7;
}

.nav-button.current-page {
    font-weight: 600; /* 与普通按钮保持一致，不再加粗 */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.nav-button.ai-service-active {
    font-weight: 600; /* 保持一致 */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.center-buttons-container {
    position: absolute;
    top: 48%;  /* 调整这个值来改变垂直位置：值越小越靠上 */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0.95;
    transition: opacity 0.3s ease;
    min-width: 600px;
    max-width: 90vw;
}

.center-buttons-container:hover {
    opacity: 1;
}

.center-button {
    color: white;
    font-size: 70px;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: none;
    border: none;
    padding: 25px 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.6; /* 文字透明度，可调整 0-1 之间的值 */
}

.center-button:hover {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.live-text-container {
    position: relative;
    display: inline-block;
}

.live-text {
    position: absolute;
    top: 37%;  /* 置于"此刻"按钮上方，可独立调整 */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    line-height: 0.8;
    white-space: normal;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 11;
}

.delicacy-text-container {
    position: relative;
    display: inline-block;
}

.delicacy-text {
    position: absolute;
    top: 40%;  /* 置于"美食"按钮上方，可独立调整 */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 28px;
    font-weight: 580;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 11;
}

.shopping-text-container {
    position: relative;
    display: inline-block;
}

.shopping-text {
    position: absolute;
    top: 40%;  /* 置于"购物"按钮上方，可独立调整 */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 28px;
    font-weight: 580;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 11;
}

.my-airside-text-container {
    position: relative;
    display: inline-block;
}

.my-airside-text {
    position: absolute;
    top: 40%;  /* 置于"我的"按钮上方，可独立调整 */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 28px;
    font-weight: 580;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 11;
}

@media (max-width: 768px) {
    .center-buttons-container {
        gap: 20px;
        min-width: 400px;
    }
    
    .center-button {
        font-size: 16px;
        padding: 6px 10px;
    }
}

video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-timeline {
    display: none !important;
}

video::-webkit-media-controls-current-time-display {
    display: none !important;
}

video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

/* 欢迎区域样式 */
.welcome-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #FFFFFF;
    transition: opacity 0.5s ease;
}

body.chat-active .welcome-section {
    display: none !important;
}

body.chat-active .slideshow-container {
    display: none !important;
}

body.chat-active .video-container {
    background-image: url('../img/8.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* body.chat-active {
    /* background-image: url('../img/8.jpg') !important;
    /* background-size: 100% 100% !important; 完整拉伸平铺 */
    /* background-position: center;
    background-color: transparent; */ 
/* } */ 

.welcome-section h1 {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.welcome-section p {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.welcome-button {
    display: inline-block;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #FFFFFF;
    border-radius: 30px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    font-family: inherit;
}

.welcome-button:hover {
    background: #FFFFFF;
    color: #000000;
    text-shadow: none;
}

/* FaceID 模态框样式 */
.faceid-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.faceid-modal.active {
    display: flex;
}

.faceid-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.faceid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.faceid-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.faceid-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.faceid-video-container {
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

#faceVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* 镜像翻转 */
}

.faceid-status {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.faceid-btn {
    background: #a1887f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.faceid-btn:hover {
    background: #8d6e63;
}
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* 使图片完整拉伸平铺整个屏幕，不裁剪 */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

video::-webkit-media-controls-timeline-container {
    display: none !important;
}

video::-webkit-media-controls-volume-slider {
    display: none !important;
}

video::-webkit-media-controls-mute-button {
    display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* AI客服聊天对话框样式 */
.chat-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1100px;
    height: 800px;
    background: #fffaf0;
    border: 2px solid #a1887f;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.5s ease;
}

body.chat-active .chat-dialog {
    display: flex;
    position: fixed;
    top: 63px !important;
    left: 0;
    transform: none;
    width: 100vw;
    height: 100vh;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
}


.chat-dialog.active {
    display: flex;
}

.chat-content-right {
    display: none;
}

body.chat-active .chat-content-right {
    display: flex;
    flex-direction: column;
    width: 450px;
    height: 80vh;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    margin-right: 180px;
    margin-left: auto;
    margin-top: 105px;
    align-self: flex-start;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 1001;
}

.chat-header {
    background: linear-gradient(135deg, #a1887f, #d7ccc8);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0; /* Header height fixed */
}

.chat-avatar-container {
    width: 100%;
    height: 60%; /* Avatar takes 60% of the modal height (approx 80% of content area) */
    background: #fffaf0;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

body.chat-active .chat-avatar-container {
    width: 60%;
    height: 100vh;
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 1001;
    bottom: 50px;
}

.chat-title {
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1; /* Remaining space */
    height: 25%; /* Explicitly small */
    padding: 15px;
    overflow-y: auto;
    background: white;
}

body.chat-active .chat-messages {
    background: transparent;
    height: auto;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message .message-content {
    background: #f5f5f5;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #a1887f, #d7ccc8);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-input-container {
    display: flex;
    padding: 15px;
    background: #fffaf0;
    border-top: 1px solid #e0e0e0;
    gap: 10px;
    flex-shrink: 0; /* Input area fixed */
}

body.chat-active .chat-input-container {
    background: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #a1887f;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input:focus {
    border-color: #6d4c41;
    box-shadow: 0 0 0 2px rgba(109, 76, 65, 0.1);
}

.send-btn {
    background: #a1887f;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.send-btn:hover:not(:disabled) {
    background: #6d4c41;
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 15px 15px;
    background: #fffaf0;
}

.quick-reply {
    background: #f8f9fa;
    border: 1px solid #a1887f;
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #6d4c41;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-reply:hover {
    background: #a1887f;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chat-dialog {
        width: 90vw;
        height: 70vh;
        max-width: 350px;
        max-height: 500px;
    }
}
