* {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#glCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: black;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 20vh;
    pointer-events: none;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5em;
    letter-spacing: 4px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.9),
        rgba(160, 220, 255, 0.9),
        rgba(100, 200, 255, 0.9)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        0 0 20px rgba(100, 200, 255, 0.5),
        0 0 40px rgba(100, 200, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(100, 200, 255, 0.8));
    }
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1em;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* 气泡样式 */
.bubbles-container {
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 100px);
    pointer-events: none;
    z-index: 100;
}

.bubble {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.bubble img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.bubble:hover {
    transform: scale(1.1);
    border-color: rgba(100, 200, 255, 0.4);
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.3);
}

.bubble:hover + .bubble-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.8);
}

/* 文本提示框样式 */
.bubble::after {
    content: attr(data-text);
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.bubble:hover::after {
    opacity: 1;
}

/* 聊天框样式 */
.chat-container {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: rgba(10, 20, 40, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chat-header {
    padding: 12px 20px;
    background: rgba(100, 200, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header span {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header svg {
    filter: drop-shadow(0 0 5px rgba(100, 200, 255, 0.5));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 2px rgba(100, 200, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 8px rgba(100, 200, 255, 0.8));
    }
}

.close-chat {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-chat:hover {
    color: rgba(100, 200, 255, 0.9);
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 自定义聊天消息滚动条 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 200, 255, 0.5);
}

/* 消息气泡样式 */
.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1em;
    line-height: 1.4;
    position: relative;
    animation: messageAppear 0.3s ease;
}

.message.user {
    align-self: flex-end;
    background: rgba(100, 200, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(100, 200, 255, 0.2);
    margin-left: 20%;
}

.message.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 20%;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-input {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(100, 200, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    border-color: rgba(100, 200, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-message {
    padding: 8px 20px;
    background: rgba(100, 200, 255, 0.2);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Rajdhani', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-message:hover {
    background: rgba(100, 200, 255, 0.3);
    border-color: rgba(100, 200, 255, 0.4);
}

/* About 模态框样式 */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-modal.active {
    opacity: 1;
}

.about-content {
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    background: rgba(10, 20, 40, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.1);
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.about-modal.active .about-content {
    transform: translateY(0);
}

.about-header {
    position: sticky;
    top: 0;
    padding: 20px 30px;
    background: rgba(100, 200, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.about-header h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    letter-spacing: 2px;
}

.close-about {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-about:hover {
    color: white;
}

.about-body {
    padding: 30px 40px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.8;
}

.about-body p {
    margin: 15px 0;
}

.about-body ul {
    margin: 15px 0;
    padding-left: 20px;
    list-style-type: none;
}

.about-body ul li {
    margin: 10px 0;
    position: relative;
    padding-left: 20px;
}

.about-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(100, 200, 255, 0.8);
}

.about-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    color: rgba(100, 200, 255, 0.9);
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}

.about-intro {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    padding: 20px;
    border-left: 3px solid rgba(100, 200, 255, 0.5);
    background: rgba(100, 200, 255, 0.05);
}

.about-section {
    margin: 40px 0;
}

.about-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: rgba(100, 200, 255, 0.9);
    font-size: 1.5em;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(100, 200, 255, 0.3);
}

.tech-item, .app-item {
    margin: 30px 0;
    padding: 20px;
    background: rgba(100, 200, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.tech-item:hover, .app-item:hover {
    transform: translateX(10px);
    background: rgba(100, 200, 255, 0.08);
}

.tech-item h4, .app-item h4 {
    color: rgba(100, 200, 255, 0.8);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.about-conclusion {
    margin-top: 40px;
    padding: 30px;
    background: rgba(100, 200, 255, 0.08);
    border-radius: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

/* 自定义滚动条 */
.about-content::-webkit-scrollbar {
    width: 10px;
}

.about-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.about-content::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 5px;
}

.about-content::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 200, 255, 0.5);
}

/* 添加聊天 LOGO 相关样式 */
.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    object-fit: contain;
    background: rgba(10, 20, 40, 0.3);
    transition: all 0.3s ease;
}

.chat-logo:hover {
    transform: rotate(360deg);
    background: rgba(100, 200, 255, 0.2);
}

/* 更新 header 样式以适应新的布局 */
.chat-header {
    padding: 12px 20px;
    background: rgba(100, 200, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 更新 Chat 气泡的图片样式 */
.chat-trigger img {
    width: 160px;  /* 与气泡大小一致 */
    height: 160px; /* 与气泡大小一致 */
    opacity: 0.9;
    border-radius: 50%;
    object-fit: contain;
    transition: all 0.3s ease;
    padding: 0;
    background: rgba(10, 20, 40, 0.3);
}

/* 更新气泡悬停效果 */
.chat-trigger:hover img {
    transform: scale(1.05) rotate(360deg); /* 添加旋转效果 */
    background: rgba(100, 200, 255, 0.2); /* 悬停时改变背景色 */
}

/* 更新气泡包装器样式 */
.bubble-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    pointer-events: auto;
    /* 增加高度以容纳文字 */
    height: 180px; /* 120px气泡 + 20px间距 + 40px文字空间 */
}

/* 更新气泡文字样式 */
.bubble-text {
    color: rgba(100, 200, 255, 0.9);
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
    white-space: nowrap;
    pointer-events: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* 气泡悬停效果 */
.bubble:hover {
    transform: scale(1.1);
    border-color: rgba(100, 200, 255, 0.4);
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.3);
}

.bubble:hover + .bubble-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.8);
}

/* 探索 AI 模态框样式 */
.explore-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.explore-content {
    width: 80%;
    max-width: 1200px;
    height: 80vh;
    background: rgba(10, 20, 40, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.1);
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
}

.explore-header {
    padding: 20px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(10, 20, 40, 0.95);
    z-index: 1;
}

.explore-header h2 {
    font-family: 'Orbitron', sans-serif;
    color: rgba(100, 200, 255, 0.9);
    font-size: 2em;
    letter-spacing: 2px;
}

.close-explore {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2em;
    cursor: pointer;
    padding: 0 10px;
}

.explore-body {
    padding: 30px;
    font-family: 'Rajdhani', sans-serif;
}

.explore-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(100, 200, 255, 0.05);
    border-radius: 15px;
}

.explore-section h3 {
    color: rgba(100, 200, 255, 0.9);
    margin-bottom: 20px;
    font-size: 1.5em;
    letter-spacing: 1px;
}

.explore-section p {
    margin: 15px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Innovation 模态框样式 */
.innovation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.innovation-content {
    width: 80%;
    max-width: 1200px;
    height: 80vh;
    background: rgba(10, 20, 40, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(100, 200, 255, 0.2);
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.1);
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
}

.innovation-header {
    padding: 20px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(10, 20, 40, 0.95);
    z-index: 1;
}

.innovation-header h2 {
    font-family: 'Orbitron', sans-serif;
    color: rgba(100, 200, 255, 0.9);
    font-size: 2em;
    letter-spacing: 2px;
}

.close-innovation {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2em;
    cursor: pointer;
    padding: 0 10px;
}

.innovation-body {
    padding: 30px;
    font-family: 'Rajdhani', sans-serif;
}

.innovation-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(100, 200, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.innovation-section:hover {
    transform: translateX(10px);
    background: rgba(100, 200, 255, 0.08);
}

.innovation-section h3 {
    color: rgba(100, 200, 255, 0.9);
    margin-bottom: 20px;
    font-size: 1.5em;
    letter-spacing: 1px;
}

.innovation-section p {
    margin: 15px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.bubble-wrapper a.bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.bubble-wrapper a.bubble:hover {
    transform: scale(1.1);
    border-color: rgba(100, 200, 255, 0.4);
    box-shadow: 0 0 40px rgba(100, 200, 255, 0.3);
}

.message.loading {
    color: rgba(100, 200, 255, 0.8);
    font-family: 'Orbitron', sans-serif;
    font-style: italic;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
}

.message.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
} 