body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #2a0066, #6a00ff);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden; /* 防止水平滚动 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.4); /* 半透明背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    padding: 15px 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    margin: 0;
    font-size: 1.8em;
    font-weight: bold;
}

.navbar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar nav ul li {
    margin-left: 30px;
}

.navbar nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
    color: #ffd700; /* 金色强调 */
}

.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 4em;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5em;
    animation: fadeInUp 1s ease-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(10px) translateX(-50%);
    }
}

.photo-carousel-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #1a0033, #3a0077); /* 与主背景区分开的深色渐变 */
}

.carousel-wrapper {
    position: relative;
    width: 80%; /* 或你想要的宽度 */
    max-width: 900px; /* 设置轮播容器的最大宽度 */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 600px; /* 轮播容器的高度 */
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%; /* 让图片容器占据整个wrapper高度 */
}

.carousel-images img {
    width: 100%;
    height: 100%; /* 让图片占据整个容器高度 */
    display: block;
    border-radius: 15px;
    object-fit: cover; /* 确保图片覆盖整个区域并保持比例 */
    flex-shrink: 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2em;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.prev-arrow::before {
    content: '‹'; /* Unicode 左箭头 */
}

.next-arrow::before {
    content: '›'; /* Unicode 右箭头 */
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dots .dot.active {
    background: #ffd700; /* 金色强调 */
}

footer {
    background: linear-gradient(135deg, #0f001a, #2a0066); /* 更深的渐变 */
    padding: 50px 0 20px;
    text-align: center;
}

.footer-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.social-icon {
    font-size: 3em;
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    vertical-align: middle;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #ffd700; /* 悬停时变为金色 */
}

.social-text {
    font-size: 0.8em; /* 将文字大小加大一倍 */
    color: #ffffff;
    font-weight: bold;
    display: inline-block; /* 将display改为inline-block以更好地与其他图标对齐 */
    line-height: normal;
}

/* 对话模式样式 */
.dialogue-mode-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a001f, #1a0033); /* 深色背景 */
    display: none; /* 默认隐藏 */
    z-index: 2000; /* 确保在最上层 */
    color: #e0e0e0;
}

.dialogue-mode-container.active {
    display: flex; /* 激活时显示为flex布局 */
}

.dialogue-sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.4); /* 侧边栏半透明背景 */
    backdrop-filter: blur(8px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #ffd700;
}

.sidebar-title {
    font-size: 1.6em;
    margin: 10px 0 5px;
    color: #fff;
}

.sidebar-intro {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.new-chat-button {
    background: #ffd700;
    color: #2a0066;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.new-chat-button:hover {
    background: #e6c200;
}

.chat-history-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* 滚动条样式 */
.chat-history-list::-webkit-scrollbar, .chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-history-list::-webkit-scrollbar-thumb, .chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.chat-history-list::-webkit-scrollbar-track, .chat-messages::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.dialogue-main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-width: 900px; /* 限制聊天区域宽度 */
    margin: 0 auto; /* 居中显示 */
    padding: 20px;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.message-bubble {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    max-width: 70%;
    word-wrap: break-word;
}

.user-message {
    background-color: #4a008c; /* 浅色气泡 */
    align-self: flex-end; /* 右侧 */
    margin-left: auto;
    border-bottom-right-radius: 5px; /* 右下角更小圆角 */
}

.ai-message {
    background-color: #1a0033; /* 深色气泡 */
    align-self: flex-start; /* 左侧 */
    margin-right: auto;
    display: flex;
    align-items: flex-start;
    border-bottom-left-radius: 5px; /* 左下角更小圆角 */
}

.ai-message .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input-area {
    display: flex;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
    align-items: flex-end;
}

#chat-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 12px 20px;
    color: #fff;
    font-size: 1em;
    resize: vertical; /* 允许垂直调整大小 */
    min-height: 40px;
    max-height: 150px; /* 限制输入框最大高度 */
    overflow-y: auto;
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.send-button, .clear-chat-button, .back-to-showcase-button {
    background: #ffd700;
    color: #2a0066;
    border: none;
    padding: 12px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background 0.3s ease;
}

.send-button:hover, .clear-chat-button:hover, .back-to-showcase-button:hover {
    background: #e6c200;
}

.send-button {
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232a0066"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 0; /* 隐藏文本 */
    padding: 0; /* 移除内边距 */
    border-radius: 50%; /* 圆形按钮 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dialogue-mode-container.active {
        flex-direction: column; /* 手机上侧边栏在顶部 */
    }

    .dialogue-sidebar {
        width: 100%;
        height: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dialogue-main-area {
        padding: 15px;
    }

    .chat-input-area {
        flex-wrap: wrap; /* 按钮换行 */
        justify-content: center;
    }

    .send-button, .clear-chat-button, .back-to-showcase-button {
        flex-basis: 48%; /* 按钮平分宽度 */
        margin-top: 10px;
    }
    .send-button{
        width: auto;
        height: auto;
        font-size: 1em;
        background-image: none;
    }
} 