

/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* Chrome/Safari */
    -moz-osx-font-smoothing: grayscale; /* Firefox */
    text-rendering: optimizeLegibility; /* 优化字体渲染，提升可读性 */
    font-feature-settings: "liga" on; /* 开启连字，优化文字排版 */
}

html, body {
    cursor: none !important; 
    width: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, sans-serif;
    background: #0F0F13;
    color: #EAEAEA;
    /* 开启3D变换，让倾斜效果更真实 */
    perspective: 1000px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* 防止滚动条出现 */
    overflow: hidden;
}
body,button,
a,.center-btn, .btn, nav a,
.logo-area, [onclick], [tabindex] {
    cursor: none;
}

/*光标*/
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(90deg, #00f7f3, #00ffaa);
    mix-blend-mode: lighten; /* 与背景混合更融合 */
    opacity: 0.8;
    z-index: 99999; /* 最高层级，确保在所有元素之上 */
    pointer-events: none; /* 不阻挡点击事件 */
    transition: 
        width 0.2s ease, 
        height 0.2s ease, 
        opacity 0.2s ease,
        background 0.2s ease;
    /* 3D效果贴合页面风格 */
    transform-style: preserve-3d;
    box-shadow: 0 0 15px rgba(0, 247, 243, 0.5);
}
/* 光标跟随的外圈（增强艺术感） */
.custom-cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 247, 243, 0.4);
    border-radius: 50%;
    z-index: 99998;
    pointer-events: none;
    opacity: 0.6;
    transition: 
        width 0.3s ease, 
        height 0.3s ease, 
        opacity 0.2s ease,
        border-color 0.2s ease;
    transform-style: preserve-3d;
}
/* 可交互元素hover时的光标样式 */
.custom-cursor.hover {
    width: 30px;
    height: 30px;
    opacity: 1;
    background: linear-gradient(90deg, #00ffaa, #00f35d);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.8);
}
.custom-cursor__ring.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(0, 255, 170, 0.8);
    opacity: 0.8;
}

/* 针对页面内的可交互元素（按钮、导航、中心按钮） */
.center-btn:hover ~ .custom-cursor,
nav a:hover ~ .custom-cursor,
.btn:hover ~ .custom-cursor,
.center-btn:hover ~ .custom-cursor__ring,
nav a:hover ~ .custom-cursor__ring,
.btn:hover ~ .custom-cursor__ring {
    /* 备用：如果JS的hover检测失效，用CSS相邻选择器兜底 */
    width: 30px;
    height: 30px;
}

/* 小屏适配：移动端隐藏自定义光标（保留系统光标） */
@media (max-width: 768px) {
    body {
        cursor: default;
    }
    .custom-cursor,
    .custom-cursor__ring {
        display: none;
    }
}

/* 输入框/文本域恢复选中文本，保证正常交互 */
input, textarea, select {
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}
/* ---------------- 1. 启动动画层（顶层，初始独占屏幕） ---------------- */
#start-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* 最高层级，覆盖所有内容 */
    background: #0F0F13;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto; /* 可交互（点击按钮） */
}
/* 启动动画完成后隐藏 */
#start-container.finish {
    opacity: 0;
    pointer-events: none; /* 不再响应点击 */
    z-index: -1; /* 彻底沉到最底层 */
}

/* 启动动画内的海浪画布 */
#customShape {
    width: 100%;
    height: 100%;
    display: block;
}

/* 启动动画中心按钮 - 仅修复触发范围，保留原有视觉样式 */
.center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    z-index: 10;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    /* 修复触发范围核心1：确保按钮是块级/行内块级，宽高生效 */
    display: block;
    /* 修复触发范围核心2：确保按钮可响应点击事件 */
    pointer-events: auto;
    /* 修复触发范围核心3：避免点击时文字选中（若有文字） */
    user-select: none;
}
.center-btn.hide {
    transform: translate(-50%, -150%) scale(0);
    opacity: 0;
}

/* ---------------- 2. 主内容层（初始全部隐藏） ---------------- */
/* 粒子背景 */
#particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease-in 0.3s; /* 延迟0.3s显示 */
}
#particle-container.active {
    opacity: 1;
}

/* 流动曲线背景 */
#waveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-in 0.3s;
}
#waveCanvas.active {
    opacity: 1;
}

/* 顶部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(15, 15, 19, 0.85);
    backdrop-filter: blur(12px);
    z-index: 999;
    border-bottom: 1px solid #1C1C22;
    opacity: 0;
    transform: translateY(-20px); /* 初始上移 */
    transition: all 0.8s ease-out 0.5s; /* 延迟0.5s入场 */
    /* 开启3D变换，支持倾斜 */
    transform-style: preserve-3d;
}
header.active {
    opacity: 1;
    transform: translateY(0);
}

/* Logo 区域 */
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    /* Logo跟随倾斜 */
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}
.header-logo-text {
    width: 70px;
    font-family: 'Kihim-Regular', sans-serif;
    font-size: 22px;
    text-align: center;
    background: linear-gradient(90deg, 
        #00f7f3 0%, 
        #00f35d 25%, 
        #00fae1 50%, 
        #00ffaa 75%, 
        #00f7f3 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    animation: flow 3s linear infinite;
}
.logo-text {
    font-family: 'Chillax-Semibold', sans-serif;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

nav {
    display: flex;
    gap: 24px;
    /* 导航文字跟随倾斜 */
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}
nav a {
    color: #BABAC1;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
nav a:hover {
    color: #fff;
}

/* 便当盒框架 - 主容器 */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px); /* 初始下移 */
    transition: all 0.8s ease-out 0.7s; /* 延迟0.7s入场（最后显示） */
    /* 开启3D变换，子元素跟随倾斜 */
    transform-style: preserve-3d;
}

/* 弹幕容器 */


/* 便当盒内容区域 */
.container-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 75px 20px 60px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: calc(100vh - 52.5px);
    scroll-behavior: smooth;
    /* 隐藏滚动条但保留滚动功能 */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 隐藏WebKit滚动条 */
.container-content::-webkit-scrollbar {
    display: none;
}
.container.active {
    opacity: 1;
    transform: translateY(0);
}
.home-container-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.home-container-content .btn {
  margin: 0 10px; /* 按钮之间的左右间距 */
}

/* 文字容器：内部垂直堆叠，水平居中 */
.text-wrapper {
  display: flex;
  flex-direction: column; /* 文本元素纵向排列 */
  align-items: center;    /* 文本水平居中 */
  justify-content: center;/* 文本垂直居中（相对于文字容器） */
  text-align: center;     /* 兜底：文字内容居中 */
}
/* 中间大LOGO文字 */
.main-logo-text {
    width: 300px;
    font-family: 'Kihim-Regular', sans-serif;
    font-size: 72px;
    background: linear-gradient(90deg, 
        #00f7f3 0%, 
        #00f35d 25%, 
        #00fae1 50%, 
        #00ffaa 75%, 
        #00f7f3 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    animation: flow 3s linear infinite;
    margin-bottom: 24px;
    /* 主Logo跟随倾斜 */
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

/* 流沙动画 */
@keyframes flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.main-title {
    font-family: 'Chillax-Semibold', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 72px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: 2px;
    color: #ffffff;

}

.slogan {
    font-size: 19px;
    color: #9A9AA3;
    margin-bottom: 52px;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

}


.btn {
    padding: 20px 42px;
    min-width: 150px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid #2A2A33;
    background: #1A1A20;
    color: #EAEAEA;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    pointer-events: auto;
    user-select: none;
    margin: 0 10px; /* 替代btn-group的gap，给按钮加左右间距 */
    margin-top: 8px; /* 垂直方向小间距（可选） */
}
.btn:hover {
    background: #25252D;
    color: #fff;
    transform: translateY(-2px);
}
.btn.primary {
    background: #ffffff;
    color: #0F0F13;
    border: 1px solid #fff;
}
.btn.primary:hover {
    background: transparent;
    color: #fff;
}

.footer {
    position: fixed;
    bottom: 24px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #666670;
    z-index: 10;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    opacity: 0;
    transition: opacity 0.8s ease-out 0.9s;
    /* 页脚跟随倾斜 */
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}
.footer.active {
    opacity: 1;
}

/* AI客服悬浮窗口 */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* AI客服按钮 */
.ai-assistant-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f7f3, #00f35d);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 247, 243, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-assistant-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 247, 243, 0.4);
}

.ai-assistant-button svg {
    width: 24px;
    height: 24px;
    color: #0F0F13;
}

/* AI客服气泡 */
.ai-assistant-bubble {
    position: absolute;
    bottom: 70px;
    left: -220px;
    background-color: rgba(26, 26, 32, 0.95);
    color: #00f7f3;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 999;
    max-width: 200px;
    text-align: center;
    border: 1px solid #00f7f3;
}

/* 气泡箭头 */
.ai-assistant-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: rgba(26, 26, 32, 0.95);
    transform: rotate(45deg);
    border-bottom: 1px solid #00f7f3;
    border-right: 1px solid #00f7f3;
}

/* 气泡动画 */
.ai-assistant-bubble.show {
    animation: bubbleAnimation 5s ease-in-out;
}

@keyframes bubbleAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* AI客服窗口 */
.ai-assistant-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: rgba(26, 26, 32, 0.95);
    border-radius: 10px;
    border: 1px solid #2A2A33;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.ai-assistant-window.active {
    display: flex;
}

/* AI客服窗口头部 */
.ai-assistant-header {
    padding: 15px 20px;
    border-bottom: 1px solid #2A2A33;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-assistant-header h3 {
    margin: 0;
    font-size: 16px;
    color: #EAEAEA;
}

.ai-assistant-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9A9AA3;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ai-assistant-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #EAEAEA;
}

/* AI客服窗口主体 */
.ai-assistant-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 消息样式 */
.ai-message,
.user-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ai-message {
    align-self: flex-start;
    background-color: rgba(15, 15, 19, 0.8);
    border-top-left-radius: 0;
}

.ai-message p {
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.ai-message p:last-child {
    margin-bottom: 0;
}

.user-message {
    align-self: flex-end;
    background-color: rgba(0, 247, 243, 0.2);
    border-top-right-radius: 0;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
    color: #EAEAEA;
}

/* AI客服窗口底部 */
.ai-assistant-footer {
    padding: 15px 20px;
    border-top: 1px solid #2A2A33;
    display: flex;
    gap: 10px;
}

.ai-assistant-footer input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #2A2A33;
    border-radius: 20px;
    background-color: rgba(15, 15, 19, 0.8);
    color: #EAEAEA;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.ai-assistant-footer input:focus {
    border-color: #00f7f3;
}

.ai-assistant-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #00f7f3;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ai-assistant-send:hover {
    transform: scale(1.1);
    background-color: #00f35d;
}

.ai-assistant-send svg {
    width: 20px;
    height: 20px;
    color: #0F0F13;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-assistant {
        bottom: 20px;
        right: 20px;
    }

    .ai-assistant-button {
        width: 50px;
        height: 50px;
    }

    .ai-assistant-button svg {
        width: 20px;
        height: 20px;
    }

    .ai-assistant-window {
        width: 300px;
        height: 400px;
        bottom: 60px;
    }

    .ai-assistant-header {
        padding: 12px 15px;
    }

    .ai-assistant-header h3 {
        font-size: 14px;
    }

    .ai-assistant-body {
        padding: 15px;
    }

    .ai-assistant-footer {
        padding: 12px 15px;
    }

    .ai-assistant-footer input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .ai-assistant-send {
        width: 36px;
        height: 36px;
    }

    .ai-assistant-send svg {
        width: 18px;
        height: 18px;
    }

    .message-content {
        font-size: 13px;
    }
}